Subversion Repositories SmartDukaan

Rev

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

Rev 20811 Rev 20873
Line 1252... Line 1252...
1252
 
1252
 
1253
    public ShipmentLogisticsCostDetail getCostDetailForLogisticsTxnId(String logisticsTxnId) throws org.apache.thrift.TException;
1253
    public ShipmentLogisticsCostDetail getCostDetailForLogisticsTxnId(String logisticsTxnId) throws org.apache.thrift.TException;
1254
 
1254
 
1255
    public void addShipmentLogisticDetail(ShipmentLogisticsCostDetail shipmentLogisticsCostDetail) throws org.apache.thrift.TException;
1255
    public void addShipmentLogisticDetail(ShipmentLogisticsCostDetail shipmentLogisticsCostDetail) throws org.apache.thrift.TException;
1256
 
1256
 
-
 
1257
    public long createPayment(long userId, long txnId, int gatewayId) throws org.apache.thrift.TException;
-
 
1258
 
-
 
1259
    public double calculatePaymentAmount(long txnId) throws org.apache.thrift.TException;
-
 
1260
 
1257
  }
1261
  }
1258
 
1262
 
1259
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1263
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1260
 
1264
 
1261
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1265
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1872... Line 1876...
1872
 
1876
 
1873
    public void getCostDetailForLogisticsTxnId(String logisticsTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostDetailForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
1877
    public void getCostDetailForLogisticsTxnId(String logisticsTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostDetailForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
1874
 
1878
 
1875
    public void addShipmentLogisticDetail(ShipmentLogisticsCostDetail shipmentLogisticsCostDetail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addShipmentLogisticDetail_call> resultHandler) throws org.apache.thrift.TException;
1879
    public void addShipmentLogisticDetail(ShipmentLogisticsCostDetail shipmentLogisticsCostDetail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addShipmentLogisticDetail_call> resultHandler) throws org.apache.thrift.TException;
1876
 
1880
 
-
 
1881
    public void createPayment(long userId, long txnId, int gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
1882
 
-
 
1883
    public void calculatePaymentAmount(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.calculatePaymentAmount_call> resultHandler) throws org.apache.thrift.TException;
-
 
1884
 
1877
  }
1885
  }
1878
 
1886
 
1879
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1887
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1880
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1888
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1881
      public Factory() {}
1889
      public Factory() {}
Line 9512... Line 9520...
9512
      addShipmentLogisticDetail_result result = new addShipmentLogisticDetail_result();
9520
      addShipmentLogisticDetail_result result = new addShipmentLogisticDetail_result();
9513
      receiveBase(result, "addShipmentLogisticDetail");
9521
      receiveBase(result, "addShipmentLogisticDetail");
9514
      return;
9522
      return;
9515
    }
9523
    }
9516
 
9524
 
-
 
9525
    public long createPayment(long userId, long txnId, int gatewayId) throws org.apache.thrift.TException
-
 
9526
    {
-
 
9527
      send_createPayment(userId, txnId, gatewayId);
-
 
9528
      return recv_createPayment();
-
 
9529
    }
-
 
9530
 
-
 
9531
    public void send_createPayment(long userId, long txnId, int gatewayId) throws org.apache.thrift.TException
-
 
9532
    {
-
 
9533
      createPayment_args args = new createPayment_args();
-
 
9534
      args.setUserId(userId);
-
 
9535
      args.setTxnId(txnId);
-
 
9536
      args.setGatewayId(gatewayId);
-
 
9537
      sendBase("createPayment", args);
-
 
9538
    }
-
 
9539
 
-
 
9540
    public long recv_createPayment() throws org.apache.thrift.TException
-
 
9541
    {
-
 
9542
      createPayment_result result = new createPayment_result();
-
 
9543
      receiveBase(result, "createPayment");
-
 
9544
      if (result.isSetSuccess()) {
-
 
9545
        return result.success;
-
 
9546
      }
-
 
9547
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
-
 
9548
    }
-
 
9549
 
-
 
9550
    public double calculatePaymentAmount(long txnId) throws org.apache.thrift.TException
-
 
9551
    {
-
 
9552
      send_calculatePaymentAmount(txnId);
-
 
9553
      return recv_calculatePaymentAmount();
-
 
9554
    }
-
 
9555
 
-
 
9556
    public void send_calculatePaymentAmount(long txnId) throws org.apache.thrift.TException
-
 
9557
    {
-
 
9558
      calculatePaymentAmount_args args = new calculatePaymentAmount_args();
-
 
9559
      args.setTxnId(txnId);
-
 
9560
      sendBase("calculatePaymentAmount", args);
-
 
9561
    }
-
 
9562
 
-
 
9563
    public double recv_calculatePaymentAmount() throws org.apache.thrift.TException
-
 
9564
    {
-
 
9565
      calculatePaymentAmount_result result = new calculatePaymentAmount_result();
-
 
9566
      receiveBase(result, "calculatePaymentAmount");
-
 
9567
      if (result.isSetSuccess()) {
-
 
9568
        return result.success;
-
 
9569
      }
-
 
9570
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "calculatePaymentAmount failed: unknown result");
-
 
9571
    }
-
 
9572
 
9517
  }
9573
  }
9518
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9574
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9519
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9575
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9520
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9576
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9521
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9577
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 20259... Line 20315...
20259
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20315
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20260
        (new Client(prot)).recv_addShipmentLogisticDetail();
20316
        (new Client(prot)).recv_addShipmentLogisticDetail();
20261
      }
20317
      }
20262
    }
20318
    }
20263
 
20319
 
-
 
20320
    public void createPayment(long userId, long txnId, int gatewayId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
20321
      checkReady();
-
 
20322
      createPayment_call method_call = new createPayment_call(userId, txnId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-
 
20323
      this.___currentMethod = method_call;
-
 
20324
      ___manager.call(method_call);
-
 
20325
    }
-
 
20326
 
-
 
20327
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
20328
      private long userId;
-
 
20329
      private long txnId;
-
 
20330
      private int gatewayId;
-
 
20331
      public createPayment_call(long userId, long txnId, int gatewayId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
20332
        super(client, protocolFactory, transport, resultHandler, false);
-
 
20333
        this.userId = userId;
-
 
20334
        this.txnId = txnId;
-
 
20335
        this.gatewayId = gatewayId;
-
 
20336
      }
-
 
20337
 
-
 
20338
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
20339
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
20340
        createPayment_args args = new createPayment_args();
-
 
20341
        args.setUserId(userId);
-
 
20342
        args.setTxnId(txnId);
-
 
20343
        args.setGatewayId(gatewayId);
-
 
20344
        args.write(prot);
-
 
20345
        prot.writeMessageEnd();
-
 
20346
      }
-
 
20347
 
-
 
20348
      public long getResult() throws org.apache.thrift.TException {
-
 
20349
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
20350
          throw new IllegalStateException("Method call not finished!");
-
 
20351
        }
-
 
20352
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
20353
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
20354
        return (new Client(prot)).recv_createPayment();
-
 
20355
      }
-
 
20356
    }
-
 
20357
 
-
 
20358
    public void calculatePaymentAmount(long txnId, org.apache.thrift.async.AsyncMethodCallback<calculatePaymentAmount_call> resultHandler) throws org.apache.thrift.TException {
-
 
20359
      checkReady();
-
 
20360
      calculatePaymentAmount_call method_call = new calculatePaymentAmount_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
20361
      this.___currentMethod = method_call;
-
 
20362
      ___manager.call(method_call);
-
 
20363
    }
