Subversion Repositories SmartDukaan

Rev

Rev 18590 | Rev 18735 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18590 Rev 18644
Line 748... Line 748...
748
     - pinCode
748
     - pinCode
749
     - sourceId
749
     - sourceId
750
    """
750
    """
751
    pass
751
    pass
752
 
752
 
753
  def isTaxInvoiceCounter(self, userId):
753
  def isAddressEditableForCounter(self, userId):
754
    """
754
    """
755
    Parameters:
755
    Parameters:
756
     - userId
756
     - userId
757
    """
757
    """
758
    pass
758
    pass
Line 3618... Line 3618...
3618
    self._iprot.readMessageEnd()
3618
    self._iprot.readMessageEnd()
3619
    if result.success is not None:
3619
    if result.success is not None:
3620
      return result.success
3620
      return result.success
3621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCartNew failed: unknown result");
3621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCartNew failed: unknown result");
3622
 
3622
 
3623
  def isTaxInvoiceCounter(self, userId):
3623
  def isAddressEditableForCounter(self, userId):
3624
    """
3624
    """
3625
    Parameters:
3625
    Parameters:
3626
     - userId
3626
     - userId
3627
    """
3627
    """
3628
    self.send_isTaxInvoiceCounter(userId)
3628
    self.send_isAddressEditableForCounter(userId)
3629
    return self.recv_isTaxInvoiceCounter()
3629
    return self.recv_isAddressEditableForCounter()
3630
 
3630
 
3631
  def send_isTaxInvoiceCounter(self, userId):
3631
  def send_isAddressEditableForCounter(self, userId):
3632
    self._oprot.writeMessageBegin('isTaxInvoiceCounter', TMessageType.CALL, self._seqid)
3632
    self._oprot.writeMessageBegin('isAddressEditableForCounter', TMessageType.CALL, self._seqid)
3633
    args = isTaxInvoiceCounter_args()
3633
    args = isAddressEditableForCounter_args()
3634
    args.userId = userId
3634
    args.userId = userId
3635
    args.write(self._oprot)
3635
    args.write(self._oprot)
3636
    self._oprot.writeMessageEnd()
3636
    self._oprot.writeMessageEnd()
3637
    self._oprot.trans.flush()
3637
    self._oprot.trans.flush()
3638
 
3638
 
3639
  def recv_isTaxInvoiceCounter(self, ):
3639
  def recv_isAddressEditableForCounter(self, ):
3640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3641
    if mtype == TMessageType.EXCEPTION:
3641
    if mtype == TMessageType.EXCEPTION:
3642
      x = TApplicationException()
3642
      x = TApplicationException()
3643
      x.read(self._iprot)
3643
      x.read(self._iprot)
3644
      self._iprot.readMessageEnd()
3644
      self._iprot.readMessageEnd()
3645
      raise x
3645
      raise x
3646
    result = isTaxInvoiceCounter_result()
3646
    result = isAddressEditableForCounter_result()
3647
    result.read(self._iprot)
3647
    result.read(self._iprot)
3648
    self._iprot.readMessageEnd()
3648
    self._iprot.readMessageEnd()
3649
    if result.success is not None:
3649
    if result.success is not None:
3650
      return result.success
3650
      return result.success
3651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isTaxInvoiceCounter failed: unknown result");
3651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isAddressEditableForCounter failed: unknown result");
3652
 
3652
 
3653
  def getBillingAddressForUser(self, userId):
3653
  def getBillingAddressForUser(self, userId):
3654
    """
3654
    """
3655
    Parameters:
3655
    Parameters:
3656
     - userId
3656
     - userId
Line 3797... Line 3797...
3797
    self._processMap["getAllUsersByCounter"] = Processor.process_getAllUsersByCounter
3797
    self._processMap["getAllUsersByCounter"] = Processor.process_getAllUsersByCounter
3798
    self._processMap["getActiveAccessTokenForUser"] = Processor.process_getActiveAccessTokenForUser
3798
    self._processMap["getActiveAccessTokenForUser"] = Processor.process_getActiveAccessTokenForUser
3799
    self._processMap["validateAccessToken"] = Processor.process_validateAccessToken
3799
    self._processMap["validateAccessToken"] = Processor.process_validateAccessToken
3800
    self._processMap["addItemsToCart"] = Processor.process_addItemsToCart
3800
    self._processMap["addItemsToCart"] = Processor.process_addItemsToCart
3801
    self._processMap["validateCartNew"] = Processor.process_validateCartNew
3801
    self._processMap["validateCartNew"] = Processor.process_validateCartNew
3802
    self._processMap["isTaxInvoiceCounter"] = Processor.process_isTaxInvoiceCounter
3802
    self._processMap["isAddressEditableForCounter"] = Processor.process_isAddressEditableForCounter
3803
    self._processMap["getBillingAddressForUser"] = Processor.process_getBillingAddressForUser
