Subversion Repositories SmartDukaan

Rev

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

Rev 4600 Rev 6050
Line 15... Line 15...
15
except:
15
except:
16
  fastbinary = None
16
  fastbinary = None
17
 
17
 
18
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def createPayment(self, userId, amount, gatewayId, txnId):
20
  def createPayment(self, userId, amount, gatewayId, txnId, isDigital):
21
    """
21
    """
22
    create a new payment and return payment id, throws an exception if gateway is not active
22
    create a new payment and return payment id, throws an exception if gateway is not active
23
 
23
 
24
    Parameters:
24
    Parameters:
25
     - userId
25
     - userId
26
     - amount
26
     - amount
27
     - gatewayId
27
     - gatewayId
28
     - txnId
28
     - txnId
-
 
29
     - isDigital
29
    """
30
    """
30
    pass
31
    pass
31
 
32
 
32
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
33
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
33
    """
34
    """
Line 147... Line 148...
147
    Parameters:
148
    Parameters:
148
     - merchantPaymentId
149
     - merchantPaymentId
149
    """
150
    """
150
    pass
151
    pass
151
 
152
 
-
 
153
  def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId):
-
 
154
    """
-
 
155
    Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
-
 
156
    In case of any processing error, an exception is raised.
-
 
157
 
-
 
158
    Parameters:
-
 
159
     - merchantPaymentId
-
 
160
     - rechargeOrderId
-
 
161
    """
-
 
162
    pass
-
 
163
 
152
  def initializeHdfcEmiPayment(self, merchantPaymentId):
164
  def initializeHdfcEmiPayment(self, merchantPaymentId):
153
    """
165
    """
154
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
166
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
155
    In case of any processing error, an exception is raised.
167
    In case of any processing error, an exception is raised.
156
 
168
 
Line 231... Line 243...
231
 
243
 
232
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
244
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
233
  def __init__(self, iprot, oprot=None):
245
  def __init__(self, iprot, oprot=None):
234
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
246
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
235
 
247
 
236
  def createPayment(self, userId, amount, gatewayId, txnId):
248
  def createPayment(self, userId, amount, gatewayId, txnId, isDigital):
237
    """
249
    """
238
    create a new payment and return payment id, throws an exception if gateway is not active
250
    create a new payment and return payment id, throws an exception if gateway is not active
239
 
251
 
240
    Parameters:
252
    Parameters:
241
     - userId
253
     - userId
242
     - amount
254
     - amount
243
     - gatewayId
255
     - gatewayId
244
     - txnId
256
     - txnId
-
 
257
     - isDigital
245
    """
258
    """
246
    self.send_createPayment(userId, amount, gatewayId, txnId)
259
    self.send_createPayment(userId, amount, gatewayId, txnId, isDigital)
247
    return self.recv_createPayment()
260
    return self.recv_createPayment()
248
 
261
 
249
  def send_createPayment(self, userId, amount, gatewayId, txnId):
262
  def send_createPayment(self, userId, amount, gatewayId, txnId, isDigital):
250
    self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
263
    self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
251
    args = createPayment_args()
264
    args = createPayment_args()
252
    args.userId = userId
265
    args.userId = userId
253
    args.amount = amount
266
    args.amount = amount
254
    args.gatewayId = gatewayId
267
    args.gatewayId = gatewayId
255
    args.txnId = txnId
268
    args.txnId = txnId
-
 
269
    args.isDigital = isDigital
256
    args.write(self._oprot)
270
    args.write(self._oprot)
257
    self._oprot.writeMessageEnd()
271
    self._oprot.writeMessageEnd()
258
    self._oprot.trans.flush()
272
    self._oprot.trans.flush()
259
 
273
 
260
  def recv_createPayment(self, ):
274
  def recv_createPayment(self, ):
Line 682... Line 696...
682
      return result.success
696
      return result.success
683
    if result.pe is not None:
697
    if result.pe is not None:
684
      raise result.pe
698
      raise result.pe
685
    raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
699
    raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
686
 
700
 
-
 
701
  def doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId):
-
 
