Subversion Repositories SmartDukaan

Rev

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

Rev 18977 Rev 19182
Line 783... Line 783...
783
    Parameters:
783
    Parameters:
784
     - userId
784
     - userId
785
    """
785
    """
786
    pass
786
    pass
787
 
787
 
-
 
788
  def taxInvoiceAvailable(self, addressId):
-
 
789
    """
-
 
790
    Parameters:
-
 
791
     - addressId
-
 
792
    """
-
 
793
    pass
-
 
794
 
788
  def getCartByValue(self, cartIds):
795
  def getCartByValue(self, cartIds):
789
    """
796
    """
790
    Parameters:
797
    Parameters:
791
     - cartIds
798
     - cartIds
792
    """
799
    """
Line 3789... Line 3796...
3789
    self._iprot.readMessageEnd()
3796
    self._iprot.readMessageEnd()
3790
    if result.success is not None:
3797
    if result.success is not None:
3791
      return result.success
3798
      return result.success
3792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
3799
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
3793
 
3800
 
-
 
3801
  def taxInvoiceAvailable(self, addressId):
-
 
3802
    """
-
 
3803
    Parameters:
-
 
3804
     - addressId
-
 
3805
    """
-
 
3806
    self.send_taxInvoiceAvailable(addressId)
-
 
3807
    return self.recv_taxInvoiceAvailable()
-
 
3808
 
-
 
3809
  def send_taxInvoiceAvailable(self, addressId):
-
 
3810
    self._oprot.writeMessageBegin('taxInvoiceAvailable', TMessageType.CALL, self._seqid)
-
 
3811
    args = taxInvoiceAvailable_args()
-
 
3812
    args.addressId = addressId
-
 
3813
    args.write(self._oprot)
-
 
3814
    self._oprot.writeMessageEnd()
-
 
3815
    self._oprot.trans.flush()
-
 
3816
 
-
 
3817
  def recv_taxInvoiceAvailable(self, ):
-
 
3818
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3819
    if mtype == TMessageType.EXCEPTION:
-
 
3820
      x = TApplicationException()
-
 
3821
      x.read(self._iprot)
-
 
3822
      self._iprot.readMessageEnd()
-
 
3823
      raise x
-
 
3824
    result = taxInvoiceAvailable_result()
-
 
3825
    result.read(self._iprot)
-
 
3826
    self._iprot.readMessageEnd()
-
 
3827
    if result.success is not None:
-
 
3828
      return result.success
-
 
3829
    raise TApplicationException(TApplicationException.MISSING_RESULT, "taxInvoiceAvailable failed: unknown result");
-
 
3830
 
3794
  def getCartByValue(self, cartIds):
3831
  def getCartByValue(self, cartIds):
3795
    """
3832
    """
3796
    Parameters:
3833
    Parameters:
3797
     - cartIds
3834
     - cartIds
3798
    """
3835
    """
Line 3913... Line 3950...
3913
    self._processMap["validateCartNew"] = Processor.process_validateCartNew
3950
    self._processMap["validateCartNew"] = Processor.process_validateCartNew
3914
    self._processMap["isAddressEditableForCounter"] = Processor.process_isAddressEditableForCounter
3951
    self._processMap["isAddressEditableForCounter"] = Processor.process_isAddressEditableForCounter
3915
    self._processMap["getBillingAddressForUser"] = Processor.process_getBillingAddressForUser
3952
    self._processMap["getBillingAddressForUser"] = Processor.process_getBillingAddressForUser
3916
    self._processMap["isCreditorAssigned"] = Processor.process_isCreditorAssigned
3953
    self._processMap["isCreditorAssigned"] = Processor.process_isCreditorAssigned
3917
    self._processMap["isTaxInvoiceEnabledUser"] = Processor.process_isTaxInvoiceEnabledUser
3954
    self._processMap["isTaxInvoiceEnabledUser"] = Processor.process_isTaxInvoiceEnabledUser
-
 
3955
    self._processMap["taxInvoiceAvailable"] = Processor.process_taxInvoiceAvailable
3918
    self._processMap["getCartByValue"] = Processor.process_getCartByValue
3956
    self._processMap["getCartByValue"] = Processor.process_getCartByValue
3919
 
3957
 
3920
  def process(self, iprot, oprot):
3958
  def process(self, iprot, oprot):
3921
    (name, type, seqid) = iprot.readMessageBegin()
3959
    (name, type, seqid) = iprot.readMessageBegin()
3922
    if name not in self._processMap:
3960
    if name not in self._processMap:
Line 5096... Line 5134...
5096
    oprot.writeMessageBegin("isTaxInvoiceEnabledUser", TMessageType.REPLY, seqid)
5134
    oprot.writeMessageBegin("isTaxInvoiceEnabledUser", TMessageType.REPLY, seqid)
5097
    result.write(oprot)
5135
    result.write(oprot)
5098
    oprot.writeMessageEnd()
5136
    oprot.writeMessageEnd()
5099
    oprot.trans.flush()
5137
    oprot.trans.flush()
5100
 
5138
 
-
 
5139
  def process_taxInvoiceAvailable(self, seqid, iprot, oprot):
-
 
5140
    args = taxInvoiceAvailable_args()
-
 
5141
    args.read(iprot)
-
 
5142
    iprot.readMessageEnd()
-
 
5143
    result = taxInvoiceAvailable_result()
-
 
5144
    result.success = self._handler.taxInvoiceAvailable(args.addressId)
-
 
5145
    oprot.writeMessageBegin("taxInvoiceAvailable", TMessageType.REPLY, seqid)
