Subversion Repositories SmartDukaan

Rev

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

Rev 4008 Rev 4141
Line 25... Line 25...
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
26
 
27
    /**
27
    /**
28
     * create a new payment and return payment id, throws an exception if gateway is not active
28
     * create a new payment and return payment id, throws an exception if gateway is not active
29
     * 
29
     * 
30
     * 
-
 
31
     * @param userId
30
     * @param userId
32
     * @param amount
31
     * @param amount
33
     * @param gatewayId
32
     * @param gatewayId
34
     * @param txnId
33
     * @param txnId
35
     */
34
     */
36
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
35
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
37
 
36
 
38
    /**
37
    /**
39
     * get payment for user. If status and gateway are null, it is ignored. Same for times as well.
38
     * Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
40
     * 
-
 
41
     * 
39
     * 
42
     * @param userId
40
     * @param userId
43
     * @param fromTime
41
     * @param fromTime
44
     * @param toTime
42
     * @param toTime
45
     * @param status
43
     * @param status
46
     * @param gatewayId
44
     * @param gatewayId
47
     */
45
     */
48
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
46
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
49
 
47
 
50
    /**
48
    /**
51
     * get all payments for user. If gatewayId is 0, then it is ignored while filtering.
49
     * Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
52
     * 
-
 
53
     * 
50
     * 
54
     * @param fromTime
51
     * @param fromTime
55
     * @param toTime
52
     * @param toTime
56
     * @param status
53
     * @param status
57
     * @param gatewayId
54
     * @param gatewayId
58
     */
55
     */
59
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
56
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
60
 
57
 
61
    /**
58
    /**
62
     * Get a particular gateway
59
     * Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
63
     * 
60
     * 
-
 
61
     * @param fromTime
-
 
62
     * @param toTime
-
 
63
     * @param gatewayId
-
 
64
     */
-
 
65
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException;
-
 
66
 
-
 
67
    /**
-
 
68
     * Get the gateway for the given id.
64
     * 
69
     * 
65
     * @param id
70
     * @param id
66
     */
71
     */
67
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
72
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
68
 
73
 
Line 187... Line 192...
187
 
192
 
188
    public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException;
193
    public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException;
189
 
194
 
190
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayments_call> resultHandler) throws org.apache.thrift.TException;
195
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayments_call> resultHandler) throws org.apache.thrift.TException;
191
 
196
 
-
 
197
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
-
 
198
 
192
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
199
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
193
 
200
 
194
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
201
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
195
 
202
 
196
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
203
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
Line 321... Line 328...
321
        throw result.pe;
328
        throw result.pe;
322
      }
329
      }
323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
330
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
324
    }
331
    }
325
 
332
 
-
 
333
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
-
 
334
    {
-
 
335
      send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
-
 
336
      return recv_getPaymentsByCapturedDate();
-
 
337
    }
-
 
338
 
-
 
339
    public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
-
 
340
    {
-
 
341
      getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
-
 
342
      args.setFromTime(fromTime);
-
 
343
      args.setToTime(toTime);
-
 
344
      args.setGatewayId(gatewayId);
-
 
345
      sendBase("getPaymentsByCapturedDate", args);
-
 
346
    }
-
 
347
 
-
 
348
    public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
-
 
349
    {
-
 
350
      getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
-
 
351
      receiveBase(result, "getPaymentsByCapturedDate");
-
 
352
      if (result.isSetSuccess()) {
-
 
353
        return result.success;
-
 
354
      }
-
 
355
      if (result.pe != null) {
-
 
356
        throw result.pe;
-
 
357
      }
-
 
358
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
-
 
359
    }
-
 
360
 
326
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
361
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
327
    {
362
    {
328
      send_getPaymentGateway(id);
363
      send_getPaymentGateway(id);
329
      return recv_getPaymentGateway();
364
      return recv_getPaymentGateway();
330
    }
365
    }
Line 782... Line 817...
782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
783
        return (new Client(prot)).recv_getPayments();
818
        return (new Client(prot)).recv_getPayments();
784
      }
819
      }
785
    }
820
    }
786
 
821
 
-
 
822
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
-
 
823
      checkReady();
-
 
824
      getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
-
 
825
      this.___currentMethod = method_call;
-
 
826
      ___manager.call(method_call);
-
 
827
    }
-
 
828
 
-
 
829
    public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
830
      private long fromTime;
-
 
831
      private long toTime;
-
 
832
      private long gatewayId;
-
 
833
      public getPaymentsByCapturedDate_call(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_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 {
-
 
834
        super(client, protocolFactory, transport, resultHandler, false);
-
 
835
        this.fromTime = fromTime;
-
 
836
        this.toTime = toTime;
-
 
837
        this.gatewayId = gatewayId;
-
 
838
      }
-
 
839
 
-
 
840
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
841
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
842
        getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
-
 
843
        args.setFromTime(fromTime);
-
 
844
        args.setToTime(toTime);
-
 
845
        args.setGatewayId(gatewayId);
-
 
846
        args.write(prot);
-
 
847
        prot.writeMessageEnd();
-
 
848
      }
-
 
849
 
-
 
850
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
851
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
852
          throw new IllegalStateException("Method call not finished!");
-
 
853
        }
-
 
854
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
855
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
856
        return (new Client(prot)).recv_getPaymentsByCapturedDate();
-
 
857
      }
-
 
858
    }
-
 
859
 
787
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
860
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
788
      checkReady();
861
      checkReady();
789
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
862
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
790
      this.___currentMethod = method_call;
863
      this.___currentMethod = method_call;
791
      ___manager.call(method_call);
864
      ___manager.call(method_call);
Line 1233... Line 1306...
1233
 
1306
 
1234
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1307
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1235
      processMap.put("createPayment", new createPayment());
