Subversion Repositories SmartDukaan

Rev

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

Rev 5348 Rev 5382
Line 740... Line 740...
740
 
740
 
741
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection) throws TransactionServiceException, org.apache.thrift.TException;
741
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection) throws TransactionServiceException, org.apache.thrift.TException;
742
 
742
 
743
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws TransactionServiceException, org.apache.thrift.TException;
743
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws TransactionServiceException, org.apache.thrift.TException;
744
 
744
 
745
    public PaymentSettlement getSettlementForReferenceId(long referenceId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException;
745
    public PaymentSettlement getSettlementForReferenceId(long referenceId, long paymentGatewayId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException;
746
 
746
 
747
    public Map<Long,String> getEBSSettlementSummaries() throws TransactionServiceException, org.apache.thrift.TException;
747
    public Map<Long,String> getEBSSettlementSummaries() throws TransactionServiceException, org.apache.thrift.TException;
748
 
748
 
749
    public void markEBSSettlementUploaded(long settlementId) throws TransactionServiceException, org.apache.thrift.TException;
749
    public void markEBSSettlementUploaded(long settlementId) throws TransactionServiceException, org.apache.thrift.TException;
750
 
750
 
Line 985... Line 985...
985
 
985
 
986
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.savePaymentSettlements_call> resultHandler) throws org.apache.thrift.TException;
986
    public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.savePaymentSettlements_call> resultHandler) throws org.apache.thrift.TException;
987
 
987
 
988
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveEBSSettlementSummary_call> resultHandler) throws org.apache.thrift.TException;
988
    public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveEBSSettlementSummary_call> resultHandler) throws org.apache.thrift.TException;
989
 
989
 
990
    public void getSettlementForReferenceId(long referenceId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementForReferenceId_call> resultHandler) throws org.apache.thrift.TException;
990
    public void getSettlementForReferenceId(long referenceId, long paymentGatewayId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementForReferenceId_call> resultHandler) throws org.apache.thrift.TException;
991
 
991
 
992
    public void getEBSSettlementSummaries(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEBSSettlementSummaries_call> resultHandler) throws org.apache.thrift.TException;
992
    public void getEBSSettlementSummaries(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEBSSettlementSummaries_call> resultHandler) throws org.apache.thrift.TException;
993
 
993
 
994
    public void markEBSSettlementUploaded(long settlementId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEBSSettlementUploaded_call> resultHandler) throws org.apache.thrift.TException;
994
    public void markEBSSettlementUploaded(long settlementId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEBSSettlementUploaded_call> resultHandler) throws org.apache.thrift.TException;
995
 
995
 
Line 3534... Line 3534...
3534
        throw result.ex;
3534
        throw result.ex;
3535
      }
3535
      }
3536
      return;
3536
      return;
3537
    }
3537
    }
3538
 
3538
 
3539
    public PaymentSettlement getSettlementForReferenceId(long referenceId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException
3539
    public PaymentSettlement getSettlementForReferenceId(long referenceId, long paymentGatewayId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException
3540
    {
3540
    {
3541
      send_getSettlementForReferenceId(referenceId, isRefund);
3541
      send_getSettlementForReferenceId(referenceId, paymentGatewayId, isRefund);
3542
      return recv_getSettlementForReferenceId();
3542
      return recv_getSettlementForReferenceId();
3543
    }
3543
    }
3544
 
3544
 
3545
    public void send_getSettlementForReferenceId(long referenceId, boolean isRefund) throws org.apache.thrift.TException
3545
    public void send_getSettlementForReferenceId(long referenceId, long paymentGatewayId, boolean isRefund) throws org.apache.thrift.TException
3546
    {
3546
    {
3547
      getSettlementForReferenceId_args args = new getSettlementForReferenceId_args();
3547
      getSettlementForReferenceId_args args = new getSettlementForReferenceId_args();
3548
      args.setReferenceId(referenceId);
3548
      args.setReferenceId(referenceId);
-
 
3549
      args.setPaymentGatewayId(paymentGatewayId);
3549
      args.setIsRefund(isRefund);
3550
      args.setIsRefund(isRefund);
3550
      sendBase("getSettlementForReferenceId", args);
3551
      sendBase("getSettlementForReferenceId", args);
3551
    }
3552
    }
3552
 
3553
 
3553
    public PaymentSettlement recv_getSettlementForReferenceId() throws TransactionServiceException, org.apache.thrift.TException
3554
    public PaymentSettlement recv_getSettlementForReferenceId() throws TransactionServiceException, org.apache.thrift.TException
Line 7330... Line 7331...
7330
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7331
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7331
        (new Client(prot)).recv_saveEBSSettlementSummary();
7332
        (new Client(prot)).recv_saveEBSSettlementSummary();
7332
      }
7333
      }
