Subversion Repositories SmartDukaan

Rev

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

Rev 3010 Rev 3374
Line 23... Line 23...
23
import org.apache.thrift.meta_data.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
24
import org.apache.thrift.protocol.*;
25
 
25
 
26
public class PaymentService {
26
public class PaymentService {
27
 
27
 
28
  public interface Iface {
-
 
29
 
-
 
30
    /**
-
 
31
     * For closing the open session in sqlalchemy
-
 
32
     */
-
 
33
    public void closeSession() throws TException;
28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
34
 
29
 
35
    /**
30
    /**
36
     * create a new payment and return payment id, throws an exception if gateway is not active
31
     * create a new payment and return payment id, throws an exception if gateway is not active
37
     * 
32
     * 
38
     * 
33
     * 
Line 156... Line 151...
156
     */
151
     */
157
    public boolean capturePayment(long merchantTxnId) throws PaymentException, TException;
152
    public boolean capturePayment(long merchantTxnId) throws PaymentException, TException;
158
 
153
 
159
  }
154
  }
160
 
155
 
161
  public static class Client implements Iface {
156
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
162
    public Client(TProtocol prot)
157
    public Client(TProtocol prot)
163
    {
158
    {
164
      this(prot, prot);
159
      this(prot, prot);
165
    }
160
    }
166
 
161
 
167
    public Client(TProtocol iprot, TProtocol oprot)
162
    public Client(TProtocol iprot, TProtocol oprot)
168
    {
163
    {
169
      iprot_ = iprot;
-
 
170
      oprot_ = oprot;
164
      super(iprot, oprot);
171
    }
-
 
172
 
-
 
173
    protected TProtocol iprot_;
-
 
174
    protected TProtocol oprot_;
-
 
175
 
-
 
176
    protected int seqid_;
-
 
177
 
-
 
178
    public TProtocol getInputProtocol()
-
 
179
    {
-
 
180
      return this.iprot_;
-
 
181
    }
-
 
182
 
-
 
183
    public TProtocol getOutputProtocol()
-
 
184
    {
-
 
185
      return this.oprot_;
-
 
186
    }
-
 
187
 
-
 
188
    public void closeSession() throws TException
-
 
189
    {
-
 
190
      send_closeSession();
-
 
191
      recv_closeSession();
-
 
192
    }
-
 
193
 
-
 
194
    public void send_closeSession() throws TException
-
 
195
    {
-
 
196
      oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));
-
 
197
      closeSession_args args = new closeSession_args();
-
 
198
      args.write(oprot_);
-
 
199
      oprot_.writeMessageEnd();
-
 
200
      oprot_.getTransport().flush();
-
 
201
    }
-
 
202
 
-
 
203
    public void recv_closeSession() throws TException
-
 
204
    {
-
 
205
      TMessage msg = iprot_.readMessageBegin();
-
 
206
      if (msg.type == TMessageType.EXCEPTION) {
-
 
207
        TApplicationException x = TApplicationException.read(iprot_);
-
 
208
        iprot_.readMessageEnd();
-
 
209
        throw x;
-
 
210
      }
-
 
211
      closeSession_result result = new closeSession_result();
-
 
212
      result.read(iprot_);
-
 
213
      iprot_.readMessageEnd();
-
 
214
      return;
-
 
215
    }
165
    }
216
 
166
 
217
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, TException
167
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, TException
218
    {
168
    {
219
      send_createPayment(userId, amount, gatewayId, txnId);
169
      send_createPayment(userId, amount, gatewayId, txnId);
Line 700... Line 650...
700
      }
650
      }
701
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
651
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
702
    }
652
    }
703
 
653
 
704
  }
654
  }