1308
      processMap.put("createPayment", new createPayment());
1236
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1309
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1237
      processMap.put("getPayments", new getPayments());
1310
      processMap.put("getPayments", new getPayments());
-
 
1311
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
1238
      processMap.put("getPaymentGateway", new getPaymentGateway());
1312
      processMap.put("getPaymentGateway", new getPaymentGateway());
1239
      processMap.put("getPayment", new getPayment());
1313
      processMap.put("getPayment", new getPayment());
1240
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
1314
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
1241
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1315
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1242
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1316
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
Line 1309... Line 1383...
1309
        }
1383
        }
1310
        return result;
1384
        return result;
1311
      }
1385
      }
1312
    }
1386
    }
1313
 
1387
 
-
 
1388
    private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
-
 
1389
      public getPaymentsByCapturedDate() {
-
 
1390
        super("getPaymentsByCapturedDate");
-
 
1391
      }
-
 
1392
 
-
 
1393
      protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
-
 
1394
        return new getPaymentsByCapturedDate_args();
-
 
1395
      }
-
 
1396
 
-
 
1397
      protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
-
 
1398
        getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
-
 
1399
        try {
-
 
1400
          result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
-
 
1401
        } catch (PaymentException pe) {
-
 
1402
          result.pe = pe;
-
 
1403
        }
-
 
1404
        return result;
-
 
1405
      }
-
 
1406
    }
-
 
1407
 
1314
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1408
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1315
      public getPaymentGateway() {
1409
      public getPaymentGateway() {
1316
        super("getPaymentGateway");
1410
        super("getPaymentGateway");
1317
      }
1411
      }
1318
 
1412
 
Line 2076... Line 2170...
2076
      }
2170
      }
2077
    }
2171
    }
2078
 
2172
 
2079
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2080
      try {
2174
      try {
-
 
2175
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
2176
        __isset_bit_vector = new BitSet(1);
2081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2082
      } catch (org.apache.thrift.TException te) {
2178
      } catch (org.apache.thrift.TException te) {
2083
        throw new java.io.IOException(te);
2179
        throw new java.io.IOException(te);
2084
      }
2180
      }
2085
    }
2181
    }
Line 4502... Line 4598...
4502
      }
4598
      }
4503
    }
4599
    }
4504
 
4600
 
4505
  }
4601
  }
4506
 
4602
 
-
 
4603
  public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable   {
-
 
4604
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
-
 
4605
 
-
 
4606
    private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
4607
    private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
4608
    private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
4609
 
-
 
4610
    private long fromTime; // required
-
 
4611
    private long toTime; // required
-
 
4612
    private long gatewayId; // required
-
 
4613
 
-
 
4614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
4615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
4616
      FROM_TIME((short)1, "fromTime"),
-
 
4617
      TO_TIME((short)2, "toTime"),
-
 
4618
      GATEWAY_ID((short)3, "gatewayId");
-
 
4619
 
-
 
4620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
4621
 
-
 
4622
      static {
-
 
4623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
4624
          byName.put(field.getFieldName(), field);
-
 
4625
        }
-
 
4626
      }
-
 
4627
 
-
 
4628
      /**
-
 
4629
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
4630
       */
-
 
4631
      public static _Fields findByThriftId(int fieldId) {
-
 
4632
        switch(fieldId) {
-
 
4633
          case 1: // FROM_TIME
-
 
4634
            return FROM_TIME;
-
 
4635
          case 2: // TO_TIME
-
 
4636
            return TO_TIME;
-
 
4637
          case 3: // GATEWAY_ID
-
 
4638
            return GATEWAY_ID;
-
 
4639
          default:
-
 
4640
            return null;
-
 
4641
        }
-
 
4642
      }
-
 
4643
 
-
 
4644
      /**
-
 
4645
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
4646
       * if it is not found.
-
 
4647
       */
-
 
4648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
4649
        _Fields fields = findByThriftId(fieldId);
-
 
4650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
4651
        return fields;
-
 
4652
      }
-
 
4653
 
-
 
4654
      /**
-
 
4655
       * Find the _Fields constant that matches name, or null if its not found.
-
 
4656
       */
-
 
4657
      public static _Fields findByName(String name) {
-
 
4658
        return byName.get(name);
-
 
4659
      }
-
 
4660
 
-
 
4661
      private final short _thriftId;
-
 
4662
      private final String _fieldName;
-
 
4663
 
-
 
4664
      _Fields(short thriftId, String fieldName) {
-
 
4665
        _thriftId = thriftId;
-
 
4666
        _fieldName = fieldName;
-
 
4667
      }
-
 
4668
 
-
 
4669
      public short getThriftFieldId() {
-
 
4670
        return _thriftId;
-
 
4671
      }
-
 
4672
 
-
 
4673
      public String getFieldName() {
-
 
4674
        return _fieldName;
-
 
4675
      }
-
 
4676
    }
-
 
4677
 
-
 
4678
    // isset id assignments
-
 
4679
    private static final int __FROMTIME_ISSET_ID = 0;
-
 
4680
    private static final int __TOTIME_ISSET_ID = 1;
-
 
4681
    private static final int __GATEWAYID_ISSET_ID = 2;
-
 
4682
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
4683
 
-
 
4684
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
4685
    static {
-
 
4686
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4687
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4689
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4691
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
4694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
-
 
4695
    }
-
 
4696
 
-
 
4697
    public getPaymentsByCapturedDate_args() {
-
 
4698
    }
-
 
4699
 
-
 
4700
    public getPaymentsByCapturedDate_args(
-
 
4701
      long fromTime,
-
 
4702
      long toTime,
-
 
4703
      long gatewayId)
-
 