-
 
5146
    result.write(oprot)
-
 
5147
    oprot.writeMessageEnd()
-
 
5148
    oprot.trans.flush()
-
 
5149
 
5101
  def process_getCartByValue(self, seqid, iprot, oprot):
5150
  def process_getCartByValue(self, seqid, iprot, oprot):
5102
    args = getCartByValue_args()
5151
    args = getCartByValue_args()
5103
    args.read(iprot)
5152
    args.read(iprot)
5104
    iprot.readMessageEnd()
5153
    iprot.readMessageEnd()
5105
    result = getCartByValue_result()
5154
    result = getCartByValue_result()
Line 17490... Line 17539...
17490
    if self.success is not None:
17539
    if self.success is not None:
17491
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17540
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17492
      oprot.writeBool(self.success)
17541
      oprot.writeBool(self.success)
17493
      oprot.writeFieldEnd()
17542
      oprot.writeFieldEnd()
17494
    oprot.writeFieldStop()
17543
    oprot.writeFieldStop()
-
 
17544
    oprot.writeStructEnd()
-
 
17545
 
-
 
17546
  def validate(self):
-
 
17547
    return
-
 
17548
 
-
 
17549
 
-
 
17550
  def __repr__(self):
-
 
17551
    L = ['%s=%r' % (key, value)
-
 
17552
      for key, value in self.__dict__.iteritems()]
-
 
17553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17554
 
-
 
17555
  def __eq__(self, other):
-
 
17556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17557
 
-
 
17558
  def __ne__(self, other):
-
 
17559
    return not (self == other)
-
 
17560
 
-
 
17561
class taxInvoiceAvailable_args:
-
 
17562
  """
-
 
17563
  Attributes:
-
 
17564
   - addressId
-
 
17565
  """
-
 
17566
 
-
 
17567
  thrift_spec = (
-
 
17568
    None, # 0
-
 
17569
    (1, TType.I64, 'addressId', None, None, ), # 1
-
 
17570
  )
-
 
17571
 
-
 
17572
  def __init__(self, addressId=None,):
-
 
17573
    self.addressId = addressId
-
 
17574
 
-
 
17575
  def read(self, iprot):
-
 
17576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17578
      return
-
 
17579
    iprot.readStructBegin()
-
 
17580
    while True:
-
 
17581
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17582
      if ftype == TType.STOP:
-
 
17583
        break
-
 
17584
      if fid == 1:
-
 
17585
        if ftype == TType.I64:
-
 
17586
          self.addressId = iprot.readI64();
-
 
17587
        else:
-
 
17588
          iprot.skip(ftype)
-
 
17589
      else:
-
 
17590
        iprot.skip(ftype)
-
 
17591
      iprot.readFieldEnd()
-
 
17592
    iprot.readStructEnd()
-
 
17593
 
-
 
17594
  def write(self, oprot):
-
 
17595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17597
      return
-
 
17598
    oprot.writeStructBegin('taxInvoiceAvailable_args')
-
 
17599
    if self.addressId is not None:
-
 
17600
      oprot.writeFieldBegin('addressId', TType.I64, 1)
-
 
17601
      oprot.writeI64(self.addressId)
-
 
17602
      oprot.writeFieldEnd()
-
 
17603
    oprot.writeFieldStop()
-
 
17604
    oprot.writeStructEnd()
-
 
17605
 
-
 
17606
  def validate(self):
-
 
17607
    return
-
 
17608
 
-
 
17609
 
-
 
17610
  def __repr__(self):
-
 
17611
    L = ['%s=%r' % (key, value)
-
 
17612
      for key, value in self.__dict__.iteritems()]
-
 
17613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
17614
 
-
 
17615
  def __eq__(self, other):
-
 
17616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
17617
 
-
 
17618
  def __ne__(self, other):
-
 
17619
    return not (self == other)
-
 
17620
 
-
 
17621
class taxInvoiceAvailable_result:
-
 
17622
  """
-
 
17623
  Attributes:
-
 
17624
   - success
-
 
17625
  """
-
 
17626
 
-
 
17627
  thrift_spec = (
-
 
17628
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
17629
  )
-
 
17630
 
-
 
17631
  def __init__(self, success=None,):
-
 
17632
    self.success = success
-
 
17633
 
-
 
17634
  def read(self, iprot):
-
 
17635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
17636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
17637
      return
-
 
17638
    iprot.readStructBegin()
-
 
17639
    while True:
-
 
17640
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
17641
      if ftype == TType.STOP:
-
 
17642
        break
-
 
17643
      if fid == 0:
-
 
17644
        if ftype == TType.BOOL:
-
 
17645
          self.success = iprot.readBool();
-
 
17646
        else:
-
 
17647
          iprot.skip(ftype)
-
 
17648
      else:
-
 
17649
        iprot.skip(ftype)
-
 
17650
      iprot.readFieldEnd()
-
 
17651
    iprot.readStructEnd()
-
 
17652
 
-
 
17653
  def write(self, oprot):
-
 
17654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
17655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
17656
      return
-
 
17657
    oprot.writeStructBegin('taxInvoiceAvailable_result')
-
 
17658
    if self.success is not None:
-
 
17659
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
17660
      oprot.writeBool(self.success)
-
 
17661
      oprot.writeFieldEnd()
-
 
17662
    oprot.writeFieldStop()
17495
    oprot.writeStructEnd()
17663
    oprot.writeStructEnd()
17496
 
17664
 
17497
  def validate(self):
17665
  def validate(self):
17498
    return
17666
    return
17499
 
17667