702
    """
-
 
703
    Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
-
 
704
    In case of any processing error, an exception is raised.
-
 
705
 
-
 
706
    Parameters:
-
 
707
     - merchantPaymentId
-
 
708
     - rechargeOrderId
-
 
709
    """
-
 
710
    self.send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId)
-
 
711
    return self.recv_doHdfcPaymentForDigitalOrder()
-
 
712
 
-
 
713
  def send_doHdfcPaymentForDigitalOrder(self, merchantPaymentId, rechargeOrderId):
-
 
714
    self._oprot.writeMessageBegin('doHdfcPaymentForDigitalOrder', TMessageType.CALL, self._seqid)
-
 
715
    args = doHdfcPaymentForDigitalOrder_args()
-
 
716
    args.merchantPaymentId = merchantPaymentId
-
 
717
    args.rechargeOrderId = rechargeOrderId
-
 
718
    args.write(self._oprot)
-
 
719
    self._oprot.writeMessageEnd()
-
 
720
    self._oprot.trans.flush()
-
 
721
 
-
 
722
  def recv_doHdfcPaymentForDigitalOrder(self, ):
-
 
723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
724
    if mtype == TMessageType.EXCEPTION:
-
 
725
      x = TApplicationException()
-
 
726
      x.read(self._iprot)
-
 
727
      self._iprot.readMessageEnd()
-
 
728
      raise x
-
 
729
    result = doHdfcPaymentForDigitalOrder_result()
-
 
730
    result.read(self._iprot)
-
 
731
    self._iprot.readMessageEnd()
-
 
732
    if result.success is not None:
-
 
733
      return result.success
-
 
734
    if result.pe is not None:
-
 
735
      raise result.pe
-
 
736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
-
 
737
 
687
  def initializeHdfcEmiPayment(self, merchantPaymentId):
738
  def initializeHdfcEmiPayment(self, merchantPaymentId):
688
    """
739
    """
689
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
740
    Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
690
    In case of any processing error, an exception is raised.
741
    In case of any processing error, an exception is raised.
691
 
742
 
Line 928... Line 979...
928
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
979
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
929
    self._processMap["getSuccessfulPaymentForTxnId"] = Processor.process_getSuccessfulPaymentForTxnId
980
    self._processMap["getSuccessfulPaymentForTxnId"] = Processor.process_getSuccessfulPaymentForTxnId
930
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
981
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
931
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
982
    self._processMap["getSuccessfulPaymentsAmountRange"] = Processor.process_getSuccessfulPaymentsAmountRange
932
    self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
983
    self._processMap["initializeHdfcPayment"] = Processor.process_initializeHdfcPayment
-
 
984
    self._processMap["doHdfcPaymentForDigitalOrder"] = Processor.process_doHdfcPaymentForDigitalOrder
933
    self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
985
    self._processMap["initializeHdfcEmiPayment"] = Processor.process_initializeHdfcEmiPayment
934
    self._processMap["createRefund"] = Processor.process_createRefund
986
    self._processMap["createRefund"] = Processor.process_createRefund
935
    self._processMap["capturePayment"] = Processor.process_capturePayment
987
    self._processMap["capturePayment"] = Processor.process_capturePayment
936
    self._processMap["partiallyCapturePayment"] = Processor.process_partiallyCapturePayment
988
    self._processMap["partiallyCapturePayment"] = Processor.process_partiallyCapturePayment
937
    self._processMap["getPaymentsRequiringExtraProcessing"] = Processor.process_getPaymentsRequiringExtraProcessing
989
    self._processMap["getPaymentsRequiringExtraProcessing"] = Processor.process_getPaymentsRequiringExtraProcessing
Line 956... Line 1008...
956
    args = createPayment_args()
1008
    args = createPayment_args()
957
    args.read(iprot)
1009
    args.read(iprot)
958
    iprot.readMessageEnd()
1010
    iprot.readMessageEnd()
959
    result = createPayment_result()
1011
    result = createPayment_result()
960
    try:
1012
    try:
961
      result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId)
1013
      result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital)
962
    except PaymentException, pe:
1014
    except PaymentException, pe:
963
      result.pe = pe
1015
      result.pe = pe
964
    oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
1016
    oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
965
    result.write(oprot)
1017
    result.write(oprot)
966
    oprot.writeMessageEnd()
1018
    oprot.writeMessageEnd()
Line 1115... Line 1167...
1115
    oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
1167
    oprot.writeMessageBegin("initializeHdfcPayment", TMessageType.REPLY, seqid)
1116
    result.write(oprot)
1168
    result.write(oprot)
1117
    oprot.writeMessageEnd()
1169
    oprot.writeMessageEnd()
1118
    oprot.trans.flush()
1170
    oprot.trans.flush()
1119
 
1171
 
-
 
1172
  def process_doHdfcPaymentForDigitalOrder(self, seqid, iprot, oprot):
-
 
1173
    args = doHdfcPaymentForDigitalOrder_args()
-
 
1174
    args.read(iprot)
-
 
1175
    iprot.readMessageEnd()
-
 
1176
    result = doHdfcPaymentForDigitalOrder_result()
-
 
1177
    try:
-
 
1178
      result.success = self._handler.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId)
-
 
1179
    except PaymentException, pe:
-
 
1180
      result.pe = pe
-
 
1181
    oprot.writeMessageBegin("doHdfcPaymentForDigitalOrder", TMessageType.REPLY, seqid)
-
 
1182
    result.write(oprot)
-
 
1183
    oprot.writeMessageEnd()
-
 
1184
    oprot.trans.flush()
-
 
1185
 
1120
  def process_initializeHdfcEmiPayment(self, seqid, iprot, oprot):
1186
  def process_initializeHdfcEmiPayment(self, seqid, iprot, oprot):
1121
    args = initializeHdfcEmiPayment_args()
1187
    args = initializeHdfcEmiPayment_args()
1122
    args.read(iprot)
1188
    args.read(iprot)
1123
    iprot.readMessageEnd()
1189
    iprot.readMessageEnd()
1124
    result = initializeHdfcEmiPayment_result()
1190
    result = initializeHdfcEmiPayment_result()
Line 1203... Line 1269...
1203
  Attributes:
1269
  Attributes:
1204
   - userId
1270
   - userId
1205
   - amount
1271
   - amount
1206
   - gatewayId
1272
   - gatewayId
1207
   - txnId
1273
   - txnId
-
 
1274
   - isDigital
1208
  """
1275
  """
1209
 
1276
 
1210
  thrift_spec = (
1277
  thrift_spec = (
1211
    None, # 0
1278
    None, # 0
1212
    (1, TType.I64, 'userId', None, None, ), # 1
1279
    (1, TType.I64, 'userId', None, None, ), # 1
1213
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
1280
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
1214
    (3, TType.I64, 'gatewayId', None, None, ), # 3
1281
    (3, TType.I64, 'gatewayId', None, None, ), # 3
1215
    (4, TType.I64, 'txnId', None, None, ), # 4
1282
    (4, TType.I64, 'txnId', None, None, ), # 4
-
 
1283
    (5, TType.BOOL, 'isDigital', None, None, ), # 5
1216
  )
1284
  )
1217
 
1285
 
1218
  def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None,):
1286
  def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None, isDigital=None,):
1219
    self.userId = userId
1287
    self.userId = userId
1220
    self.amount = amount
1288
    self.amount = amount
1221
    self.gatewayId = gatewayId
1289
    self.gatewayId = gatewayId
1222
    self.txnId = txnId
1290
    self.txnId = txnId
-
 
1291
    self.isDigital = isDigital
1223
 
1292
 
1224
  def read(self, iprot):
1293
  def read(self, iprot):
1225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1227
      return
1296
      return
Line 1248... Line 1317...
1248
      elif fid == 4:
1317
      elif fid == 4:
1249
        if ftype == TType.I64:
1318
        if ftype == TType.I64:
1250
          self.txnId = iprot.readI64();
1319
          self.txnId = iprot.readI64();
1251
        else:
1320
        else:
1252
          iprot.skip(ftype)