4704
    {
-
 
4705
      this();
-
 
4706
      this.fromTime = fromTime;
-
 
4707
      setFromTimeIsSet(true);
-
 
4708
      this.toTime = toTime;
-
 
4709
      setToTimeIsSet(true);
-
 
4710
      this.gatewayId = gatewayId;
-
 
4711
      setGatewayIdIsSet(true);
-
 
4712
    }
-
 
4713
 
-
 
4714
    /**
-
 
4715
     * Performs a deep copy on <i>other</i>.
-
 
4716
     */
-
 
4717
    public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
-
 
4718
      __isset_bit_vector.clear();
-
 
4719
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
4720
      this.fromTime = other.fromTime;
-
 
4721
      this.toTime = other.toTime;
-
 
4722
      this.gatewayId = other.gatewayId;
-
 
4723
    }
-
 
4724
 
-
 
4725
    public getPaymentsByCapturedDate_args deepCopy() {
-
 
4726
      return new getPaymentsByCapturedDate_args(this);
-
 
4727
    }
-
 
4728
 
-
 
4729
    @Override
-
 
4730
    public void clear() {
-
 
4731
      setFromTimeIsSet(false);
-
 
4732
      this.fromTime = 0;
-
 
4733
      setToTimeIsSet(false);
-
 
4734
      this.toTime = 0;
-
 
4735
      setGatewayIdIsSet(false);
-
 
4736
      this.gatewayId = 0;
-
 
4737
    }
-
 
4738
 
-
 
4739
    public long getFromTime() {
-
 
4740
      return this.fromTime;
-
 
4741
    }
-
 
4742
 
-
 
4743
    public void setFromTime(long fromTime) {
-
 
4744
      this.fromTime = fromTime;
-
 
4745
      setFromTimeIsSet(true);
-
 
4746
    }
-
 
4747
 
-
 
4748
    public void unsetFromTime() {
-
 
4749
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
-
 
4750
    }
-
 
4751
 
-
 
4752
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
-
 
4753
    public boolean isSetFromTime() {
-
 
4754
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
-
 
4755
    }
-
 
4756
 
-
 
4757
    public void setFromTimeIsSet(boolean value) {
-
 
4758
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
-
 
4759
    }
-
 
4760
 
-
 
4761
    public long getToTime() {
-
 
4762
      return this.toTime;
-
 
4763
    }
-
 
4764
 
-
 
4765
    public void setToTime(long toTime) {
-
 
4766
      this.toTime = toTime;
-
 
4767
      setToTimeIsSet(true);
-
 
4768
    }
-
 
4769
 
-
 
4770
    public void unsetToTime() {
-
 
4771
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
-
 
4772
    }
-
 
4773
 
-
 
4774
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
-
 
4775
    public boolean isSetToTime() {
-
 
4776
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
-
 
4777
    }
-
 
4778
 
-
 
4779
    public void setToTimeIsSet(boolean value) {
-
 
4780
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
-
 
4781
    }
-
 
4782
 
-
 
4783
    public long getGatewayId() {
-
 
4784
      return this.gatewayId;
-
 
4785
    }
-
 
4786
 
-
 
4787
    public void setGatewayId(long gatewayId) {
-
 
4788
      this.gatewayId = gatewayId;
-
 
4789
      setGatewayIdIsSet(true);
-
 
4790
    }
-
 
4791
 
-
 
4792
    public void unsetGatewayId() {
-
 
4793
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
-
 
4794
    }
-
 
4795
 
-
 
4796
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
-
 
4797
    public boolean isSetGatewayId() {
-
 
4798
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
-
 
4799
    }
-
 
4800
 
-
 
4801
    public void setGatewayIdIsSet(boolean value) {
-
 
4802
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
-
 
4803
    }
-
 
4804
 
-
 
4805
    public void setFieldValue(_Fields field, Object value) {
-
 
4806
      switch (field) {
-
 
4807
      case FROM_TIME:
-
 
4808
        if (value == null) {
-
 
4809
          unsetFromTime();
-
 
4810
        } else {
-
 
4811
          setFromTime((Long)value);
-
 
4812
        }
-
 
4813
        break;
-
 
4814
 
-
 
4815
      case TO_TIME:
-
 
4816
        if (value == null) {
-
 
4817
          unsetToTime();
-
 
4818
        } else {
-
 
4819
          setToTime((Long)value);
-
 
4820
        }
-
 
4821
        break;
-
 
4822
 
-
 
4823
      case GATEWAY_ID:
-
 
4824
        if (value == null) {
-
 
4825
          unsetGatewayId();
-
 
4826
        } else {
-
 
4827
          setGatewayId((Long)value);
-
 
4828
        }
-
 
4829
        break;
-
 
4830
 
-
 
4831
      }
-
 
4832
    }
-
 
4833
 
-
 
4834
    public Object getFieldValue(_Fields field) {
-
 
4835
      switch (field) {
-
 
4836
      case FROM_TIME:
-
 
4837
        return Long.valueOf(getFromTime());
-
 
4838
 
-
 
4839
      case TO_TIME:
-
 
4840
        return Long.valueOf(getToTime());
-
 
4841
 
-
 
4842
      case GATEWAY_ID:
-
 
4843
        return Long.valueOf(getGatewayId());
-
 
4844
 
-
 
4845
      }
-
 
4846
      throw new IllegalStateException();
-
 
4847
    }
-
 
4848
 
-
 
4849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
4850
    public boolean isSet(_Fields field) {
-
 
4851
      if (field == null) {
-
 
4852
        throw new IllegalArgumentException();
-
 
4853
      }
-
 
4854
 
-
 
4855
      switch (field) {
-
 
4856
      case FROM_TIME:
-
 
4857
        return isSetFromTime();
-
 
4858
      case TO_TIME:
-
 
4859
        return isSetToTime();
-
 
4860
      case GATEWAY_ID:
-
 
4861
        return isSetGatewayId();
-
 
4862
      }
-
 
4863
      throw new IllegalStateException();
-
 
4864
    }