-
 
20364
 
-
 
20365
    public static class calculatePaymentAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
20366
      private long txnId;
-
 
20367
      public calculatePaymentAmount_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<calculatePaymentAmount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
20368
        super(client, protocolFactory, transport, resultHandler, false);
-
 
20369
        this.txnId = txnId;
-
 
20370
      }
-
 
20371
 
-
 
20372
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
20373
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("calculatePaymentAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
20374
        calculatePaymentAmount_args args = new calculatePaymentAmount_args();
-
 
20375
        args.setTxnId(txnId);
-
 
20376
        args.write(prot);
-
 
20377
        prot.writeMessageEnd();
-
 
20378
      }
-
 
20379
 
-
 
20380
      public double getResult() throws org.apache.thrift.TException {
-
 
20381
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
20382
          throw new IllegalStateException("Method call not finished!");
-
 
20383
        }
-
 
20384
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
20385
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
20386
        return (new Client(prot)).recv_calculatePaymentAmount();
-
 
20387
      }
-
 
20388
    }
-
 
20389
 
20264
  }
20390
  }
20265
 
20391
 
20266
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20392
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20267
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20393
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20268
    public Processor(I iface) {
20394
    public Processor(I iface) {
Line 20580... Line 20706...
20580
      processMap.put("deleteReturnOrder", new deleteReturnOrder());
20706
      processMap.put("deleteReturnOrder", new deleteReturnOrder());
20581
      processMap.put("refundReturnOrder", new refundReturnOrder());
20707
      processMap.put("refundReturnOrder", new refundReturnOrder());
20582
      processMap.put("addShipmentDelay", new addShipmentDelay());
20708
      processMap.put("addShipmentDelay", new addShipmentDelay());
20583
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20709
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20584
      processMap.put("addShipmentLogisticDetail", new addShipmentLogisticDetail());
20710
      processMap.put("addShipmentLogisticDetail", new addShipmentLogisticDetail());
-
 
20711
      processMap.put("createPayment", new createPayment());
-
 
20712
      processMap.put("calculatePaymentAmount", new calculatePaymentAmount());
20585
      return processMap;
20713
      return processMap;
20586
    }
20714
    }
20587
 
20715
 
20588
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20716
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20589
      public createTransaction() {
20717
      public createTransaction() {
Line 26147... Line 26275...
26147
        iface.addShipmentLogisticDetail(args.shipmentLogisticsCostDetail);
26275
        iface.addShipmentLogisticDetail(args.shipmentLogisticsCostDetail);
26148
        return result;
26276
        return result;
26149
      }
26277
      }
26150
    }
26278
    }
26151
 
26279
 
-
 
26280
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
-
 
26281
      public createPayment() {
-
 
26282
        super("createPayment");
-
 
26283
      }
-
 
26284
 
-
 
26285
      protected createPayment_args getEmptyArgsInstance() {
-
 
26286
        return new createPayment_args();
-
 
26287
      }
-
 
26288
 
-
 
26289
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
-
 
26290
        createPayment_result result = new createPayment_result();
-
 
26291
        result.success = iface.createPayment(args.userId, args.txnId, args.gatewayId);
-
 
26292
        result.setSuccessIsSet(true);
-
 
26293
        return result;
-
 
26294
      }
-
 
26295
    }
-
 
26296
 
-
 
26297
    private static class calculatePaymentAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, calculatePaymentAmount_args> {
-
 
26298
      public calculatePaymentAmount() {
-
 
26299
        super("calculatePaymentAmount");
-
 
26300
      }
-
 
26301
 
-
 
26302
      protected calculatePaymentAmount_args getEmptyArgsInstance() {
-
 
26303
        return new calculatePaymentAmount_args();
-
 
26304
      }
-
 
26305
 
-
 
26306
      protected calculatePaymentAmount_result getResult(I iface, calculatePaymentAmount_args args) throws org.apache.thrift.TException {
-
 
26307
        calculatePaymentAmount_result result = new calculatePaymentAmount_result();
-
 
26308
        result.success = iface.calculatePaymentAmount(args.txnId);
-
 
26309
        result.setSuccessIsSet(true);
-
 
26310
        return result;
-
 
26311
      }
-
 
26312
    }
-
 
26313
 
26152
  }
26314
  }
26153
 
26315
 
26154
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26316
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26156
 
26318
 
Line 245892... Line 246054...
245892
      sb.append(")");
246054
      sb.append(")");
245893
      return sb.toString();
246055
      return sb.toString();
245894
    }
246056
    }
245895
 
246057
 
245896
    public void validate() throws org.apache.thrift.TException {
246058
    public void validate() throws org.apache.thrift.TException {
-
 
246059
      // check for required fields
-
 
246060
    }
-
 
246061
 
-
 
246062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
246063
      try {
-
 
246064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
246065
      } catch (org.apache.thrift.TException te) {
-
 
246066
        throw new java.io.IOException(te);
-
 
246067
      }
-
 
246068
    }
-
 
246069
 
-
 
246070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
246071
      try {
-
 
246072
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
246073
      } catch (org.apache.thrift.TException te) {
-
 
246074
        throw new java.io.IOException(te);
-
 
246075
      }
-
 
246076
    }
-
 
246077
 
-
 
246078
  }
-
 
246079
 
-
 
246080
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
-
 
246081
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
-
 
246082
 
-
 
246083
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
246084
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
246085
    private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I32, (short)3);
-
 
246086
 
-
 
246087
    private long userId; // required
-
 
246088
    private long txnId; // required
-
 
246089
    private int gatewayId; // required
-
 
246090
 
-
 
246091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
246092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
246093
      USER_ID((short)1, "userId"),
-
 
246094
      TXN_ID((short)2, "txnId"),
-
 
246095
      GATEWAY_ID((short)3, "gatewayId");
-
 
246096
 
-
 
246097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
246098
 
-
 
246099
      static {
-
 
246100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
246101
          byName.put(field.getFieldName(), field);
-
 
246102
        }
-
 
246103
      }
-
 
246104
 
-
 
246105
      /**
-
 
246106
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
246107
       */
-
 
246108
      public static _Fields findByThriftId(int fieldId) {
-
 
246109
        switch(fieldId) {
-
 
246110
          case 1: // USER_ID
-
 
246111
            return USER_ID;
-
 
246112
          case 2: // TXN_ID
-
 
246113
            return TXN_ID;
-
 
246114
          case 3: // GATEWAY_ID
-
 
246115
            return GATEWAY_ID;
-
 
246116
          default:
-
 
246117
            return null;
-
 
246118
        }
-
 
246119
      }
-
 
246120
 
-
 
246121
      /**
-
 
246122
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
246123
       * if it is not found.
-
 
246124
       */
-
 
246125
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
246126
        _Fields fields = findByThriftId(fieldId);
-
 
246127
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
246128
        return fields;
-
 
246129
      }
-
 
246130
 
-
 
246131
      /**
-
 
246132
       * Find the _Fields constant that matches name, or null if its not found.
-
 
246133
       */
-
 
246134
      public static _Fields findByName(String name) {
-
 
246135
        return byName.get(name);
-
 
246136
      }
-
 
246137
 
-
 
246138
      private final short _thriftId;
-
 
246139
      private final String _fieldName;
-
 
246140
 
-
 
246141
      _Fields(short thriftId, String fieldName) {
-
 
246142
        _thriftId = thriftId;
-
 
246143
        _fieldName = fieldName;
-
 
246144
      }
