| Line 568... |
Line 568... |
| 568 |
- warehouse_id
|
568 |
- warehouse_id
|
| 569 |
- item_id
|
569 |
- item_id
|
| 570 |
"""
|
570 |
"""
|
| 571 |
pass
|
571 |
pass
|
| 572 |
|
572 |
|
| 573 |
def getLastUpdatedTimeForSnapdealInventory(self, ):
|
- |
|
| 574 |
pass
|
- |
|
| 575 |
|
- |
|
| 576 |
def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
|
573 |
def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
|
| 577 |
"""
|
574 |
"""
|
| 578 |
Parameters:
|
575 |
Parameters:
|
| 579 |
- allamazonfbainventorysnapshot
|
576 |
- allamazonfbainventorysnapshot
|
| 580 |
"""
|
577 |
"""
|
| 581 |
pass
|
578 |
pass
|
| 582 |
|
579 |
|
| - |
|
580 |
def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
|
| - |
|
581 |
"""
|
| - |
|
582 |
Parameters:
|
| - |
|
583 |
- allsnapdealinventorysnapshot
|
| - |
|
584 |
"""
|
| - |
|
585 |
pass
|
| - |
|
586 |
|
| - |
|
587 |
def getSnapdealInventorySnapshot(self, ):
|
| - |
|
588 |
pass
|
| - |
|
589 |
|
| 583 |
|
590 |
|
| 584 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
591 |
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
|
| 585 |
def __init__(self, iprot, oprot=None):
|
592 |
def __init__(self, iprot, oprot=None):
|
| 586 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
593 |
shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
|
| 587 |
|
594 |
|
| Line 2683... |
Line 2690... |
| 2683 |
self._iprot.readMessageEnd()
|
2690 |
self._iprot.readMessageEnd()
|
| 2684 |
if result.success is not None:
|
2691 |
if result.success is not None:
|
| 2685 |
return result.success
|
2692 |
return result.success
|
| 2686 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
|
2693 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
|
| 2687 |
|
2694 |
|
| 2688 |
def getLastUpdatedTimeForSnapdealInventory(self, ):
|
2695 |
def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
|
| - |
|
2696 |
"""
|
| - |
|
2697 |
Parameters:
|
| - |
|
2698 |
- allamazonfbainventorysnapshot
|
| - |
|
2699 |
"""
|
| 2689 |
self.send_getLastUpdatedTimeForSnapdealInventory()
|
2700 |
self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
|
| 2690 |
return self.recv_getLastUpdatedTimeForSnapdealInventory()
|
2701 |
self.recv_addOrUpdateAllAmazonFbaInventory()
|
| 2691 |
|
2702 |
|
| 2692 |
def send_getLastUpdatedTimeForSnapdealInventory(self, ):
|
2703 |
def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
|
| 2693 |
self._oprot.writeMessageBegin('getLastUpdatedTimeForSnapdealInventory', TMessageType.CALL, self._seqid)
|
2704 |
self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
|
| 2694 |
args = getLastUpdatedTimeForSnapdealInventory_args()
|
2705 |
args = addOrUpdateAllAmazonFbaInventory_args()
|
| - |
|
2706 |
args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
|
| 2695 |
args.write(self._oprot)
|
2707 |
args.write(self._oprot)
|
| 2696 |
self._oprot.writeMessageEnd()
|
2708 |
self._oprot.writeMessageEnd()
|
| 2697 |
self._oprot.trans.flush()
|
2709 |
self._oprot.trans.flush()
|
| 2698 |
|
2710 |
|
| 2699 |
def recv_getLastUpdatedTimeForSnapdealInventory(self, ):
|
2711 |
def recv_addOrUpdateAllAmazonFbaInventory(self, ):
|
| 2700 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
2712 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
| 2701 |
if mtype == TMessageType.EXCEPTION:
|
2713 |
if mtype == TMessageType.EXCEPTION:
|
| 2702 |
x = TApplicationException()
|
2714 |
x = TApplicationException()
|
| 2703 |
x.read(self._iprot)
|
2715 |
x.read(self._iprot)
|
| 2704 |
self._iprot.readMessageEnd()
|
2716 |
self._iprot.readMessageEnd()
|
| 2705 |
raise x
|
2717 |
raise x
|
| 2706 |
result = getLastUpdatedTimeForSnapdealInventory_result()
|
2718 |
result = addOrUpdateAllAmazonFbaInventory_result()
|
| 2707 |
result.read(self._iprot)
|
2719 |
result.read(self._iprot)
|
| 2708 |
self._iprot.readMessageEnd()
|
2720 |
self._iprot.readMessageEnd()
|
| 2709 |
if result.success is not None:
|
- |
|
| 2710 |
return result.success
|
2721 |
return
|
| 2711 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastUpdatedTimeForSnapdealInventory failed: unknown result");
|
- |
|
| 2712 |
|
2722 |
|
| 2713 |
def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
|
2723 |
def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
|
| 2714 |
"""
|
2724 |
"""
|
| 2715 |
Parameters:
|
2725 |
Parameters:
|
| 2716 |
- allamazonfbainventorysnapshot
|
2726 |
- allsnapdealinventorysnapshot
|
| 2717 |
"""
|
2727 |
"""
|
| 2718 |
self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
|
2728 |
self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
|
| 2719 |
self.recv_addOrUpdateAllAmazonFbaInventory()
|
2729 |
self.recv_addOrUpdateAllSnapdealInventory()
|
| 2720 |
|
2730 |
|
| 2721 |
def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
|
2731 |
def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
|
| 2722 |
self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
|
2732 |
self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
|
| 2723 |
args = addOrUpdateAllAmazonFbaInventory_args()
|
2733 |
args = addOrUpdateAllSnapdealInventory_args()
|
| 2724 |
args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
|
2734 |
args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
|
| 2725 |
args.write(self._oprot)
|
2735 |
args.write(self._oprot)
|
| 2726 |
self._oprot.writeMessageEnd()
|
2736 |
self._oprot.writeMessageEnd()
|
| 2727 |
self._oprot.trans.flush()
|
2737 |
self._oprot.trans.flush()
|
| 2728 |
|
2738 |
|
| 2729 |
def recv_addOrUpdateAllAmazonFbaInventory(self, ):
|
2739 |
def recv_addOrUpdateAllSnapdealInventory(self, ):
|
| 2730 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
2740 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
| 2731 |
if mtype == TMessageType.EXCEPTION:
|
2741 |
if mtype == TMessageType.EXCEPTION:
|
| 2732 |
x = TApplicationException()
|
2742 |
x = TApplicationException()
|
| 2733 |
x.read(self._iprot)
|
2743 |
x.read(self._iprot)
|
| 2734 |
self._iprot.readMessageEnd()
|
2744 |
self._iprot.readMessageEnd()
|
| 2735 |
raise x
|
2745 |
raise x
|
| 2736 |
result = addOrUpdateAllAmazonFbaInventory_result()
|
2746 |
result = addOrUpdateAllSnapdealInventory_result()
|
| 2737 |
result.read(self._iprot)
|
2747 |
result.read(self._iprot)
|
| 2738 |
self._iprot.readMessageEnd()
|
2748 |
self._iprot.readMessageEnd()
|
| 2739 |
return
|
2749 |
return
|
| 2740 |
|
2750 |
|
| - |
|
2751 |
def getSnapdealInventorySnapshot(self, ):
|
| - |
|
2752 |
self.send_getSnapdealInventorySnapshot()
|
| - |
|
2753 |
return self.recv_getSnapdealInventorySnapshot()
|
| - |
|
2754 |
|
| - |
|
2755 |
def send_getSnapdealInventorySnapshot(self, ):
|
| - |
|
2756 |
self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
|
| - |
|
2757 |
args = getSnapdealInventorySnapshot_args()
|
| - |
|
2758 |
args.write(self._oprot)
|
| - |
|
2759 |
self._oprot.writeMessageEnd()
|
| - |
|
2760 |
self._oprot.trans.flush()
|
| - |
|
2761 |
|
| - |
|
2762 |
def recv_getSnapdealInventorySnapshot(self, ):
|
| - |
|
2763 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
| - |
|
2764 |
if mtype == TMessageType.EXCEPTION:
|
| - |
|
2765 |
x = TApplicationException()
|
| - |
|
2766 |
x.read(self._iprot)
|
| - |
|
2767 |
self._iprot.readMessageEnd()
|
| - |
|
2768 |
raise x
|
| - |
|
2769 |
result = getSnapdealInventorySnapshot_result()
|
| - |
|
2770 |
result.read(self._iprot)
|
| - |
|
2771 |
self._iprot.readMessageEnd()
|
| - |
|
2772 |
if result.success is not None:
|
| - |
|
2773 |
return result.success
|
| - |
|
2774 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
|
| - |
|
2775 |
|
| 2741 |
|
2776 |
|
| 2742 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
2777 |
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
|
| 2743 |
def __init__(self, handler):
|
2778 |
def __init__(self, handler):
|
| 2744 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
2779 |
shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
|
| 2745 |
self._processMap["addWarehouse"] = Processor.process_addWarehouse
|
2780 |
self._processMap["addWarehouse"] = Processor.process_addWarehouse
|
| Line 2805... |
Line 2840... |
| 2805 |
self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
|
2840 |
self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
|
| 2806 |
self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
|
2841 |
self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
|
| 2807 |
self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
|
2842 |
self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
|
| 2808 |
self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
|
2843 |
self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
|
| 2809 |
self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
|
2844 |
self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
|
| 2810 |
self._processMap["getLastUpdatedTimeForSnapdealInventory"] = Processor.process_getLastUpdatedTimeForSnapdealInventory
|
- |
|
| 2811 |
self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
|
2845 |
self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
|
| - |
|
2846 |
self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
|
| - |
|
2847 |
self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
|
| 2812 |
|
2848 |
|
| 2813 |
def process(self, iprot, oprot):
|
2849 |
def process(self, iprot, oprot):
|
| 2814 |
(name, type, seqid) = iprot.readMessageBegin()
|
2850 |
(name, type, seqid) = iprot.readMessageBegin()
|
| 2815 |
if name not in self._processMap:
|
2851 |
if name not in self._processMap:
|
| 2816 |
iprot.skip(TType.STRUCT)
|
2852 |
iprot.skip(TType.STRUCT)
|
| Line 3607... |
Line 3643... |
| 3607 |
oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
|
3643 |
oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
|
| 3608 |
result.write(oprot)
|
3644 |
result.write(oprot)
|
| 3609 |
oprot.writeMessageEnd()
|
3645 |
oprot.writeMessageEnd()
|
| 3610 |
oprot.trans.flush()
|
3646 |
oprot.trans.flush()
|
| 3611 |
|
3647 |
|
| 3612 |
def process_getLastUpdatedTimeForSnapdealInventory(self, seqid, iprot, oprot):
|
3648 |
def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
|
| 3613 |
args = getLastUpdatedTimeForSnapdealInventory_args()
|
3649 |
args = addOrUpdateAllAmazonFbaInventory_args()
|
| 3614 |
args.read(iprot)
|
3650 |
args.read(iprot)
|
| 3615 |
iprot.readMessageEnd()
|
3651 |
iprot.readMessageEnd()
|
| 3616 |
result = getLastUpdatedTimeForSnapdealInventory_result()
|
3652 |
result = addOrUpdateAllAmazonFbaInventory_result()
|
| 3617 |
result.success = self._handler.getLastUpdatedTimeForSnapdealInventory()
|
3653 |
self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
|
| 3618 |
oprot.writeMessageBegin("getLastUpdatedTimeForSnapdealInventory", TMessageType.REPLY, seqid)
|
3654 |
oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
|
| 3619 |
result.write(oprot)
|
3655 |
result.write(oprot)
|
| 3620 |
oprot.writeMessageEnd()
|
3656 |
oprot.writeMessageEnd()
|
| 3621 |
oprot.trans.flush()
|
3657 |
oprot.trans.flush()
|
| 3622 |
|
3658 |
|
| 3623 |
def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
|
3659 |
def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
|
| 3624 |
args = addOrUpdateAllAmazonFbaInventory_args()
|
3660 |
args = addOrUpdateAllSnapdealInventory_args()
|
| 3625 |
args.read(iprot)
|
3661 |
args.read(iprot)
|
| 3626 |
iprot.readMessageEnd()
|
3662 |
iprot.readMessageEnd()
|
| 3627 |
result = addOrUpdateAllAmazonFbaInventory_result()
|
3663 |
result = addOrUpdateAllSnapdealInventory_result()
|
| 3628 |
self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
|
3664 |
self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
|
| 3629 |
oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
|
3665 |
oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
|
| - |
|
3666 |
result.write(oprot)
|
| - |
|
3667 |
oprot.writeMessageEnd()
|
| - |
|
3668 |
oprot.trans.flush()
|
| - |
|
3669 |
|
| - |
|
3670 |
def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
|
| - |
|
3671 |
args = getSnapdealInventorySnapshot_args()
|
| - |
|
3672 |
args.read(iprot)
|
| - |
|
3673 |
iprot.readMessageEnd()
|
| - |
|
3674 |
result = getSnapdealInventorySnapshot_result()
|
| - |
|
3675 |
result.success = self._handler.getSnapdealInventorySnapshot()
|
| - |
|
3676 |
oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
|
| 3630 |
result.write(oprot)
|
3677 |
result.write(oprot)
|
| 3631 |
oprot.writeMessageEnd()
|
3678 |
oprot.writeMessageEnd()
|
| 3632 |
oprot.trans.flush()
|
3679 |
oprot.trans.flush()
|
| 3633 |
|
3680 |
|
| 3634 |
|
3681 |
|
| Line 12134... |
Line 12181... |
| 12134 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
12181 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 12135 |
|
12182 |
|
| 12136 |
def __ne__(self, other):
|
12183 |
def __ne__(self, other):
|
| 12137 |
return not (self == other)
|
12184 |
return not (self == other)
|
| 12138 |
|
12185 |
|
| 12139 |
class getLastUpdatedTimeForSnapdealInventory_args:
|
12186 |
class addOrUpdateAllAmazonFbaInventory_args:
|
| - |
|
12187 |
"""
|
| - |
|
12188 |
Attributes:
|
| - |
|
12189 |
- allamazonfbainventorysnapshot
|
| - |
|
12190 |
"""
|
| 12140 |
|
12191 |
|
| 12141 |
thrift_spec = (
|
12192 |
thrift_spec = None
|
| 12142 |
)
|
- |
|
| - |
|
12193 |
def __init__(self, allamazonfbainventorysnapshot=None,):
|
| - |
|
12194 |
self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
|
| 12143 |
|
12195 |
|
| 12144 |
def read(self, iprot):
|
12196 |
def read(self, iprot):
|
| 12145 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
12197 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| 12146 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
12198 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| 12147 |
return
|
12199 |
return
|
| 12148 |
iprot.readStructBegin()
|
12200 |
iprot.readStructBegin()
|
| 12149 |
while True:
|
12201 |
while True:
|
| 12150 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
12202 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| 12151 |
if ftype == TType.STOP:
|
12203 |
if ftype == TType.STOP:
|
| 12152 |
break
|
12204 |
break
|
| - |
|
12205 |
if fid == -1:
|
| - |
|
12206 |
if ftype == TType.LIST:
|
| - |
|
12207 |
self.allamazonfbainventorysnapshot = []
|
| - |
|
12208 |
(_etype247, _size244) = iprot.readListBegin()
|
| - |
|
12209 |
for _i248 in xrange(_size244):
|
| - |
|
12210 |
_elem249 = AmazonFbaInventorySnapshot()
|
| - |
|
12211 |
_elem249.read(iprot)
|
| - |
|
12212 |
self.allamazonfbainventorysnapshot.append(_elem249)
|
| - |
|
12213 |
iprot.readListEnd()
|
| - |
|
12214 |
else:
|
| - |
|
12215 |
iprot.skip(ftype)
|
| 12153 |
else:
|
12216 |
else:
|
| 12154 |
iprot.skip(ftype)
|
12217 |
iprot.skip(ftype)
|
| 12155 |
iprot.readFieldEnd()
|
12218 |
iprot.readFieldEnd()
|
| 12156 |
iprot.readStructEnd()
|
12219 |
iprot.readStructEnd()
|
| 12157 |
|
12220 |
|
| 12158 |
def write(self, oprot):
|
12221 |
def write(self, oprot):
|
| 12159 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
12222 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| 12160 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
12223 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| 12161 |
return
|
12224 |
return
|
| 12162 |
oprot.writeStructBegin('getLastUpdatedTimeForSnapdealInventory_args')
|
12225 |
oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
|
| - |
|
12226 |
if self.allamazonfbainventorysnapshot is not None:
|
| - |
|
12227 |
oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
|
| - |
|
12228 |
oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
|
| - |
|
12229 |
for iter250 in self.allamazonfbainventorysnapshot:
|
| - |
|
12230 |
iter250.write(oprot)
|
| - |
|
12231 |
oprot.writeListEnd()
|
| - |
|
12232 |
oprot.writeFieldEnd()
|
| 12163 |
oprot.writeFieldStop()
|
12233 |
oprot.writeFieldStop()
|
| 12164 |
oprot.writeStructEnd()
|
12234 |
oprot.writeStructEnd()
|
| 12165 |
|
12235 |
|
| 12166 |
def validate(self):
|
12236 |
def validate(self):
|
| 12167 |
return
|
12237 |
return
|
| Line 12176... |
Line 12246... |
| 12176 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
12246 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 12177 |
|
12247 |
|
| 12178 |
def __ne__(self, other):
|
12248 |
def __ne__(self, other):
|
| 12179 |
return not (self == other)
|
12249 |
return not (self == other)
|
| 12180 |
|
12250 |
|
| 12181 |
class getLastUpdatedTimeForSnapdealInventory_result:
|
12251 |
class addOrUpdateAllAmazonFbaInventory_result:
|
| 12182 |
"""
|
- |
|
| 12183 |
Attributes:
|
- |
|
| 12184 |
- success
|
- |
|
| 12185 |
"""
|
- |
|
| 12186 |
|
12252 |
|
| 12187 |
thrift_spec = (
|
12253 |
thrift_spec = (
|
| 12188 |
(0, TType.I64, 'success', None, None, ), # 0
|
- |
|
| 12189 |
)
|
12254 |
)
|
| 12190 |
|
12255 |
|
| 12191 |
def __init__(self, success=None,):
|
- |
|
| 12192 |
self.success = success
|
- |
|
| 12193 |
|
- |
|
| 12194 |
def read(self, iprot):
|
12256 |
def read(self, iprot):
|
| 12195 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
12257 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| 12196 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
12258 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| 12197 |
return
|
12259 |
return
|
| 12198 |
iprot.readStructBegin()
|
12260 |
iprot.readStructBegin()
|
| 12199 |
while True:
|
12261 |
while True:
|
| 12200 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
12262 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| 12201 |
if ftype == TType.STOP:
|
12263 |
if ftype == TType.STOP:
|
| 12202 |
break
|
12264 |
break
|
| 12203 |
if fid == 0:
|
- |
|
| 12204 |
if ftype == TType.I64:
|
- |
|
| 12205 |
self.success = iprot.readI64();
|
- |
|
| 12206 |
else:
|
- |
|
| 12207 |
iprot.skip(ftype)
|
- |
|
| 12208 |
else:
|
12265 |
else:
|
| 12209 |
iprot.skip(ftype)
|
12266 |
iprot.skip(ftype)
|
| 12210 |
iprot.readFieldEnd()
|
12267 |
iprot.readFieldEnd()
|
| 12211 |
iprot.readStructEnd()
|
12268 |
iprot.readStructEnd()
|
| 12212 |
|
12269 |
|
| 12213 |
def write(self, oprot):
|
12270 |
def write(self, oprot):
|
| 12214 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
12271 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| 12215 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
12272 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| 12216 |
return
|
12273 |
return
|
| 12217 |
oprot.writeStructBegin('getLastUpdatedTimeForSnapdealInventory_result')
|
12274 |
oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
|
| 12218 |
if self.success is not None:
|
- |
|
| 12219 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
- |
|
| 12220 |
oprot.writeI64(self.success)
|
- |
|
| 12221 |
oprot.writeFieldEnd()
|
- |
|
| 12222 |
oprot.writeFieldStop()
|
12275 |
oprot.writeFieldStop()
|
| 12223 |
oprot.writeStructEnd()
|
12276 |
oprot.writeStructEnd()
|
| 12224 |
|
12277 |
|
| 12225 |
def validate(self):
|
12278 |
def validate(self):
|
| 12226 |
return
|
12279 |
return
|
| Line 12235... |
Line 12288... |
| 12235 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
12288 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 12236 |
|
12289 |
|
| 12237 |
def __ne__(self, other):
|
12290 |
def __ne__(self, other):
|
| 12238 |
return not (self == other)
|
12291 |
return not (self == other)
|
| 12239 |
|
12292 |
|
| 12240 |
class addOrUpdateAllAmazonFbaInventory_args:
|
12293 |
class addOrUpdateAllSnapdealInventory_args:
|
| 12241 |
"""
|
12294 |
"""
|
| 12242 |
Attributes:
|
12295 |
Attributes:
|
| 12243 |
- allamazonfbainventorysnapshot
|
12296 |
- allsnapdealinventorysnapshot
|
| 12244 |
"""
|
12297 |
"""
|
| 12245 |
|
12298 |
|
| 12246 |
thrift_spec = None
|
12299 |
thrift_spec = None
|
| 12247 |
def __init__(self, allamazonfbainventorysnapshot=None,):
|
12300 |
def __init__(self, allsnapdealinventorysnapshot=None,):
|
| 12248 |
self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
|
12301 |
self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
|
| 12249 |
|
12302 |
|
| 12250 |
def read(self, iprot):
|
12303 |
def read(self, iprot):
|
| 12251 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
12304 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| 12252 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
12305 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| 12253 |
return
|
12306 |
return
|
| Line 12256... |
Line 12309... |
| 12256 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
12309 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| 12257 |
if ftype == TType.STOP:
|
12310 |
if ftype == TType.STOP:
|
| 12258 |
break
|
12311 |
break
|
| 12259 |
if fid == -1:
|
12312 |
if fid == -1:
|
| 12260 |
if ftype == TType.LIST:
|
12313 |
if ftype == TType.LIST:
|
| 12261 |
self.allamazonfbainventorysnapshot = []
|
12314 |
self.allsnapdealinventorysnapshot = []
|
| 12262 |
(_etype247, _size244) = iprot.readListBegin()
|
12315 |
(_etype254, _size251) = iprot.readListBegin()
|
| 12263 |
for _i248 in xrange(_size244):
|
12316 |
for _i255 in xrange(_size251):
|
| 12264 |
_elem249 = AmazonFbaInventorySnapshot()
|
12317 |
_elem256 = SnapdealInventoryItem()
|
| 12265 |
_elem249.read(iprot)
|
12318 |
_elem256.read(iprot)
|
| 12266 |
self.allamazonfbainventorysnapshot.append(_elem249)
|
12319 |
self.allsnapdealinventorysnapshot.append(_elem256)
|
| 12267 |
iprot.readListEnd()
|
12320 |
iprot.readListEnd()
|
| 12268 |
else:
|
12321 |
else:
|
| 12269 |
iprot.skip(ftype)
|
12322 |
iprot.skip(ftype)
|
| 12270 |
else:
|
12323 |
else:
|
| 12271 |
iprot.skip(ftype)
|
12324 |
iprot.skip(ftype)
|
| Line 12274... |
Line 12327... |
| 12274 |
|
12327 |
|
| 12275 |
def write(self, oprot):
|
12328 |
def write(self, oprot):
|
| 12276 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
12329 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| 12277 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
12330 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| 12278 |
return
|
12331 |
return
|
| 12279 |
oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
|
12332 |
oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
|
| 12280 |
if self.allamazonfbainventorysnapshot is not None:
|
12333 |
if self.allsnapdealinventorysnapshot is not None:
|
| 12281 |
oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
|
12334 |
oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
|
| 12282 |
oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
|
12335 |
oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
|
| 12283 |
for iter250 in self.allamazonfbainventorysnapshot:
|
12336 |
for iter257 in self.allsnapdealinventorysnapshot:
|
| 12284 |
iter250.write(oprot)
|
12337 |
iter257.write(oprot)
|
| 12285 |
oprot.writeListEnd()
|
12338 |
oprot.writeListEnd()
|
| 12286 |
oprot.writeFieldEnd()
|
12339 |
oprot.writeFieldEnd()
|
| 12287 |
oprot.writeFieldStop()
|
12340 |
oprot.writeFieldStop()
|
| 12288 |
oprot.writeStructEnd()
|
12341 |
oprot.writeStructEnd()
|
| 12289 |
|
12342 |
|
| Line 12300... |
Line 12353... |
| 12300 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
12353 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| 12301 |
|
12354 |
|
| 12302 |
def __ne__(self, other):
|
12355 |
def __ne__(self, other):
|
| 12303 |
return not (self == other)
|
12356 |
return not (self == other)
|
| 12304 |
|
12357 |
|
| 12305 |
class addOrUpdateAllAmazonFbaInventory_result:
|
12358 |
class addOrUpdateAllSnapdealInventory_result:
|
| 12306 |
|
12359 |
|
| 12307 |
thrift_spec = (
|
12360 |
thrift_spec = (
|
| 12308 |
)
|
12361 |
)
|
| 12309 |
|
12362 |
|
| 12310 |
def read(self, iprot):
|
12363 |
def read(self, iprot):
|
| Line 12323... |
Line 12376... |
| 12323 |
|
12376 |
|
| 12324 |
def write(self, oprot):
|
12377 |
def write(self, oprot):
|
| 12325 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
12378 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| 12326 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
12379 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| 12327 |
return
|
12380 |
return
|
| 12328 |
oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
|
12381 |
oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
|
| - |
|
12382 |
oprot.writeFieldStop()
|
| - |
|
12383 |
oprot.writeStructEnd()
|
| - |
|
12384 |
|
| - |
|
12385 |
def validate(self):
|
| - |
|
12386 |
return
|
| - |
|
12387 |
|
| - |
|
12388 |
|
| - |
|
12389 |
def __repr__(self):
|
| - |
|
12390 |
L = ['%s=%r' % (key, value)
|
| - |
|
12391 |
for key, value in self.__dict__.iteritems()]
|
| - |
|
12392 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
| - |
|
12393 |
|
| - |
|
12394 |
def __eq__(self, other):
|
| - |
|
12395 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| - |
|
12396 |
|
| - |
|
12397 |
def __ne__(self, other):
|
| - |
|
12398 |
return not (self == other)
|
| - |
|
12399 |
|
| - |
|
12400 |
class getSnapdealInventorySnapshot_args:
|
| - |
|
12401 |
|
| - |
|
12402 |
thrift_spec = (
|
| - |
|
12403 |
)
|
| - |
|
12404 |
|
| - |
|
12405 |
def read(self, iprot):
|
| - |
|
12406 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
12407 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| - |
|
12408 |
return
|
| - |
|
12409 |
iprot.readStructBegin()
|
| - |
|
12410 |
while True:
|
| - |
|
12411 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| - |
|
12412 |
if ftype == TType.STOP:
|
| - |
|
12413 |
break
|
| - |
|
12414 |
else:
|
| - |
|
12415 |
iprot.skip(ftype)
|
| - |
|
12416 |
iprot.readFieldEnd()
|
| - |
|
12417 |
iprot.readStructEnd()
|
| - |
|
12418 |
|
| - |
|
12419 |
def write(self, oprot):
|
| - |
|
12420 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
12421 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| - |
|
12422 |
return
|
| - |
|
12423 |
oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
|
| - |
|
12424 |
oprot.writeFieldStop()
|
| - |
|
12425 |
oprot.writeStructEnd()
|
| - |
|
12426 |
|
| - |
|
12427 |
def validate(self):
|
| - |
|
12428 |
return
|
| - |
|
12429 |
|
| - |
|
12430 |
|
| - |
|
12431 |
def __repr__(self):
|
| - |
|
12432 |
L = ['%s=%r' % (key, value)
|
| - |
|
12433 |
for key, value in self.__dict__.iteritems()]
|
| - |
|
12434 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
| - |
|
12435 |
|
| - |
|
12436 |
def __eq__(self, other):
|
| - |
|
12437 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
| - |
|
12438 |
|
| - |
|
12439 |
def __ne__(self, other):
|
| - |
|
12440 |
return not (self == other)
|
| - |
|
12441 |
|
| - |
|
12442 |
class getSnapdealInventorySnapshot_result:
|
| - |
|
12443 |
"""
|
| - |
|
12444 |
Attributes:
|
| - |
|
12445 |
- success
|
| - |
|
12446 |
"""
|
| - |
|
12447 |
|
| - |
|
12448 |
thrift_spec = (
|
| - |
|
12449 |
(0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
|
| - |
|
12450 |
)
|
| - |
|
12451 |
|
| - |
|
12452 |
def __init__(self, success=None,):
|
| - |
|
12453 |
self.success = success
|
| - |
|
12454 |
|
| - |
|
12455 |
def read(self, iprot):
|
| - |
|
12456 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
12457 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
| - |
|
12458 |
return
|
| - |
|
12459 |
iprot.readStructBegin()
|
| - |
|
12460 |
while True:
|
| - |
|
12461 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
| - |
|
12462 |
if ftype == TType.STOP:
|
| - |
|
12463 |
break
|
| - |
|
12464 |
if fid == 0:
|
| - |
|
12465 |
if ftype == TType.LIST:
|
| - |
|
12466 |
self.success = []
|
| - |
|
12467 |
(_etype261, _size258) = iprot.readListBegin()
|
| - |
|
12468 |
for _i262 in xrange(_size258):
|
| - |
|
12469 |
_elem263 = SnapdealInventoryItem()
|
| - |
|
12470 |
_elem263.read(iprot)
|
| - |
|
12471 |
self.success.append(_elem263)
|
| - |
|
12472 |
iprot.readListEnd()
|
| - |
|
12473 |
else:
|
| - |
|
12474 |
iprot.skip(ftype)
|
| - |
|
12475 |
else:
|
| - |
|
12476 |
iprot.skip(ftype)
|
| - |
|
12477 |
iprot.readFieldEnd()
|
| - |
|
12478 |
iprot.readStructEnd()
|
| - |
|
12479 |
|
| - |
|
12480 |
def write(self, oprot):
|
| - |
|
12481 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
| - |
|
12482 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
| - |
|
12483 |
return
|
| - |
|
12484 |
oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
|
| - |
|
12485 |
if self.success is not None:
|
| - |
|
12486 |
oprot.writeFieldBegin('success', TType.LIST, 0)
|
| - |
|
12487 |
oprot.writeListBegin(TType.STRUCT, len(self.success))
|
| - |
|
12488 |
for iter264 in self.success:
|
| - |
|
12489 |
iter264.write(oprot)
|
| - |
|
12490 |
oprot.writeListEnd()
|
| - |
|
12491 |
oprot.writeFieldEnd()
|
| 12329 |
oprot.writeFieldStop()
|
12492 |
oprot.writeFieldStop()
|
| 12330 |
oprot.writeStructEnd()
|
12493 |
oprot.writeStructEnd()
|
| 12331 |
|
12494 |
|
| 12332 |
def validate(self):
|
12495 |
def validate(self):
|
| 12333 |
return
|
12496 |
return
|