-
 
4865
 
-
 
4866
    @Override
-
 
4867
    public boolean equals(Object that) {
-
 
4868
      if (that == null)
-
 
4869
        return false;
-
 
4870
      if (that instanceof getPaymentsByCapturedDate_args)
-
 
4871
        return this.equals((getPaymentsByCapturedDate_args)that);
-
 
4872
      return false;
-
 
4873
    }
-
 
4874
 
-
 
4875
    public boolean equals(getPaymentsByCapturedDate_args that) {
-
 
4876
      if (that == null)
-
 
4877
        return false;
-
 
4878
 
-
 
4879
      boolean this_present_fromTime = true;
-
 
4880
      boolean that_present_fromTime = true;
-
 
4881
      if (this_present_fromTime || that_present_fromTime) {
-
 
4882
        if (!(this_present_fromTime && that_present_fromTime))
-
 
4883
          return false;
-
 
4884
        if (this.fromTime != that.fromTime)
-
 
4885
          return false;
-
 
4886
      }
-
 
4887
 
-
 
4888
      boolean this_present_toTime = true;
-
 
4889
      boolean that_present_toTime = true;
-
 
4890
      if (this_present_toTime || that_present_toTime) {
-
 
4891
        if (!(this_present_toTime && that_present_toTime))
-
 
4892
          return false;
-
 
4893
        if (this.toTime != that.toTime)
-
 
4894
          return false;
-
 
4895
      }
-
 
4896
 
-
 
4897
      boolean this_present_gatewayId = true;
-
 
4898
      boolean that_present_gatewayId = true;
-
 
4899
      if (this_present_gatewayId || that_present_gatewayId) {
-
 
4900
        if (!(this_present_gatewayId && that_present_gatewayId))
-
 
4901
          return false;
-
 
4902
        if (this.gatewayId != that.gatewayId)
-
 
4903
          return false;
-
 
4904
      }
-
 
4905
 
-
 
4906
      return true;
-
 
4907
    }
-
 
4908
 
-
 
4909
    @Override
-
 
4910
    public int hashCode() {
-
 
4911
      return 0;
-
 
4912
    }
-
 
4913
 
-
 
4914
    public int compareTo(getPaymentsByCapturedDate_args other) {
-
 
4915
      if (!getClass().equals(other.getClass())) {
-
 
4916
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4917
      }
-
 
4918
 
-
 
4919
      int lastComparison = 0;
-
 
4920
      getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
-
 
4921
 
-
 
4922
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
-
 
4923
      if (lastComparison != 0) {
-
 
4924
        return lastComparison;
-
 
4925
      }
-
 
4926
      if (isSetFromTime()) {
-
 
4927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
-
 
4928
        if (lastComparison != 0) {
-
 
4929
          return lastComparison;
-
 
4930
        }
-
 
4931
      }
-
 
4932
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
-
 
4933
      if (lastComparison != 0) {
-
 
4934
        return lastComparison;
-
 
4935
      }
-
 
4936
      if (isSetToTime()) {
-
 
4937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
-
 
4938
        if (lastComparison != 0) {
-
 
4939
          return lastComparison;
-
 
4940
        }
-
 
4941
      }
-
 
4942
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
-
 
4943
      if (lastComparison != 0) {
-
 
4944
        return lastComparison;
-
 
4945
      }
-
 
4946
      if (isSetGatewayId()) {
-
 
4947
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
-
 
4948
        if (lastComparison != 0) {
-
 
4949
          return lastComparison;
-
 
4950
        }
-
 
4951
      }
-
 
4952
      return 0;
-
 
4953
    }
-
 
4954
 
-
 
4955
    public _Fields fieldForId(int fieldId) {
-
 
4956
      return _Fields.findByThriftId(fieldId);
-
 
4957
    }
-
 
4958
 
-
 
4959
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
4960
      org.apache.thrift.protocol.TField field;
-
 
4961
      iprot.readStructBegin();
-
 
4962
      while (true)
-
 
4963
      {
-
 
4964
        field = iprot.readFieldBegin();
-
 
4965
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
4966
          break;
-
 
4967
        }
-
 
4968
        switch (field.id) {
-
 
4969
          case 1: // FROM_TIME
-
 
4970
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
4971
              this.fromTime = iprot.readI64();
-
 
4972
              setFromTimeIsSet(true);
-
 
4973
            } else { 
-
 
4974
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4975
            }
-
 
4976
            break;
-
 
4977
          case 2: // TO_TIME
-
 
4978
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
4979
              this.toTime = iprot.readI64();
-
 
4980
              setToTimeIsSet(true);
-
 
4981
            } else { 
-
 
4982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4983
            }
-
 
4984
            break;
-
 
4985
          case 3: // GATEWAY_ID
-
 
4986
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
4987
              this.gatewayId = iprot.readI64();
-
 
4988
              setGatewayIdIsSet(true);
-
 
4989
            } else { 
-
 
4990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4991
            }
-
 
4992
            break;
-
 
4993
          default:
-
 
4994
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4995
        }
-
 
4996
        iprot.readFieldEnd();
-
 
4997
      }
-
 
4998
      iprot.readStructEnd();
-
 
4999
      validate();
-
 
5000
    }
-
 
5001
 
-
 
5002
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5003
      validate();
-
 
5004
 
-
 
5005
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5006
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
-
 
5007
      oprot.writeI64(this.fromTime);
-
 
5008
      oprot.writeFieldEnd();
-
 
5009
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
-
 
5010
      oprot.writeI64(this.toTime);
-
 
5011
      oprot.writeFieldEnd();
-
 
5012
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
-
 
5013
      oprot.writeI64(this.gatewayId);
-
 
5014
      oprot.writeFieldEnd();