-
 
246145
 
-
 
246146
      public short getThriftFieldId() {
-
 
246147
        return _thriftId;
-
 
246148
      }
-
 
246149
 
-
 
246150
      public String getFieldName() {
-
 
246151
        return _fieldName;
-
 
246152
      }
-
 
246153
    }
-
 
246154
 
-
 
246155
    // isset id assignments
-
 
246156
    private static final int __USERID_ISSET_ID = 0;
-
 
246157
    private static final int __TXNID_ISSET_ID = 1;
-
 
246158
    private static final int __GATEWAYID_ISSET_ID = 2;
-
 
246159
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
246160
 
-
 
246161
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
246162
    static {
-
 
246163
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
246164
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246165
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
246166
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
246168
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
246170
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
246171
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
-
 
246172
    }
-
 
246173
 
-
 
246174
    public createPayment_args() {
-
 
246175
    }
-
 
246176
 
-
 
246177
    public createPayment_args(
-
 
246178
      long userId,
-
 
246179
      long txnId,
-
 
246180
      int gatewayId)
-
 
246181
    {
-
 
246182
      this();
-
 
246183
      this.userId = userId;
-
 
246184
      setUserIdIsSet(true);
-
 
246185
      this.txnId = txnId;
-
 
246186
      setTxnIdIsSet(true);
-
 
246187
      this.gatewayId = gatewayId;
-
 
246188
      setGatewayIdIsSet(true);
-
 
246189
    }
-
 
246190
 
-
 
246191
    /**
-
 
246192
     * Performs a deep copy on <i>other</i>.
-
 
246193
     */
-
 
246194
    public createPayment_args(createPayment_args other) {
-
 
246195
      __isset_bit_vector.clear();
-
 
246196
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
246197
      this.userId = other.userId;
-
 
246198
      this.txnId = other.txnId;
-
 
246199
      this.gatewayId = other.gatewayId;
-
 
246200
    }
-
 
246201
 
-
 
246202
    public createPayment_args deepCopy() {
-
 
246203
      return new createPayment_args(this);
-
 
246204
    }
-
 
246205
 
-
 
246206
    @Override
-
 
246207
    public void clear() {
-
 
246208
      setUserIdIsSet(false);
-
 
246209
      this.userId = 0;
-
 
246210
      setTxnIdIsSet(false);
-
 
246211
      this.txnId = 0;
-
 
246212
      setGatewayIdIsSet(false);
-
 
246213
      this.gatewayId = 0;
-
 
246214
    }
-
 
246215
 
-
 
246216
    public long getUserId() {
-
 
246217
      return this.userId;
-
 
246218
    }
-
 
246219
 
-
 
246220
    public void setUserId(long userId) {
-
 
246221
      this.userId = userId;
-
 
246222
      setUserIdIsSet(true);
-
 
246223
    }
-
 
246224
 
-
 
246225
    public void unsetUserId() {
-
 
246226
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
246227
    }
-
 
246228
 
-
 
246229
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
246230
    public boolean isSetUserId() {
-
 
246231
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
246232
    }
-
 
246233
 
-
 
246234
    public void setUserIdIsSet(boolean value) {
-
 
246235
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
246236
    }
-
 
246237
 
-
 
246238
    public long getTxnId() {
-
 
246239
      return this.txnId;
-
 
246240
    }
-
 
246241
 
-
 
246242
    public void setTxnId(long txnId) {
-
 
246243
      this.txnId = txnId;
-
 
246244
      setTxnIdIsSet(true);
-
 
246245
    }
-
 
246246
 
-
 
246247
    public void unsetTxnId() {
-
 
246248
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
-
 
246249
    }
-
 
246250
 
-
 
246251
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
-
 
246252
    public boolean isSetTxnId() {
-
 
246253
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
-
 
246254
    }
-
 
246255
 
-
 
246256
    public void setTxnIdIsSet(boolean value) {
-
 
246257
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
-
 
246258
    }
-
 
246259
 
-
 
246260
    public int getGatewayId() {
-
 
246261
      return this.gatewayId;
-
 
246262
    }
-
 
246263
 
-
 
246264
    public void setGatewayId(int gatewayId) {
-
 
246265
      this.gatewayId = gatewayId;
-
 
246266
      setGatewayIdIsSet(true);
-
 
246267
    }
-
 
246268
 
-
 
246269
    public void unsetGatewayId() {
-
 
246270
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
-
 
246271
    }
-
 
246272
 
-
 
246273
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
-
 
246274
    public boolean isSetGatewayId() {
-
 
246275
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
-
 
246276
    }
-
 
246277
 
-
 
246278
    public void setGatewayIdIsSet(boolean value) {
-
 
246279
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
-
 
246280
    }
-
 
246281
 
-
 
246282
    public void setFieldValue(_Fields field, Object value) {
-
 
246283
      switch (field) {
-
 
246284
      case USER_ID:
-
 
246285
        if (value == null) {
-
 
246286
          unsetUserId();
-
 
246287
        } else {
-
 
246288
          setUserId((Long)value);
-
 
246289
        }
-
 
246290
        break;
-
 
246291
 
-
 
246292
      case TXN_ID:
-
 
246293
        if (value == null) {
-
 
246294
          unsetTxnId();
-
 
246295
        } else {
-
 
246296
          setTxnId((Long)value);
-
 
246297
        }
-
 
246298
        break;
-
 
246299
 
-
 
246300
      case GATEWAY_ID:
-
 
246301
        if (value == null) {
-
 
246302
          unsetGatewayId();
-
 
246303
        } else {
-
 
246304
          setGatewayId((Integer)value);
-
 
246305
        }
-
 
246306
        break;
-
 
246307
 
-
 
246308
      }
-
 
246309
    }
-
 
246310
 
-
 
246311
    public Object getFieldValue(_Fields field) {
-
 
246312
      switch (field) {
-
 
246313
      case USER_ID:
-
 
246314
        return Long.valueOf(getUserId());
-
 
246315
 
-
 
246316
      case TXN_ID:
-
 
246317
        return Long.valueOf(getTxnId());
-
 
246318
 
-
 
246319
      case GATEWAY_ID:
-
 
246320
        return Integer.valueOf(getGatewayId());
-
 
246321
 
-
 
246322
      }
-
 
246323
      throw new IllegalStateException();
-
 
246324
    }
-
 
246325
 
-
 
246326
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
246327
    public boolean isSet(_Fields field) {
-
 
246328
      if (field == null) {
-
 
246329
        throw new IllegalArgumentException();
-
 
246330
      }
-
 
246331
 
-
 
246332
      switch (field) {
-
 
246333
      case USER_ID:
-
 
246334
        return isSetUserId();
-
 
246335
      case TXN_ID:
-
 
246336
        return isSetTxnId();
-
 
246337
      case GATEWAY_ID:
-
 
246338
        return isSetGatewayId();
-
 
246339
      }
-
 
246340
      throw new IllegalStateException();
-
 
246341
    }
-
 
246342
 
-
 
246343
    @Override
-
 
246344
    public boolean equals(Object that) {
-
 
246345
      if (that == null)
-
 
246346
        return false;
-
 
246347
      if (that instanceof createPayment_args)
-
 
246348
        return this.equals((createPayment_args)that);
-
 
246349
      return false;
-
 
246350
    }
-
 
246351
 
-
 