705
  public static class Processor implements TProcessor {
655
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
706
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
656
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
707
    public Processor(Iface iface)
657
    public Processor(Iface iface)
708
    {
658
    {
-
 
659
      super(iface);
709
      iface_ = iface;
660
      iface_ = iface;
710
      processMap_.put("closeSession", new closeSession());
-
 
711
      processMap_.put("createPayment", new createPayment());
661
      processMap_.put("createPayment", new createPayment());
712
      processMap_.put("getPaymentsForUser", new getPaymentsForUser());
662
      processMap_.put("getPaymentsForUser", new getPaymentsForUser());
713
      processMap_.put("getPayments", new getPayments());
663
      processMap_.put("getPayments", new getPayments());
714
      processMap_.put("getPaymentGateway", new getPaymentGateway());
664
      processMap_.put("getPaymentGateway", new getPaymentGateway());
715
      processMap_.put("getPayment", new getPayment());
665
      processMap_.put("getPayment", new getPayment());
Line 721... Line 671...
721
      processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
671
      processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
722
      processMap_.put("createRefund", new createRefund());
672
      processMap_.put("createRefund", new createRefund());
723
      processMap_.put("capturePayment", new capturePayment());
673
      processMap_.put("capturePayment", new capturePayment());
724
    }
674
    }
725
 
675
 
726
    protected static interface ProcessFunction {
-
 
727
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
-
 
728
    }
-
 
729
 
-
 
730
    private Iface iface_;
676
    private Iface iface_;
731
    protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();
-
 
732
 
677
 
733
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
678
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
734
    {
679
    {
735
      TMessage msg = iprot.readMessageBegin();
680
      TMessage msg = iprot.readMessageBegin();
736
      ProcessFunction fn = processMap_.get(msg.name);
681
      ProcessFunction fn = processMap_.get(msg.name);
Line 746... Line 691...
746
      }
691
      }
747
      fn.process(msg.seqid, iprot, oprot);
692
      fn.process(msg.seqid, iprot, oprot);
748
      return true;
693
      return true;
749
    }
694
    }
750
 
695
 
751
    private class closeSession implements ProcessFunction {
-
 
752
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
753
      {
-
 
754
        closeSession_args args = new closeSession_args();
-
 
755
        args.read(iprot);
-
 
756
        iprot.readMessageEnd();
-
 
757
        closeSession_result result = new closeSession_result();
-
 
758
        iface_.closeSession();
-
 
759
        oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));
-
 
760
        result.write(oprot);
-
 
761
        oprot.writeMessageEnd();
-
 
762
        oprot.getTransport().flush();
-
 
763
      }
-
 
764
 
-
 
765
    }
-
 
766
 
-
 
767
    private class createPayment implements ProcessFunction {
696
    private class createPayment implements ProcessFunction {
768
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
697
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
769
      {
698
      {
770
        createPayment_args args = new createPayment_args();
699
        createPayment_args args = new createPayment_args();
771
        args.read(iprot);
700
        args.read(iprot);
Line 1120... Line 1049...
1120
 
1049
 
1121
    }
1050
    }
1122
 
1051
 
1123
  }
1052
  }
1124
 
1053
 
1125
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
-
 
1126
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
-
 
1127
 
-
 
1128
 
-
 
1129
 
-
 
1130
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
1131
    public enum _Fields implements TFieldIdEnum {
-
 
1132
;
-
 
1133
 
-
 
1134
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1135
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
1136
 
-
 
1137
      static {
-
 
1138
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
1139
          byId.put((int)field._thriftId, field);
-
 
1140
          byName.put(field.getFieldName(), field);
-
 
1141
        }
-
 
1142
      }
-
 
1143
 
-
 
1144
      /**
-
 
1145
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
1146
       */
-
 
1147
      public static _Fields findByThriftId(int fieldId) {
-
 
1148
        return byId.get(fieldId);
-
 
1149
      }
-
 
1150
 
-
 
1151
      /**
-
 
1152
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
1153
       * if it is not found.
-
 
1154
       */
-
 
1155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
1156
        _Fields fields = findByThriftId(fieldId);
-
 
1157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
1158
        return fields;
-
 
1159
      }
-
 
1160
 
-
 
1161
      /**
-
 
1162
       * Find the _Fields constant that matches name, or null if its not found.
-
 
1163
       */
-
 
1164
      public static _Fields findByName(String name) {
-
 
1165
        return byName.get(name);
-
 
1166
      }
-
 
1167
 
-
 
1168
      private final short _thriftId;
-
 
1169
      private final String _fieldName;
-
 
1170
 
-
 