-
 
5015
      oprot.writeFieldStop();
-
 
5016
      oprot.writeStructEnd();
-
 
5017
    }
-
 
5018
 
-
 
5019
    @Override
-
 
5020
    public String toString() {
-
 
5021
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
-
 
5022
      boolean first = true;
-
 
5023
 
-
 
5024
      sb.append("fromTime:");
-
 
5025
      sb.append(this.fromTime);
-
 
5026
      first = false;
-
 
5027
      if (!first) sb.append(", ");
-
 
5028
      sb.append("toTime:");
-
 
5029
      sb.append(this.toTime);
-
 
5030
      first = false;
-
 
5031
      if (!first) sb.append(", ");
-
 
5032
      sb.append("gatewayId:");
-
 
5033
      sb.append(this.gatewayId);
-
 
5034
      first = false;
-
 
5035
      sb.append(")");
-
 
5036
      return sb.toString();
-
 
5037
    }
-
 
5038
 
-
 
5039
    public void validate() throws org.apache.thrift.TException {
-
 
5040
      // check for required fields
-
 
5041
    }
-
 
5042
 
-
 
5043
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5044
      try {
-
 
5045
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5046
      } catch (org.apache.thrift.TException te) {
-
 
5047
        throw new java.io.IOException(te);
-
 
5048
      }
-
 
5049
    }
-
 
5050
 
-
 
5051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5052
      try {
-
 
5053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5054
      } catch (org.apache.thrift.TException te) {
-
 
5055
        throw new java.io.IOException(te);
-
 
5056
      }
-
 
5057
    }
-
 
5058
 
-
 
5059
  }
-
 
5060
 
-
 
5061
  public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable   {
-
 
5062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
-
 
5063
 
-
 
5064
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
5065
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
5066
 
-
 
5067
    private List<Payment> success; // required
-
 
5068
    private PaymentException pe; // required
-
 
5069
 
-
 
5070
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5071
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
5072
      SUCCESS((short)0, "success"),
-
 
5073
      PE((short)1, "pe");
-
 
5074
 
-
 
5075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5076
 
-
 
5077
      static {
-
 
5078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5079
          byName.put(field.getFieldName(), field);
-
 
5080
        }
-
 
5081
      }
-
 
5082
 
-
 
5083
      /**
-
 
5084
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5085
       */
-
 
5086
      public static _Fields findByThriftId(int fieldId) {
-
 
5087
        switch(fieldId) {
-
 
5088
          case 0: // SUCCESS
-
 
5089
            return SUCCESS;
-
 
5090
          case 1: // PE
-
 
5091
            return PE;
-
 
5092
          default:
-
 
5093
            return null;
-
 
5094
        }
-
 
5095
      }
-
 
5096
 
-
 
5097
      /**
-
 
5098
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5099
       * if it is not found.
-
 
5100
       */
-
 
5101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5102
        _Fields fields = findByThriftId(fieldId);
-
 
5103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5104
        return fields;
-
 
5105
      }
-
 
5106
 
-
 
5107
      /**
-
 
5108
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5109
       */
-
 
5110
      public static _Fields findByName(String name) {
-
 
5111
        return byName.get(name);
-
 
5112
      }
-
 
5113
 
-
 
5114
      private final short _thriftId;
-
 
5115
      private final String _fieldName;
-
 
5116
 
-
 
5117
      _Fields(short thriftId, String fieldName) {
-
 
5118
        _thriftId = thriftId;
-
 
5119
        _fieldName = fieldName;
-
 
5120
      }
-
 
5121
 
-
 
5122
      public short getThriftFieldId() {
-
 
5123
        return _thriftId;
-
 
5124
      }
-
 
5125
 
-
 
5126
      public String getFieldName() {
-
 
5127
        return _fieldName;
-
 
5128
      }
-
 
5129
    }
-
 
5130
 
-
 
5131
    // isset id assignments
-
 
5132
 
-
 
5133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
5134
    static {
-
 
5135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5136
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5137
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
5138
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
-
 
5139
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5140
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
5141
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
5142
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
-
 
5143
    }
-
 
5144
 
-
 
5145
    public getPaymentsByCapturedDate_result() {
-
 
5146
    }
-
 
5147
 
-
 
5148
    public getPaymentsByCapturedDate_result(
-
 
5149
      List<Payment> success,
-
 
5150
      PaymentException pe)
-
 
5151
    {
-
 
5152
      this();
-
 
5153
      this.success = success;
-
 
5154
      this.pe = pe;
-
 
5155
    }
-
 
5156
 
-
 
5157
    /**
-
 
5158
     * Performs a deep copy on <i>other</i>.
-
 
5159
     */
-
 
5160
    public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
-
 
5161
      if (other.isSetSuccess()) {
-
 
5162
        List<Payment> __this__success = new ArrayList<Payment>();
-
 
5163
        for (Payment other_element : other.success) {
-
 
5164
          __this__success.add(new Payment(other_element));
-
 
5165
        }
-
 
5166
        this.success = __this__success;
-
 
5167
      }
-
 
5168
      if (other.isSetPe()) {
-
 
5169
        this.pe = new PaymentException(other.pe);
-
 
5170
      }
-
 
5171
    }
-
 
5172
 
-
 
5173
    public getPaymentsByCapturedDate_result deepCopy() {
-
 
5174
      return new getPaymentsByCapturedDate_result(this);
-
 
5175
    }
-
 
5176
 
-
 
5177
    @Override
-
 
5178
    public void clear() {
-
 
5179
      this.success = null;
-
 
5180
      this.pe = null;
-
 
5181
    }
-
 
5182
 
-
 
5183
    public int getSuccessSize() {
-
 
5184
      return (this.success == null) ? 0 : this.success.size();
-
 
5185
    }
-
 