246352
    public boolean equals(createPayment_args that) {
-
 
246353
      if (that == null)
-
 
246354
        return false;
-
 
246355
 
-
 
246356
      boolean this_present_userId = true;
-
 
246357
      boolean that_present_userId = true;
-
 
246358
      if (this_present_userId || that_present_userId) {
-
 
246359
        if (!(this_present_userId && that_present_userId))
-
 
246360
          return false;
-
 
246361
        if (this.userId != that.userId)
-
 
246362
          return false;
-
 
246363
      }
-
 
246364
 
-
 
246365
      boolean this_present_txnId = true;
-
 
246366
      boolean that_present_txnId = true;
-
 
246367
      if (this_present_txnId || that_present_txnId) {
-
 
246368
        if (!(this_present_txnId && that_present_txnId))
-
 
246369
          return false;
-
 
246370
        if (this.txnId != that.txnId)
-
 
246371
          return false;
-
 
246372
      }
-
 
246373
 
-
 
246374
      boolean this_present_gatewayId = true;
-
 
246375
      boolean that_present_gatewayId = true;
-
 
246376
      if (this_present_gatewayId || that_present_gatewayId) {
-
 
246377
        if (!(this_present_gatewayId && that_present_gatewayId))
-
 
246378
          return false;
-
 
246379
        if (this.gatewayId != that.gatewayId)
-
 
246380
          return false;
-
 
246381
      }
-
 
246382
 
-
 
246383
      return true;
-
 
246384
    }
-
 
246385
 
-
 
246386
    @Override
-
 
246387
    public int hashCode() {
-
 
246388
      return 0;
-
 
246389
    }
-
 
246390
 
-
 
246391
    public int compareTo(createPayment_args other) {
-
 
246392
      if (!getClass().equals(other.getClass())) {
-
 
246393
        return getClass().getName().compareTo(other.getClass().getName());
-
 
246394
      }
-
 
246395
 
-
 
246396
      int lastComparison = 0;
-
 
246397
      createPayment_args typedOther = (createPayment_args)other;
-
 
246398
 
-
 
246399
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
246400
      if (lastComparison != 0) {
-
 
246401
        return lastComparison;
-
 
246402
      }
-
 
246403
      if (isSetUserId()) {
-
 
246404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
246405
        if (lastComparison != 0) {
-
 
246406
          return lastComparison;
-
 
246407
        }
-
 
246408
      }
-
 
246409
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
-
 
246410
      if (lastComparison != 0) {
-
 
246411
        return lastComparison;
-
 
246412
      }
-
 
246413
      if (isSetTxnId()) {
-
 
246414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
-
 
246415
        if (lastComparison != 0) {
-
 
246416
          return lastComparison;
-
 
246417
        }
-
 
246418
      }
-
 
246419
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
-
 
246420
      if (lastComparison != 0) {
-
 
246421
        return lastComparison;
-
 
246422
      }
-
 
246423
      if (isSetGatewayId()) {
-
 
246424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
-
 
246425
        if (lastComparison != 0) {
-
 
246426
          return lastComparison;
-
 
246427
        }
-
 
246428
      }
-
 
246429
      return 0;
-
 
246430
    }
-
 
246431
 
-
 
246432
    public _Fields fieldForId(int fieldId) {
-
 
246433
      return _Fields.findByThriftId(fieldId);
-
 
246434
    }
-
 
246435
 
-
 
246436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
246437
      org.apache.thrift.protocol.TField field;
-
 
246438
      iprot.readStructBegin();
-
 
246439
      while (true)
-
 
246440
      {
-
 
246441
        field = iprot.readFieldBegin();
-
 
246442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
246443
          break;
-
 
246444
        }
-
 
246445
        switch (field.id) {
-
 
246446
          case 1: // USER_ID
-
 
246447
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
246448
              this.userId = iprot.readI64();
-
 
246449
              setUserIdIsSet(true);
-
 
246450
            } else { 
-
 
246451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
246452
            }
-
 
246453
            break;
-
 
246454
          case 2: // TXN_ID
-
 
246455
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
246456
              this.txnId = iprot.readI64();
-
 
246457
              setTxnIdIsSet(true);
-
 
246458
            } else { 
-
 
246459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
246460
            }
-
 
246461
            break;
-
 
246462
          case 3: // GATEWAY_ID
-
 
246463
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
246464
              this.gatewayId = iprot.readI32();
-
 
246465
              setGatewayIdIsSet(true);
-
 
246466
            } else { 
-
 
246467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
246468
            }
-
 
246469
            break;
-
 
246470
          default:
-
 
246471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
246472
        }
-
 
246473
        iprot.readFieldEnd();
-
 
246474
      }
-
 
246475
      iprot.readStructEnd();
-
 
246476
      validate();
-
 
246477
    }
-
 
246478
 
-
 
246479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
246480
      validate();
-
 
246481
 
-
 
246482
      oprot.writeStructBegin(STRUCT_DESC);
-
 
246483
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
246484
      oprot.writeI64(this.userId);
-
 
246485
      oprot.writeFieldEnd();
-
 
246486
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
-
 
246487
      oprot.writeI64(this.txnId);
-
 
246488
      oprot.writeFieldEnd();
-
 
246489
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
-
 
246490
      oprot.writeI32(this.gatewayId);
-
 
246491
      oprot.writeFieldEnd();
-
 
246492
      oprot.writeFieldStop();
-
 
246493
      oprot.writeStructEnd();
-
 
246494
    }
-
 
246495
 
-
 
246496
    @Override
-
 
246497
    public String toString() {
-
 
246498
      StringBuilder sb = new StringBuilder("createPayment_args(");
-
 
246499
      boolean first = true;
-
 
246500
 
-
 
246501
      sb.append("userId:");
-
 
246502
      sb.append(this.userId);
-
 
246503
      first = false;
-
 
246504
      if (!first) sb.append(", ");
-
 
246505
      sb.append("txnId:");
-
 
246506
      sb.append(this.txnId);
-
 
246507
      first = false;
-
 
246508
      if (!first) sb.append(", ");
-
 
246509
      sb.append("gatewayId:");
-
 
246510
      sb.append(this.gatewayId);
-
 
246511
      first = false;
-
 
246512
      sb.append(")");
-
 
246513
      return sb.toString();
-
 
246514
    }
-
 
246515
 
-
 
246516
    public void validate() throws org.apache.thrift.TException {
-
 
246517
      // check for required fields
-
 
246518
    }
-
 
246519
 
-
 
246520
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
246521
      try {
-
 
246522
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
246523
      } catch (org.apache.thrift.TException te) {
-
 
246524
        throw new java.io.IOException(te);
-
 
246525
      }
-
 
246526
    }
-
 
246527
 
-
 
246528
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
246529
      try {
-
 
246530
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
246531
        __isset_bit_vector = new BitSet(1);
-
 
246532
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
246533
      } catch (org.apache.thrift.TException te) {
-
 
246534
        throw new java.io.IOException(te);
-
 
246535
      }
-
 
246536
    }
-
 
246537
 
-
 
246538
  }
-
 
246539
 
-
 
246540
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
-
 
246541
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
-
 
246542
 
-
 
246543
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
246544
 
-
 
246545
    private long success; // required
-
 
246546
 
-
 
246547
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
246548
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
246549
      SUCCESS((short)0, "success");
-
 
246550
 
-
 
246551
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
246552
 
-
 
246553
      static {
-
 
246554
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
246555
          byName.put(field.getFieldName(), field);
-
 
246556
        }
-
 
246557
      }
