Rev 304 | Rev 483 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *from ttypes import *from thrift.Thrift import TProcessorfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Iface:def createTransaction(self, transaction):"""Parameters:- transaction"""passdef getTransaction(self, id):"""Get transaction methods.*Parameters:- id"""passdef getAllTransactions(self, status, from_date, to_date, warehouse_id):"""Parameters:- status- from_date- to_date- warehouse_id"""passdef getTransactionsForShipmentStatus(self, status, from_date, to_date):"""Parameters:- status- from_date- to_date"""passdef getTransactionsForCustomer(self, customerId, from_date, to_date, status):"""Parameters:- customerId- from_date- to_date- status"""passdef getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):"""Parameters:- customerId- from_date- to_date- status"""passdef getTransactionsForShoppingCartId(self, shoppingCartId):"""Parameters:- shoppingCartId"""passdef getTransactionStatus(self, transactionId):"""Parameters:- transactionId"""passdef changeTransactionStatus(self, transactionId, status, description):"""Parameters:- transactionId- status- description"""passdef getOrderInfo(self, transactionId):"""Get and set individual objects in it*Parameters:- transactionId"""passdef getShippingInfo(self, transactionId):"""Parameters:- transactionId"""passdef getBillingInfo(self, transactionId):"""Parameters:- transactionId"""passdef addBilling(self, tranactionId, billing):"""Parameters:- tranactionId- billing"""passdef setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):"""Parameters:- transactionId- shippingId- trackingId- airwayBillNo- provider"""passdef setShippingDate(self, transactionId, shippingId, timestamp):"""Parameters:- transactionId- shippingId- timestamp"""passdef setDeliveryDate(self, transactionId, shippingid, timestamp):"""Parameters:- transactionId- shippingid- timestamp"""passdef changeShippingStatus(self, transactionId, shippingId, status, description):"""Parameters:- transactionId- shippingId- status- description"""passdef addTrail(self, transactionId, description):"""Parameters:- transactionId- description"""passdef getAlerts(self, transactionId, valid):"""Parameters:- transactionId- valid"""passdef setAlert(self, transactionId, unset, type, comment):"""Parameters:- transactionId- unset- type- comment"""passdef getExtraInfo(self, transaction_id):"""Parameters:- transaction_id"""passdef setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):"""Parameters:- transaction_id- sku_id- model- colour- vendor"""passclass Client(Iface):def __init__(self, iprot, oprot=None):self._iprot = self._oprot = iprotif oprot != None:self._oprot = oprotself._seqid = 0def createTransaction(self, transaction):"""Parameters:- transaction"""self.send_createTransaction(transaction)return self.recv_createTransaction()def send_createTransaction(self, transaction):self._oprot.writeMessageBegin('createTransaction', TMessageType.CALL, self._seqid)args = createTransaction_args()args.transaction = transactionargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createTransaction(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createTransaction_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");def getTransaction(self, id):"""Get transaction methods.*Parameters:- id"""self.send_getTransaction(id)return self.recv_getTransaction()def send_getTransaction(self, id):self._oprot.writeMessageBegin('getTransaction', TMessageType.CALL, self._seqid)args = getTransaction_args()args.id = idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransaction(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransaction_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");def getAllTransactions(self, status, from_date, to_date, warehouse_id):"""Parameters:- status- from_date- to_date- warehouse_id"""self.send_getAllTransactions(status, from_date, to_date, warehouse_id)return self.recv_getAllTransactions()def send_getAllTransactions(self, status, from_date, to_date, warehouse_id):self._oprot.writeMessageBegin('getAllTransactions', TMessageType.CALL, self._seqid)args = getAllTransactions_args()args.status = statusargs.from_date = from_dateargs.to_date = to_dateargs.warehouse_id = warehouse_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAllTransactions(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAllTransactions_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");def getTransactionsForShipmentStatus(self, status, from_date, to_date):"""Parameters:- status- from_date- to_date"""self.send_getTransactionsForShipmentStatus(status, from_date, to_date)return self.recv_getTransactionsForShipmentStatus()def send_getTransactionsForShipmentStatus(self, status, from_date, to_date):self._oprot.writeMessageBegin('getTransactionsForShipmentStatus', TMessageType.CALL, self._seqid)args = getTransactionsForShipmentStatus_args()args.status = statusargs.from_date = from_dateargs.to_date = to_dateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransactionsForShipmentStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransactionsForShipmentStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");def getTransactionsForCustomer(self, customerId, from_date, to_date, status):"""Parameters:- customerId- from_date- to_date- status"""self.send_getTransactionsForCustomer(customerId, from_date, to_date, status)return self.recv_getTransactionsForCustomer()def send_getTransactionsForCustomer(self, customerId, from_date, to_date, status):self._oprot.writeMessageBegin('getTransactionsForCustomer', TMessageType.CALL, self._seqid)args = getTransactionsForCustomer_args()args.customerId = customerIdargs.from_date = from_dateargs.to_date = to_dateargs.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransactionsForCustomer(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransactionsForCustomer_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");def getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):"""Parameters:- customerId- from_date- to_date- status"""self.send_getTransactionsForCustomerAndShipmentStatus(customerId, from_date, to_date, status)return self.recv_getTransactionsForCustomerAndShipmentStatus()def send_getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):self._oprot.writeMessageBegin('getTransactionsForCustomerAndShipmentStatus', TMessageType.CALL, self._seqid)args = getTransactionsForCustomerAndShipmentStatus_args()args.customerId = customerIdargs.from_date = from_dateargs.to_date = to_dateargs.status = statusargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransactionsForCustomerAndShipmentStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransactionsForCustomerAndShipmentStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");def getTransactionsForShoppingCartId(self, shoppingCartId):"""Parameters:- shoppingCartId"""self.send_getTransactionsForShoppingCartId(shoppingCartId)return self.recv_getTransactionsForShoppingCartId()def send_getTransactionsForShoppingCartId(self, shoppingCartId):self._oprot.writeMessageBegin('getTransactionsForShoppingCartId', TMessageType.CALL, self._seqid)args = getTransactionsForShoppingCartId_args()args.shoppingCartId = shoppingCartIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransactionsForShoppingCartId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransactionsForShoppingCartId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");def getTransactionStatus(self, transactionId):"""Parameters:- transactionId"""self.send_getTransactionStatus(transactionId)return self.recv_getTransactionStatus()def send_getTransactionStatus(self, transactionId):self._oprot.writeMessageBegin('getTransactionStatus', TMessageType.CALL, self._seqid)args = getTransactionStatus_args()args.transactionId = transactionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getTransactionStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getTransactionStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");def changeTransactionStatus(self, transactionId, status, description):"""Parameters:- transactionId- status- description"""self.send_changeTransactionStatus(transactionId, status, description)return self.recv_changeTransactionStatus()def send_changeTransactionStatus(self, transactionId, status, description):self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)args = changeTransactionStatus_args()args.transactionId = transactionIdargs.status = statusargs.description = descriptionargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeTransactionStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeTransactionStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");def getOrderInfo(self, transactionId):"""Get and set individual objects in it*Parameters:- transactionId"""self.send_getOrderInfo(transactionId)return self.recv_getOrderInfo()def send_getOrderInfo(self, transactionId):self._oprot.writeMessageBegin('getOrderInfo', TMessageType.CALL, self._seqid)args = getOrderInfo_args()args.transactionId = transactionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getOrderInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getOrderInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderInfo failed: unknown result");def getShippingInfo(self, transactionId):"""Parameters:- transactionId"""self.send_getShippingInfo(transactionId)return self.recv_getShippingInfo()def send_getShippingInfo(self, transactionId):self._oprot.writeMessageBegin('getShippingInfo', TMessageType.CALL, self._seqid)args = getShippingInfo_args()args.transactionId = transactionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getShippingInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getShippingInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingInfo failed: unknown result");def getBillingInfo(self, transactionId):"""Parameters:- transactionId"""self.send_getBillingInfo(transactionId)return self.recv_getBillingInfo()def send_getBillingInfo(self, transactionId):self._oprot.writeMessageBegin('getBillingInfo', TMessageType.CALL, self._seqid)args = getBillingInfo_args()args.transactionId = transactionIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getBillingInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getBillingInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "getBillingInfo failed: unknown result");def addBilling(self, tranactionId, billing):"""Parameters:- tranactionId- billing"""self.send_addBilling(tranactionId, billing)return self.recv_addBilling()def send_addBilling(self, tranactionId, billing):self._oprot.writeMessageBegin('addBilling', TMessageType.CALL, self._seqid)args = addBilling_args()args.tranactionId = tranactionIdargs.billing = billingargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addBilling(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addBilling_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "addBilling failed: unknown result");def setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):"""Parameters:- transactionId- shippingId- trackingId- airwayBillNo- provider"""self.send_setShippingTracker(transactionId, shippingId, trackingId, airwayBillNo, provider)return self.recv_setShippingTracker()def send_setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):self._oprot.writeMessageBegin('setShippingTracker', TMessageType.CALL, self._seqid)args = setShippingTracker_args()args.transactionId = transactionIdargs.shippingId = shippingIdargs.trackingId = trackingIdargs.airwayBillNo = airwayBillNoargs.provider = providerargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setShippingTracker(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setShippingTracker_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "setShippingTracker failed: unknown result");def setShippingDate(self, transactionId, shippingId, timestamp):"""Parameters:- transactionId- shippingId- timestamp"""self.send_setShippingDate(transactionId, shippingId, timestamp)return self.recv_setShippingDate()def send_setShippingDate(self, transactionId, shippingId, timestamp):self._oprot.writeMessageBegin('setShippingDate', TMessageType.CALL, self._seqid)args = setShippingDate_args()args.transactionId = transactionIdargs.shippingId = shippingIdargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setShippingDate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setShippingDate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "setShippingDate failed: unknown result");def setDeliveryDate(self, transactionId, shippingid, timestamp):"""Parameters:- transactionId- shippingid- timestamp"""self.send_setDeliveryDate(transactionId, shippingid, timestamp)return self.recv_setDeliveryDate()def send_setDeliveryDate(self, transactionId, shippingid, timestamp):self._oprot.writeMessageBegin('setDeliveryDate', TMessageType.CALL, self._seqid)args = setDeliveryDate_args()args.transactionId = transactionIdargs.shippingid = shippingidargs.timestamp = timestampargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setDeliveryDate(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setDeliveryDate_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "setDeliveryDate failed: unknown result");def changeShippingStatus(self, transactionId, shippingId, status, description):"""Parameters:- transactionId- shippingId- status- description"""self.send_changeShippingStatus(transactionId, shippingId, status, description)return self.recv_changeShippingStatus()def send_changeShippingStatus(self, transactionId, shippingId, status, description):self._oprot.writeMessageBegin('changeShippingStatus', TMessageType.CALL, self._seqid)args = changeShippingStatus_args()args.transactionId = transactionIdargs.shippingId = shippingIdargs.status = statusargs.description = descriptionargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_changeShippingStatus(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = changeShippingStatus_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "changeShippingStatus failed: unknown result");def addTrail(self, transactionId, description):"""Parameters:- transactionId- description"""self.send_addTrail(transactionId, description)return self.recv_addTrail()def send_addTrail(self, transactionId, description):self._oprot.writeMessageBegin('addTrail', TMessageType.CALL, self._seqid)args = addTrail_args()args.transactionId = transactionIdargs.description = descriptionargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_addTrail(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = addTrail_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successif result.ex != None:raise result.exraise TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");def getAlerts(self, transactionId, valid):"""Parameters:- transactionId- valid"""self.send_getAlerts(transactionId, valid)return self.recv_getAlerts()def send_getAlerts(self, transactionId, valid):self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)args = getAlerts_args()args.transactionId = transactionIdargs.valid = validargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getAlerts(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getAlerts_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");def setAlert(self, transactionId, unset, type, comment):"""Parameters:- transactionId- unset- type- comment"""self.send_setAlert(transactionId, unset, type, comment)self.recv_setAlert()def send_setAlert(self, transactionId, unset, type, comment):self._oprot.writeMessageBegin('setAlert', TMessageType.CALL, self._seqid)args = setAlert_args()args.transactionId = transactionIdargs.unset = unsetargs.type = typeargs.comment = commentargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setAlert(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setAlert_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getExtraInfo(self, transaction_id):"""Parameters:- transaction_id"""self.send_getExtraInfo(transaction_id)return self.recv_getExtraInfo()def send_getExtraInfo(self, transaction_id):self._oprot.writeMessageBegin('getExtraInfo', TMessageType.CALL, self._seqid)args = getExtraInfo_args()args.transaction_id = transaction_idargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getExtraInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getExtraInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success != None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getExtraInfo failed: unknown result");def setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):"""Parameters:- transaction_id- sku_id- model- colour- vendor"""self.send_setExtraInfo(transaction_id, sku_id, model, colour, vendor)self.recv_setExtraInfo()def send_setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):self._oprot.writeMessageBegin('setExtraInfo', TMessageType.CALL, self._seqid)args = setExtraInfo_args()args.transaction_id = transaction_idargs.sku_id = sku_idargs.model = modelargs.colour = colourargs.vendor = vendorargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_setExtraInfo(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = setExtraInfo_result()result.read(self._iprot)self._iprot.readMessageEnd()returnclass Processor(Iface, TProcessor):def __init__(self, handler):self._handler = handlerself._processMap = {}self._processMap["createTransaction"] = Processor.process_createTransactionself._processMap["getTransaction"] = Processor.process_getTransactionself._processMap["getAllTransactions"] = Processor.process_getAllTransactionsself._processMap["getTransactionsForShipmentStatus"] = Processor.process_getTransactionsForShipmentStatusself._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomerself._processMap["getTransactionsForCustomerAndShipmentStatus"] = Processor.process_getTransactionsForCustomerAndShipmentStatusself._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartIdself._processMap["getTransactionStatus"] = Processor.process_getTransactionStatusself._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatusself._processMap["getOrderInfo"] = Processor.process_getOrderInfoself._processMap["getShippingInfo"] = Processor.process_getShippingInfoself._processMap["getBillingInfo"] = Processor.process_getBillingInfoself._processMap["addBilling"] = Processor.process_addBillingself._processMap["setShippingTracker"] = Processor.process_setShippingTrackerself._processMap["setShippingDate"] = Processor.process_setShippingDateself._processMap["setDeliveryDate"] = Processor.process_setDeliveryDateself._processMap["changeShippingStatus"] = Processor.process_changeShippingStatusself._processMap["addTrail"] = Processor.process_addTrailself._processMap["getAlerts"] = Processor.process_getAlertsself._processMap["setAlert"] = Processor.process_setAlertself._processMap["getExtraInfo"] = Processor.process_getExtraInfoself._processMap["setExtraInfo"] = Processor.process_setExtraInfodef 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_createTransaction(self, seqid, iprot, oprot):args = createTransaction_args()args.read(iprot)iprot.readMessageEnd()result = createTransaction_result()try:result.success = self._handler.createTransaction(args.transaction)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("createTransaction", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransaction(self, seqid, iprot, oprot):args = getTransaction_args()args.read(iprot)iprot.readMessageEnd()result = getTransaction_result()try:result.success = self._handler.getTransaction(args.id)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getTransaction", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAllTransactions(self, seqid, iprot, oprot):args = getAllTransactions_args()args.read(iprot)iprot.readMessageEnd()result = getAllTransactions_result()try:result.success = self._handler.getAllTransactions(args.status, args.from_date, args.to_date, args.warehouse_id)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getAllTransactions", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransactionsForShipmentStatus(self, seqid, iprot, oprot):args = getTransactionsForShipmentStatus_args()args.read(iprot)iprot.readMessageEnd()result = getTransactionsForShipmentStatus_result()try:result.success = self._handler.getTransactionsForShipmentStatus(args.status, args.from_date, args.to_date)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getTransactionsForShipmentStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransactionsForCustomer(self, seqid, iprot, oprot):args = getTransactionsForCustomer_args()args.read(iprot)iprot.readMessageEnd()result = getTransactionsForCustomer_result()try:result.success = self._handler.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getTransactionsForCustomer", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransactionsForCustomerAndShipmentStatus(self, seqid, iprot, oprot):args = getTransactionsForCustomerAndShipmentStatus_args()args.read(iprot)iprot.readMessageEnd()result = getTransactionsForCustomerAndShipmentStatus_result()try:result.success = self._handler.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from_date, args.to_date, args.status)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransactionsForShoppingCartId(self, seqid, iprot, oprot):args = getTransactionsForShoppingCartId_args()args.read(iprot)iprot.readMessageEnd()result = getTransactionsForShoppingCartId_result()try:result.success = self._handler.getTransactionsForShoppingCartId(args.shoppingCartId)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getTransactionsForShoppingCartId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getTransactionStatus(self, seqid, iprot, oprot):args = getTransactionStatus_args()args.read(iprot)iprot.readMessageEnd()result = getTransactionStatus_result()try:result.success = self._handler.getTransactionStatus(args.transactionId)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getTransactionStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeTransactionStatus(self, seqid, iprot, oprot):args = changeTransactionStatus_args()args.read(iprot)iprot.readMessageEnd()result = changeTransactionStatus_result()try:result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getOrderInfo(self, seqid, iprot, oprot):args = getOrderInfo_args()args.read(iprot)iprot.readMessageEnd()result = getOrderInfo_result()try:result.success = self._handler.getOrderInfo(args.transactionId)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getOrderInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getShippingInfo(self, seqid, iprot, oprot):args = getShippingInfo_args()args.read(iprot)iprot.readMessageEnd()result = getShippingInfo_result()try:result.success = self._handler.getShippingInfo(args.transactionId)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getShippingInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getBillingInfo(self, seqid, iprot, oprot):args = getBillingInfo_args()args.read(iprot)iprot.readMessageEnd()result = getBillingInfo_result()try:result.success = self._handler.getBillingInfo(args.transactionId)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("getBillingInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addBilling(self, seqid, iprot, oprot):args = addBilling_args()args.read(iprot)iprot.readMessageEnd()result = addBilling_result()try:result.success = self._handler.addBilling(args.tranactionId, args.billing)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("addBilling", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setShippingTracker(self, seqid, iprot, oprot):args = setShippingTracker_args()args.read(iprot)iprot.readMessageEnd()result = setShippingTracker_result()try:result.success = self._handler.setShippingTracker(args.transactionId, args.shippingId, args.trackingId, args.airwayBillNo, args.provider)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("setShippingTracker", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setShippingDate(self, seqid, iprot, oprot):args = setShippingDate_args()args.read(iprot)iprot.readMessageEnd()result = setShippingDate_result()try:result.success = self._handler.setShippingDate(args.transactionId, args.shippingId, args.timestamp)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("setShippingDate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setDeliveryDate(self, seqid, iprot, oprot):args = setDeliveryDate_args()args.read(iprot)iprot.readMessageEnd()result = setDeliveryDate_result()try:result.success = self._handler.setDeliveryDate(args.transactionId, args.shippingid, args.timestamp)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("setDeliveryDate", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_changeShippingStatus(self, seqid, iprot, oprot):args = changeShippingStatus_args()args.read(iprot)iprot.readMessageEnd()result = changeShippingStatus_result()try:result.success = self._handler.changeShippingStatus(args.transactionId, args.shippingId, args.status, args.description)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("changeShippingStatus", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_addTrail(self, seqid, iprot, oprot):args = addTrail_args()args.read(iprot)iprot.readMessageEnd()result = addTrail_result()try:result.success = self._handler.addTrail(args.transactionId, args.description)except TransactionServiceException, ex:result.ex = exoprot.writeMessageBegin("addTrail", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getAlerts(self, seqid, iprot, oprot):args = getAlerts_args()args.read(iprot)iprot.readMessageEnd()result = getAlerts_result()result.success = self._handler.getAlerts(args.transactionId, args.valid)oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setAlert(self, seqid, iprot, oprot):args = setAlert_args()args.read(iprot)iprot.readMessageEnd()result = setAlert_result()self._handler.setAlert(args.transactionId, args.unset, args.type, args.comment)oprot.writeMessageBegin("setAlert", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getExtraInfo(self, seqid, iprot, oprot):args = getExtraInfo_args()args.read(iprot)iprot.readMessageEnd()result = getExtraInfo_result()result.success = self._handler.getExtraInfo(args.transaction_id)oprot.writeMessageBegin("getExtraInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_setExtraInfo(self, seqid, iprot, oprot):args = setExtraInfo_args()args.read(iprot)iprot.readMessageEnd()result = setExtraInfo_result()self._handler.setExtraInfo(args.transaction_id, args.sku_id, args.model, args.colour, args.vendor)oprot.writeMessageBegin("setExtraInfo", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()# HELPER FUNCTIONS AND STRUCTURESclass createTransaction_args:"""Attributes:- transaction"""thrift_spec = (None, # 0(1, TType.STRUCT, 'transaction', (Transaction, Transaction.thrift_spec), None, ), # 1)def __init__(self, transaction=None,):self.transaction = transactiondef 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.transaction = Transaction()self.transaction.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('createTransaction_args')if self.transaction != None:oprot.writeFieldBegin('transaction', TType.STRUCT, 1)self.transaction.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 createTransaction_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.I64, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.I64:self.success = iprot.readI64();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('createTransaction_result')if self.success != None:oprot.writeFieldBegin('success', TType.I64, 0)oprot.writeI64(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransaction_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('getTransaction_args')if self.id != None:oprot.writeFieldBegin('id', TType.I64, 1)oprot.writeI64(self.id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransaction_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.STRUCT, 'success', (Transaction, Transaction.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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 = Transaction()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getTransaction_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getAllTransactions_args:"""Attributes:- status- from_date- to_date- warehouse_id"""thrift_spec = (None, # 0(1, TType.I32, 'status', None, None, ), # 1(2, TType.I64, 'from_date', None, None, ), # 2(3, TType.I64, 'to_date', None, None, ), # 3(4, TType.I64, 'warehouse_id', None, None, ), # 4)def __init__(self, status=None, from_date=None, to_date=None, warehouse_id=None,):self.status = statusself.from_date = from_dateself.to_date = to_dateself.warehouse_id = warehouse_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.I32:self.status = iprot.readI32();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.from_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.to_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.warehouse_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('getAllTransactions_args')if self.status != None:oprot.writeFieldBegin('status', TType.I32, 1)oprot.writeI32(self.status)oprot.writeFieldEnd()if self.from_date != None:oprot.writeFieldBegin('from_date', TType.I64, 2)oprot.writeI64(self.from_date)oprot.writeFieldEnd()if self.to_date != None:oprot.writeFieldBegin('to_date', TType.I64, 3)oprot.writeI64(self.to_date)oprot.writeFieldEnd()if self.warehouse_id != None:oprot.writeFieldBegin('warehouse_id', TType.I64, 4)oprot.writeI64(self.warehouse_id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getAllTransactions_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.LIST:self.success = [](_etype56, _size53) = iprot.readListBegin()for _i57 in xrange(_size53):_elem58 = Transaction()_elem58.read(iprot)self.success.append(_elem58)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getAllTransactions_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter59 in self.success:iter59.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForShipmentStatus_args:"""Attributes:- status- from_date- to_date"""thrift_spec = (None, # 0(1, TType.I32, 'status', None, None, ), # 1(2, TType.I64, 'from_date', None, None, ), # 2(3, TType.I64, 'to_date', None, None, ), # 3)def __init__(self, status=None, from_date=None, to_date=None,):self.status = statusself.from_date = from_dateself.to_date = to_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.I32:self.status = iprot.readI32();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.from_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.to_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('getTransactionsForShipmentStatus_args')if self.status != None:oprot.writeFieldBegin('status', TType.I32, 1)oprot.writeI32(self.status)oprot.writeFieldEnd()if self.from_date != None:oprot.writeFieldBegin('from_date', TType.I64, 2)oprot.writeI64(self.from_date)oprot.writeFieldEnd()if self.to_date != None:oprot.writeFieldBegin('to_date', TType.I64, 3)oprot.writeI64(self.to_date)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForShipmentStatus_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.LIST:self.success = [](_etype63, _size60) = iprot.readListBegin()for _i64 in xrange(_size60):_elem65 = Transaction()_elem65.read(iprot)self.success.append(_elem65)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getTransactionsForShipmentStatus_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter66 in self.success:iter66.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForCustomer_args:"""Attributes:- customerId- from_date- to_date- status"""thrift_spec = (None, # 0(1, TType.I64, 'customerId', None, None, ), # 1(2, TType.I64, 'from_date', None, None, ), # 2(3, TType.I64, 'to_date', None, None, ), # 3(4, TType.I32, 'status', None, None, ), # 4)def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):self.customerId = customerIdself.from_date = from_dateself.to_date = to_dateself.status = statusdef 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.customerId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.from_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.to_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I32:self.status = 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('getTransactionsForCustomer_args')if self.customerId != None:oprot.writeFieldBegin('customerId', TType.I64, 1)oprot.writeI64(self.customerId)oprot.writeFieldEnd()if self.from_date != None:oprot.writeFieldBegin('from_date', TType.I64, 2)oprot.writeI64(self.from_date)oprot.writeFieldEnd()if self.to_date != None:oprot.writeFieldBegin('to_date', TType.I64, 3)oprot.writeI64(self.to_date)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 4)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForCustomer_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.LIST:self.success = [](_etype70, _size67) = iprot.readListBegin()for _i71 in xrange(_size67):_elem72 = Transaction()_elem72.read(iprot)self.success.append(_elem72)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getTransactionsForCustomer_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter73 in self.success:iter73.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForCustomerAndShipmentStatus_args:"""Attributes:- customerId- from_date- to_date- status"""thrift_spec = (None, # 0(1, TType.I64, 'customerId', None, None, ), # 1(2, TType.I64, 'from_date', None, None, ), # 2(3, TType.I64, 'to_date', None, None, ), # 3(4, TType.I32, 'status', None, None, ), # 4)def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):self.customerId = customerIdself.from_date = from_dateself.to_date = to_dateself.status = statusdef 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.customerId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.from_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.to_date = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I32:self.status = 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('getTransactionsForCustomerAndShipmentStatus_args')if self.customerId != None:oprot.writeFieldBegin('customerId', TType.I64, 1)oprot.writeI64(self.customerId)oprot.writeFieldEnd()if self.from_date != None:oprot.writeFieldBegin('from_date', TType.I64, 2)oprot.writeI64(self.from_date)oprot.writeFieldEnd()if self.to_date != None:oprot.writeFieldBegin('to_date', TType.I64, 3)oprot.writeI64(self.to_date)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 4)oprot.writeI32(self.status)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForCustomerAndShipmentStatus_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.LIST:self.success = [](_etype77, _size74) = iprot.readListBegin()for _i78 in xrange(_size74):_elem79 = Transaction()_elem79.read(iprot)self.success.append(_elem79)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getTransactionsForCustomerAndShipmentStatus_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter80 in self.success:iter80.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForShoppingCartId_args:"""Attributes:- shoppingCartId"""thrift_spec = (None, # 0(1, TType.I64, 'shoppingCartId', None, None, ), # 1)def __init__(self, shoppingCartId=None,):self.shoppingCartId = shoppingCartIddef 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.shoppingCartId = 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('getTransactionsForShoppingCartId_args')if self.shoppingCartId != None:oprot.writeFieldBegin('shoppingCartId', TType.I64, 1)oprot.writeI64(self.shoppingCartId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionsForShoppingCartId_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.LIST:self.success = [](_etype84, _size81) = iprot.readListBegin()for _i85 in xrange(_size81):_elem86 = Transaction()_elem86.read(iprot)self.success.append(_elem86)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getTransactionsForShoppingCartId_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter87 in self.success:iter87.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionStatus_args:"""Attributes:- transactionId"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1)def __init__(self, transactionId=None,):self.transactionId = transactionIddef 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.transactionId = 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('getTransactionStatus_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getTransactionStatus_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.I32, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.I32:self.success = iprot.readI32();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getTransactionStatus_result')if self.success != None:oprot.writeFieldBegin('success', TType.I32, 0)oprot.writeI32(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 changeTransactionStatus_args:"""Attributes:- transactionId- status- description"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.I32, 'status', None, None, ), # 2(3, TType.STRING, 'description', None, None, ), # 3)def __init__(self, transactionId=None, status=None, description=None,):self.transactionId = transactionIdself.status = statusself.description = descriptiondef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.status = iprot.readI32();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.description = 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('changeTransactionStatus_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 2)oprot.writeI32(self.status)oprot.writeFieldEnd()if self.description != None:oprot.writeFieldBegin('description', TType.STRING, 3)oprot.writeString(self.description)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 changeTransactionStatus_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('changeTransactionStatus_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getOrderInfo_args:"""Attributes:- transactionId"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1)def __init__(self, transactionId=None,):self.transactionId = transactionIddef 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.transactionId = 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('getOrderInfo_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getOrderInfo_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.STRUCT, 'success', (OrderInfo, OrderInfo.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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 = OrderInfo()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getOrderInfo_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getShippingInfo_args:"""Attributes:- transactionId"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1)def __init__(self, transactionId=None,):self.transactionId = transactionIddef 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.transactionId = 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('getShippingInfo_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getShippingInfo_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.STRUCT, 'success', (ShipmentInfo, ShipmentInfo.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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 = ShipmentInfo()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getShippingInfo_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getBillingInfo_args:"""Attributes:- transactionId"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1)def __init__(self, transactionId=None,):self.transactionId = transactionIddef 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.transactionId = 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('getBillingInfo_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getBillingInfo_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.STRUCT, 'success', (BillingInfo, BillingInfo.thrift_spec), None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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 = BillingInfo()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('getBillingInfo_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 addBilling_args:"""Attributes:- tranactionId- billing"""thrift_spec = (None, # 0(1, TType.I64, 'tranactionId', None, None, ), # 1(2, TType.STRUCT, 'billing', (Billing, Billing.thrift_spec), None, ), # 2)def __init__(self, tranactionId=None, billing=None,):self.tranactionId = tranactionIdself.billing = billingdef 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.tranactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRUCT:self.billing = Billing()self.billing.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('addBilling_args')if self.tranactionId != None:oprot.writeFieldBegin('tranactionId', TType.I64, 1)oprot.writeI64(self.tranactionId)oprot.writeFieldEnd()if self.billing != None:oprot.writeFieldBegin('billing', TType.STRUCT, 2)self.billing.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 addBilling_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('addBilling_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setShippingTracker_args:"""Attributes:- transactionId- shippingId- trackingId- airwayBillNo- provider"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.I64, 'shippingId', None, None, ), # 2(3, TType.STRING, 'trackingId', None, None, ), # 3(4, TType.STRING, 'airwayBillNo', None, None, ), # 4(5, TType.STRING, 'provider', None, None, ), # 5)def __init__(self, transactionId=None, shippingId=None, trackingId=None, airwayBillNo=None, provider=None,):self.transactionId = transactionIdself.shippingId = shippingIdself.trackingId = trackingIdself.airwayBillNo = airwayBillNoself.provider = providerdef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.shippingId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.trackingId = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.airwayBillNo = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.provider = 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('setShippingTracker_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.shippingId != None:oprot.writeFieldBegin('shippingId', TType.I64, 2)oprot.writeI64(self.shippingId)oprot.writeFieldEnd()if self.trackingId != None:oprot.writeFieldBegin('trackingId', TType.STRING, 3)oprot.writeString(self.trackingId)oprot.writeFieldEnd()if self.airwayBillNo != None:oprot.writeFieldBegin('airwayBillNo', TType.STRING, 4)oprot.writeString(self.airwayBillNo)oprot.writeFieldEnd()if self.provider != None:oprot.writeFieldBegin('provider', TType.STRING, 5)oprot.writeString(self.provider)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setShippingTracker_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('setShippingTracker_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setShippingDate_args:"""Attributes:- transactionId- shippingId- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.I64, 'shippingId', None, None, ), # 2(3, TType.I64, 'timestamp', None, None, ), # 3)def __init__(self, transactionId=None, shippingId=None, timestamp=None,):self.transactionId = transactionIdself.shippingId = shippingIdself.timestamp = timestampdef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.shippingId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.timestamp = 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('setShippingDate_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.shippingId != None:oprot.writeFieldBegin('shippingId', TType.I64, 2)oprot.writeI64(self.shippingId)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 3)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setShippingDate_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('setShippingDate_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setDeliveryDate_args:"""Attributes:- transactionId- shippingid- timestamp"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.I64, 'shippingid', None, None, ), # 2(3, TType.I64, 'timestamp', None, None, ), # 3)def __init__(self, transactionId=None, shippingid=None, timestamp=None,):self.transactionId = transactionIdself.shippingid = shippingidself.timestamp = timestampdef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.shippingid = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.timestamp = 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('setDeliveryDate_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.shippingid != None:oprot.writeFieldBegin('shippingid', TType.I64, 2)oprot.writeI64(self.shippingid)oprot.writeFieldEnd()if self.timestamp != None:oprot.writeFieldBegin('timestamp', TType.I64, 3)oprot.writeI64(self.timestamp)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setDeliveryDate_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('setDeliveryDate_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 changeShippingStatus_args:"""Attributes:- transactionId- shippingId- status- description"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.I64, 'shippingId', None, None, ), # 2(3, TType.I32, 'status', None, None, ), # 3(4, TType.STRING, 'description', None, None, ), # 4)def __init__(self, transactionId=None, shippingId=None, status=None, description=None,):self.transactionId = transactionIdself.shippingId = shippingIdself.status = statusself.description = descriptiondef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.shippingId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I32:self.status = iprot.readI32();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.description = 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('changeShippingStatus_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.shippingId != None:oprot.writeFieldBegin('shippingId', TType.I64, 2)oprot.writeI64(self.shippingId)oprot.writeFieldEnd()if self.status != None:oprot.writeFieldBegin('status', TType.I32, 3)oprot.writeI32(self.status)oprot.writeFieldEnd()if self.description != None:oprot.writeFieldBegin('description', TType.STRING, 4)oprot.writeString(self.description)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 changeShippingStatus_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('changeShippingStatus_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 addTrail_args:"""Attributes:- transactionId- description"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.STRING, 'description', None, None, ), # 2)def __init__(self, transactionId=None, description=None,):self.transactionId = transactionIdself.description = descriptiondef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.STRING:self.description = 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('addTrail_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.description != None:oprot.writeFieldBegin('description', TType.STRING, 2)oprot.writeString(self.description)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 addTrail_result:"""Attributes:- success- ex"""thrift_spec = ((0, TType.BOOL, 'success', None, None, ), # 0(1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.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.BOOL:self.success = iprot.readBool();else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.ex = TransactionServiceException()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('addTrail_result')if self.success != None:oprot.writeFieldBegin('success', TType.BOOL, 0)oprot.writeBool(self.success)oprot.writeFieldEnd()if self.ex != None:oprot.writeFieldBegin('ex', TType.STRUCT, 1)self.ex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getAlerts_args:"""Attributes:- transactionId- valid"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.BOOL, 'valid', None, None, ), # 2)def __init__(self, transactionId=None, valid=None,):self.transactionId = transactionIdself.valid = validdef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.valid = 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('getAlerts_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.valid != None:oprot.writeFieldBegin('valid', TType.BOOL, 2)oprot.writeBool(self.valid)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getAlerts_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(Alert, Alert.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 = [](_etype91, _size88) = iprot.readListBegin()for _i92 in xrange(_size88):_elem93 = Alert()_elem93.read(iprot)self.success.append(_elem93)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('getAlerts_result')if self.success != None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter94 in self.success:iter94.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setAlert_args:"""Attributes:- transactionId- unset- type- comment"""thrift_spec = (None, # 0(1, TType.I64, 'transactionId', None, None, ), # 1(2, TType.BOOL, 'unset', None, None, ), # 2(3, TType.I64, 'type', None, None, ), # 3(4, TType.STRING, 'comment', None, None, ), # 4)def __init__(self, transactionId=None, unset=None, type=None, comment=None,):self.transactionId = transactionIdself.unset = unsetself.type = typeself.comment = commentdef 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.transactionId = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.BOOL:self.unset = iprot.readBool();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.type = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.comment = 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('setAlert_args')if self.transactionId != None:oprot.writeFieldBegin('transactionId', TType.I64, 1)oprot.writeI64(self.transactionId)oprot.writeFieldEnd()if self.unset != None:oprot.writeFieldBegin('unset', TType.BOOL, 2)oprot.writeBool(self.unset)oprot.writeFieldEnd()if self.type != None:oprot.writeFieldBegin('type', TType.I64, 3)oprot.writeI64(self.type)oprot.writeFieldEnd()if self.comment != None:oprot.writeFieldBegin('comment', TType.STRING, 4)oprot.writeString(self.comment)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setAlert_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('setAlert_result')oprot.writeFieldStop()oprot.writeStructEnd()def __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 getExtraInfo_args:"""Attributes:- transaction_id"""thrift_spec = (None, # 0(1, TType.I64, 'transaction_id', None, None, ), # 1)def __init__(self, transaction_id=None,):self.transaction_id = transaction_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.transaction_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('getExtraInfo_args')if self.transaction_id != None:oprot.writeFieldBegin('transaction_id', TType.I64, 1)oprot.writeI64(self.transaction_id)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 getExtraInfo_result:"""Attributes:- success"""thrift_spec = ((0, TType.STRUCT, 'success', (ExtraOrderInfo, ExtraOrderInfo.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.STRUCT:self.success = ExtraOrderInfo()self.success.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('getExtraInfo_result')if self.success != None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setExtraInfo_args:"""Attributes:- transaction_id- sku_id- model- colour- vendor"""thrift_spec = (None, # 0(1, TType.I64, 'transaction_id', None, None, ), # 1(2, TType.I64, 'sku_id', None, None, ), # 2(3, TType.STRING, 'model', None, None, ), # 3(4, TType.STRING, 'colour', None, None, ), # 4(5, TType.STRING, 'vendor', None, None, ), # 5)def __init__(self, transaction_id=None, sku_id=None, model=None, colour=None, vendor=None,):self.transaction_id = transaction_idself.sku_id = sku_idself.model = modelself.colour = colourself.vendor = vendordef 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.transaction_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.sku_id = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.STRING:self.model = iprot.readString();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.STRING:self.colour = iprot.readString();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.STRING:self.vendor = 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('setExtraInfo_args')if self.transaction_id != None:oprot.writeFieldBegin('transaction_id', TType.I64, 1)oprot.writeI64(self.transaction_id)oprot.writeFieldEnd()if self.sku_id != None:oprot.writeFieldBegin('sku_id', TType.I64, 2)oprot.writeI64(self.sku_id)oprot.writeFieldEnd()if self.model != None:oprot.writeFieldBegin('model', TType.STRING, 3)oprot.writeString(self.model)oprot.writeFieldEnd()if self.colour != None:oprot.writeFieldBegin('colour', TType.STRING, 4)oprot.writeString(self.colour)oprot.writeFieldEnd()if self.vendor != None:oprot.writeFieldBegin('vendor', TType.STRING, 5)oprot.writeString(self.vendor)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def __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 setExtraInfo_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('setExtraInfo_result')oprot.writeFieldStop()oprot.writeStructEnd()def __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)