1171
      _Fields(short thriftId, String fieldName) {
-
 
1172
        _thriftId = thriftId;
-
 
1173
        _fieldName = fieldName;
-
 
1174
      }
-
 
1175
 
-
 
1176
      public short getThriftFieldId() {
-
 
1177
        return _thriftId;
-
 
1178
      }
-
 
1179
 
-
 
1180
      public String getFieldName() {
-
 
1181
        return _fieldName;
-
 
1182
      }
-
 
1183
    }
-
 
1184
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1185
    }});
-
 
1186
 
-
 
1187
    static {
-
 
1188
      FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
-
 
1189
    }
-
 
1190
 
-
 
1191
    public closeSession_args() {
-
 
1192
    }
-
 
1193
 
-
 
1194
    /**
-
 
1195
     * Performs a deep copy on <i>other</i>.
-
 
1196
     */
-
 
1197
    public closeSession_args(closeSession_args other) {
-
 
1198
    }
-
 
1199
 
-
 
1200
    public closeSession_args deepCopy() {
-
 
1201
      return new closeSession_args(this);
-
 
1202
    }
-
 
1203
 
-
 
1204
    @Deprecated
-
 
1205
    public closeSession_args clone() {
-
 
1206
      return new closeSession_args(this);
-
 
1207
    }
-
 
1208
 
-
 
1209
    public void setFieldValue(_Fields field, Object value) {
-
 
1210
      switch (field) {
-
 
1211
      }
-
 
1212
    }
-
 
1213
 
-
 
1214
    public void setFieldValue(int fieldID, Object value) {
-
 
1215
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1216
    }
-
 
1217
 
-
 
1218
    public Object getFieldValue(_Fields field) {
-
 
1219
      switch (field) {
-
 
1220
      }
-
 
1221
      throw new IllegalStateException();
-
 
1222
    }
-
 
1223
 
-
 
1224
    public Object getFieldValue(int fieldId) {
-
 
1225
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1226
    }
-
 
1227
 
-
 
1228
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
1229
    public boolean isSet(_Fields field) {
-
 
1230
      switch (field) {
-
 
1231
      }
-
 
1232
      throw new IllegalStateException();
-
 
1233
    }
-
 
1234
 
-
 
1235
    public boolean isSet(int fieldID) {
-
 
1236
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1237
    }
-
 
1238
 
-
 
1239
    @Override
-
 
1240
    public boolean equals(Object that) {
-
 
1241
      if (that == null)
-
 
1242
        return false;
-
 
1243
      if (that instanceof closeSession_args)
-
 
1244
        return this.equals((closeSession_args)that);
-
 
1245
      return false;
-
 
1246
    }
-
 
1247
 
-
 
1248
    public boolean equals(closeSession_args that) {
-
 
1249
      if (that == null)
-
 
1250
        return false;
-
 
1251
 
-
 
1252
      return true;
-
 
1253
    }
-
 
1254
 
-
 
1255
    @Override
-
 
1256
    public int hashCode() {
-
 
1257
      return 0;
-
 
1258
    }
-
 
1259
 
-
 
1260
    public int compareTo(closeSession_args other) {
-
 
1261
      if (!getClass().equals(other.getClass())) {
-
 
1262
        return getClass().getName().compareTo(other.getClass().getName());
-
 
1263
      }
-
 
1264
 
-
 
1265
      int lastComparison = 0;
-
 
1266
      closeSession_args typedOther = (closeSession_args)other;
-
 
1267
 
-
 
1268
      return 0;
-
 
1269
    }
-
 
1270
 
-
 
1271
    public void read(TProtocol iprot) throws TException {
-
 
1272
      TField field;
-
 
1273
      iprot.readStructBegin();
-
 
1274
      while (true)
-
 
1275
      {
-
 
1276
        field = iprot.readFieldBegin();
-
 
1277
        if (field.type == TType.STOP) { 
-
 
1278
          break;
-
 
1279
        }
-
 
1280
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1281
        if (fieldId == null) {
-
 
1282
          TProtocolUtil.skip(iprot, field.type);
-
 
1283
        } else {
-
 
1284
          switch (fieldId) {
-
 
1285
          }
-
 
1286
          iprot.readFieldEnd();
-
 
1287
        }
-
 
1288
      }
-
 
1289
      iprot.readStructEnd();
-
 
1290
      validate();
-
 
1291
    }