-
 
246558
 
-
 
246559
      /**
-
 
246560
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
246561
       */
-
 
246562
      public static _Fields findByThriftId(int fieldId) {
-
 
246563
        switch(fieldId) {
-
 
246564
          case 0: // SUCCESS
-
 
246565
            return SUCCESS;
-
 
246566
          default:
-
 
246567
            return null;
-
 
246568
        }
-
 
246569
      }
-
 
246570
 
-
 
246571
      /**
-
 
246572
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
246573
       * if it is not found.
-
 
246574
       */
-
 
246575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
246576
        _Fields fields = findByThriftId(fieldId);
-
 
246577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
246578
        return fields;
-
 
246579
      }
-
 
246580
 
-
 
246581
      /**
-
 
246582
       * Find the _Fields constant that matches name, or null if its not found.
-
 
246583
       */
-
 
246584
      public static _Fields findByName(String name) {
-
 
246585
        return byName.get(name);
-
 
246586
      }
-
 
246587
 
-
 
246588
      private final short _thriftId;
-
 
246589
      private final String _fieldName;
-
 
246590
 
-
 
246591
      _Fields(short thriftId, String fieldName) {
-
 
246592
        _thriftId = thriftId;
-
 
246593
        _fieldName = fieldName;
-
 
246594
      }
-
 
246595
 
-
 
246596
      public short getThriftFieldId() {
-
 
246597
        return _thriftId;
-
 
246598
      }
-
 
246599
 
-
 
246600
      public String getFieldName() {
-
 
246601
        return _fieldName;
-
 
246602
      }
-
 
246603
    }
-
 
246604
 
-
 
246605
    // isset id assignments
-
 
246606
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
246607
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
246608
 
-
 
246609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
246610
    static {
-
 
246611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
246612
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
246614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
246615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
-
 
246616
    }
-
 
246617
 
-
 
246618
    public createPayment_result() {
-
 
246619
    }
-
 
246620
 
-
 
246621
    public createPayment_result(
-
 
246622
      long success)
-
 
246623
    {
-
 
246624
      this();
-
 
246625
      this.success = success;
-
 
246626
      setSuccessIsSet(true);
-
 
246627
    }
-
 
246628
 
-
 
246629
    /**
-
 
246630
     * Performs a deep copy on <i>other</i>.
-
 
246631
     */
-
 
246632
    public createPayment_result(createPayment_result other) {
-
 
246633
      __isset_bit_vector.clear();
-
 
246634
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
246635
      this.success = other.success;
-
 
246636
    }
-
 
246637
 
-
 
246638
    public createPayment_result deepCopy() {
-
 
246639
      return new createPayment_result(this);
-
 
246640
    }
-
 
246641
 
-
 
246642
    @Override
-
 
246643
    public void clear() {
-
 
246644
      setSuccessIsSet(false);
-
 
246645
      this.success = 0;
-
 
246646
    }
-
 
246647
 
-
 
246648
    public long getSuccess() {
-
 
246649
      return this.success;
-
 
246650
    }
-
 
246651
 
-
 
246652
    public void setSuccess(long success) {
-
 
246653
      this.success = success;
-
 
246654
      setSuccessIsSet(true);
-
 
246655
    }
-
 
246656
 
-
 
246657
    public void unsetSuccess() {
-
 
246658
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
246659
    }
-
 
246660
 
-
 
246661
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
246662
    public boolean isSetSuccess() {
-
 
246663
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
246664
    }
-
 
246665
 
-
 
246666
    public void setSuccessIsSet(boolean value) {
-
 
246667
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
246668
    }
-
 
246669
 
-
 
246670
    public void setFieldValue(_Fields field, Object value) {
-
 
246671
      switch (field) {
-
 
246672
      case SUCCESS:
-
 
246673
        if (value == null) {
-
 
246674
          unsetSuccess();
-
 
246675
        } else {
-
 
246676
          setSuccess((Long)value);
-
 
246677
        }
-
 
246678
        break;
-
 
246679
 
-
 
246680
      }
-
 
246681
    }
-
 
246682
 
-
 
246683
    public Object getFieldValue(_Fields field) {
-
 
246684
      switch (field) {
-
 
246685
      case SUCCESS:
-
 
246686
        return Long.valueOf(getSuccess());
-
 
246687
 
-
 
246688
      }
-
 
246689
      throw new IllegalStateException();
-
 
246690
    }
-
 
246691
 
-
 
246692
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
246693
    public boolean isSet(_Fields field) {
-
 
246694
      if (field == null) {
-
 
246695
        throw new IllegalArgumentException();
-
 
246696
      }
-
 
246697
 
-
 
246698
      switch (field) {
-
 
246699
      case SUCCESS:
-
 
246700
        return isSetSuccess();
-
 
246701
      }
-
 
246702
      throw new IllegalStateException();
-
 
246703
    }
-
 
246704
 
-
 
246705
    @Override
-
 
246706
    public boolean equals(Object that) {
-
 
246707
      if (that == null)
-
 
246708
        return false;
-
 
246709
      if (that instanceof createPayment_result)
-
 
246710
        return this.equals((createPayment_result)that);
-
 
246711
      return false;
-
 
246712
    }
-
 
246713
 
-
 
246714
    public boolean equals(createPayment_result that) {
-
 
246715
      if (that == null)
-
 
246716
        return false;
-
 
246717
 
-
 
246718
      boolean this_present_success = true;
-
 
246719
      boolean that_present_success = true;
-
 
246720
      if (this_present_success || that_present_success) {
-
 
246721
        if (!(this_present_success && that_present_success))
-
 
246722
          return false;
-
 
246723
        if (this.success != that.success)
-
 
246724
          return false;
-
 
246725
      }
-
 
246726
 
-
 
246727
      return true;
-
 
246728
    }
-
 
246729
 
-
 
246730
    @Override
-
 
246731
    public int hashCode() {
-
 
246732
      return 0;
-
 
246733
    }
-
 
246734
 
-
 
246735
    public int compareTo(createPayment_result other) {
-
 
246736
      if (!getClass().equals(other.getClass())) {
-
 
246737
        return getClass().getName().compareTo(other.getClass().getName());
-
 
246738
      }
-
 
246739
 
-
 
246740
      int lastComparison = 0;
-
 
246741
      createPayment_result typedOther = (createPayment_result)other;
-
 
246742
 
-
 
246743
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
246744
      if (lastComparison != 0) {
-
 
246745
        return lastComparison;
-
 
246746
      }
-
 
246747
      if (isSetSuccess()) {
-
 
246748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
246749
        if (lastComparison != 0) {
-
 
246750
          return lastComparison;
-
 
246751
        }
-
 
246752
      }
-
 
246753
      return 0;
-
 
246754
    }
-
 
246755
 
-
 
246756
    public _Fields fieldForId(int fieldId) {
-
 
246757
      return _Fields.findByThriftId(fieldId);
-
 
246758
    }
-
 
246759
 
-
 
246760
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
246761
      org.apache.thrift.protocol.TField field;
-
 
246762
      iprot.readStructBegin();
-
 
246763
      while (true)
-
 
246764
      {
-
 
246765
        field = iprot.readFieldBegin();
-
 
246766
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
246767
          break;
-
 
246768
        }
-
 
246769
        switch (field.id) {
-
 
246770
          case 0: // SUCCESS
-
 
246771
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
246772
              this.success = iprot.readI64();
-
 
246773
              setSuccessIsSet(true);
-
 
246774
            } else { 
-
 
246775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
246776
            }