5186
 
-
 
5187
    public java.util.Iterator<Payment> getSuccessIterator() {
-
 
5188
      return (this.success == null) ? null : this.success.iterator();
-
 
5189
    }
-
 
5190
 
-
 
5191
    public void addToSuccess(Payment elem) {
-
 
5192
      if (this.success == null) {
-
 
5193
        this.success = new ArrayList<Payment>();
-
 
5194
      }
-
 
5195
      this.success.add(elem);
-
 
5196
    }
-
 
5197
 
-
 
5198
    public List<Payment> getSuccess() {
-
 
5199
      return this.success;
-
 
5200
    }
-
 
5201
 
-
 
5202
    public void setSuccess(List<Payment> success) {
-
 
5203
      this.success = success;
-
 
5204
    }
-
 
5205
 
-
 
5206
    public void unsetSuccess() {
-
 
5207
      this.success = null;
-
 
5208
    }
-
 
5209
 
-
 
5210
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
5211
    public boolean isSetSuccess() {
-
 
5212
      return this.success != null;
-
 
5213
    }
-
 
5214
 
-
 
5215
    public void setSuccessIsSet(boolean value) {
-
 
5216
      if (!value) {
-
 
5217
        this.success = null;
-
 
5218
      }
-
 
5219
    }
-
 
5220
 
-
 
5221
    public PaymentException getPe() {
-
 
5222
      return this.pe;
-
 
5223
    }
-
 
5224
 
-
 
5225
    public void setPe(PaymentException pe) {
-
 
5226
      this.pe = pe;
-
 
5227
    }
-
 
5228
 
-
 
5229
    public void unsetPe() {
-
 
5230
      this.pe = null;
-
 
5231
    }
-
 
5232
 
-
 
5233
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
5234
    public boolean isSetPe() {
-
 
5235
      return this.pe != null;
-
 
5236
    }
-
 
5237
 
-
 
5238
    public void setPeIsSet(boolean value) {
-
 
5239
      if (!value) {
-
 
5240
        this.pe = null;
-
 
5241
      }
-
 
5242
    }
-
 
5243
 
-
 
5244
    public void setFieldValue(_Fields field, Object value) {
-
 
5245
      switch (field) {
-
 
5246
      case SUCCESS:
-
 
5247
        if (value == null) {
-
 
5248
          unsetSuccess();
-
 
5249
        } else {
-
 
5250
          setSuccess((List<Payment>)value);
-
 
5251
        }
-
 
5252
        break;
-
 
5253
 
-
 
5254
      case PE:
-
 
5255
        if (value == null) {
-
 
5256
          unsetPe();
-
 
5257
        } else {
-
 
5258
          setPe((PaymentException)value);
-
 
5259
        }
-
 
5260
        break;
-
 
5261
 
-
 
5262
      }
-
 
5263
    }
-
 
5264
 
-
 
5265
    public Object getFieldValue(_Fields field) {
-
 
5266
      switch (field) {
-
 
5267
      case SUCCESS:
-
 
5268
        return getSuccess();
-
 
5269
 
-
 
5270
      case PE:
-
 
5271
        return getPe();
-
 
5272
 
-
 
5273
      }
-
 
5274
      throw new IllegalStateException();
-
 
5275
    }
-
 
5276
 
-
 
5277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
5278
    public boolean isSet(_Fields field) {
-
 
5279
      if (field == null) {
-
 
5280
        throw new IllegalArgumentException();
-
 
5281
      }
-
 
5282
 
-
 
5283
      switch (field) {
-
 
5284
      case SUCCESS:
-
 
5285
        return isSetSuccess();
-
 
5286
      case PE:
-
 
5287
        return isSetPe();
-
 
5288
      }
-
 
5289
      throw new IllegalStateException();
-
 
5290
    }
-
 
5291
 
-
 
5292
    @Override
-
 
5293
    public boolean equals(Object that) {
-
 
5294
      if (that == null)
-
 
5295
        return false;
-
 
5296
      if (that instanceof getPaymentsByCapturedDate_result)
-
 
5297
        return this.equals((getPaymentsByCapturedDate_result)that);
-
 
5298
      return false;
-
 
5299
    }
-
 
5300
 
-
 
5301
    public boolean equals(getPaymentsByCapturedDate_result that) {
-
 
5302
      if (that == null)
-
 
5303
        return false;
-
 
5304
 
-
 
5305
      boolean this_present_success = true && this.isSetSuccess();
-
 
5306
      boolean that_present_success = true && that.isSetSuccess();
-
 
5307
      if (this_present_success || that_present_success) {
-
 
5308
        if (!(this_present_success && that_present_success))
-
 
5309
          return false;
-
 
5310
        if (!this.success.equals(that.success))
-
 
5311
          return false;
-
 
5312
      }
-
 
5313
 
-
 
5314
      boolean this_present_pe = true && this.isSetPe();
-
 
5315
      boolean that_present_pe = true && that.isSetPe();
-
 
5316
      if (this_present_pe || that_present_pe) {
-
 
5317
        if (!(this_present_pe && that_present_pe))
-
 
5318
          return false;
-
 
5319
        if (!this.pe.equals(that.pe))
-
 
5320
          return false;
-
 
5321
      }
-
 
5322
 
-
 
5323
      return true;
-
 
5324
    }
-
 
5325
 
-
 
5326
    @Override
-
 
5327
    public int hashCode() {
-
 
5328
      return 0;
-
 
5329
    }
-
 
5330
 
-
 