-
 
1292
 
-
 
1293
    public void write(TProtocol oprot) throws TException {
-
 
1294
      validate();
-
 
1295
 
-
 
1296
      oprot.writeStructBegin(STRUCT_DESC);
-
 
1297
      oprot.writeFieldStop();
-
 
1298
      oprot.writeStructEnd();
-
 
1299
    }
-
 
1300
 
-
 
1301
    @Override
-
 
1302
    public String toString() {
-
 
1303
      StringBuilder sb = new StringBuilder("closeSession_args(");
-
 
1304
      boolean first = true;
-
 
1305
 
-
 
1306
      sb.append(")");
-
 
1307
      return sb.toString();
-
 
1308
    }
-
 
1309
 
-
 
1310
    public void validate() throws TException {
-
 
1311
      // check for required fields
-
 
1312
    }
-
 
1313
 
-
 
1314
  }
-
 
1315
 
-
 
1316
  public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result>   {
-
 
1317
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_result");
-
 
1318
 
-
 
1319
 
-
 
1320
 
-
 
1321
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
1322
    public enum _Fields implements TFieldIdEnum {
-
 
1323
;
-
 
1324
 
-
 
1325
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1326
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
1327
 
-
 
1328
      static {
-
 
1329
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
1330
          byId.put((int)field._thriftId, field);
-
 
1331
          byName.put(field.getFieldName(), field);
-
 
1332
        }
-
 
1333
      }
-
 
1334
 
-
 
1335
      /**
-
 
1336
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
1337
       */
-
 
1338
      public static _Fields findByThriftId(int fieldId) {
-
 
1339
        return byId.get(fieldId);
-
 
1340
      }
-
 
1341
 
-
 
1342
      /**
-
 
1343
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
1344
       * if it is not found.
-
 
1345
       */
-
 
1346
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
1347
        _Fields fields = findByThriftId(fieldId);
-
 
1348
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
1349
        return fields;
-
 
1350
      }
-
 
1351
 
-
 
1352
      /**
-
 
1353
       * Find the _Fields constant that matches name, or null if its not found.
-
 
1354
       */
-
 
1355
      public static _Fields findByName(String name) {
-
 
1356
        return byName.get(name);
-
 
1357
      }
-
 
1358
 
-
 
1359
      private final short _thriftId;
-
 
1360
      private final String _fieldName;
-
 
1361
 
-
 
1362
      _Fields(short thriftId, String fieldName) {
-
 
1363
        _thriftId = thriftId;
-
 
1364
        _fieldName = fieldName;
-
 
1365
      }
-
 
1366
 
-
 
1367
      public short getThriftFieldId() {
-
 
1368
        return _thriftId;
-
 
1369
      }
-
 
1370
 
-
 
1371
      public String getFieldName() {
-
 
1372
        return _fieldName;
-
 
1373
      }
-
 
1374
    }
-
 
1375
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1376
    }});
-
 
1377
 
-
 
1378
    static {
-
 
1379
      FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
-
 
1380
    }
-
 
1381
 
-
 
1382
    public closeSession_result() {
-
 
1383
    }
-
 
1384
 
-
 
1385
    /**
-
 
1386
     * Performs a deep copy on <i>other</i>.
-
 
1387
     */
-
 
1388
    public closeSession_result(closeSession_result other) {
-
 
1389
    }
-
 
1390
 
-
 
1391
    public closeSession_result deepCopy() {
-
 
1392
      return new closeSession_result(this);
-
 
1393
    }
-
 
1394
 
-
 
1395
    @Deprecated
-
 
1396
    public closeSession_result clone() {
-
 
1397
      return new closeSession_result(this);
-
 
1398
    }
-
 
1399
 
-
 
1400
    public void setFieldValue(_Fields field, Object value) {
-
 
1401
      switch (field) {
-
 
1402
      }
-
 
1403
    }
-
 
1404
 
-
 