-
 
246777
            break;
-
 
246778
          default:
-
 
246779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
246780
        }
-
 
246781
        iprot.readFieldEnd();
-
 
246782
      }
-
 
246783
      iprot.readStructEnd();
-
 
246784
      validate();
-
 
246785
    }
-
 
246786
 
-
 
246787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
246788
      oprot.writeStructBegin(STRUCT_DESC);
-
 
246789
 
-
 
246790
      if (this.isSetSuccess()) {
-
 
246791
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
246792
        oprot.writeI64(this.success);
-
 
246793
        oprot.writeFieldEnd();
-
 
246794
      }
-
 
246795
      oprot.writeFieldStop();
-
 
246796
      oprot.writeStructEnd();
-
 
246797
    }
-
 
246798
 
-
 
246799
    @Override
-
 
246800
    public String toString() {
-
 
246801
      StringBuilder sb = new StringBuilder("createPayment_result(");
-
 
246802
      boolean first = true;
-
 
246803
 
-
 
246804
      sb.append("success:");
-
 
246805
      sb.append(this.success);
-
 
246806
      first = false;
-
 
246807
      sb.append(")");
-
 
246808
      return sb.toString();
-
 
246809
    }
-
 
246810
 
-
 
246811
    public void validate() throws org.apache.thrift.TException {
-
 
246812
      // check for required fields
-
 
246813
    }
-
 
246814
 
-
 
246815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
246816
      try {
-
 
246817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
246818
      } catch (org.apache.thrift.TException te) {
-
 
246819
        throw new java.io.IOException(te);
-
 
246820
      }
-
 
246821
    }
-
 
246822
 
-
 
246823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
246824
      try {
-
 
246825
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
246826
      } catch (org.apache.thrift.TException te) {
-
 
246827
        throw new java.io.IOException(te);
-
 
246828
      }
-
 
246829
    }
-
 
246830
 
-
 
246831
  }
-
 
246832
 
-
 
246833
  public static class calculatePaymentAmount_args implements org.apache.thrift.TBase<calculatePaymentAmount_args, calculatePaymentAmount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
246834
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("calculatePaymentAmount_args");
-
 
246835
 
-
 
246836
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
246837
 
-
 
246838
    private long txnId; // required
-
 
246839
 
-
 
246840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
246841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
246842
      TXN_ID((short)1, "txnId");
-
 
246843
 
-
 
246844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
246845
 
-
 
246846
      static {
-
 
246847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
246848
          byName.put(field.getFieldName(), field);
-
 
246849
        }
-
 
246850
      }
-
 
246851
 
-
 
246852
      /**
-
 
246853
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
246854
       */
-
 
246855
      public static _Fields findByThriftId(int fieldId) {
-
 
246856
        switch(fieldId) {
-
 
246857
          case 1: // TXN_ID
-
 
246858
            return TXN_ID;
-
 
246859
          default:
-
 
246860
            return null;
-
 
246861
        }
-
 
246862
      }
-
 
246863
 
-
 
246864
      /**
-
 
246865
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
246866
       * if it is not found.
-
 
246867
       */
-
 
246868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
246869
        _Fields fields = findByThriftId(fieldId);
-
 
246870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
246871
        return fields;
-
 
246872
      }
-
 
246873
 
-
 
246874
      /**
-
 
246875
       * Find the _Fields constant that matches name, or null if its not found.
-
 
246876
       */
-
 
246877
      public static _Fields findByName(String name) {
-
 
246878
        return byName.get(name);
-
 
246879
      }
-
 
246880
 
-
 
246881
      private final short _thriftId;
-
 
246882
      private final String _fieldName;
-
 
246883
 
-
 
246884
      _Fields(short thriftId, String fieldName) {
-
 
246885
        _thriftId = thriftId;
-
 
246886
        _fieldName = fieldName;
-
 
246887
      }
-
 
246888
 
-
 
246889
      public short getThriftFieldId() {
-
 
246890
        return _thriftId;
-
 
246891
      }
-
 
246892
 
-
 
246893
      public String getFieldName() {
-
 
246894
        return _fieldName;
-
 
246895
      }
-
 
246896
    }
-
 
246897
 
-
 
246898
    // isset id assignments
-
 
246899
    private static final int __TXNID_ISSET_ID = 0;
-
 
246900
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
246901
 
-
 
246902
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
246903
    static {
-
 
246904
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
246905
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
246906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
246907
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
246908
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(calculatePaymentAmount_args.class, metaDataMap);
-
 
246909
    }
-
 
246910
 
-
 
246911
    public calculatePaymentAmount_args() {
-
 
246912
    }
-
 
246913
 
-
 
246914
    public calculatePaymentAmount_args(
-
 
246915
      long txnId)
-
 
246916
    {
-
 
246917
      this();
-
 
246918
      this.txnId = txnId;
-
 
246919
      setTxnIdIsSet(true);
-
 
246920
    }
-
 
246921
 
-
 
246922
    /**
-
 
246923
     * Performs a deep copy on <i>other</i>.
-
 
246924
     */
-
 
246925
    public calculatePaymentAmount_args(calculatePaymentAmount_args other) {
-
 
246926
      __isset_bit_vector.clear();
-
 
246927
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
246928
      this.txnId = other.txnId;
-
 
246929
    }
-
 
246930
 
-
 
246931
    public calculatePaymentAmount_args deepCopy() {
-
 
246932
      return new calculatePaymentAmount_args(this);
-
 
246933
    }
-
 
246934
 
-
 
246935
    @Override
-
 
246936
    public void clear() {
-
 
246937
      setTxnIdIsSet(false);
-
 
246938
      this.txnId = 0;
-
 
246939
    }
-
 
246940
 
-
 
246941
    public long getTxnId() {
-
 
246942
      return this.txnId;
-
 
246943
    }
-
 
246944
 
-
 
246945
    public void setTxnId(long txnId) {
-
 
246946
      this.txnId = txnId;
-
 
246947
      setTxnIdIsSet(true);
-
 
246948
    }
-
 
246949
 
-
 
246950
    public void unsetTxnId() {
-
 
246951
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
-
 
246952
    }
-
 
246953
 
-
 
246954
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
-
 
246955
    public boolean isSetTxnId() {
-
 
246956
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
-
 
246957
    }
-
 
246958
 
-
 
246959
    public void setTxnIdIsSet(boolean value) {
-
 
246960
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
-
 
246961
    }
-
 
246962
 
-
 
246963
    public void setFieldValue(_Fields field, Object value) {
-
 
246964
      switch (field) {
-
 
246965
      case TXN_ID:
-
 
246966
        if (value == null) {
-
 
246967
          unsetTxnId();
-
 
246968
        } else {
-
 
246969
          setTxnId((Long)value);
-
 
246970
        }
-
 
246971
        break;
-
 
246972
 
-
 
246973
      }
-
 
246974
    }
-
 
246975
 
-
 
246976
    public Object getFieldValue(_Fields field) {
-
 
246977
      switch (field) {
-
 
246978
      case TXN_ID:
-
 
246979
        return Long.valueOf(getTxnId());
-
 
246980
 
-
 
246981
      }
-
 
246982
      throw new IllegalStateException();
-
 
246983
    }
-
 
246984
 
-
 