1321
          iprot.skip(ftype)
-
 
1322
      elif fid == 5:
-
 
1323
        if ftype == TType.BOOL:
-
 
1324
          self.isDigital = iprot.readBool();
-
 
1325
        else:
-
 
1326
          iprot.skip(ftype)
1253
      else:
1327
      else:
1254
        iprot.skip(ftype)
1328
        iprot.skip(ftype)
1255
      iprot.readFieldEnd()
1329
      iprot.readFieldEnd()
1256
    iprot.readStructEnd()
1330
    iprot.readStructEnd()
1257
 
1331
 
Line 1274... Line 1348...
1274
      oprot.writeFieldEnd()
1348
      oprot.writeFieldEnd()
1275
    if self.txnId is not None:
1349
    if self.txnId is not None:
1276
      oprot.writeFieldBegin('txnId', TType.I64, 4)
1350
      oprot.writeFieldBegin('txnId', TType.I64, 4)
1277
      oprot.writeI64(self.txnId)
1351
      oprot.writeI64(self.txnId)
1278
      oprot.writeFieldEnd()
1352
      oprot.writeFieldEnd()
-
 
1353
    if self.isDigital is not None:
-
 
1354
      oprot.writeFieldBegin('isDigital', TType.BOOL, 5)
-
 
1355
      oprot.writeBool(self.isDigital)
-
 
1356
      oprot.writeFieldEnd()
1279
    oprot.writeFieldStop()
1357
    oprot.writeFieldStop()
1280
    oprot.writeStructEnd()
1358
    oprot.writeStructEnd()
1281
 
1359
 
1282
  def validate(self):
1360
  def validate(self):
1283
    return
1361
    return
Line 3051... Line 3129...
3051
    if self.success is not None:
3129
    if self.success is not None:
3052
      oprot.writeFieldBegin('success', TType.STRING, 0)
3130
      oprot.writeFieldBegin('success', TType.STRING, 0)
3053
      oprot.writeString(self.success)
3131
      oprot.writeString(self.success)
3054
      oprot.writeFieldEnd()
3132
      oprot.writeFieldEnd()
3055
    if self.pe is not None:
3133
    if self.pe is not None:
-
 
3134
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
3135
      self.pe.write(oprot)
-
 
3136
      oprot.writeFieldEnd()
-
 
3137
    oprot.writeFieldStop()
-
 
3138
    oprot.writeStructEnd()
-
 
3139
 
-
 
3140
  def validate(self):
-
 
3141
    return
-
 
3142
 
-
 
3143
 
-
 
3144
  def __repr__(self):
-
 
3145
    L = ['%s=%r' % (key, value)
-
 
3146
      for key, value in self.__dict__.iteritems()]
-
 
3147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3148
 
-
 
3149
  def __eq__(self, other):
-
 
3150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3151
 
-
 
3152
  def __ne__(self, other):
-
 
3153
    return not (self == other)
-
 
3154
 
-
 
3155
class doHdfcPaymentForDigitalOrder_args:
-
 
3156
  """
-
 
3157
  Attributes:
-
 
3158
   - merchantPaymentId
-
 
3159
   - rechargeOrderId
-
 
3160
  """
-
 
3161
 
-
 
3162
  thrift_spec = (
-
 
3163
    None, # 0
-
 
3164
    (1, TType.I64, 'merchantPaymentId', None, None, ), # 1
-
 
3165
    (2, TType.I64, 'rechargeOrderId', None, None, ), # 2
-
 
3166
  )
-
 
3167
 
-
 
3168
  def __init__(self, merchantPaymentId=None, rechargeOrderId=None,):
-
 
3169
    self.merchantPaymentId = merchantPaymentId
-
 
3170
    self.rechargeOrderId = rechargeOrderId
-
 
3171
 
-
 
3172
  def read(self, iprot):
-
 
3173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3175
      return
-
 
3176
    iprot.readStructBegin()
-
 
3177
    while True:
-
 
3178
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3179
      if ftype == TType.STOP:
-
 
3180
        break
-
 
3181
      if fid == 1:
-
 
3182
        if ftype == TType.I64:
-
 
3183
          self.merchantPaymentId = iprot.readI64();
-
 
3184
        else:
-
 
3185
          iprot.skip(ftype)
-
 
3186
      elif fid == 2:
-
 
3187
        if ftype == TType.I64:
-
 
3188
          self.rechargeOrderId = iprot.readI64();
-
 
3189
        else:
-
 
3190
          iprot.skip(ftype)
-
 
3191
      else:
-
 
3192
        iprot.skip(ftype)
-
 
3193
      iprot.readFieldEnd()
-
 
3194
    iprot.readStructEnd()
-
 
3195
 
-
 
3196
  def write(self, oprot):
-
 
3197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3199
      return
-
 
3200
    oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_args')
-
 
3201
    if self.merchantPaymentId is not None:
-
 
3202
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
-
 
3203
      oprot.writeI64(self.merchantPaymentId)
-
 
3204
      oprot.writeFieldEnd()
-
 
3205
    if self.rechargeOrderId is not None:
-
 
3206
      oprot.writeFieldBegin('rechargeOrderId', TType.I64, 2)
-
 
3207
      oprot.writeI64(self.rechargeOrderId)
-
 
3208
      oprot.writeFieldEnd()
-
 
3209
    oprot.writeFieldStop()
-
 
3210
    oprot.writeStructEnd()
-
 
3211
 
-
 
3212
  def validate(self):
-
 
3213
    return
-
 
3214
 
-
 
3215
 
-
 
3216
  def __repr__(self):
-
 
3217
    L = ['%s=%r' % (key, value)
-
 
3218
      for key, value in self.__dict__.iteritems()]
-
 
3219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3220
 
-
 
3221
  def __eq__(self, other):
-
 
3222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3223
 
-
 
3224
  def __ne__(self, other):
-
 
3225
    return not (self == other)
-
 
3226
 
-
 
3227
class doHdfcPaymentForDigitalOrder_result:
-
 
3228
  """
-
 
3229
  Attributes:
-
 
3230
   - success
-
 
3231
   - pe
-
 
3232
  """
-
 
3233
 
-
 
3234
  thrift_spec = (
-
 
3235
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
3236
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
3237
  )
-
 
3238
 
-
 
3239
  def __init__(self, success=None, pe=None,):
-
 
3240
    self.success = success
-
 
3241
    self.pe = pe
-
 
3242
 
-
 
3243
  def read(self, iprot):
-
 
3244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3246
      return
-
 
3247
    iprot.readStructBegin()
-
 
3248
    while True:
-
 
3249
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3250
      if ftype == TType.STOP:
-
 
3251
        break
-
 
3252
      if fid == 0:
-
 
3253
        if ftype == TType.STRING:
-
 
3254
          self.success = iprot.readString();
-
 
3255
        else:
-
 
3256
          iprot.skip(ftype)
-
 
3257
      elif fid == 1:
-
 
3258
        if ftype == TType.STRUCT:
-
 
3259
          self.pe = PaymentException()
-
 
3260
          self.pe.read(iprot)
-
 
3261
        else:
-
 
3262
          iprot.skip(ftype)
-
 
3263
      else:
-
 
3264
        iprot.skip(ftype)
-
 
3265
      iprot.readFieldEnd()
-
 
3266
    iprot.readStructEnd()
-
 
3267
 
-
 
3268
  def write(self, oprot):
-
 
3269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3271
      return
-
 
3272
    oprot.writeStructBegin('doHdfcPaymentForDigitalOrder_result')
-
 
3273
    if self.success is not None:
-
 
3274
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
3275
      oprot.writeString(self.success)
-
 
3276
      oprot.writeFieldEnd()
-
 
3277
    if self.pe is not None:
3056
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
3278
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
3057
      self.pe.write(oprot)
3279
      self.pe.write(oprot)
3058
      oprot.writeFieldEnd()
3280
      oprot.writeFieldEnd()
3059
    oprot.writeFieldStop()
3281
    oprot.writeFieldStop()
3060
    oprot.writeStructEnd()
3282
    oprot.writeStructEnd()