5331
    public int compareTo(getPaymentsByCapturedDate_result other) {
-
 
5332
      if (!getClass().equals(other.getClass())) {
-
 
5333
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5334
      }
-
 
5335
 
-
 
5336
      int lastComparison = 0;
-
 
5337
      getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
-
 
5338
 
-
 
5339
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
5340
      if (lastComparison != 0) {
-
 
5341
        return lastComparison;
-
 
5342
      }
-
 
5343
      if (isSetSuccess()) {
-
 
5344
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
5345
        if (lastComparison != 0) {
-
 
5346
          return lastComparison;
-
 
5347
        }
-
 
5348
      }
-
 
5349
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
5350
      if (lastComparison != 0) {
-
 
5351
        return lastComparison;
-
 
5352
      }
-
 
5353
      if (isSetPe()) {
-
 
5354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
5355
        if (lastComparison != 0) {
-
 
5356
          return lastComparison;
-
 
5357
        }
-
 
5358
      }
-
 
5359
      return 0;
-
 
5360
    }
-
 
5361
 
-
 
5362
    public _Fields fieldForId(int fieldId) {
-
 
5363
      return _Fields.findByThriftId(fieldId);
-
 
5364
    }
-
 
5365
 
-
 
5366
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
5367
      org.apache.thrift.protocol.TField field;
-
 
5368
      iprot.readStructBegin();
-
 
5369
      while (true)
-
 
5370
      {
-
 
5371
        field = iprot.readFieldBegin();
-
 
5372
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
5373
          break;
-
 
5374
        }
-
 
5375
        switch (field.id) {
-
 
5376
          case 0: // SUCCESS
-
 
5377
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
5378
              {
-
 
5379
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
-
 
5380
                this.success = new ArrayList<Payment>(_list20.size);
-
 
5381
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
5382
                {
-
 
5383
                  Payment _elem22; // required
-
 
5384
                  _elem22 = new Payment();
-
 
5385
                  _elem22.read(iprot);
-
 
5386
                  this.success.add(_elem22);
-
 
5387
                }
-
 
5388
                iprot.readListEnd();
-
 
5389
              }
-
 
5390
            } else { 
-
 
5391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5392
            }
-
 
5393
            break;
-
 
5394
          case 1: // PE
-
 
5395
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
5396
              this.pe = new PaymentException();
-
 
5397
              this.pe.read(iprot);
-
 
5398
            } else { 
-
 
5399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5400
            }
-
 
5401
            break;
-
 
5402
          default:
-
 
5403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5404
        }
-
 
5405
        iprot.readFieldEnd();
-
 
5406
      }
-
 
5407
      iprot.readStructEnd();
-
 
5408
      validate();
-
 
5409
    }
-
 
5410
 
-
 
5411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
5412
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5413
 
-
 
5414
      if (this.isSetSuccess()) {
-
 
5415
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
5416
        {
-
 
5417
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
5418
          for (Payment _iter23 : this.success)
-
 
5419
          {
-
 
5420
            _iter23.write(oprot);
-
 
5421
          }
-
 
5422
          oprot.writeListEnd();
-
 
5423
        }
-
 
5424
        oprot.writeFieldEnd();
-
 
5425
      } else if (this.isSetPe()) {
-
 
5426
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
5427
        this.pe.write(oprot);
-
 
5428
        oprot.writeFieldEnd();
-
 
5429
      }
-
 
5430
      oprot.writeFieldStop();
-
 
5431
      oprot.writeStructEnd();
-
 
5432
    }
-
 
5433
 
-
 
5434
    @Override
-
 
5435
    public String toString() {
-
 
5436
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
-
 
5437
      boolean first = true;
-
 
5438
 
-
 
5439
      sb.append("success:");
-
 
5440
      if (this.success == null) {
-
 
5441
        sb.append("null");
-
 
5442
      } else {
-
 
5443
        sb.append(this.success);
-
 
5444
      }
-
 
5445
      first = false;
-
 
5446
      if (!first) sb.append(", ");
-
 
5447
      sb.append("pe:");
-
 
5448
      if (this.pe == null) {
-
 
5449
        sb.append("null");
-
 
5450
      } else {
-
 
5451
        sb.append(this.pe);
-
 
5452
      }
-
 
5453
      first = false;
-
 
5454
      sb.append(")");
-
 
5455
      return sb.toString();
-
 
5456
    }
-
 
5457
 
-
 
5458
    public void validate() throws org.apache.thrift.TException {
-
 
5459
      // check for required fields
-
 
5460
    }
-
 
5461
 
-
 
5462
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5463
      try {
-
 
5464
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5465
      } catch (org.apache.thrift.TException te) {
-
 
5466
        throw new java.io.IOException(te);
-
 
5467
      }
-
 
5468
    }
-
 
5469
 
-
 
5470
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5471
      try {
-
 
5472
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5473
      } catch (org.apache.thrift.TException te) {
-
 
5474
        throw new java.io.IOException(te);
-
 
5475
      }
-
 
5476
    }
-
 
5477
 
-
 
5478
  }
-
 
5479
 
4507
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
5480
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
4508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
5481
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
4509
 
5482
 
4510
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
5483
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
4511
 
5484
 
Line 6466... Line 7439...
6466
        }
7439
        }