7333
    }
7334
    }
7334
 
7335
 
7335
    public void getSettlementForReferenceId(long referenceId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForReferenceId_call> resultHandler) throws org.apache.thrift.TException {
7336
    public void getSettlementForReferenceId(long referenceId, long paymentGatewayId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForReferenceId_call> resultHandler) throws org.apache.thrift.TException {
7336
      checkReady();
7337
      checkReady();
7337
      getSettlementForReferenceId_call method_call = new getSettlementForReferenceId_call(referenceId, isRefund, resultHandler, this, ___protocolFactory, ___transport);
7338
      getSettlementForReferenceId_call method_call = new getSettlementForReferenceId_call(referenceId, paymentGatewayId, isRefund, resultHandler, this, ___protocolFactory, ___transport);
7338
      this.___currentMethod = method_call;
7339
      this.___currentMethod = method_call;
7339
      ___manager.call(method_call);
7340
      ___manager.call(method_call);
7340
    }
7341
    }
7341
 
7342
 
7342
    public static class getSettlementForReferenceId_call extends org.apache.thrift.async.TAsyncMethodCall {
7343
    public static class getSettlementForReferenceId_call extends org.apache.thrift.async.TAsyncMethodCall {
7343
      private long referenceId;
7344
      private long referenceId;
-
 
7345
      private long paymentGatewayId;
7344
      private boolean isRefund;
7346
      private boolean isRefund;
7345
      public getSettlementForReferenceId_call(long referenceId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForReferenceId_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 {
7347
      public getSettlementForReferenceId_call(long referenceId, long paymentGatewayId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForReferenceId_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 {
7346
        super(client, protocolFactory, transport, resultHandler, false);
7348
        super(client, protocolFactory, transport, resultHandler, false);
7347
        this.referenceId = referenceId;
7349
        this.referenceId = referenceId;
-
 
7350
        this.paymentGatewayId = paymentGatewayId;
7348
        this.isRefund = isRefund;
7351
        this.isRefund = isRefund;
7349
      }
7352
      }
7350
 
7353
 
7351
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7354
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7352
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSettlementForReferenceId", org.apache.thrift.protocol.TMessageType.CALL, 0));
7355
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSettlementForReferenceId", org.apache.thrift.protocol.TMessageType.CALL, 0));
7353
        getSettlementForReferenceId_args args = new getSettlementForReferenceId_args();
7356
        getSettlementForReferenceId_args args = new getSettlementForReferenceId_args();
7354
        args.setReferenceId(referenceId);
7357
        args.setReferenceId(referenceId);
-
 
7358
        args.setPaymentGatewayId(paymentGatewayId);
7355
        args.setIsRefund(isRefund);
7359
        args.setIsRefund(isRefund);
7356
        args.write(prot);
7360
        args.write(prot);
7357
        prot.writeMessageEnd();
7361
        prot.writeMessageEnd();
7358
      }
7362
      }
7359
 
7363
 
Line 9802... Line 9806...
9802
      }
9806
      }
9803
 
9807
 
9804
      protected getSettlementForReferenceId_result getResult(I iface, getSettlementForReferenceId_args args) throws org.apache.thrift.TException {
9808
      protected getSettlementForReferenceId_result getResult(I iface, getSettlementForReferenceId_args args) throws org.apache.thrift.TException {
9805
        getSettlementForReferenceId_result result = new getSettlementForReferenceId_result();
9809
        getSettlementForReferenceId_result result = new getSettlementForReferenceId_result();
9806
        try {
9810
        try {
9807
          result.success = iface.getSettlementForReferenceId(args.referenceId, args.isRefund);
9811
          result.success = iface.getSettlementForReferenceId(args.referenceId, args.paymentGatewayId, args.isRefund);
9808
        } catch (TransactionServiceException ex) {
9812
        } catch (TransactionServiceException ex) {
9809
          result.ex = ex;
9813
          result.ex = ex;
9810
        }
9814
        }
9811
        return result;
9815
        return result;
9812
      }
9816
      }