246985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
246986
    public boolean isSet(_Fields field) {
-
 
246987
      if (field == null) {
-
 
246988
        throw new IllegalArgumentException();
-
 
246989
      }
-
 
246990
 
-
 
246991
      switch (field) {
-
 
246992
      case TXN_ID:
-
 
246993
        return isSetTxnId();
-
 
246994
      }
-
 
246995
      throw new IllegalStateException();
-
 
246996
    }
-
 
246997
 
-
 
246998
    @Override
-
 
246999
    public boolean equals(Object that) {
-
 
247000
      if (that == null)
-
 
247001
        return false;
-
 
247002
      if (that instanceof calculatePaymentAmount_args)
-
 
247003
        return this.equals((calculatePaymentAmount_args)that);
-
 
247004
      return false;
-
 
247005
    }
-
 
247006
 
-
 
247007
    public boolean equals(calculatePaymentAmount_args that) {
-
 
247008
      if (that == null)
-
 
247009
        return false;
-
 
247010
 
-
 
247011
      boolean this_present_txnId = true;
-
 
247012
      boolean that_present_txnId = true;
-
 
247013
      if (this_present_txnId || that_present_txnId) {
-
 
247014
        if (!(this_present_txnId && that_present_txnId))
-
 
247015
          return false;
-
 
247016
        if (this.txnId != that.txnId)
-
 
247017
          return false;
-
 
247018
      }
-
 
247019
 
-
 
247020
      return true;
-
 
247021
    }
-
 
247022
 
-
 
247023
    @Override
-
 
247024
    public int hashCode() {
-
 
247025
      return 0;
-
 
247026
    }
-
 
247027
 
-
 
247028
    public int compareTo(calculatePaymentAmount_args other) {
-
 
247029
      if (!getClass().equals(other.getClass())) {
-
 
247030
        return getClass().getName().compareTo(other.getClass().getName());
-
 
247031
      }
-
 
247032
 
-
 
247033
      int lastComparison = 0;
-
 
247034
      calculatePaymentAmount_args typedOther = (calculatePaymentAmount_args)other;
-
 
247035
 
-
 
247036
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
-
 
247037
      if (lastComparison != 0) {
-
 
247038
        return lastComparison;
-
 
247039
      }
-
 
247040
      if (isSetTxnId()) {
-
 
247041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
-
 
247042
        if (lastComparison != 0) {
-
 
247043
          return lastComparison;
-
 
247044
        }
-
 
247045
      }
-
 
247046
      return 0;
-
 
247047
    }
-
 
247048
 
-
 
247049
    public _Fields fieldForId(int fieldId) {
-
 
247050
      return _Fields.findByThriftId(fieldId);
-
 
247051
    }
-
 
247052
 
-
 
247053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
247054
      org.apache.thrift.protocol.TField field;
-
 
247055
      iprot.readStructBegin();
-
 
247056
      while (true)
-
 
247057
      {
-
 
247058
        field = iprot.readFieldBegin();
-
 
247059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
247060
          break;
-
 
247061
        }
-
 
247062
        switch (field.id) {
-
 
247063
          case 1: // TXN_ID
-
 
247064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
247065
              this.txnId = iprot.readI64();
-
 
247066
              setTxnIdIsSet(true);
-
 
247067
            } else { 
-
 
247068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247069
            }
-
 
247070
            break;
-
 
247071
          default:
-
 
247072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247073
        }
-
 
247074
        iprot.readFieldEnd();
-
 
247075
      }
-
 
247076
      iprot.readStructEnd();
-
 
247077
      validate();
-
 
247078
    }
-
 
247079
 
-
 
247080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
247081
      validate();
-
 
247082
 
-
 
247083
      oprot.writeStructBegin(STRUCT_DESC);
-
 
247084
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
-
 
247085
      oprot.writeI64(this.txnId);
-
 
247086
      oprot.writeFieldEnd();
-
 
247087
      oprot.writeFieldStop();
-
 
247088
      oprot.writeStructEnd();
-
 
247089
    }
-
 
247090
 
-
 
247091
    @Override
-
 
247092
    public String toString() {
-
 
247093
      StringBuilder sb = new StringBuilder("calculatePaymentAmount_args(");
-
 
247094
      boolean first = true;
-
 
247095
 
-
 
247096
      sb.append("txnId:");
-
 
247097
      sb.append(this.txnId);
-
 
247098
      first = false;
-
 
247099
      sb.append(")");
-
 
247100
      return sb.toString();
-
 
247101
    }
-
 
247102
 
-
 
247103
    public void validate() throws org.apache.thrift.TException {
-
 
247104
      // check for required fields
-
 
247105
    }
-
 
247106
 
-
 
247107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
247108
      try {
-
 
247109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
247110
      } catch (org.apache.thrift.TException te) {
-
 
247111
        throw new java.io.IOException(te);
-
 
247112
      }
-
 
247113
    }
-
 
247114
 
-
 
247115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
247116
      try {
-
 
247117
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
247118
        __isset_bit_vector = new BitSet(1);
-
 
247119
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
247120
      } catch (org.apache.thrift.TException te) {
-
 
247121
        throw new java.io.IOException(te);
-
 
247122
      }
-
 
247123
    }
-
 
247124
 
-
 
247125
  }
-
 
247126
 
-
 
247127
  public static class calculatePaymentAmount_result implements org.apache.thrift.TBase<calculatePaymentAmount_result, calculatePaymentAmount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
247128
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("calculatePaymentAmount_result");
-
 
247129
 
-
 
247130
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
-
 
247131
 
-
 
247132
    private double success; // required
-
 
247133
 
-
 
247134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
247135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
247136
      SUCCESS((short)0, "success");
-
 
247137
 
-
 
247138
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
247139
 
-
 
247140
      static {
-
 
247141
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
247142
          byName.put(field.getFieldName(), field);
-
 
247143
        }
-
 
247144
      }
-
 
247145
 
-
 
247146
      /**
-
 
247147
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
247148
       */
-
 
247149
      public static _Fields findByThriftId(int fieldId) {
-
 
247150
        switch(fieldId) {
-
 
247151
          case 0: // SUCCESS
-
 
247152
            return SUCCESS;
-
 
247153
          default:
-
 
247154
            return null;
-
 
247155
        }
-
 
247156
      }
-
 
247157
 
-
 
247158
      /**
-
 
247159
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
247160
       * if it is not found.
-
 
247161
       */
-
 
247162
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
247163
        _Fields fields = findByThriftId(fieldId);
-
 
247164
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
247165
        return fields;
-
 
247166
      }
-
 
247167
 
-
 
247168
      /**
-
 
247169
       * Find the _Fields constant that matches name, or null if its not found.
-
 
247170
       */
-
 
247171
      public static _Fields findByName(String name) {
-
 
247172
        return byName.get(name);
-
 
247173
      }
-
 
247174
 
-
 
247175
      private final short _thriftId;
-
 
247176
      private final String _fieldName;
-
 
247177
 
-
 
247178
      _Fields(short thriftId, String fieldName) {
-
 
247179
        _thriftId = thriftId;
-
 
247180
        _fieldName = fieldName;
-
 
247181
      }
-
 
247182
 
-
 
247183
      public short getThriftFieldId() {
-
 
247184
        return _thriftId;
-
 
247185
      }
-
 
247186
 
-
 
247187
      public String getFieldName() {
-
 
247188
        return _fieldName;
-
 
247189
      }
-
 
247190
    }
-
 
247191
 
-
 
247192
    // isset id assignments
-
 
247193
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
247194
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
247195
 
-
 