6467
        switch (field.id) {
7440
        switch (field.id) {
6468
          case 0: // SUCCESS
7441
          case 0: // SUCCESS
6469
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7442
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6470
              {
7443
              {
6471
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
7444
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6472
                this.success = new ArrayList<Payment>(_list20.size);
7445
                this.success = new ArrayList<Payment>(_list24.size);
6473
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
7446
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
6474
                {
7447
                {
6475
                  Payment _elem22; // required
7448
                  Payment _elem26; // required
6476
                  _elem22 = new Payment();
7449
                  _elem26 = new Payment();
6477
                  _elem22.read(iprot);
7450
                  _elem26.read(iprot);
6478
                  this.success.add(_elem22);
7451
                  this.success.add(_elem26);
6479
                }
7452
                }
6480
                iprot.readListEnd();
7453
                iprot.readListEnd();
6481
              }
7454
              }
6482
            } else { 
7455
            } else { 
6483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 6505... Line 7478...
6505
 
7478
 
6506
      if (this.isSetSuccess()) {
7479
      if (this.isSetSuccess()) {
6507
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6508
        {
7481
        {
6509
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7482
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6510
          for (Payment _iter23 : this.success)
7483
          for (Payment _iter27 : this.success)
6511
          {
7484
          {
6512
            _iter23.write(oprot);
7485
            _iter27.write(oprot);
6513
          }
7486
          }
6514
          oprot.writeListEnd();
7487
          oprot.writeListEnd();
6515
        }
7488
        }
6516
        oprot.writeFieldEnd();
7489
        oprot.writeFieldEnd();
6517
      } else if (this.isSetPe()) {
7490
      } else if (this.isSetPe()) {
Line 7658... Line 8631...
7658
            }
8631
            }
7659
            break;
8632
            break;
7660
          case 12: // ATTRIBUTES
8633
          case 12: // ATTRIBUTES
7661
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8634
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7662
              {
8635
              {
7663
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
8636
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7664
                this.attributes = new ArrayList<Attribute>(_list24.size);
8637
                this.attributes = new ArrayList<Attribute>(_list28.size);
7665
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
8638
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7666
                {
8639
                {
7667
                  Attribute _elem26; // required
8640
                  Attribute _elem30; // required
7668
                  _elem26 = new Attribute();
8641
                  _elem30 = new Attribute();
7669
                  _elem26.read(iprot);
8642
                  _elem30.read(iprot);
7670
                  this.attributes.add(_elem26);
8643
                  this.attributes.add(_elem30);
7671
                }
8644
                }
7672
                iprot.readListEnd();
8645
                iprot.readListEnd();
7673
              }
8646
              }
7674
            } else { 
8647
            } else { 
7675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8648
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 7743... Line 8716...
7743
      }
8716
      }
7744
      if (this.attributes != null) {
8717
      if (this.attributes != null) {
7745
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
8718
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
7746
        {
8719
        {
7747
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
8720
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
7748
          for (Attribute _iter27 : this.attributes)
8721
          for (Attribute _iter31 : this.attributes)
7749
          {
8722
          {
7750
            _iter27.write(oprot);
8723
            _iter31.write(oprot);
7751
          }
8724
          }
7752
          oprot.writeListEnd();
8725
          oprot.writeListEnd();
7753
        }
8726
        }
7754
        oprot.writeFieldEnd();
8727
        oprot.writeFieldEnd();
7755
      }
8728
      }
Line 8710... Line 9683...
8710
        }
9683
        }
8711
        switch (field.id) {
9684
        switch (field.id) {
8712
          case 0: // SUCCESS
9685
          case 0: // SUCCESS
8713
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9686
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8714
              {
9687
              {
8715
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
9688
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
8716
                this.success = new ArrayList<Double>(_list28.size);
9689
                this.success = new ArrayList<Double>(_list32.size);
8717
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
9690
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
8718
                {
9691
                {
8719
                  double _elem30; // required
9692
                  double _elem34; // required
8720
                  _elem30 = iprot.readDouble();
9693
                  _elem34 = iprot.readDouble();
8721
                  this.success.add(_elem30);
9694
                  this.success.add(_elem34);
8722
                }
9695
                }
8723
                iprot.readListEnd();
9696
                iprot.readListEnd();
8724
              }
9697
              }
8725
            } else { 
9698
            } else { 
8726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9699
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 8740... Line 9713...
8740
 
9713
 
8741
      if (this.isSetSuccess()) {
9714
      if (this.isSetSuccess()) {
8742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9715
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8743
        {
9716
        {
8744
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
9717
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
8745
          for (double _iter31 : this.success)
9718
          for (double _iter35 : this.success)
8746
          {
9719
          {
8747
            oprot.writeDouble(_iter31);
9720
            oprot.writeDouble(_iter35);
8748
          }
9721
          }
8749
          oprot.writeListEnd();
9722
          oprot.writeListEnd();
8750
        }
9723
        }
8751
        oprot.writeFieldEnd();
9724
        oprot.writeFieldEnd();
8752
      }
9725
      }
Line 13219... Line 14192...
13219
        }
14192
        }
13220
        switch (field.id) {
14193
        switch (field.id) {
13221
          case 0: // SUCCESS
14194
          case 0: // SUCCESS
13222
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14195
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13223
              {
14196
              {
13224
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
14197
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
13225
                this.success = new ArrayList<Long>(_list32.size);
14198
                this.success = new ArrayList<Long>(_list36.size);
13226
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
14199
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
13227
                {
14200
                {
13228
                  long _elem34; // required
14201
                  long _elem38; // required
13229
                  _elem34 = iprot.readI64();
14202
                  _elem38 = iprot.readI64();
13230
                  this.success.add(_elem34);
14203
                  this.success.add(_elem38);
13231
                }
14204
                }
13232
                iprot.readListEnd();
14205
                iprot.readListEnd();
13233
              }
14206
              }
13234
            } else { 
14207
            } else { 
13235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13249... Line 14222...
13249
 
14222
 
13250
      if (this.isSetSuccess()) {
14223
      if (this.isSetSuccess()) {
13251
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14224
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13252
        {
14225
        {
13253
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
14226
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
13254
          for (long _iter35 : this.success)
14227
          for (long _iter39 : this.success)
13255
          {
14228
          {
13256
            oprot.writeI64(_iter35);
14229
            oprot.writeI64(_iter39);
13257
          }
14230
          }
13258
          oprot.writeListEnd();
14231
          oprot.writeListEnd();
13259
        }
14232
        }
13260
        oprot.writeFieldEnd();
14233
        oprot.writeFieldEnd();
13261
      }
14234
      }