3803
    self._processMap["getBillingAddressForUser"] = Processor.process_getBillingAddressForUser
3804
    self._processMap["isCreditorAssigned"] = Processor.process_isCreditorAssigned
3804
    self._processMap["isCreditorAssigned"] = Processor.process_isCreditorAssigned
3805
 
3805
 
3806
  def process(self, iprot, oprot):
3806
  def process(self, iprot, oprot):
3807
    (name, type, seqid) = iprot.readMessageBegin()
3807
    (name, type, seqid) = iprot.readMessageBegin()
Line 4927... Line 4927...
4927
    oprot.writeMessageBegin("validateCartNew", TMessageType.REPLY, seqid)
4927
    oprot.writeMessageBegin("validateCartNew", TMessageType.REPLY, seqid)
4928
    result.write(oprot)
4928
    result.write(oprot)
4929
    oprot.writeMessageEnd()
4929
    oprot.writeMessageEnd()
4930
    oprot.trans.flush()
4930
    oprot.trans.flush()
4931
 
4931
 
4932
  def process_isTaxInvoiceCounter(self, seqid, iprot, oprot):
4932
  def process_isAddressEditableForCounter(self, seqid, iprot, oprot):
4933
    args = isTaxInvoiceCounter_args()
4933
    args = isAddressEditableForCounter_args()
4934
    args.read(iprot)
4934
    args.read(iprot)
4935
    iprot.readMessageEnd()
4935
    iprot.readMessageEnd()
4936
    result = isTaxInvoiceCounter_result()
4936
    result = isAddressEditableForCounter_result()
4937
    result.success = self._handler.isTaxInvoiceCounter(args.userId)
4937
    result.success = self._handler.isAddressEditableForCounter(args.userId)
4938
    oprot.writeMessageBegin("isTaxInvoiceCounter", TMessageType.REPLY, seqid)
4938
    oprot.writeMessageBegin("isAddressEditableForCounter", TMessageType.REPLY, seqid)
4939
    result.write(oprot)
4939
    result.write(oprot)
4940
    oprot.writeMessageEnd()
4940
    oprot.writeMessageEnd()
4941
    oprot.trans.flush()
4941
    oprot.trans.flush()
4942
 
4942
 
4943
  def process_getBillingAddressForUser(self, seqid, iprot, oprot):
4943
  def process_getBillingAddressForUser(self, seqid, iprot, oprot):
Line 16763... Line 16763...
16763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16764
 
16764
 
16765
  def __ne__(self, other):
16765
  def __ne__(self, other):
16766
    return not (self == other)
16766
    return not (self == other)
16767
 
16767
 
16768
class isTaxInvoiceCounter_args:
16768
class isAddressEditableForCounter_args:
16769
  """
16769
  """
16770
  Attributes:
16770
  Attributes:
16771
   - userId
16771
   - userId
16772
  """
16772
  """
16773
 
16773
 
Line 16800... Line 16800...
16800
 
16800
 
16801
  def write(self, oprot):
16801
  def write(self, oprot):
16802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16804
      return
16804
      return
16805
    oprot.writeStructBegin('isTaxInvoiceCounter_args')
16805
    oprot.writeStructBegin('isAddressEditableForCounter_args')
16806
    if self.userId is not None:
16806
    if self.userId is not None:
16807
      oprot.writeFieldBegin('userId', TType.I64, 1)
16807
      oprot.writeFieldBegin('userId', TType.I64, 1)
16808
      oprot.writeI64(self.userId)
16808
      oprot.writeI64(self.userId)
16809
      oprot.writeFieldEnd()
16809
      oprot.writeFieldEnd()
16810
    oprot.writeFieldStop()
16810
    oprot.writeFieldStop()
Line 16823... Line 16823...
16823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16824
 
16824
 
16825
  def __ne__(self, other):
16825
  def __ne__(self, other):
16826
    return not (self == other)
16826
    return not (self == other)
16827
 
16827
 
16828
class isTaxInvoiceCounter_result:
16828
class isAddressEditableForCounter_result:
16829
  """
16829
  """
16830
  Attributes:
16830
  Attributes:
16831
   - success
16831
   - success
16832
  """
16832
  """
16833
 
16833
 
Line 16859... Line 16859...
16859
 
16859
 
16860
  def write(self, oprot):
16860
  def write(self, oprot):
16861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16863
      return
16863
      return
16864
    oprot.writeStructBegin('isTaxInvoiceCounter_result')
16864
    oprot.writeStructBegin('isAddressEditableForCounter_result')
16865
    if self.success is not None:
16865
    if self.success is not None:
16866
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16866
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16867
      oprot.writeBool(self.success)
16867
      oprot.writeBool(self.success)
16868
      oprot.writeFieldEnd()
16868
      oprot.writeFieldEnd()
16869
    oprot.writeFieldStop()
16869
    oprot.writeFieldStop()