1405
    public void setFieldValue(int fieldID, Object value) {
-
 
1406
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1407
    }
-
 
1408
 
-
 
1409
    public Object getFieldValue(_Fields field) {
-
 
1410
      switch (field) {
-
 
1411
      }
-
 
1412
      throw new IllegalStateException();
-
 
1413
    }
-
 
1414
 
-
 
1415
    public Object getFieldValue(int fieldId) {
-
 
1416
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1417
    }
-
 
1418
 
-
 
1419
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
1420
    public boolean isSet(_Fields field) {
-
 
1421
      switch (field) {
-
 
1422
      }
-
 
1423
      throw new IllegalStateException();
-
 
1424
    }
-
 
1425
 
-
 
1426
    public boolean isSet(int fieldID) {
-
 
1427
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1428
    }
-
 
1429
 
-
 
1430
    @Override
-
 
1431
    public boolean equals(Object that) {
-
 
1432
      if (that == null)
-
 
1433
        return false;
-
 
1434
      if (that instanceof closeSession_result)
-
 
1435
        return this.equals((closeSession_result)that);
-
 
1436
      return false;
-
 
1437
    }
-
 
1438
 
-
 
1439
    public boolean equals(closeSession_result that) {
-
 
1440
      if (that == null)
-
 
1441
        return false;
-
 
1442
 
-
 
1443
      return true;
-
 
1444
    }
-
 
1445
 
-
 
1446
    @Override
-
 
1447
    public int hashCode() {
-
 
1448
      return 0;
-
 
1449
    }
-
 
1450
 
-
 
1451
    public int compareTo(closeSession_result other) {
-
 
1452
      if (!getClass().equals(other.getClass())) {
-
 
1453
        return getClass().getName().compareTo(other.getClass().getName());
-
 
1454
      }
-
 
1455
 
-
 
1456
      int lastComparison = 0;
-
 
1457
      closeSession_result typedOther = (closeSession_result)other;
-
 
1458
 
-
 
1459
      return 0;
-
 
1460
    }
-
 
1461
 
-
 
1462
    public void read(TProtocol iprot) throws TException {
-
 
1463
      TField field;
-
 
1464
      iprot.readStructBegin();
-
 
1465
      while (true)
-
 
1466
      {
-
 
1467
        field = iprot.readFieldBegin();
-
 
1468
        if (field.type == TType.STOP) { 
-
 
1469
          break;
-
 
1470
        }
-
 
1471
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1472
        if (fieldId == null) {
-
 
1473
          TProtocolUtil.skip(iprot, field.type);
-
 
1474
        } else {
-
 
1475
          switch (fieldId) {
-
 
1476
          }
-
 
1477
          iprot.readFieldEnd();
-
 
1478
        }
-
 
1479
      }
-
 
1480
      iprot.readStructEnd();
-
 
1481
      validate();
-
 
1482
    }
-
 
1483
 
-
 
1484
    public void write(TProtocol oprot) throws TException {
-
 
1485
      oprot.writeStructBegin(STRUCT_DESC);
-
 
1486
 
-
 
1487
      oprot.writeFieldStop();
-
 
1488
      oprot.writeStructEnd();
-
 
1489
    }
-
 
1490
 
-
 
1491
    @Override
-
 
1492
    public String toString() {
-
 
1493
      StringBuilder sb = new StringBuilder("closeSession_result(");
-
 
1494
      boolean first = true;
-
 
1495
 
-
 
1496
      sb.append(")");
-
 
1497
      return sb.toString();
-
 
1498
    }
-
 
1499
 
-
 
1500
    public void validate() throws TException {
-
 
1501
      // check for required fields
-
 
1502
    }
-
 
1503
 
-
 
1504
  }
-
 
1505
 
-
 
1506
  public static class createPayment_args implements TBase<createPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPayment_args>   {
1054
  public static class createPayment_args implements TBase<createPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPayment_args>   {
1507
    private static final TStruct STRUCT_DESC = new TStruct("createPayment_args");
1055
    private static final TStruct STRUCT_DESC = new TStruct("createPayment_args");
1508
 
1056
 
1509
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
1057
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
1510
    private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)2);
1058
    private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)2);