247196
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
247197
    static {
-
 
247198
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
247199
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
247200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
247201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
247202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(calculatePaymentAmount_result.class, metaDataMap);
-
 
247203
    }
-
 
247204
 
-
 
247205
    public calculatePaymentAmount_result() {
-
 
247206
    }
-
 
247207
 
-
 
247208
    public calculatePaymentAmount_result(
-
 
247209
      double success)
-
 
247210
    {
-
 
247211
      this();
-
 
247212
      this.success = success;
-
 
247213
      setSuccessIsSet(true);
-
 
247214
    }
-
 
247215
 
-
 
247216
    /**
-
 
247217
     * Performs a deep copy on <i>other</i>.
-
 
247218
     */
-
 
247219
    public calculatePaymentAmount_result(calculatePaymentAmount_result other) {
-
 
247220
      __isset_bit_vector.clear();
-
 
247221
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
247222
      this.success = other.success;
-
 
247223
    }
-
 
247224
 
-
 
247225
    public calculatePaymentAmount_result deepCopy() {
-
 
247226
      return new calculatePaymentAmount_result(this);
-
 
247227
    }
-
 
247228
 
-
 
247229
    @Override
-
 
247230
    public void clear() {
-
 
247231
      setSuccessIsSet(false);
-
 
247232
      this.success = 0.0;
-
 
247233
    }
-
 
247234
 
-
 
247235
    public double getSuccess() {
-
 
247236
      return this.success;
-
 
247237
    }
-
 
247238
 
-
 
247239
    public void setSuccess(double success) {
-
 
247240
      this.success = success;
-
 
247241
      setSuccessIsSet(true);
-
 
247242
    }
-
 
247243
 
-
 
247244
    public void unsetSuccess() {
-
 
247245
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
247246
    }
-
 
247247
 
-
 
247248
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
247249
    public boolean isSetSuccess() {
-
 
247250
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
247251
    }
-
 
247252
 
-
 
247253
    public void setSuccessIsSet(boolean value) {
-
 
247254
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
247255
    }
-
 
247256
 
-
 
247257
    public void setFieldValue(_Fields field, Object value) {
-
 
247258
      switch (field) {
-
 
247259
      case SUCCESS:
-
 
247260
        if (value == null) {
-
 
247261
          unsetSuccess();
-
 
247262
        } else {
-
 
247263
          setSuccess((Double)value);
-
 
247264
        }
-
 
247265
        break;
-
 
247266
 
-
 
247267
      }
-
 
247268
    }
-
 
247269
 
-
 
247270
    public Object getFieldValue(_Fields field) {
-
 
247271
      switch (field) {
-
 
247272
      case SUCCESS:
-
 
247273
        return Double.valueOf(getSuccess());
-
 
247274
 
-
 
247275
      }
-
 
247276
      throw new IllegalStateException();
-
 
247277
    }
-
 
247278
 
-
 
247279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
247280
    public boolean isSet(_Fields field) {
-
 
247281
      if (field == null) {
-
 
247282
        throw new IllegalArgumentException();
-
 
247283
      }
-
 
247284
 
-
 
247285
      switch (field) {
-
 
247286
      case SUCCESS:
-
 
247287
        return isSetSuccess();
-
 
247288
      }
-
 
247289
      throw new IllegalStateException();
-
 
247290
    }
-
 
247291
 
-
 
247292
    @Override
-
 
247293
    public boolean equals(Object that) {
-
 
247294
      if (that == null)
-
 
247295
        return false;
-
 
247296
      if (that instanceof calculatePaymentAmount_result)
-
 
247297
        return this.equals((calculatePaymentAmount_result)that);
-
 
247298
      return false;
-
 
247299
    }
-
 
247300
 
-
 
247301
    public boolean equals(calculatePaymentAmount_result that) {
-
 
247302
      if (that == null)
-
 
247303
        return false;
-
 
247304
 
-
 
247305
      boolean this_present_success = true;
-
 
247306
      boolean that_present_success = true;
-
 
247307
      if (this_present_success || that_present_success) {
-
 
247308
        if (!(this_present_success && that_present_success))
-
 
247309
          return false;
-
 
247310
        if (this.success != that.success)
-
 
247311
          return false;
-
 
247312
      }
-
 
247313
 
-
 
247314
      return true;
-
 
247315
    }
-
 
247316
 
-
 
247317
    @Override
-
 
247318
    public int hashCode() {
-
 
247319
      return 0;
-
 
247320
    }
-
 
247321
 
-
 
247322
    public int compareTo(calculatePaymentAmount_result other) {
-
 
247323
      if (!getClass().equals(other.getClass())) {
-
 
247324
        return getClass().getName().compareTo(other.getClass().getName());
-
 
247325
      }
-
 
247326
 
-
 
247327
      int lastComparison = 0;
-
 
247328
      calculatePaymentAmount_result typedOther = (calculatePaymentAmount_result)other;
-
 
247329
 
-
 
247330
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
247331
      if (lastComparison != 0) {
-
 
247332
        return lastComparison;
-
 
247333
      }
-
 
247334
      if (isSetSuccess()) {
-
 
247335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
247336
        if (lastComparison != 0) {
-
 
247337
          return lastComparison;
-
 
247338
        }
-
 
247339
      }
-
 
247340
      return 0;
-
 
247341
    }
-
 
247342
 
-
 
247343
    public _Fields fieldForId(int fieldId) {
-
 
247344
      return _Fields.findByThriftId(fieldId);
-
 
247345
    }
-
 
247346
 
-
 
247347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
247348
      org.apache.thrift.protocol.TField field;
-
 
247349
      iprot.readStructBegin();
-
 
247350
      while (true)
-
 
247351
      {
-
 
247352
        field = iprot.readFieldBegin();
-
 
247353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
247354
          break;
-
 
247355
        }
-
 
247356
        switch (field.id) {
-
 
247357
          case 0: // SUCCESS
-
 
247358
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
247359
              this.success = iprot.readDouble();
-
 
247360
              setSuccessIsSet(true);
-
 
247361
            } else { 
-
 
247362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247363
            }
-
 
247364
            break;
-
 
247365
          default:
-
 
247366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247367
        }
-
 
247368
        iprot.readFieldEnd();
-
 
247369
      }
-
 
247370
      iprot.readStructEnd();
-
 
247371
      validate();
-
 
247372
    }
-
 
247373
 
-
 
247374
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
247375
      oprot.writeStructBegin(STRUCT_DESC);
-
 
247376
 
-
 
247377
      if (this.isSetSuccess()) {
-
 
247378
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
247379
        oprot.writeDouble(this.success);
-
 
247380
        oprot.writeFieldEnd();
-
 
247381
      }
-
 
247382
      oprot.writeFieldStop();
-
 
247383
      oprot.writeStructEnd();
-
 
247384
    }
-
 
247385
 
-
 
247386
    @Override
-
 
247387
    public String toString() {
-
 
247388
      StringBuilder sb = new StringBuilder("calculatePaymentAmount_result(");
-
 
247389
      boolean first = true;
-
 
247390
 
-
 
247391
      sb.append("success:");
-
 
247392
      sb.append(this.success);
-
 
247393
      first = false;
-
 
247394
      sb.append(")");
-
 
247395
      return sb.toString();
-
 
247396
    }
-
 
247397
 
-
 
247398
    public void validate() throws org.apache.thrift.TException {
245897
      // check for required fields
247399
      // check for required fields
245898
    }
247400
    }
245899
 
247401
 
245900
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
247402
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
245901
      try {
247403
      try {