Rev 7968 | Rev 8717 | 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, billingWarehouseId):"""Retrieves non-serialized inventory item from a given supplierParameters:- itemNumber- itemId- fulfilmentWarehouseId- billingWarehouseId"""passdef scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):"""Scan non-serialized items.Parameters:- inventoryItem- type- quantity- billingWarehouseId- transferLotId"""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 getPurchaseScansByGrnDate(self, startDate, endDate):"""Returns the purchase scans between grn dates 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"""passdef getInventoryItemFromOrder(self, orderId):"""Returns inventory item for a given orderParameters:- orderId"""passdef getInventoryAge(self, ):"""Fetches the stock inventory age week-wise"""passdef getInventoryScansForItem(self, itemId, fromDate, toDate):"""Fetches the scanRecords for a given item for a given time intervalParameters:- itemId- fromDate- toDate"""passdef getScanRecordsForSerialNumber(self, serialNumber):"""Fetches the scanRecords for a given serialNumber for a given time intervalParameters:- serialNumber"""passdef scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):"""Inserts outgoing scans for Returned Items and updates returnId in InventoryItemsParameters:- saleReturnItems- vendorId- billingWarehouseId"""passdef scanForLostItem(self, lostItems, vendorId, billingWarehouseId):"""Inserts scans for lost Items and updates lastScanType in InventoryItemsParameters:- lostItems- vendorId- billingWarehouseId"""passdef getCurrentSerializedInventoryByScans(self, physicalWarehouseId):"""Get inventory count for available Serialized items in our warehouses using entries in ScanNew tableParameters:- physicalWarehouseId"""passdef getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):"""Get inventory count for available Serialized items in our warehouses using entries in ScanNew tableParameters:- physicalWarehouseId"""passdef getHistoricSerializedInventoryByScans(self, date):"""Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew tableParameters:- date"""passdef getHistoricNonSerializedInventoryByScans(self, date):"""Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew tableParameters:- date"""passdef scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):"""Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL BillingParameters:- itemId- serialNumber- itemNumber- invoiceNumber- warehouseId- unitPrice- nlc- orderId"""passdef scanForOursExternalSaleReturn(self, orderId, unitPrice):"""Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL BillingParameters:- orderId- unitPrice"""passdef getMovementNonSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""passdef getMovementSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""passdef getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""passdef getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""passdef scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):"""Parameters:- orderId- freebieItemId- freebieWarehouseId- scanType"""passdef reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):"""Parameters:- oldOrderId- newOrderId- freebieItemId- scanType"""passdef isItemTransferAllowed(self, warehouseId, transferWarehouseId):"""Parameters:- warehouseId- transferWarehouseId"""passdef createTransferLot(self, originWarehouseId, destWarehouseId):"""Parameters:- originWarehouseId- destWarehouseId"""passdef getTransferLot(self, transferLotId):"""Parameters:- transferLotId"""passdef markTransferLotAsReceived(self, id, remoteTransferRefNumber):"""Parameters:- id- remoteTransferRefNumber"""passdef getTransferLotsByDate(self, fromDate, toDate):"""Parameters:- fromDate- toDate"""passdef getAllowedDestinationWarehousesForTransfer(self, warehouseId):"""Parameters:- warehouseId"""passdef getItemsInTransferLot(self, transferLotId):"""Parameters:- transferLotId"""passdef markItemsAsReceivedForTransferLot(self, id):"""Parameters:- id"""passdef updateTransferLotAfterItemReceive(self, id):"""Parameters:- id"""passdef scanForTransferOut(self, inventoryItems, type, transferLotId):"""Parameters:- inventoryItems- type- transferLotId"""passdef scanForTransferIn(self, inventoryItems, type, transferLotId):"""Parameters:- inventoryItems- type- transferLotId"""passdef scanForOursThirdPartyReceive(self, inventoryItems, id):"""Parameters:- inventoryItems- id"""passdef getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):"""Parameters:- itemId- physicalWarehouseId"""passdef getInTransitInventory(self, originWarehouseId):"""Parameters:- originWarehouseId"""passdef isItemAvailableForSale(self, itemId, serialNumber, warehouseId):"""Parameters:- itemId- serialNumber- warehouseId"""passdef getHistoricBadInventoryByScans(self, date):"""Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew tableParameters:- date"""passdef scanForBadSale(self, inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId):"""Parameters:- inventoryItem- orderId- quantity- fulfilmentWarehouseId- billingWarehouseId"""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, billingWarehouseId):"""Retrieves non-serialized inventory item from a given supplierParameters:- itemNumber- itemId- fulfilmentWarehouseId- billingWarehouseId"""self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId)return self.recv_getNonSeralizedInventoryItem()def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId, billingWarehouseId):self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)args = getNonSeralizedInventoryItem_args()args.itemNumber = itemNumberargs.itemId = itemIdargs.fulfilmentWarehouseId = fulfilmentWarehouseIdargs.billingWarehouseId = billingWarehouseIdargs.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, transferLotId):"""Scan non-serialized items.Parameters:- inventoryItem- type- quantity- billingWarehouseId- transferLotId"""self.send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId)self.recv_scan()def send_scan(self, inventoryItem, type, quantity, billingWarehouseId, transferLotId):self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)args = scan_args()args.inventoryItem = inventoryItemargs.type = typeargs.quantity = quantityargs.billingWarehouseId = billingWarehouseIdargs.transferLotId = transferLotIdargs.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 getPurchaseScansByGrnDate(self, startDate, endDate):"""Returns the purchase scans between grn dates grouped by items for Purchase register reconciliationParameters:- startDate- endDate"""self.send_getPurchaseScansByGrnDate(startDate, endDate)return self.recv_getPurchaseScansByGrnDate()def send_getPurchaseScansByGrnDate(self, startDate, endDate):self._oprot.writeMessageBegin('getPurchaseScansByGrnDate', TMessageType.CALL, self._seqid)args = getPurchaseScansByGrnDate_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPurchaseScansByGrnDate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPurchaseScansByGrnDate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate 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");def getInventoryItemFromOrder(self, orderId):"""Returns inventory item for a given orderParameters:- orderId"""self.send_getInventoryItemFromOrder(orderId)return self.recv_getInventoryItemFromOrder()def send_getInventoryItemFromOrder(self, orderId):self._oprot.writeMessageBegin('getInventoryItemFromOrder', TMessageType.CALL, self._seqid)args = getInventoryItemFromOrder_args()args.orderId = orderIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInventoryItemFromOrder(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInventoryItemFromOrder_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.we is not None:raise result.weraise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");def getInventoryAge(self, ):"""Fetches the stock inventory age week-wise"""self.send_getInventoryAge()return self.recv_getInventoryAge()def send_getInventoryAge(self, ):self._oprot.writeMessageBegin('getInventoryAge', TMessageType.CALL, self._seqid)args = getInventoryAge_args()args.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInventoryAge(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInventoryAge_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");def getInventoryScansForItem(self, itemId, fromDate, toDate):"""Fetches the scanRecords for a given item for a given time intervalParameters:- itemId- fromDate- toDate"""self.send_getInventoryScansForItem(itemId, fromDate, toDate)return self.recv_getInventoryScansForItem()def send_getInventoryScansForItem(self, itemId, fromDate, toDate):self._oprot.writeMessageBegin('getInventoryScansForItem', TMessageType.CALL, self._seqid)args = getInventoryScansForItem_args()args.itemId = itemIdargs.fromDate = fromDateargs.toDate = toDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInventoryScansForItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInventoryScansForItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");def getScanRecordsForSerialNumber(self, serialNumber):"""Fetches the scanRecords for a given serialNumber for a given time intervalParameters:- serialNumber"""self.send_getScanRecordsForSerialNumber(serialNumber)return self.recv_getScanRecordsForSerialNumber()def send_getScanRecordsForSerialNumber(self, serialNumber):self._oprot.writeMessageBegin('getScanRecordsForSerialNumber', TMessageType.CALL, self._seqid)args = getScanRecordsForSerialNumber_args()args.serialNumber = serialNumberargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getScanRecordsForSerialNumber(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getScanRecordsForSerialNumber_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");def scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):"""Inserts outgoing scans for Returned Items and updates returnId in InventoryItemsParameters:- saleReturnItems- vendorId- billingWarehouseId"""self.send_scanForPurchaseReturn(saleReturnItems, vendorId, billingWarehouseId)self.recv_scanForPurchaseReturn()def send_scanForPurchaseReturn(self, saleReturnItems, vendorId, billingWarehouseId):self._oprot.writeMessageBegin('scanForPurchaseReturn', TMessageType.CALL, self._seqid)args = scanForPurchaseReturn_args()args.saleReturnItems = saleReturnItemsargs.vendorId = vendorIdargs.billingWarehouseId = billingWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForPurchaseReturn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForPurchaseReturn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.ex is not None:raise result.exreturndef scanForLostItem(self, lostItems, vendorId, billingWarehouseId):"""Inserts scans for lost Items and updates lastScanType in InventoryItemsParameters:- lostItems- vendorId- billingWarehouseId"""self.send_scanForLostItem(lostItems, vendorId, billingWarehouseId)self.recv_scanForLostItem()def send_scanForLostItem(self, lostItems, vendorId, billingWarehouseId):self._oprot.writeMessageBegin('scanForLostItem', TMessageType.CALL, self._seqid)args = scanForLostItem_args()args.lostItems = lostItemsargs.vendorId = vendorIdargs.billingWarehouseId = billingWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForLostItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForLostItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.ex is not None:raise result.exreturndef getCurrentSerializedInventoryByScans(self, physicalWarehouseId):"""Get inventory count for available Serialized items in our warehouses using entries in ScanNew tableParameters:- physicalWarehouseId"""self.send_getCurrentSerializedInventoryByScans(physicalWarehouseId)return self.recv_getCurrentSerializedInventoryByScans()def send_getCurrentSerializedInventoryByScans(self, physicalWarehouseId):self._oprot.writeMessageBegin('getCurrentSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getCurrentSerializedInventoryByScans_args()args.physicalWarehouseId = physicalWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCurrentSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCurrentSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");def getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):"""Get inventory count for available Serialized items in our warehouses using entries in ScanNew tableParameters:- physicalWarehouseId"""self.send_getCurrentNonSerializedInventoryByScans(physicalWarehouseId)return self.recv_getCurrentNonSerializedInventoryByScans()def send_getCurrentNonSerializedInventoryByScans(self, physicalWarehouseId):self._oprot.writeMessageBegin('getCurrentNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getCurrentNonSerializedInventoryByScans_args()args.physicalWarehouseId = physicalWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCurrentNonSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCurrentNonSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");def getHistoricSerializedInventoryByScans(self, date):"""Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew tableParameters:- date"""self.send_getHistoricSerializedInventoryByScans(date)return self.recv_getHistoricSerializedInventoryByScans()def send_getHistoricSerializedInventoryByScans(self, date):self._oprot.writeMessageBegin('getHistoricSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getHistoricSerializedInventoryByScans_args()args.date = dateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getHistoricSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getHistoricSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");def getHistoricNonSerializedInventoryByScans(self, date):"""Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew tableParameters:- date"""self.send_getHistoricNonSerializedInventoryByScans(date)return self.recv_getHistoricNonSerializedInventoryByScans()def send_getHistoricNonSerializedInventoryByScans(self, date):self._oprot.writeMessageBegin('getHistoricNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getHistoricNonSerializedInventoryByScans_args()args.date = dateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getHistoricNonSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getHistoricNonSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");def scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):"""Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL BillingParameters:- itemId- serialNumber- itemNumber- invoiceNumber- warehouseId- unitPrice- nlc- orderId"""self.send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId)return self.recv_scanForOursExternalSale()def send_scanForOursExternalSale(self, itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, nlc, orderId):self._oprot.writeMessageBegin('scanForOursExternalSale', TMessageType.CALL, self._seqid)args = scanForOursExternalSale_args()args.itemId = itemIdargs.serialNumber = serialNumberargs.itemNumber = itemNumberargs.invoiceNumber = invoiceNumberargs.warehouseId = warehouseIdargs.unitPrice = unitPriceargs.nlc = nlcargs.orderId = orderIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForOursExternalSale(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForOursExternalSale_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.ex is not None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");def scanForOursExternalSaleReturn(self, orderId, unitPrice):"""Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL BillingParameters:- orderId- unitPrice"""self.send_scanForOursExternalSaleReturn(orderId, unitPrice)self.recv_scanForOursExternalSaleReturn()def send_scanForOursExternalSaleReturn(self, orderId, unitPrice):self._oprot.writeMessageBegin('scanForOursExternalSaleReturn', TMessageType.CALL, self._seqid)args = scanForOursExternalSaleReturn_args()args.orderId = orderIdargs.unitPrice = unitPriceargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForOursExternalSaleReturn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForOursExternalSaleReturn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.ex is not None:raise result.exreturndef getMovementNonSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""self.send_getMovementNonSerializedInventoryByScans(startDate, endDate)return self.recv_getMovementNonSerializedInventoryByScans()def send_getMovementNonSerializedInventoryByScans(self, startDate, endDate):self._oprot.writeMessageBegin('getMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getMovementNonSerializedInventoryByScans_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMovementNonSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMovementNonSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");def getMovementSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""self.send_getMovementSerializedInventoryByScans(startDate, endDate)return self.recv_getMovementSerializedInventoryByScans()def send_getMovementSerializedInventoryByScans(self, startDate, endDate):self._oprot.writeMessageBegin('getMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getMovementSerializedInventoryByScans_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getMovementSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getMovementSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");def getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""self.send_getCompleteMovementSerializedInventoryByScans(startDate, endDate)return self.recv_getCompleteMovementSerializedInventoryByScans()def send_getCompleteMovementSerializedInventoryByScans(self, startDate, endDate):self._oprot.writeMessageBegin('getCompleteMovementSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getCompleteMovementSerializedInventoryByScans_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCompleteMovementSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCompleteMovementSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");def getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):"""Parameters:- startDate- endDate"""self.send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate)return self.recv_getCompleteMovementNonSerializedInventoryByScans()def send_getCompleteMovementNonSerializedInventoryByScans(self, startDate, endDate):self._oprot.writeMessageBegin('getCompleteMovementNonSerializedInventoryByScans', TMessageType.CALL, self._seqid)args = getCompleteMovementNonSerializedInventoryByScans_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCompleteMovementNonSerializedInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCompleteMovementNonSerializedInventoryByScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");def scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):"""Parameters:- orderId- freebieItemId- freebieWarehouseId- scanType"""self.send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType)return self.recv_scanfreebie()def send_scanfreebie(self, orderId, freebieItemId, freebieWarehouseId, scanType):self._oprot.writeMessageBegin('scanfreebie', TMessageType.CALL, self._seqid)args = scanfreebie_args()args.orderId = orderIdargs.freebieItemId = freebieItemIdargs.freebieWarehouseId = freebieWarehouseIdargs.scanType = scanTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanfreebie(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanfreebie_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, "scanfreebie failed: unknown result");def reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):"""Parameters:- oldOrderId- newOrderId- freebieItemId- scanType"""self.send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType)self.recv_reshipfreebie()def send_reshipfreebie(self, oldOrderId, newOrderId, freebieItemId, scanType):self._oprot.writeMessageBegin('reshipfreebie', TMessageType.CALL, self._seqid)args = reshipfreebie_args()args.oldOrderId = oldOrderIdargs.newOrderId = newOrderIdargs.freebieItemId = freebieItemIdargs.scanType = scanTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_reshipfreebie(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = reshipfreebie_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef isItemTransferAllowed(self, warehouseId, transferWarehouseId):"""Parameters:- warehouseId- transferWarehouseId"""self.send_isItemTransferAllowed(warehouseId, transferWarehouseId)return self.recv_isItemTransferAllowed()def send_isItemTransferAllowed(self, warehouseId, transferWarehouseId):self._oprot.writeMessageBegin('isItemTransferAllowed', TMessageType.CALL, self._seqid)args = isItemTransferAllowed_args()args.warehouseId = warehouseIdargs.transferWarehouseId = transferWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_isItemTransferAllowed(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = isItemTransferAllowed_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");def createTransferLot(self, originWarehouseId, destWarehouseId):"""Parameters:- originWarehouseId- destWarehouseId"""self.send_createTransferLot(originWarehouseId, destWarehouseId)return self.recv_createTransferLot()def send_createTransferLot(self, originWarehouseId, destWarehouseId):self._oprot.writeMessageBegin('createTransferLot', TMessageType.CALL, self._seqid)args = createTransferLot_args()args.originWarehouseId = originWarehouseIdargs.destWarehouseId = destWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createTransferLot(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createTransferLot_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, "createTransferLot failed: unknown result");def getTransferLot(self, transferLotId):"""Parameters:- transferLotId"""self.send_getTransferLot(transferLotId)return self.recv_getTransferLot()def send_getTransferLot(self, transferLotId):self._oprot.writeMessageBegin('getTransferLot', TMessageType.CALL, self._seqid)args = getTransferLot_args()args.transferLotId = transferLotIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransferLot(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransferLot_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, "getTransferLot failed: unknown result");def markTransferLotAsReceived(self, id, remoteTransferRefNumber):"""Parameters:- id- remoteTransferRefNumber"""self.send_markTransferLotAsReceived(id, remoteTransferRefNumber)self.recv_markTransferLotAsReceived()def send_markTransferLotAsReceived(self, id, remoteTransferRefNumber):self._oprot.writeMessageBegin('markTransferLotAsReceived', TMessageType.CALL, self._seqid)args = markTransferLotAsReceived_args()args.id = idargs.remoteTransferRefNumber = remoteTransferRefNumberargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_markTransferLotAsReceived(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = markTransferLotAsReceived_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef getTransferLotsByDate(self, fromDate, toDate):"""Parameters:- fromDate- toDate"""self.send_getTransferLotsByDate(fromDate, toDate)return self.recv_getTransferLotsByDate()def send_getTransferLotsByDate(self, fromDate, toDate):self._oprot.writeMessageBegin('getTransferLotsByDate', TMessageType.CALL, self._seqid)args = getTransferLotsByDate_args()args.fromDate = fromDateargs.toDate = toDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransferLotsByDate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransferLotsByDate_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, "getTransferLotsByDate failed: unknown result");def getAllowedDestinationWarehousesForTransfer(self, warehouseId):"""Parameters:- warehouseId"""self.send_getAllowedDestinationWarehousesForTransfer(warehouseId)return self.recv_getAllowedDestinationWarehousesForTransfer()def send_getAllowedDestinationWarehousesForTransfer(self, warehouseId):self._oprot.writeMessageBegin('getAllowedDestinationWarehousesForTransfer', TMessageType.CALL, self._seqid)args = getAllowedDestinationWarehousesForTransfer_args()args.warehouseId = warehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllowedDestinationWarehousesForTransfer(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllowedDestinationWarehousesForTransfer_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");def getItemsInTransferLot(self, transferLotId):"""Parameters:- transferLotId"""self.send_getItemsInTransferLot(transferLotId)return self.recv_getItemsInTransferLot()def send_getItemsInTransferLot(self, transferLotId):self._oprot.writeMessageBegin('getItemsInTransferLot', TMessageType.CALL, self._seqid)args = getItemsInTransferLot_args()args.transferLotId = transferLotIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemsInTransferLot(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemsInTransferLot_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");def markItemsAsReceivedForTransferLot(self, id):"""Parameters:- id"""self.send_markItemsAsReceivedForTransferLot(id)self.recv_markItemsAsReceivedForTransferLot()def send_markItemsAsReceivedForTransferLot(self, id):self._oprot.writeMessageBegin('markItemsAsReceivedForTransferLot', TMessageType.CALL, self._seqid)args = markItemsAsReceivedForTransferLot_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_markItemsAsReceivedForTransferLot(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = markItemsAsReceivedForTransferLot_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef updateTransferLotAfterItemReceive(self, id):"""Parameters:- id"""self.send_updateTransferLotAfterItemReceive(id)return self.recv_updateTransferLotAfterItemReceive()def send_updateTransferLotAfterItemReceive(self, id):self._oprot.writeMessageBegin('updateTransferLotAfterItemReceive', TMessageType.CALL, self._seqid)args = updateTransferLotAfterItemReceive_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_updateTransferLotAfterItemReceive(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = updateTransferLotAfterItemReceive_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, "updateTransferLotAfterItemReceive failed: unknown result");def scanForTransferOut(self, inventoryItems, type, transferLotId):"""Parameters:- inventoryItems- type- transferLotId"""self.send_scanForTransferOut(inventoryItems, type, transferLotId)self.recv_scanForTransferOut()def send_scanForTransferOut(self, inventoryItems, type, transferLotId):self._oprot.writeMessageBegin('scanForTransferOut', TMessageType.CALL, self._seqid)args = scanForTransferOut_args()args.inventoryItems = inventoryItemsargs.type = typeargs.transferLotId = transferLotIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForTransferOut(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForTransferOut_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef scanForTransferIn(self, inventoryItems, type, transferLotId):"""Parameters:- inventoryItems- type- transferLotId"""self.send_scanForTransferIn(inventoryItems, type, transferLotId)self.recv_scanForTransferIn()def send_scanForTransferIn(self, inventoryItems, type, transferLotId):self._oprot.writeMessageBegin('scanForTransferIn', TMessageType.CALL, self._seqid)args = scanForTransferIn_args()args.inventoryItems = inventoryItemsargs.type = typeargs.transferLotId = transferLotIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForTransferIn(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForTransferIn_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef scanForOursThirdPartyReceive(self, inventoryItems, id):"""Parameters:- inventoryItems- id"""self.send_scanForOursThirdPartyReceive(inventoryItems, id)self.recv_scanForOursThirdPartyReceive()def send_scanForOursThirdPartyReceive(self, inventoryItems, id):self._oprot.writeMessageBegin('scanForOursThirdPartyReceive', TMessageType.CALL, self._seqid)args = scanForOursThirdPartyReceive_args()args.inventoryItems = inventoryItemsargs.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForOursThirdPartyReceive(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForOursThirdPartyReceive_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):"""Parameters:- itemId- physicalWarehouseId"""self.send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(itemId, physicalWarehouseId)return self.recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse()def send_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, itemId, physicalWarehouseId):self._oprot.writeMessageBegin('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse', TMessageType.CALL, self._seqid)args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()args.itemId = itemIdargs.physicalWarehouseId = physicalWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_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, "getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse failed: unknown result");def getInTransitInventory(self, originWarehouseId):"""Parameters:- originWarehouseId"""self.send_getInTransitInventory(originWarehouseId)return self.recv_getInTransitInventory()def send_getInTransitInventory(self, originWarehouseId):self._oprot.writeMessageBegin('getInTransitInventory', TMessageType.CALL, self._seqid)args = getInTransitInventory_args()args.originWarehouseId = originWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInTransitInventory(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInTransitInventory_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):"""Parameters:- itemId- serialNumber- warehouseId"""self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)return self.recv_isItemAvailableForSale()def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)args = isItemAvailableForSale_args()args.itemId = itemIdargs.serialNumber = serialNumberargs.warehouseId = warehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_isItemAvailableForSale(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = isItemAvailableForSale_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, "isItemAvailableForSale failed: unknown result");def getHistoricBadInventoryByScans(self, date):"""Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew tableParameters:- date"""self.send_getHistoricBadInventoryByScans(date)return self.recv_getHistoricBadInventoryByScans()def send_getHistoricBadInventoryByScans(self, date):self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)args = getHistoricBadInventoryByScans_args()args.date = dateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getHistoricBadInventoryByScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getHistoricBadInventoryByScans_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, "getHistoricBadInventoryByScans failed: unknown result");def scanForBadSale(self, inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId):"""Parameters:- inventoryItem- orderId- quantity- fulfilmentWarehouseId- billingWarehouseId"""self.send_scanForBadSale(inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId)self.recv_scanForBadSale()def send_scanForBadSale(self, inventoryItem, orderId, quantity, fulfilmentWarehouseId, billingWarehouseId):self._oprot.writeMessageBegin('scanForBadSale', TMessageType.CALL, self._seqid)args = scanForBadSale_args()args.inventoryItem = inventoryItemargs.orderId = orderIdargs.quantity = quantityargs.fulfilmentWarehouseId = fulfilmentWarehouseIdargs.billingWarehouseId = billingWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForBadSale(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForBadSale_result()result.read(self._iprot)self._iprot.readMessageEnd()returnclass 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["getPurchaseScansByGrnDate"] = Processor.process_getPurchaseScansByGrnDateself._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumberself._processMap["getInventoryItemFromOrder"] = Processor.process_getInventoryItemFromOrderself._processMap["getInventoryAge"] = Processor.process_getInventoryAgeself._processMap["getInventoryScansForItem"] = Processor.process_getInventoryScansForItemself._processMap["getScanRecordsForSerialNumber"] = Processor.process_getScanRecordsForSerialNumberself._processMap["scanForPurchaseReturn"] = Processor.process_scanForPurchaseReturnself._processMap["scanForLostItem"] = Processor.process_scanForLostItemself._processMap["getCurrentSerializedInventoryByScans"] = Processor.process_getCurrentSerializedInventoryByScansself._processMap["getCurrentNonSerializedInventoryByScans"] = Processor.process_getCurrentNonSerializedInventoryByScansself._processMap["getHistoricSerializedInventoryByScans"] = Processor.process_getHistoricSerializedInventoryByScansself._processMap["getHistoricNonSerializedInventoryByScans"] = Processor.process_getHistoricNonSerializedInventoryByScansself._processMap["scanForOursExternalSale"] = Processor.process_scanForOursExternalSaleself._processMap["scanForOursExternalSaleReturn"] = Processor.process_scanForOursExternalSaleReturnself._processMap["getMovementNonSerializedInventoryByScans"] = Processor.process_getMovementNonSerializedInventoryByScansself._processMap["getMovementSerializedInventoryByScans"] = Processor.process_getMovementSerializedInventoryByScansself._processMap["getCompleteMovementSerializedInventoryByScans"] = Processor.process_getCompleteMovementSerializedInventoryByScansself._processMap["getCompleteMovementNonSerializedInventoryByScans"] = Processor.process_getCompleteMovementNonSerializedInventoryByScansself._processMap["scanfreebie"] = Processor.process_scanfreebieself._processMap["reshipfreebie"] = Processor.process_reshipfreebieself._processMap["isItemTransferAllowed"] = Processor.process_isItemTransferAllowedself._processMap["createTransferLot"] = Processor.process_createTransferLotself._processMap["getTransferLot"] = Processor.process_getTransferLotself._processMap["markTransferLotAsReceived"] = Processor.process_markTransferLotAsReceivedself._processMap["getTransferLotsByDate"] = Processor.process_getTransferLotsByDateself._processMap["getAllowedDestinationWarehousesForTransfer"] = Processor.process_getAllowedDestinationWarehousesForTransferself._processMap["getItemsInTransferLot"] = Processor.process_getItemsInTransferLotself._processMap["markItemsAsReceivedForTransferLot"] = Processor.process_markItemsAsReceivedForTransferLotself._processMap["updateTransferLotAfterItemReceive"] = Processor.process_updateTransferLotAfterItemReceiveself._processMap["scanForTransferOut"] = Processor.process_scanForTransferOutself._processMap["scanForTransferIn"] = Processor.process_scanForTransferInself._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceiveself._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouseself._processMap["getInTransitInventory"] = Processor.process_getInTransitInventoryself._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSaleself._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScansself._processMap["scanForBadSale"] = Processor.process_scanForBadSaledef 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, args.billingWarehouseId)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, args.transferLotId)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_getPurchaseScansByGrnDate(self, seqid, iprot, oprot):args = getPurchaseScansByGrnDate_args()args.read(iprot)iprot.readMessageEnd()result = getPurchaseScansByGrnDate_result()result.success = self._handler.getPurchaseScansByGrnDate(args.startDate, args.endDate)oprot.writeMessageBegin("getPurchaseScansByGrnDate", 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()def process_getInventoryItemFromOrder(self, seqid, iprot, oprot):args = getInventoryItemFromOrder_args()args.read(iprot)iprot.readMessageEnd()result = getInventoryItemFromOrder_result()try:result.success = self._handler.getInventoryItemFromOrder(args.orderId)except WarehouseServiceException, we:result.we = weoprot.writeMessageBegin("getInventoryItemFromOrder", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInventoryAge(self, seqid, iprot, oprot):args = getInventoryAge_args()args.read(iprot)iprot.readMessageEnd()result = getInventoryAge_result()result.success = self._handler.getInventoryAge()oprot.writeMessageBegin("getInventoryAge", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInventoryScansForItem(self, seqid, iprot, oprot):args = getInventoryScansForItem_args()args.read(iprot)iprot.readMessageEnd()result = getInventoryScansForItem_result()result.success = self._handler.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate)oprot.writeMessageBegin("getInventoryScansForItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getScanRecordsForSerialNumber(self, seqid, iprot, oprot):args = getScanRecordsForSerialNumber_args()args.read(iprot)iprot.readMessageEnd()result = getScanRecordsForSerialNumber_result()result.success = self._handler.getScanRecordsForSerialNumber(args.serialNumber)oprot.writeMessageBegin("getScanRecordsForSerialNumber", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForPurchaseReturn(self, seqid, iprot, oprot):args = scanForPurchaseReturn_args()args.read(iprot)iprot.readMessageEnd()result = scanForPurchaseReturn_result()try:self._handler.scanForPurchaseReturn(args.saleReturnItems, args.vendorId, args.billingWarehouseId)except WarehouseServiceException, ex:result.ex = exoprot.writeMessageBegin("scanForPurchaseReturn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForLostItem(self, seqid, iprot, oprot):args = scanForLostItem_args()args.read(iprot)iprot.readMessageEnd()result = scanForLostItem_result()try:self._handler.scanForLostItem(args.lostItems, args.vendorId, args.billingWarehouseId)except WarehouseServiceException, ex:result.ex = exoprot.writeMessageBegin("scanForLostItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCurrentSerializedInventoryByScans(self, seqid, iprot, oprot):args = getCurrentSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getCurrentSerializedInventoryByScans_result()result.success = self._handler.getCurrentSerializedInventoryByScans(args.physicalWarehouseId)oprot.writeMessageBegin("getCurrentSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCurrentNonSerializedInventoryByScans(self, seqid, iprot, oprot):args = getCurrentNonSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getCurrentNonSerializedInventoryByScans_result()result.success = self._handler.getCurrentNonSerializedInventoryByScans(args.physicalWarehouseId)oprot.writeMessageBegin("getCurrentNonSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getHistoricSerializedInventoryByScans(self, seqid, iprot, oprot):args = getHistoricSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getHistoricSerializedInventoryByScans_result()result.success = self._handler.getHistoricSerializedInventoryByScans(args.date)oprot.writeMessageBegin("getHistoricSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getHistoricNonSerializedInventoryByScans(self, seqid, iprot, oprot):args = getHistoricNonSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getHistoricNonSerializedInventoryByScans_result()result.success = self._handler.getHistoricNonSerializedInventoryByScans(args.date)oprot.writeMessageBegin("getHistoricNonSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForOursExternalSale(self, seqid, iprot, oprot):args = scanForOursExternalSale_args()args.read(iprot)iprot.readMessageEnd()result = scanForOursExternalSale_result()try:result.success = self._handler.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.nlc, args.orderId)except WarehouseServiceException, ex:result.ex = exoprot.writeMessageBegin("scanForOursExternalSale", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForOursExternalSaleReturn(self, seqid, iprot, oprot):args = scanForOursExternalSaleReturn_args()args.read(iprot)iprot.readMessageEnd()result = scanForOursExternalSaleReturn_result()try:self._handler.scanForOursExternalSaleReturn(args.orderId, args.unitPrice)except WarehouseServiceException, ex:result.ex = exoprot.writeMessageBegin("scanForOursExternalSaleReturn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):args = getMovementNonSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getMovementNonSerializedInventoryByScans_result()result.success = self._handler.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate)oprot.writeMessageBegin("getMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getMovementSerializedInventoryByScans(self, seqid, iprot, oprot):args = getMovementSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getMovementSerializedInventoryByScans_result()result.success = self._handler.getMovementSerializedInventoryByScans(args.startDate, args.endDate)oprot.writeMessageBegin("getMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCompleteMovementSerializedInventoryByScans(self, seqid, iprot, oprot):args = getCompleteMovementSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getCompleteMovementSerializedInventoryByScans_result()result.success = self._handler.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate)oprot.writeMessageBegin("getCompleteMovementSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCompleteMovementNonSerializedInventoryByScans(self, seqid, iprot, oprot):args = getCompleteMovementNonSerializedInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getCompleteMovementNonSerializedInventoryByScans_result()result.success = self._handler.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate)oprot.writeMessageBegin("getCompleteMovementNonSerializedInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanfreebie(self, seqid, iprot, oprot):args = scanfreebie_args()args.read(iprot)iprot.readMessageEnd()result = scanfreebie_result()try:result.success = self._handler.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scanfreebie", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_reshipfreebie(self, seqid, iprot, oprot):args = reshipfreebie_args()args.read(iprot)iprot.readMessageEnd()result = reshipfreebie_result()try:self._handler.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("reshipfreebie", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_isItemTransferAllowed(self, seqid, iprot, oprot):args = isItemTransferAllowed_args()args.read(iprot)iprot.readMessageEnd()result = isItemTransferAllowed_result()result.success = self._handler.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId)oprot.writeMessageBegin("isItemTransferAllowed", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createTransferLot(self, seqid, iprot, oprot):args = createTransferLot_args()args.read(iprot)iprot.readMessageEnd()result = createTransferLot_result()try:result.success = self._handler.createTransferLot(args.originWarehouseId, args.destWarehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("createTransferLot", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransferLot(self, seqid, iprot, oprot):args = getTransferLot_args()args.read(iprot)iprot.readMessageEnd()result = getTransferLot_result()try:result.success = self._handler.getTransferLot(args.transferLotId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getTransferLot", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_markTransferLotAsReceived(self, seqid, iprot, oprot):args = markTransferLotAsReceived_args()args.read(iprot)iprot.readMessageEnd()result = markTransferLotAsReceived_result()try:self._handler.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("markTransferLotAsReceived", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransferLotsByDate(self, seqid, iprot, oprot):args = getTransferLotsByDate_args()args.read(iprot)iprot.readMessageEnd()result = getTransferLotsByDate_result()try:result.success = self._handler.getTransferLotsByDate(args.fromDate, args.toDate)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getTransferLotsByDate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllowedDestinationWarehousesForTransfer(self, seqid, iprot, oprot):args = getAllowedDestinationWarehousesForTransfer_args()args.read(iprot)iprot.readMessageEnd()result = getAllowedDestinationWarehousesForTransfer_result()result.success = self._handler.getAllowedDestinationWarehousesForTransfer(args.warehouseId)oprot.writeMessageBegin("getAllowedDestinationWarehousesForTransfer", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemsInTransferLot(self, seqid, iprot, oprot):args = getItemsInTransferLot_args()args.read(iprot)iprot.readMessageEnd()result = getItemsInTransferLot_result()result.success = self._handler.getItemsInTransferLot(args.transferLotId)oprot.writeMessageBegin("getItemsInTransferLot", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_markItemsAsReceivedForTransferLot(self, seqid, iprot, oprot):args = markItemsAsReceivedForTransferLot_args()args.read(iprot)iprot.readMessageEnd()result = markItemsAsReceivedForTransferLot_result()try:self._handler.markItemsAsReceivedForTransferLot(args.id)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("markItemsAsReceivedForTransferLot", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_updateTransferLotAfterItemReceive(self, seqid, iprot, oprot):args = updateTransferLotAfterItemReceive_args()args.read(iprot)iprot.readMessageEnd()result = updateTransferLotAfterItemReceive_result()try:result.success = self._handler.updateTransferLotAfterItemReceive(args.id)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("updateTransferLotAfterItemReceive", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForTransferOut(self, seqid, iprot, oprot):args = scanForTransferOut_args()args.read(iprot)iprot.readMessageEnd()result = scanForTransferOut_result()try:self._handler.scanForTransferOut(args.inventoryItems, args.type, args.transferLotId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scanForTransferOut", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForTransferIn(self, seqid, iprot, oprot):args = scanForTransferIn_args()args.read(iprot)iprot.readMessageEnd()result = scanForTransferIn_result()try:self._handler.scanForTransferIn(args.inventoryItems, args.type, args.transferLotId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scanForTransferIn", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForOursThirdPartyReceive(self, seqid, iprot, oprot):args = scanForOursThirdPartyReceive_args()args.read(iprot)iprot.readMessageEnd()result = scanForOursThirdPartyReceive_result()try:self._handler.scanForOursThirdPartyReceive(args.inventoryItems, args.id)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scanForOursThirdPartyReceive", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(self, seqid, iprot, oprot):args = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args()args.read(iprot)iprot.readMessageEnd()result = getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result()try:result.success = self._handler.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(args.itemId, args.physicalWarehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInTransitInventory(self, seqid, iprot, oprot):args = getInTransitInventory_args()args.read(iprot)iprot.readMessageEnd()result = getInTransitInventory_result()result.success = self._handler.getInTransitInventory(args.originWarehouseId)oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_isItemAvailableForSale(self, seqid, iprot, oprot):args = isItemAvailableForSale_args()args.read(iprot)iprot.readMessageEnd()result = isItemAvailableForSale_result()try:result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):args = getHistoricBadInventoryByScans_args()args.read(iprot)iprot.readMessageEnd()result = getHistoricBadInventoryByScans_result()try:result.success = self._handler.getHistoricBadInventoryByScans(args.date)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForBadSale(self, seqid, iprot, oprot):args = scanForBadSale_args()args.read(iprot)iprot.readMessageEnd()result = scanForBadSale_result()self._handler.scanForBadSale(args.inventoryItem, args.orderId, args.quantity, args.fulfilmentWarehouseId, args.billingWarehouseId)oprot.writeMessageBegin("scanForBadSale", 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- billingWarehouseId"""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(4, TType.I64, 'billingWarehouseId', None, None, ), # 4)def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):self.itemNumber = itemNumberself.itemId = itemIdself.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.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)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('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()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 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- transferLotId"""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(5, TType.I64, 'transferLotId', None, None, ), # 5)def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None, transferLotId=None,):self.inventoryItem = inventoryItemself.type = typeself.quantity = quantityself.billingWarehouseId = billingWarehouseIdself.transferLotId = transferLotIddef 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)elif fid == 5:if ftype == TType.I64:self.transferLotId = 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()if self.transferLotId is not None:oprot.writeFieldBegin('transferLotId', TType.I64, 5)oprot.writeI64(self.transferLotId)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 getPurchaseScansByGrnDate_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('getPurchaseScansByGrnDate_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 getPurchaseScansByGrnDate_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 = [](_etype31, _size28) = iprot.readListBegin()for _i32 in xrange(_size28):_elem33 = DetailedPurchaseScan()_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('getPurchaseScansByGrnDate_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)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 = [](_etype38, _size35) = iprot.readListBegin()for _i39 in xrange(_size35):_elem40 = InvoiceScan()_elem40.read(iprot)self.success.append(_elem40)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 iter41 in self.success:iter41.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 getInventoryItemFromOrder_args:"""Attributes:- orderId"""thrift_spec = (None, # 0(1, TType.I64, 'orderId', None, None, ), # 1)def __init__(self, orderId=None,):self.orderId = orderIddef 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.orderId = 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('getInventoryItemFromOrder_args')if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 1)oprot.writeI64(self.orderId)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 getInventoryItemFromOrder_result:"""Attributes:- success- we"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'we', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, we=None,):self.success = successself.we = wedef 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.we = WarehouseServiceException()self.we.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('getInventoryItemFromOrder_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.we is not None:oprot.writeFieldBegin('we', TType.STRUCT, 1)self.we.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 getInventoryAge_args: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('getInventoryAge_args')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 getInventoryAge_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryAge, InventoryAge.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 = [](_etype45, _size42) = iprot.readListBegin()for _i46 in xrange(_size42):_elem47 = InventoryAge()_elem47.read(iprot)self.success.append(_elem47)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('getInventoryAge_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter48 in self.success:iter48.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 getInventoryScansForItem_args:"""Attributes:- itemId- fromDate- toDate"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'fromDate', None, None, ), # 2(3, TType.I64, 'toDate', None, None, ), # 3)def __init__(self, itemId=None, fromDate=None, toDate=None,):self.itemId = itemIdself.fromDate = fromDateself.toDate = toDatedef 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)elif fid == 2:if ftype == TType.I64:self.fromDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.toDate = 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('getInventoryScansForItem_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.fromDate is not None:oprot.writeFieldBegin('fromDate', TType.I64, 2)oprot.writeI64(self.fromDate)oprot.writeFieldEnd()if self.toDate is not None:oprot.writeFieldBegin('toDate', TType.I64, 3)oprot.writeI64(self.toDate)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 getInventoryScansForItem_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.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 = [](_etype52, _size49) = iprot.readListBegin()for _i53 in xrange(_size49):_elem54 = Scan()_elem54.read(iprot)self.success.append(_elem54)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('getInventoryScansForItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter55 in self.success:iter55.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 getScanRecordsForSerialNumber_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('getScanRecordsForSerialNumber_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 getScanRecordsForSerialNumber_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Scan, Scan.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 = [](_etype59, _size56) = iprot.readListBegin()for _i60 in xrange(_size56):_elem61 = Scan()_elem61.read(iprot)self.success.append(_elem61)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('getScanRecordsForSerialNumber_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter62 in self.success:iter62.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 scanForPurchaseReturn_args:"""Attributes:- saleReturnItems- vendorId- billingWarehouseId"""thrift_spec = (None, # 0(1, TType.LIST, 'saleReturnItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1(2, TType.I64, 'vendorId', None, None, ), # 2(3, TType.I64, 'billingWarehouseId', None, None, ), # 3)def __init__(self, saleReturnItems=None, vendorId=None, billingWarehouseId=None,):self.saleReturnItems = saleReturnItemsself.vendorId = vendorIdself.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.LIST:self.saleReturnItems = [](_etype66, _size63) = iprot.readListBegin()for _i67 in xrange(_size63):_elem68 = InventoryItem()_elem68.read(iprot)self.saleReturnItems.append(_elem68)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.vendorId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3: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('scanForPurchaseReturn_args')if self.saleReturnItems is not None:oprot.writeFieldBegin('saleReturnItems', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.saleReturnItems))for iter69 in self.saleReturnItems:iter69.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.vendorId is not None:oprot.writeFieldBegin('vendorId', TType.I64, 2)oprot.writeI64(self.vendorId)oprot.writeFieldEnd()if self.billingWarehouseId is not None:oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)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 scanForPurchaseReturn_result:"""Attributes:- ex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, ex=None,):self.ex = exdef 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.ex = WarehouseServiceException()self.ex.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('scanForPurchaseReturn_result')if self.ex is not None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.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 scanForLostItem_args:"""Attributes:- lostItems- vendorId- billingWarehouseId"""thrift_spec = (None, # 0(1, TType.LIST, 'lostItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1(2, TType.I64, 'vendorId', None, None, ), # 2(3, TType.I64, 'billingWarehouseId', None, None, ), # 3)def __init__(self, lostItems=None, vendorId=None, billingWarehouseId=None,):self.lostItems = lostItemsself.vendorId = vendorIdself.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.LIST:self.lostItems = [](_etype73, _size70) = iprot.readListBegin()for _i74 in xrange(_size70):_elem75 = InventoryItem()_elem75.read(iprot)self.lostItems.append(_elem75)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.vendorId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3: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('scanForLostItem_args')if self.lostItems is not None:oprot.writeFieldBegin('lostItems', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.lostItems))for iter76 in self.lostItems:iter76.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.vendorId is not None:oprot.writeFieldBegin('vendorId', TType.I64, 2)oprot.writeI64(self.vendorId)oprot.writeFieldEnd()if self.billingWarehouseId is not None:oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)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 scanForLostItem_result:"""Attributes:- ex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, ex=None,):self.ex = exdef 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.ex = WarehouseServiceException()self.ex.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('scanForLostItem_result')if self.ex is not None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.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 getCurrentSerializedInventoryByScans_args:"""Attributes:- physicalWarehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'physicalWarehouseId', None, None, ), # 1)def __init__(self, physicalWarehouseId=None,):self.physicalWarehouseId = physicalWarehouseIddef 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.physicalWarehouseId = 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('getCurrentSerializedInventoryByScans_args')if self.physicalWarehouseId is not None:oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)oprot.writeI64(self.physicalWarehouseId)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 getCurrentSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.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 = [](_etype80, _size77) = iprot.readListBegin()for _i81 in xrange(_size77):_elem82 = InventoryAvailability()_elem82.read(iprot)self.success.append(_elem82)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('getCurrentSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter83 in self.success:iter83.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 getCurrentNonSerializedInventoryByScans_args:"""Attributes:- physicalWarehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'physicalWarehouseId', None, None, ), # 1)def __init__(self, physicalWarehouseId=None,):self.physicalWarehouseId = physicalWarehouseIddef 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.physicalWarehouseId = 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('getCurrentNonSerializedInventoryByScans_args')if self.physicalWarehouseId is not None:oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 1)oprot.writeI64(self.physicalWarehouseId)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 getCurrentNonSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.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 = [](_etype87, _size84) = iprot.readListBegin()for _i88 in xrange(_size84):_elem89 = InventoryAvailability()_elem89.read(iprot)self.success.append(_elem89)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('getCurrentNonSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter90 in self.success:iter90.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 getHistoricSerializedInventoryByScans_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('getHistoricSerializedInventoryByScans_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 getHistoricSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.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 = [](_etype94, _size91) = iprot.readListBegin()for _i95 in xrange(_size91):_elem96 = InventoryAvailability()_elem96.read(iprot)self.success.append(_elem96)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('getHistoricSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter97 in self.success:iter97.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 getHistoricNonSerializedInventoryByScans_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('getHistoricNonSerializedInventoryByScans_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 getHistoricNonSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.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 = [](_etype101, _size98) = iprot.readListBegin()for _i102 in xrange(_size98):_elem103 = InventoryAvailability()_elem103.read(iprot)self.success.append(_elem103)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('getHistoricNonSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter104 in self.success:iter104.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 scanForOursExternalSale_args:"""Attributes:- itemId- serialNumber- itemNumber- invoiceNumber- warehouseId- unitPrice- nlc- orderId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.STRING, 'serialNumber', None, None, ), # 2(3, TType.STRING, 'itemNumber', None, None, ), # 3(4, TType.STRING, 'invoiceNumber', None, None, ), # 4(5, TType.I64, 'warehouseId', None, None, ), # 5(6, TType.DOUBLE, 'unitPrice', None, None, ), # 6(7, TType.DOUBLE, 'nlc', None, None, ), # 7(8, TType.I64, 'orderId', None, None, ), # 8)def __init__(self, itemId=None, serialNumber=None, itemNumber=None, invoiceNumber=None, warehouseId=None, unitPrice=None, nlc=None, orderId=None,):self.itemId = itemIdself.serialNumber = serialNumberself.itemNumber = itemNumberself.invoiceNumber = invoiceNumberself.warehouseId = warehouseIdself.unitPrice = unitPriceself.nlc = nlcself.orderId = orderIddef 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)elif fid == 2:if ftype == TType.STRING:self.serialNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.itemNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.invoiceNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.I64:self.warehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.DOUBLE:self.unitPrice = iprot.readDouble();else:iprot.skip(ftype)elif fid == 7:if ftype == TType.DOUBLE:self.nlc = iprot.readDouble();else:iprot.skip(ftype)elif fid == 8:if ftype == TType.I64:self.orderId = 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('scanForOursExternalSale_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.serialNumber is not None:oprot.writeFieldBegin('serialNumber', TType.STRING, 2)oprot.writeString(self.serialNumber)oprot.writeFieldEnd()if self.itemNumber is not None:oprot.writeFieldBegin('itemNumber', TType.STRING, 3)oprot.writeString(self.itemNumber)oprot.writeFieldEnd()if self.invoiceNumber is not None:oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)oprot.writeString(self.invoiceNumber)oprot.writeFieldEnd()if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 5)oprot.writeI64(self.warehouseId)oprot.writeFieldEnd()if self.unitPrice is not None:oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 6)oprot.writeDouble(self.unitPrice)oprot.writeFieldEnd()if self.nlc is not None:oprot.writeFieldBegin('nlc', TType.DOUBLE, 7)oprot.writeDouble(self.nlc)oprot.writeFieldEnd()if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 8)oprot.writeI64(self.orderId)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 scanForOursExternalSale_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, ex=None,):self.success = successself.ex = exdef 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.ex = WarehouseServiceException()self.ex.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('scanForOursExternalSale_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ex is not None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.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 scanForOursExternalSaleReturn_args:"""Attributes:- orderId- unitPrice"""thrift_spec = (None, # 0(1, TType.I64, 'orderId', None, None, ), # 1(2, TType.DOUBLE, 'unitPrice', None, None, ), # 2)def __init__(self, orderId=None, unitPrice=None,):self.orderId = orderIdself.unitPrice = unitPricedef 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.orderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.DOUBLE:self.unitPrice = iprot.readDouble();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('scanForOursExternalSaleReturn_args')if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 1)oprot.writeI64(self.orderId)oprot.writeFieldEnd()if self.unitPrice is not None:oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)oprot.writeDouble(self.unitPrice)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 scanForOursExternalSaleReturn_result:"""Attributes:- ex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'ex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, ex=None,):self.ex = exdef 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.ex = WarehouseServiceException()self.ex.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('scanForOursExternalSaleReturn_result')if self.ex is not None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.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 getMovementNonSerializedInventoryByScans_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('getMovementNonSerializedInventoryByScans_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 getMovementNonSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.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 = [](_etype108, _size105) = iprot.readListBegin()for _i109 in xrange(_size105):_elem110 = InventoryMovement()_elem110.read(iprot)self.success.append(_elem110)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('getMovementNonSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter111 in self.success:iter111.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 getMovementSerializedInventoryByScans_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('getMovementSerializedInventoryByScans_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 getMovementSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.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 = [](_etype115, _size112) = iprot.readListBegin()for _i116 in xrange(_size112):_elem117 = InventoryMovement()_elem117.read(iprot)self.success.append(_elem117)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('getMovementSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter118 in self.success:iter118.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 getCompleteMovementSerializedInventoryByScans_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('getCompleteMovementSerializedInventoryByScans_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 getCompleteMovementSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.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 = [](_etype122, _size119) = iprot.readListBegin()for _i123 in xrange(_size119):_elem124 = InventoryMovement()_elem124.read(iprot)self.success.append(_elem124)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('getCompleteMovementSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter125 in self.success:iter125.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 getCompleteMovementNonSerializedInventoryByScans_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('getCompleteMovementNonSerializedInventoryByScans_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 getCompleteMovementNonSerializedInventoryByScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryMovement, InventoryMovement.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 = [](_etype129, _size126) = iprot.readListBegin()for _i130 in xrange(_size126):_elem131 = InventoryMovement()_elem131.read(iprot)self.success.append(_elem131)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('getCompleteMovementNonSerializedInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter132 in self.success:iter132.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 scanfreebie_args:"""Attributes:- orderId- freebieItemId- freebieWarehouseId- scanType"""thrift_spec = (None, # 0(1, TType.I64, 'orderId', None, None, ), # 1(2, TType.I64, 'freebieItemId', None, None, ), # 2(3, TType.I64, 'freebieWarehouseId', None, None, ), # 3(4, TType.I32, 'scanType', None, None, ), # 4)def __init__(self, orderId=None, freebieItemId=None, freebieWarehouseId=None, scanType=None,):self.orderId = orderIdself.freebieItemId = freebieItemIdself.freebieWarehouseId = freebieWarehouseIdself.scanType = scanTypedef 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.orderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.freebieItemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.freebieWarehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I32:self.scanType = 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('scanfreebie_args')if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 1)oprot.writeI64(self.orderId)oprot.writeFieldEnd()if self.freebieItemId is not None:oprot.writeFieldBegin('freebieItemId', TType.I64, 2)oprot.writeI64(self.freebieItemId)oprot.writeFieldEnd()if self.freebieWarehouseId is not None:oprot.writeFieldBegin('freebieWarehouseId', TType.I64, 3)oprot.writeI64(self.freebieWarehouseId)oprot.writeFieldEnd()if self.scanType is not None:oprot.writeFieldBegin('scanType', TType.I32, 4)oprot.writeI32(self.scanType)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 scanfreebie_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('scanfreebie_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 reshipfreebie_args:"""Attributes:- oldOrderId- newOrderId- freebieItemId- scanType"""thrift_spec = (None, # 0(1, TType.I64, 'oldOrderId', None, None, ), # 1(2, TType.I64, 'newOrderId', None, None, ), # 2(3, TType.I64, 'freebieItemId', None, None, ), # 3(4, TType.I32, 'scanType', None, None, ), # 4)def __init__(self, oldOrderId=None, newOrderId=None, freebieItemId=None, scanType=None,):self.oldOrderId = oldOrderIdself.newOrderId = newOrderIdself.freebieItemId = freebieItemIdself.scanType = scanTypedef 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.oldOrderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.newOrderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.freebieItemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I32:self.scanType = 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('reshipfreebie_args')if self.oldOrderId is not None:oprot.writeFieldBegin('oldOrderId', TType.I64, 1)oprot.writeI64(self.oldOrderId)oprot.writeFieldEnd()if self.newOrderId is not None:oprot.writeFieldBegin('newOrderId', TType.I64, 2)oprot.writeI64(self.newOrderId)oprot.writeFieldEnd()if self.freebieItemId is not None:oprot.writeFieldBegin('freebieItemId', TType.I64, 3)oprot.writeI64(self.freebieItemId)oprot.writeFieldEnd()if self.scanType is not None:oprot.writeFieldBegin('scanType', TType.I32, 4)oprot.writeI32(self.scanType)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 reshipfreebie_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('reshipfreebie_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 isItemTransferAllowed_args:"""Attributes:- warehouseId- transferWarehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'warehouseId', None, None, ), # 1(2, TType.I64, 'transferWarehouseId', None, None, ), # 2)def __init__(self, warehouseId=None, transferWarehouseId=None,):self.warehouseId = warehouseIdself.transferWarehouseId = transferWarehouseIddef 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.warehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.transferWarehouseId = 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('isItemTransferAllowed_args')if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 1)oprot.writeI64(self.warehouseId)oprot.writeFieldEnd()if self.transferWarehouseId is not None:oprot.writeFieldBegin('transferWarehouseId', TType.I64, 2)oprot.writeI64(self.transferWarehouseId)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 isItemTransferAllowed_result:"""Attributes:- success"""thrift_spec = ((0, TType.BOOL, 'success', 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.BOOL:self.success = iprot.readBool();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('isItemTransferAllowed_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)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 createTransferLot_args:"""Attributes:- originWarehouseId- destWarehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'originWarehouseId', None, None, ), # 1(2, TType.I64, 'destWarehouseId', None, None, ), # 2)def __init__(self, originWarehouseId=None, destWarehouseId=None,):self.originWarehouseId = originWarehouseIdself.destWarehouseId = destWarehouseIddef 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.originWarehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.destWarehouseId = 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('createTransferLot_args')if self.originWarehouseId is not None:oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)oprot.writeI64(self.originWarehouseId)oprot.writeFieldEnd()if self.destWarehouseId is not None:oprot.writeFieldBegin('destWarehouseId', TType.I64, 2)oprot.writeI64(self.destWarehouseId)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 createTransferLot_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.I64, 'success', None, 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.I64:self.success = iprot.readI64();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('createTransferLot_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)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 getTransferLot_args:"""Attributes:- transferLotId"""thrift_spec = (None, # 0(1, TType.I64, 'transferLotId', None, None, ), # 1)def __init__(self, transferLotId=None,):self.transferLotId = transferLotIddef 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.transferLotId = 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('getTransferLot_args')if self.transferLotId is not None:oprot.writeFieldBegin('transferLotId', TType.I64, 1)oprot.writeI64(self.transferLotId)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 getTransferLot_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.STRUCT, 'success', (TransferLot, TransferLot.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 = TransferLot()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('getTransferLot_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 markTransferLotAsReceived_args:"""Attributes:- id- remoteTransferRefNumber"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1(2, TType.STRING, 'remoteTransferRefNumber', None, None, ), # 2)def __init__(self, id=None, remoteTransferRefNumber=None,):self.id = idself.remoteTransferRefNumber = remoteTransferRefNumberdef 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.id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.remoteTransferRefNumber = 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('markTransferLotAsReceived_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()if self.remoteTransferRefNumber is not None:oprot.writeFieldBegin('remoteTransferRefNumber', TType.STRING, 2)oprot.writeString(self.remoteTransferRefNumber)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 markTransferLotAsReceived_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('markTransferLotAsReceived_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 getTransferLotsByDate_args:"""Attributes:- fromDate- toDate"""thrift_spec = (None, # 0(1, TType.I64, 'fromDate', None, None, ), # 1(2, TType.I64, 'toDate', None, None, ), # 2)def __init__(self, fromDate=None, toDate=None,):self.fromDate = fromDateself.toDate = toDatedef 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.fromDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.toDate = 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('getTransferLotsByDate_args')if self.fromDate is not None:oprot.writeFieldBegin('fromDate', TType.I64, 1)oprot.writeI64(self.fromDate)oprot.writeFieldEnd()if self.toDate is not None:oprot.writeFieldBegin('toDate', TType.I64, 2)oprot.writeI64(self.toDate)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 getTransferLotsByDate_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(TransferLot, TransferLot.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 = [](_etype136, _size133) = iprot.readListBegin()for _i137 in xrange(_size133):_elem138 = TransferLot()_elem138.read(iprot)self.success.append(_elem138)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('getTransferLotsByDate_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter139 in self.success:iter139.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 getAllowedDestinationWarehousesForTransfer_args:"""Attributes:- warehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'warehouseId', None, None, ), # 1)def __init__(self, warehouseId=None,):self.warehouseId = warehouseIddef 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.warehouseId = 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('getAllowedDestinationWarehousesForTransfer_args')if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 1)oprot.writeI64(self.warehouseId)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 getAllowedDestinationWarehousesForTransfer_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 = [](_etype143, _size140) = iprot.readListBegin()for _i144 in xrange(_size140):_elem145 = iprot.readI64();self.success.append(_elem145)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('getAllowedDestinationWarehousesForTransfer_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter146 in self.success:oprot.writeI64(iter146)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 getItemsInTransferLot_args:"""Attributes:- transferLotId"""thrift_spec = (None, # 0(1, TType.I64, 'transferLotId', None, None, ), # 1)def __init__(self, transferLotId=None,):self.transferLotId = transferLotIddef 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.transferLotId = 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('getItemsInTransferLot_args')if self.transferLotId is not None:oprot.writeFieldBegin('transferLotId', TType.I64, 1)oprot.writeI64(self.transferLotId)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 getItemsInTransferLot_result:"""Attributes:- success"""thrift_spec = ((0, TType.MAP, 'success', (TType.I64,None,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.MAP:self.success = {}(_ktype148, _vtype149, _size147 ) = iprot.readMapBegin()for _i151 in xrange(_size147):_key152 = iprot.readI64();_val153 = iprot.readI64();self.success[_key152] = _val153iprot.readMapEnd()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('getItemsInTransferLot_result')if self.success is not None:oprot.writeFieldBegin('success', TType.MAP, 0)oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))for kiter154,viter155 in self.success.items():oprot.writeI64(kiter154)oprot.writeI64(viter155)oprot.writeMapEnd()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 markItemsAsReceivedForTransferLot_args:"""Attributes:- id"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1)def __init__(self, id=None,):self.id = iddef 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.id = 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('markItemsAsReceivedForTransferLot_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)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 markItemsAsReceivedForTransferLot_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('markItemsAsReceivedForTransferLot_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 updateTransferLotAfterItemReceive_args:"""Attributes:- id"""thrift_spec = (None, # 0(1, TType.I64, 'id', None, None, ), # 1)def __init__(self, id=None,):self.id = iddef 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.id = 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('updateTransferLotAfterItemReceive_args')if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)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 updateTransferLotAfterItemReceive_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.I32, 'success', None, 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.I32:self.success = iprot.readI32();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('updateTransferLotAfterItemReceive_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I32, 0)oprot.writeI32(self.success)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 scanForTransferOut_args:"""Attributes:- inventoryItems- type- transferLotId"""thrift_spec = (None, # 0(1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1(2, TType.I32, 'type', None, None, ), # 2(3, TType.I64, 'transferLotId', None, None, ), # 3)def __init__(self, inventoryItems=None, type=None, transferLotId=None,):self.inventoryItems = inventoryItemsself.type = typeself.transferLotId = transferLotIddef 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.LIST:self.inventoryItems = [](_etype159, _size156) = iprot.readListBegin()for _i160 in xrange(_size156):_elem161 = InventoryItem()_elem161.read(iprot)self.inventoryItems.append(_elem161)iprot.readListEnd()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.transferLotId = 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('scanForTransferOut_args')if self.inventoryItems is not None:oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))for iter162 in self.inventoryItems:iter162.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.type is not None:oprot.writeFieldBegin('type', TType.I32, 2)oprot.writeI32(self.type)oprot.writeFieldEnd()if self.transferLotId is not None:oprot.writeFieldBegin('transferLotId', TType.I64, 3)oprot.writeI64(self.transferLotId)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 scanForTransferOut_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('scanForTransferOut_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 scanForTransferIn_args:"""Attributes:- inventoryItems- type- transferLotId"""thrift_spec = (None, # 0(1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1(2, TType.I32, 'type', None, None, ), # 2(3, TType.I64, 'transferLotId', None, None, ), # 3)def __init__(self, inventoryItems=None, type=None, transferLotId=None,):self.inventoryItems = inventoryItemsself.type = typeself.transferLotId = transferLotIddef 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.LIST:self.inventoryItems = [](_etype166, _size163) = iprot.readListBegin()for _i167 in xrange(_size163):_elem168 = InventoryItem()_elem168.read(iprot)self.inventoryItems.append(_elem168)iprot.readListEnd()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.transferLotId = 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('scanForTransferIn_args')if self.inventoryItems is not None:oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))for iter169 in self.inventoryItems:iter169.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.type is not None:oprot.writeFieldBegin('type', TType.I32, 2)oprot.writeI32(self.type)oprot.writeFieldEnd()if self.transferLotId is not None:oprot.writeFieldBegin('transferLotId', TType.I64, 3)oprot.writeI64(self.transferLotId)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 scanForTransferIn_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('scanForTransferIn_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 scanForOursThirdPartyReceive_args:"""Attributes:- inventoryItems- id"""thrift_spec = (None, # 0(1, TType.LIST, 'inventoryItems', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 1(2, TType.I64, 'id', None, None, ), # 2)def __init__(self, inventoryItems=None, id=None,):self.inventoryItems = inventoryItemsself.id = iddef 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.LIST:self.inventoryItems = [](_etype173, _size170) = iprot.readListBegin()for _i174 in xrange(_size170):_elem175 = InventoryItem()_elem175.read(iprot)self.inventoryItems.append(_elem175)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.id = 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('scanForOursThirdPartyReceive_args')if self.inventoryItems is not None:oprot.writeFieldBegin('inventoryItems', TType.LIST, 1)oprot.writeListBegin(TType.STRUCT, len(self.inventoryItems))for iter176 in self.inventoryItems:iter176.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.id is not None:oprot.writeFieldBegin('id', TType.I64, 2)oprot.writeI64(self.id)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 scanForOursThirdPartyReceive_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('scanForOursThirdPartyReceive_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 getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args:"""Attributes:- itemId- physicalWarehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.I64, 'physicalWarehouseId', None, None, ), # 2)def __init__(self, itemId=None, physicalWarehouseId=None,):self.itemId = itemIdself.physicalWarehouseId = physicalWarehouseIddef 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)elif fid == 2:if ftype == TType.I64:self.physicalWarehouseId = 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('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.physicalWarehouseId is not None:oprot.writeFieldBegin('physicalWarehouseId', TType.I64, 2)oprot.writeI64(self.physicalWarehouseId)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 getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.I64, 'success', None, 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.I64:self.success = iprot.readI64();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('getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_result')if self.success is not None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)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 getInTransitInventory_args:"""Attributes:- originWarehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'originWarehouseId', None, None, ), # 1)def __init__(self, originWarehouseId=None,):self.originWarehouseId = originWarehouseIddef 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.originWarehouseId = 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('getInTransitInventory_args')if self.originWarehouseId is not None:oprot.writeFieldBegin('originWarehouseId', TType.I64, 1)oprot.writeI64(self.originWarehouseId)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 getInTransitInventory_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InTransitInventory, InTransitInventory.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 = [](_etype180, _size177) = iprot.readListBegin()for _i181 in xrange(_size177):_elem182 = InTransitInventory()_elem182.read(iprot)self.success.append(_elem182)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('getInTransitInventory_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter183 in self.success:iter183.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 isItemAvailableForSale_args:"""Attributes:- itemId- serialNumber- warehouseId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1(2, TType.STRING, 'serialNumber', None, None, ), # 2(3, TType.I64, 'warehouseId', None, None, ), # 3)def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):self.itemId = itemIdself.serialNumber = serialNumberself.warehouseId = warehouseIddef 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)elif fid == 2:if ftype == TType.STRING:self.serialNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.warehouseId = 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('isItemAvailableForSale_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.serialNumber is not None:oprot.writeFieldBegin('serialNumber', TType.STRING, 2)oprot.writeString(self.serialNumber)oprot.writeFieldEnd()if self.warehouseId is not None:oprot.writeFieldBegin('warehouseId', TType.I64, 3)oprot.writeI64(self.warehouseId)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 isItemAvailableForSale_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.BOOL, 'success', None, 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.BOOL:self.success = iprot.readBool();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('isItemAvailableForSale_result')if self.success is not None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)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 getHistoricBadInventoryByScans_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('getHistoricBadInventoryByScans_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 getHistoricBadInventoryByScans_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.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 = [](_etype187, _size184) = iprot.readListBegin()for _i188 in xrange(_size184):_elem189 = InventoryAvailability()_elem189.read(iprot)self.success.append(_elem189)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('getHistoricBadInventoryByScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter190 in self.success:iter190.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 scanForBadSale_args:"""Attributes:- inventoryItem- orderId- quantity- fulfilmentWarehouseId- billingWarehouseId"""thrift_spec = (None, # 0(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1(2, TType.I64, 'orderId', None, None, ), # 2(3, TType.I64, 'quantity', None, None, ), # 3(4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4(5, TType.I64, 'billingWarehouseId', None, None, ), # 5)def __init__(self, inventoryItem=None, orderId=None, quantity=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):self.inventoryItem = inventoryItemself.orderId = orderIdself.quantity = quantityself.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.I64:self.orderId = iprot.readI64();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.fulfilmentWarehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 5: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('scanForBadSale_args')if self.inventoryItem is not None:oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)self.inventoryItem.write(oprot)oprot.writeFieldEnd()if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 2)oprot.writeI64(self.orderId)oprot.writeFieldEnd()if self.quantity is not None:oprot.writeFieldBegin('quantity', TType.I64, 3)oprot.writeI64(self.quantity)oprot.writeFieldEnd()if self.fulfilmentWarehouseId is not None:oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)oprot.writeI64(self.fulfilmentWarehouseId)oprot.writeFieldEnd()if self.billingWarehouseId is not None:oprot.writeFieldBegin('billingWarehouseId', TType.I64, 5)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 scanForBadSale_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('scanForBadSale_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)