Line 32335... Line 32339...
32335
      }
32339
      }
32336
    }
32340
    }
32337
 
32341
 
32338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32342
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32339
      try {
32343
      try {
32340
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
32341
        __isset_bit_vector = new BitSet(1);
-
 
32342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32344
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32343
      } catch (org.apache.thrift.TException te) {
32345
      } catch (org.apache.thrift.TException te) {
32344
        throw new java.io.IOException(te);
32346
        throw new java.io.IOException(te);
32345
      }
32347
      }
32346
    }
32348
    }
Line 35751... Line 35753...
35751
      }
35753
      }
35752
    }
35754
    }
35753
 
35755
 
35754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35756
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35755
      try {
35757
      try {
-
 
35758
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
35759
        __isset_bit_vector = new BitSet(1);
35756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35760
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35757
      } catch (org.apache.thrift.TException te) {
35761
      } catch (org.apache.thrift.TException te) {
35758
        throw new java.io.IOException(te);
35762
        throw new java.io.IOException(te);
35759
      }
35763
      }
35760
    }
35764
    }
Line 51297... Line 51301...
51297
      }
51301
      }
51298
    }
51302
    }
51299
 
51303
 
51300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51304
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51301
      try {
51305
      try {
-
 
51306
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
51307
        __isset_bit_vector = new BitSet(1);
51302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51303
      } catch (org.apache.thrift.TException te) {
51309
      } catch (org.apache.thrift.TException te) {
51304
        throw new java.io.IOException(te);
51310
        throw new java.io.IOException(te);
51305
      }
51311
      }
51306
    }
51312
    }
Line 57576... Line 57582...
57576
      }
57582
      }
57577
    }
57583
    }
57578
 
57584
 
57579
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57585
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57580
      try {
57586
      try {
-
 
57587
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57588
        __isset_bit_vector = new BitSet(1);
57581
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57582
      } catch (org.apache.thrift.TException te) {
57590
      } catch (org.apache.thrift.TException te) {
57583
        throw new java.io.IOException(te);
57591
        throw new java.io.IOException(te);
57584
      }
57592
      }
57585
    }
57593
    }
Line 82587... Line 82595...
82587
 
82595
 
82588
  public static class getSettlementForReferenceId_args implements org.apache.thrift.TBase<getSettlementForReferenceId_args, getSettlementForReferenceId_args._Fields>, java.io.Serializable, Cloneable   {
82596
  public static class getSettlementForReferenceId_args implements org.apache.thrift.TBase<getSettlementForReferenceId_args, getSettlementForReferenceId_args._Fields>, java.io.Serializable, Cloneable   {
82589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementForReferenceId_args");
82597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementForReferenceId_args");
82590
 
82598
 
82591
    private static final org.apache.thrift.protocol.TField REFERENCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceId", org.apache.thrift.protocol.TType.I64, (short)1);
82599
    private static final org.apache.thrift.protocol.TField REFERENCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
82600
    private static final org.apache.thrift.protocol.TField PAYMENT_GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentGatewayId", org.apache.thrift.protocol.TType.I64, (short)2);
82592
    private static final org.apache.thrift.protocol.TField IS_REFUND_FIELD_DESC = new org.apache.thrift.protocol.TField("isRefund", org.apache.thrift.protocol.TType.BOOL, (short)2);
82601
    private static final org.apache.thrift.protocol.TField IS_REFUND_FIELD_DESC = new org.apache.thrift.protocol.TField("isRefund", org.apache.thrift.protocol.TType.BOOL, (short)3);
82593
 
82602
 
82594
    private long referenceId; // required
82603
    private long referenceId; // required
-
 
82604
    private long paymentGatewayId; // required
82595
    private boolean isRefund; // required
82605
    private boolean isRefund; // required
82596
 
82606
 
82597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
82607
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
82598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
82608
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
82599
      REFERENCE_ID((short)1, "referenceId"),
82609
      REFERENCE_ID((short)1, "referenceId"),
-
 
82610
      PAYMENT_GATEWAY_ID((short)2, "paymentGatewayId"),
82600
      IS_REFUND((short)2, "isRefund");
82611
      IS_REFUND((short)3, "isRefund");
82601
 
82612
 
82602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
82613
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
82603
 
82614
 
82604
      static {
82615
      static {
82605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
82616
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 82612... Line 82623...
82612
       */
82623
       */
82613
      public static _Fields findByThriftId(int fieldId) {
82624
      public static _Fields findByThriftId(int fieldId) {
82614
        switch(fieldId) {
82625
        switch(fieldId) {
82615
          case 1: // REFERENCE_ID
82626
          case 1: // REFERENCE_ID
82616
            return REFERENCE_ID;
82627
            return REFERENCE_ID;
-
 
82628
          case 2: // PAYMENT_GATEWAY_ID
-
 
82629
            return PAYMENT_GATEWAY_ID;
82617
          case 2: // IS_REFUND
82630
          case 3: // IS_REFUND
82618
            return IS_REFUND;
82631
            return IS_REFUND;
82619
          default:
82632
          default:
82620
            return null;
82633
            return null;
82621
        }
82634
        }
82622
      }
82635
      }
Line 82655... Line 82668...
82655
      }
82668
      }
82656
    }
82669
    }
82657
 
82670
 
82658
    // isset id assignments
82671
    // isset id assignments
82659
    private static final int __REFERENCEID_ISSET_ID = 0;
82672
    private static final int __REFERENCEID_ISSET_ID = 0;
-
 
82673
    private static final int __PAYMENTGATEWAYID_ISSET_ID = 1;
82660
    private static final int __ISREFUND_ISSET_ID = 1;
82674
    private static final int __ISREFUND_ISSET_ID = 2;
82661
    private BitSet __isset_bit_vector = new BitSet(2);
82675
    private BitSet __isset_bit_vector = new BitSet(3);
82662
 
82676
 
82663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
82677
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
82664
    static {
82678
    static {
82665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
82679
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
82666
      tmpMap.put(_Fields.REFERENCE_ID, new org.apache.thrift.meta_data.FieldMetaData("referenceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
82680
      tmpMap.put(_Fields.REFERENCE_ID, new org.apache.thrift.meta_data.FieldMetaData("referenceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
82667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
82681
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
82682
      tmpMap.put(_Fields.PAYMENT_GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentGatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
82683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
82668
      tmpMap.put(_Fields.IS_REFUND, new org.apache.thrift.meta_data.FieldMetaData("isRefund", org.apache.thrift.TFieldRequirementType.DEFAULT, 
82684
      tmpMap.put(_Fields.IS_REFUND, new org.apache.thrift.meta_data.FieldMetaData("isRefund", org.apache.thrift.TFieldRequirementType.DEFAULT, 
82669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
82685
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
82670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
82686
      metaDataMap = Collections.unmodifiableMap(tmpMap);
82671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementForReferenceId_args.class, metaDataMap);
82687
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementForReferenceId_args.class, metaDataMap);
82672
    }
82688
    }
Line 82674... Line 82690...
82674
    public getSettlementForReferenceId_args() {
82690
    public getSettlementForReferenceId_args() {
82675
    }
82691
    }
82676
 
82692
 
82677
    public getSettlementForReferenceId_args(
82693
    public getSettlementForReferenceId_args(
82678
      long referenceId,
82694
      long referenceId,
-
 
82695
      long paymentGatewayId,
82679
      boolean isRefund)
82696
      boolean isRefund)
82680
    {
82697
    {
82681
      this();
82698
      this();
82682
      this.referenceId = referenceId;
82699
      this.referenceId = referenceId;
82683
      setReferenceIdIsSet(true);
82700
      setReferenceIdIsSet(true);
-
 
82701
      this.paymentGatewayId = paymentGatewayId;
-
 
82702
      setPaymentGatewayIdIsSet(true);
82684
      this.isRefund = isRefund;
82703
      this.isRefund = isRefund;
82685
      setIsRefundIsSet(true);
82704
      setIsRefundIsSet(true);
82686
    }
82705
    }
82687
 
82706
 
82688
    /**
82707
    /**
Line 82690... Line 82709...
82690
     */
82709
     */
82691
    public getSettlementForReferenceId_args(getSettlementForReferenceId_args other) {
82710
    public getSettlementForReferenceId_args(getSettlementForReferenceId_args other) {
82692
      __isset_bit_vector.clear();
82711
      __isset_bit_vector.clear();
82693
      __isset_bit_vector.or(other.__isset_bit_vector);
82712
      __isset_bit_vector.or(other.__isset_bit_vector);
82694
      this.referenceId = other.referenceId;
82713
      this.referenceId = other.referenceId;
-
 
82714
      this.paymentGatewayId = other.paymentGatewayId;
82695
      this.isRefund = other.isRefund;
82715
      this.isRefund = other.isRefund;
82696
    }
82716
    }
82697
 
82717
 
82698
    public getSettlementForReferenceId_args deepCopy() {
82718
    public getSettlementForReferenceId_args deepCopy() {
82699
      return new getSettlementForReferenceId_args(this);
82719
      return new getSettlementForReferenceId_args(this);
Line 82701... Line 82721...
82701
 
82721
 
82702
    @Override
82722
    @Override
82703
    public void clear() {
82723
    public void clear() {
82704
      setReferenceIdIsSet(false);
82724
      setReferenceIdIsSet(false);
82705
      this.referenceId = 0;
82725
      this.referenceId = 0;
-
 
82726
      setPaymentGatewayIdIsSet(false);
-
 
82727
      this.paymentGatewayId = 0;
82706
      setIsRefundIsSet(false);
82728
      setIsRefundIsSet(false);
82707
      this.isRefund = false;
82729
      this.isRefund = false;
82708
    }
82730
    }
82709
 
82731
 
82710
    public long getReferenceId() {
82732
    public long getReferenceId() {
Line 82727... Line 82749...
82727
 
82749
 
82728
    public void setReferenceIdIsSet(boolean value) {
82750
    public void setReferenceIdIsSet(boolean value) {
82729
      __isset_bit_vector.set(__REFERENCEID_ISSET_ID, value);
82751
      __isset_bit_vector.set(__REFERENCEID_ISSET_ID, value);
82730
    }
82752
    }
82731
 
82753
 
-
 
82754
    public long getPaymentGatewayId() {
-
 
82755
      return this.paymentGatewayId;
-
 
82756
    }
-
 
82757
 
-
 
82758
    public void setPaymentGatewayId(long paymentGatewayId) {
-
 
82759
      this.paymentGatewayId = paymentGatewayId;
-
 
82760
      setPaymentGatewayIdIsSet(true);
-
 
82761
    }
-
 
82762
 
-
 
82763
    public void unsetPaymentGatewayId() {
-
 
82764
      __isset_bit_vector.clear(__PAYMENTGATEWAYID_ISSET_ID);
-
 
82765
    }
-
 
82766
 
-
 
82767
    /** Returns true if field paymentGatewayId is set (has been assigned a value) and false otherwise */
-
 
82768
    public boolean isSetPaymentGatewayId() {
-
 
82769
      return __isset_bit_vector.get(__PAYMENTGATEWAYID_ISSET_ID);
-
 
82770
    }
-
 
82771
 
-
 
82772
    public void setPaymentGatewayIdIsSet(boolean value) {
-
 
82773
      __isset_bit_vector.set(__PAYMENTGATEWAYID_ISSET_ID, value);
-
 
82774
    }
-
 
82775
 
82732
    public boolean isIsRefund() {
82776
    public boolean isIsRefund() {
82733
      return this.isRefund;
82777
      return this.isRefund;
82734
    }
82778
    }
82735
 
82779
 
82736
    public void setIsRefund(boolean isRefund) {
82780
    public void setIsRefund(boolean isRefund) {
Line 82759... Line 82803...
82759
        } else {
82803
        } else {
82760
          setReferenceId((Long)value);
82804
          setReferenceId((Long)value);
82761
        }
82805
        }
82762
        break;
82806
        break;
82763
 
82807
 
-
 
82808
      case PAYMENT_GATEWAY_ID:
-
 
82809
        if (value == null) {
-
 
82810
          unsetPaymentGatewayId();
-
 
82811
        } else {
-
 
82812
          setPaymentGatewayId((Long)value);
-
 
82813
        }
-
 
82814
        break;
-
 
82815
 
82764
      case IS_REFUND:
82816
      case IS_REFUND:
82765
        if (value == null) {
82817
        if (value == null) {
82766
          unsetIsRefund();
82818
          unsetIsRefund();
82767
        } else {
82819
        } else {
82768
          setIsRefund((Boolean)value);
82820
          setIsRefund((Boolean)value);
Line 82775... Line 82827...
82775
    public Object getFieldValue(_Fields field) {
82827
    public Object getFieldValue(_Fields field) {
82776
      switch (field) {
82828
      switch (field) {
82777
      case REFERENCE_ID:
82829
      case REFERENCE_ID:
82778
        return Long.valueOf(getReferenceId());
82830
        return Long.valueOf(getReferenceId());
82779
 
82831
 
-
 
82832
      case PAYMENT_GATEWAY_ID:
-
 
82833
        return Long.valueOf(getPaymentGatewayId());
-
 
82834
 
82780
      case IS_REFUND:
82835
      case IS_REFUND:
82781
        return Boolean.valueOf(isIsRefund());
82836
        return Boolean.valueOf(isIsRefund());
82782
 
82837
 
82783
      }
82838
      }
82784
      throw new IllegalStateException();
82839
      throw new IllegalStateException();
Line 82791... Line 82846...
82791
      }
82846
      }
82792
 
82847
 
82793
      switch (field) {
82848
      switch (field) {
82794
      case REFERENCE_ID:
82849
      case REFERENCE_ID:
82795
        return isSetReferenceId();
82850
        return isSetReferenceId();
-
 
82851
      case PAYMENT_GATEWAY_ID:
-
 
82852
        return isSetPaymentGatewayId();
82796
      case IS_REFUND:
82853
      case IS_REFUND:
82797
        return isSetIsRefund();
82854
        return isSetIsRefund();
82798
      }
82855
      }
82799
      throw new IllegalStateException();
82856
      throw new IllegalStateException();
82800
    }
82857
    }
Line 82819... Line 82876...
82819
          return false;
82876
          return false;
82820
        if (this.referenceId != that.referenceId)
82877
        if (this.referenceId != that.referenceId)
82821
          return false;
82878
          return false;
82822
      }
82879
      }
82823
 
82880
 
-
 
82881
      boolean this_present_paymentGatewayId = true;
-
 
82882
      boolean that_present_paymentGatewayId = true;
-
 
82883
      if (this_present_paymentGatewayId || that_present_paymentGatewayId) {
-
 
82884
        if (!(this_present_paymentGatewayId && that_present_paymentGatewayId))
-
 
82885
          return false;
-
 
82886
        if (this.paymentGatewayId != that.paymentGatewayId)
-
 
82887
          return false;
-
 
82888
      }
-
 
82889
 
82824
      boolean this_present_isRefund = true;
82890
      boolean this_present_isRefund = true;
82825
      boolean that_present_isRefund = true;
82891
      boolean that_present_isRefund = true;
82826
      if (this_present_isRefund || that_present_isRefund) {
82892
      if (this_present_isRefund || that_present_isRefund) {
82827
        if (!(this_present_isRefund && that_present_isRefund))
82893
        if (!(this_present_isRefund && that_present_isRefund))
82828
          return false;
82894
          return false;
Line 82854... Line 82920...
82854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceId, typedOther.referenceId);
82920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceId, typedOther.referenceId);
82855
        if (lastComparison != 0) {
82921
        if (lastComparison != 0) {
82856
          return lastComparison;
82922
          return lastComparison;
82857
        }
82923
        }
82858
      }
82924
      }
-
 
82925
      lastComparison = Boolean.valueOf(isSetPaymentGatewayId()).compareTo(typedOther.isSetPaymentGatewayId());
-
 
82926
      if (lastComparison != 0) {
-
 
82927
        return lastComparison;
-
 
82928
      }
-
 
82929
      if (isSetPaymentGatewayId()) {
-
 
82930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentGatewayId, typedOther.paymentGatewayId);
-
 
82931
        if (lastComparison != 0) {
-
 
82932
          return lastComparison;
-
 
82933
        }
-
 
82934
      }
82859
      lastComparison = Boolean.valueOf(isSetIsRefund()).compareTo(typedOther.isSetIsRefund());
82935
      lastComparison = Boolean.valueOf(isSetIsRefund()).compareTo(typedOther.isSetIsRefund());
82860
      if (lastComparison != 0) {
82936
      if (lastComparison != 0) {
82861
        return lastComparison;
82937
        return lastComparison;
82862
      }
82938
      }
82863
      if (isSetIsRefund()) {
82939
      if (isSetIsRefund()) {
Line 82889... Line 82965...
82889
              setReferenceIdIsSet(true);
82965
              setReferenceIdIsSet(true);
82890
            } else { 
82966
            } else { 
82891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
82967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
82892
            }
82968
            }
82893
            break;
82969
            break;
-
 
82970
          case 2: // PAYMENT_GATEWAY_ID
-
 
82971
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
82972
              this.paymentGatewayId = iprot.readI64();
-
 
82973
              setPaymentGatewayIdIsSet(true);
-
 
82974
            } else { 
-
 
82975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
82976
            }
-
 
82977
            break;
82894
          case 2: // IS_REFUND
82978
          case 3: // IS_REFUND
82895
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
82979
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
82896
              this.isRefund = iprot.readBool();
82980
              this.isRefund = iprot.readBool();
82897
              setIsRefundIsSet(true);
82981
              setIsRefundIsSet(true);
82898
            } else { 
82982
            } else { 
82899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
82983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 82913... Line 82997...
82913
 
82997
 
82914
      oprot.writeStructBegin(STRUCT_DESC);
82998
      oprot.writeStructBegin(STRUCT_DESC);
82915
      oprot.writeFieldBegin(REFERENCE_ID_FIELD_DESC);
82999
      oprot.writeFieldBegin(REFERENCE_ID_FIELD_DESC);
82916
      oprot.writeI64(this.referenceId);
83000
      oprot.writeI64(this.referenceId);
82917
      oprot.writeFieldEnd();
83001
      oprot.writeFieldEnd();
-
 
83002
      oprot.writeFieldBegin(PAYMENT_GATEWAY_ID_FIELD_DESC);
-
 
83003
      oprot.writeI64(this.paymentGatewayId);
-
 
83004
      oprot.writeFieldEnd();
82918
      oprot.writeFieldBegin(IS_REFUND_FIELD_DESC);
83005
      oprot.writeFieldBegin(IS_REFUND_FIELD_DESC);
82919
      oprot.writeBool(this.isRefund);
83006
      oprot.writeBool(this.isRefund);
82920
      oprot.writeFieldEnd();
83007
      oprot.writeFieldEnd();
82921
      oprot.writeFieldStop();
83008
      oprot.writeFieldStop();
82922
      oprot.writeStructEnd();
83009
      oprot.writeStructEnd();
Line 82929... Line 83016...
82929
 
83016
 
82930
      sb.append("referenceId:");
83017
      sb.append("referenceId:");
82931
      sb.append(this.referenceId);
83018
      sb.append(this.referenceId);
82932
      first = false;
83019
      first = false;
82933
      if (!first) sb.append(", ");
83020
      if (!first) sb.append(", ");
-
 
83021
      sb.append("paymentGatewayId:");
-
 
83022
      sb.append(this.paymentGatewayId);
-
 
83023
      first = false;
-
 
83024
      if (!first) sb.append(", ");
82934
      sb.append("isRefund:");
83025
      sb.append("isRefund:");
82935
      sb.append(this.isRefund);
83026
      sb.append(this.isRefund);
82936
      first = false;
83027
      first = false;
82937
      sb.append(")");
83028
      sb.append(")");
82938
      return sb.toString();
83029
      return sb.toString();