Subversion Repositories SmartDukaan

Rev

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

Rev 4258 Rev 4259
Line 538... Line 538...
538
     * 
538
     * 
539
     * @param transactionId
539
     * @param transactionId
540
     */
540
     */
541
    public void markTransactionAsPaymentFlagRemoved(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
541
    public void markTransactionAsPaymentFlagRemoved(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
542
 
542
 
-
 
543
    /**
-
 
544
     * This method is called when a flagged payment is deemed unserviceable and the corresponding orders
-
 
545
     * need to be cancelled
-
 
546
     * 
-
 
547
     * @param transactionId
-
 
548
     * @param refundedBy
-
 
549
     * @param reason
-
 
550
     */
-
 
551
    public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;
-
 
552
 
543
  }
553
  }
544
 
554
 
545
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
555
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
546
 
556
 
547
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
557
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 670... Line 680...
670
 
680
 
671
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;
681
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;
672
 
682
 
673
    public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;
683
    public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;
674
 
684
 
-
 
685
    public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
686
 
675
  }
687
  }
676
 
688
 
677
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
689
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
678
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
690
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
679
      public Factory() {}
691
      public Factory() {}
Line 2348... Line 2360...
2348
        throw result.ex;
2360
        throw result.ex;
2349
      }
2361
      }
2350
      return;
2362
      return;
2351
    }
2363
    }
2352
 
2364
 
-
 
2365
    public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException
-
 
2366
    {
-
 
2367
      send_refundTransaction(transactionId, refundedBy, reason);
-
 
2368
      recv_refundTransaction();
-
 
2369
    }
-
 
2370
 
-
 
2371
    public void send_refundTransaction(long transactionId, String refundedBy, String reason) throws org.apache.thrift.TException
-
 
2372
    {
-
 
2373
      refundTransaction_args args = new refundTransaction_args();
-
 
2374
      args.setTransactionId(transactionId);
-
 
2375
      args.setRefundedBy(refundedBy);
-
 
2376
      args.setReason(reason);
-
 
2377
      sendBase("refundTransaction", args);
-
 
2378
    }
-
 
2379
 
-
 
2380
    public void recv_refundTransaction() throws TransactionServiceException, org.apache.thrift.TException
-
 
2381
    {
-
 
2382
      refundTransaction_result result = new refundTransaction_result();
-
 
2383
      receiveBase(result, "refundTransaction");
-
 
2384
      if (result.ex != null) {
-
 
2385
        throw result.ex;
-
 
2386
      }
-
 
2387
      return;
-
 
2388
    }
-
 
2389
 
2353
  }
2390
  }
2354
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2391
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2355
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2392
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2356
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2393
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2357
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2394
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4588... Line 4625...
4588
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4625
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4589
        (new Client(prot)).recv_markTransactionAsPaymentFlagRemoved();
4626
        (new Client(prot)).recv_markTransactionAsPaymentFlagRemoved();
4590
      }
4627
      }
4591
    }
4628
    }
4592
 
4629
 
-
 
4630
    public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
4631
      checkReady();
-
 
4632
      refundTransaction_call method_call = new refundTransaction_call(transactionId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);
-
 
4633
      this.___currentMethod = method_call;
-
 
4634
      ___manager.call(method_call);
-
 
4635
    }
-
 
4636
 
-
 
4637
    public static class refundTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4638
      private long transactionId;
-
 
4639
      private String refundedBy;
-
 
4640
      private String reason;
-
 
4641
      public refundTransaction_call(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundTransaction_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 {
-
 
4642
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4643
        this.transactionId = transactionId;
-
 
4644
        this.refundedBy = refundedBy;
-
 
4645
        this.reason = reason;
-
 
4646
      }
-
 
4647
 
-
 
4648
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4649
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4650
        refundTransaction_args args = new refundTransaction_args();
-
 
4651
        args.setTransactionId(transactionId);
-
 
4652
        args.setRefundedBy(refundedBy);
-
 
4653
        args.setReason(reason);
-
 
4654
        args.write(prot);
-
 
4655
        prot.writeMessageEnd();
-
 
4656
      }
-
 
4657
 
-
 
4658
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4659
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4660
          throw new IllegalStateException("Method call not finished!");
-
 
4661
        }
-
 
4662
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4663
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4664
        (new Client(prot)).recv_refundTransaction();
-
 
4665
      }
-
 
4666
    }
-
 
4667
 
4593
  }
4668
  }
4594
 
4669
 
4595
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4670
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4596
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4671
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4597
    public Processor(I iface) {
4672
    public Processor(I iface) {
Line 4665... Line 4740...
4665
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
4740
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
4666
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
4741
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
4667
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
4742
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
4668
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
4743
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
4669
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
4744
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
-
 
4745
      processMap.put("refundTransaction", new refundTransaction());
4670
      return processMap;
4746
      return processMap;
4671
    }
4747
    }
4672
 
4748
 
4673
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4749
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4674
      public createTransaction() {
4750
      public createTransaction() {
Line 5924... Line 6000...
5924
        }
6000
        }
5925
        return result;
6001
        return result;
5926
      }
6002
      }
5927
    }
6003
    }
5928
 
6004
 
-
 
6005
    private static class refundTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundTransaction_args> {
-
 
6006
      public refundTransaction() {
-
 
6007
        super("refundTransaction");
-
 
6008
      }
-
 
6009
 
-
 
6010
      protected refundTransaction_args getEmptyArgsInstance() {
-
 
6011
        return new refundTransaction_args();
-
 
6012
      }
-
 
6013
 
-
 
6014
      protected refundTransaction_result getResult(I iface, refundTransaction_args args) throws org.apache.thrift.TException {
-
 
6015
        refundTransaction_result result = new refundTransaction_result();
-
 
6016
        try {
-
 
6017
          iface.refundTransaction(args.transactionId, args.refundedBy, args.reason);
-
 
6018
        } catch (TransactionServiceException ex) {
-
 
6019
          result.ex = ex;
-
 
6020
        }
-
 
6021
        return result;
-
 
6022
      }
-
 
6023
    }
-
 
6024
 
5929
  }
6025
  }
5930
 
6026
 
5931
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
6027
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5932
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
6028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5933
 
6029
 
Line 26945... Line 27041...
26945
      }
27041
      }
26946
    }
27042
    }
26947
 
27043
 
26948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27044
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26949
      try {
27045
      try {
-
 
27046
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27047
        __isset_bit_vector = new BitSet(1);
26950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27048
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26951
      } catch (org.apache.thrift.TException te) {
27049
      } catch (org.apache.thrift.TException te) {
26952
        throw new java.io.IOException(te);
27050
        throw new java.io.IOException(te);
26953
      }
27051
      }
26954
    }
27052
    }
Line 31626... Line 31724...
31626
      }
31724
      }
31627
    }
31725
    }
31628
 
31726
 
31629
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31727
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31630
      try {
31728
      try {
31631
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
31632
        __isset_bit_vector = new BitSet(1);
-
 
31633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31634
      } catch (org.apache.thrift.TException te) {
31730
      } catch (org.apache.thrift.TException te) {
31635
        throw new java.io.IOException(te);
31731
        throw new java.io.IOException(te);
31636
      }
31732
      }
31637
    }
31733
    }
Line 53332... Line 53428...
53332
      boolean first = true;
53428
      boolean first = true;
53333
 
53429
 
53334
      sb.append("ex:");
53430
      sb.append("ex:");
53335
      if (this.ex == null) {
53431
      if (this.ex == null) {
53336
        sb.append("null");
53432
        sb.append("null");
-
 
53433
      } else {
-
 
53434
        sb.append(this.ex);
-
 
53435
      }
-
 
53436
      first = false;
-
 
53437
      sb.append(")");
-
 
53438
      return sb.toString();
-
 
53439
    }
-
 
53440
 
-
 
53441
    public void validate() throws org.apache.thrift.TException {
-
 
53442
      // check for required fields
-
 
53443
    }
-
 
53444
 
-
 
53445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53446
      try {
-
 
53447
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53448
      } catch (org.apache.thrift.TException te) {
-
 
53449
        throw new java.io.IOException(te);
-
 
53450
      }
-
 
53451
    }
-
 
53452
 
-
 
53453
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53454
      try {
-
 
53455
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53456
      } catch (org.apache.thrift.TException te) {
-
 
53457
        throw new java.io.IOException(te);
-
 
53458
      }
-
 
53459
    }
-
 
53460
 
-
 
53461
  }
-
 
53462
 
-
 
53463
  public static class refundTransaction_args implements org.apache.thrift.TBase<refundTransaction_args, refundTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53464
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundTransaction_args");
-
 
53465
 
-
 
53466
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53467
    private static final org.apache.thrift.protocol.TField REFUNDED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedBy", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
53468
    private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
53469
 
-
 
53470
    private long transactionId; // required
-
 
53471
    private String refundedBy; // required
-
 
53472
    private String reason; // required
-
 
53473
 
-
 
53474
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53475
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53476
      TRANSACTION_ID((short)1, "transactionId"),
-
 
53477
      REFUNDED_BY((short)2, "refundedBy"),
-
 
53478
      REASON((short)3, "reason");
-
 
53479
 
-
 
53480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53481
 
-
 
53482
      static {
-
 
53483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53484
          byName.put(field.getFieldName(), field);
-
 
53485
        }
-
 
53486
      }
-
 
53487
 
-
 
53488
      /**
-
 
53489
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53490
       */
-
 
53491
      public static _Fields findByThriftId(int fieldId) {
-
 
53492
        switch(fieldId) {
-
 
53493
          case 1: // TRANSACTION_ID
-
 
53494
            return TRANSACTION_ID;
-
 
53495
          case 2: // REFUNDED_BY
-
 
53496
            return REFUNDED_BY;
-
 
53497
          case 3: // REASON
-
 
53498
            return REASON;
-
 
53499
          default:
-
 
53500
            return null;
-
 
53501
        }
-
 
53502
      }
-
 
53503
 
-
 
53504
      /**
-
 
53505
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53506
       * if it is not found.
-
 
53507
       */
-
 
53508
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53509
        _Fields fields = findByThriftId(fieldId);
-
 
53510
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53511
        return fields;
-
 
53512
      }
-
 
53513
 
-
 
53514
      /**
-
 
53515
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53516
       */
-
 
53517
      public static _Fields findByName(String name) {
-
 
53518
        return byName.get(name);
-
 
53519
      }
-
 
53520
 
-
 
53521
      private final short _thriftId;
-
 
53522
      private final String _fieldName;
-
 
53523
 
-
 
53524
      _Fields(short thriftId, String fieldName) {
-
 
53525
        _thriftId = thriftId;
-
 
53526
        _fieldName = fieldName;
-
 
53527
      }
-
 
53528
 
-
 
53529
      public short getThriftFieldId() {
-
 
53530
        return _thriftId;
-
 
53531
      }
-
 
53532
 
-
 
53533
      public String getFieldName() {
-
 
53534
        return _fieldName;
-
 
53535
      }
-
 
53536
    }
-
 
53537
 
-
 
53538
    // isset id assignments
-
 
53539
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
53540
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53541
 
-
 
53542
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53543
    static {
-
 
53544
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53545
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53547
      tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53548
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
53549
      tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
53551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundTransaction_args.class, metaDataMap);
-
 
53553
    }
-
 
53554
 
-
 
53555
    public refundTransaction_args() {
-
 
53556
    }
-
 
53557
 
-
 
53558
    public refundTransaction_args(
-
 
53559
      long transactionId,
-
 
53560
      String refundedBy,
-
 
53561
      String reason)
-
 
53562
    {
-
 
53563
      this();
-
 
53564
      this.transactionId = transactionId;
-
 
53565
      setTransactionIdIsSet(true);
-
 
53566
      this.refundedBy = refundedBy;
-
 
53567
      this.reason = reason;
-
 
53568
    }
-
 
53569
 
-
 
53570
    /**
-
 
53571
     * Performs a deep copy on <i>other</i>.
-
 
53572
     */
-
 
53573
    public refundTransaction_args(refundTransaction_args other) {
-
 
53574
      __isset_bit_vector.clear();
-
 
53575
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53576
      this.transactionId = other.transactionId;
-
 
53577
      if (other.isSetRefundedBy()) {
-
 
53578
        this.refundedBy = other.refundedBy;
-
 
53579
      }
-
 
53580
      if (other.isSetReason()) {
-
 
53581
        this.reason = other.reason;
-
 
53582
      }
-
 
53583
    }
-
 
53584
 
-
 
53585
    public refundTransaction_args deepCopy() {
-
 
53586
      return new refundTransaction_args(this);
-
 
53587
    }
-
 
53588
 
-
 
53589
    @Override
-
 
53590
    public void clear() {
-
 
53591
      setTransactionIdIsSet(false);
-
 
53592
      this.transactionId = 0;
-
 
53593
      this.refundedBy = null;
-
 
53594
      this.reason = null;
-
 
53595
    }
-
 
53596
 
-
 
53597
    public long getTransactionId() {
-
 
53598
      return this.transactionId;
-
 
53599
    }
-
 
53600
 
-
 
53601
    public void setTransactionId(long transactionId) {
-
 
53602
      this.transactionId = transactionId;
-
 
53603
      setTransactionIdIsSet(true);
-
 
53604
    }
-
 
53605
 
-
 
53606
    public void unsetTransactionId() {
-
 
53607
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
53608
    }
-
 
53609
 
-
 
53610
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
-
 
53611
    public boolean isSetTransactionId() {
-
 
53612
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
53613
    }
-
 
53614
 
-
 
53615
    public void setTransactionIdIsSet(boolean value) {
-
 
53616
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
53617
    }
-
 
53618
 
-
 
53619
    public String getRefundedBy() {
-
 
53620
      return this.refundedBy;
-
 
53621
    }
-
 
53622
 
-
 
53623
    public void setRefundedBy(String refundedBy) {
-
 
53624
      this.refundedBy = refundedBy;
-
 
53625
    }
-
 
53626
 
-
 
53627
    public void unsetRefundedBy() {
-
 
53628
      this.refundedBy = null;
-
 
53629
    }
-
 
53630
 
-
 
53631
    /** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */
-
 
53632
    public boolean isSetRefundedBy() {
-
 
53633
      return this.refundedBy != null;
-
 
53634
    }
-
 
53635
 
-
 
53636
    public void setRefundedByIsSet(boolean value) {
-
 
53637
      if (!value) {
-
 
53638
        this.refundedBy = null;
-
 
53639
      }
-
 
53640
    }
-
 
53641
 
-
 
53642
    public String getReason() {
-
 
53643
      return this.reason;
-
 
53644
    }
-
 
53645
 
-
 
53646
    public void setReason(String reason) {
-
 
53647
      this.reason = reason;
-
 
53648
    }
-
 
53649
 
-
 
53650
    public void unsetReason() {
-
 
53651
      this.reason = null;
-
 
53652
    }
-
 
53653
 
-
 
53654
    /** Returns true if field reason is set (has been assigned a value) and false otherwise */
-
 
53655
    public boolean isSetReason() {
-
 
53656
      return this.reason != null;
-
 
53657
    }
-
 
53658
 
-
 
53659
    public void setReasonIsSet(boolean value) {
-
 
53660
      if (!value) {
-
 
53661
        this.reason = null;
-
 
53662
      }
-
 
53663
    }
-
 
53664
 
-
 
53665
    public void setFieldValue(_Fields field, Object value) {
-
 
53666
      switch (field) {
-
 
53667
      case TRANSACTION_ID:
-
 
53668
        if (value == null) {
-
 
53669
          unsetTransactionId();
-
 
53670
        } else {
-
 
53671
          setTransactionId((Long)value);
-
 
53672
        }
-
 
53673
        break;
-
 
53674
 
-
 
53675
      case REFUNDED_BY:
-
 
53676
        if (value == null) {
-
 
53677
          unsetRefundedBy();
-
 
53678
        } else {
-
 
53679
          setRefundedBy((String)value);
-
 
53680
        }
-
 
53681
        break;
-
 
53682
 
-
 
53683
      case REASON:
-
 
53684
        if (value == null) {
-
 
53685
          unsetReason();
-
 
53686
        } else {
-
 
53687
          setReason((String)value);
-
 
53688
        }
-
 
53689
        break;
-
 
53690
 
-
 
53691
      }
-
 
53692
    }
-
 
53693
 
-
 
53694
    public Object getFieldValue(_Fields field) {
-
 
53695
      switch (field) {
-
 
53696
      case TRANSACTION_ID:
-
 
53697
        return Long.valueOf(getTransactionId());
-
 
53698
 
-
 
53699
      case REFUNDED_BY:
-
 
53700
        return getRefundedBy();
-
 
53701
 
-
 
53702
      case REASON:
-
 
53703
        return getReason();
-
 
53704
 
-
 
53705
      }
-
 
53706
      throw new IllegalStateException();
-
 
53707
    }
-
 
53708
 
-
 
53709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53710
    public boolean isSet(_Fields field) {
-
 
53711
      if (field == null) {
-
 
53712
        throw new IllegalArgumentException();
-
 
53713
      }
-
 
53714
 
-
 
53715
      switch (field) {
-
 
53716
      case TRANSACTION_ID:
-
 
53717
        return isSetTransactionId();
-
 
53718
      case REFUNDED_BY:
-
 
53719
        return isSetRefundedBy();
-
 
53720
      case REASON:
-
 
53721
        return isSetReason();
-
 
53722
      }
-
 
53723
      throw new IllegalStateException();
-
 
53724
    }
-
 
53725
 
-
 
53726
    @Override
-
 
53727
    public boolean equals(Object that) {
-
 
53728
      if (that == null)
-
 
53729
        return false;
-
 
53730
      if (that instanceof refundTransaction_args)
-
 
53731
        return this.equals((refundTransaction_args)that);
-
 
53732
      return false;
-
 
53733
    }
-
 
53734
 
-
 
53735
    public boolean equals(refundTransaction_args that) {
-
 
53736
      if (that == null)
-
 
53737
        return false;
-
 
53738
 
-
 
53739
      boolean this_present_transactionId = true;
-
 
53740
      boolean that_present_transactionId = true;
-
 
53741
      if (this_present_transactionId || that_present_transactionId) {
-
 
53742
        if (!(this_present_transactionId && that_present_transactionId))
-
 
53743
          return false;
-
 
53744
        if (this.transactionId != that.transactionId)
-
 
53745
          return false;
-
 
53746
      }
-
 
53747
 
-
 
53748
      boolean this_present_refundedBy = true && this.isSetRefundedBy();
-
 
53749
      boolean that_present_refundedBy = true && that.isSetRefundedBy();
-
 
53750
      if (this_present_refundedBy || that_present_refundedBy) {
-
 
53751
        if (!(this_present_refundedBy && that_present_refundedBy))
-
 
53752
          return false;
-
 
53753
        if (!this.refundedBy.equals(that.refundedBy))
-
 
53754
          return false;
-
 
53755
      }
-
 
53756
 
-
 
53757
      boolean this_present_reason = true && this.isSetReason();
-
 
53758
      boolean that_present_reason = true && that.isSetReason();
-
 
53759
      if (this_present_reason || that_present_reason) {
-
 
53760
        if (!(this_present_reason && that_present_reason))
-
 
53761
          return false;
-
 
53762
        if (!this.reason.equals(that.reason))
-
 
53763
          return false;
-
 
53764
      }
-
 
53765
 
-
 
53766
      return true;
-
 
53767
    }
-
 
53768
 
-
 
53769
    @Override
-
 
53770
    public int hashCode() {
-
 
53771
      return 0;
-
 
53772
    }
-
 
53773
 
-
 
53774
    public int compareTo(refundTransaction_args other) {
-
 
53775
      if (!getClass().equals(other.getClass())) {
-
 
53776
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53777
      }
-
 
53778
 
-
 
53779
      int lastComparison = 0;
-
 
53780
      refundTransaction_args typedOther = (refundTransaction_args)other;
-
 
53781
 
-
 
53782
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
-
 
53783
      if (lastComparison != 0) {
-
 
53784
        return lastComparison;
-
 
53785
      }
-
 
53786
      if (isSetTransactionId()) {
-
 
53787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
-
 
53788
        if (lastComparison != 0) {
-
 
53789
          return lastComparison;
-
 
53790
        }
-
 
53791
      }
-
 
53792
      lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());
-
 
53793
      if (lastComparison != 0) {
-
 
53794
        return lastComparison;
-
 
53795
      }
-
 
53796
      if (isSetRefundedBy()) {
-
 
53797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);
-
 
53798
        if (lastComparison != 0) {
-
 
53799
          return lastComparison;
-
 
53800
        }
-
 
53801
      }
-
 
53802
      lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());
-
 
53803
      if (lastComparison != 0) {
-
 
53804
        return lastComparison;
-
 
53805
      }
-
 
53806
      if (isSetReason()) {
-
 
53807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);
-
 
53808
        if (lastComparison != 0) {
-
 
53809
          return lastComparison;
-
 
53810
        }
-
 
53811
      }
-
 
53812
      return 0;
-
 
53813
    }
-
 
53814
 
-
 
53815
    public _Fields fieldForId(int fieldId) {
-
 
53816
      return _Fields.findByThriftId(fieldId);
-
 
53817
    }
-
 
53818
 
-
 
53819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53820
      org.apache.thrift.protocol.TField field;
-
 
53821
      iprot.readStructBegin();
-
 
53822
      while (true)
-
 
53823
      {
-
 
53824
        field = iprot.readFieldBegin();
-
 
53825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53826
          break;
-
 
53827
        }
-
 
53828
        switch (field.id) {
-
 
53829
          case 1: // TRANSACTION_ID
-
 
53830
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53831
              this.transactionId = iprot.readI64();
-
 
53832
              setTransactionIdIsSet(true);
-
 
53833
            } else { 
-
 
53834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53835
            }
-
 
53836
            break;
-
 
53837
          case 2: // REFUNDED_BY
-
 
53838
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
53839
              this.refundedBy = iprot.readString();
-
 
53840
            } else { 
-
 
53841
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53842
            }
-
 
53843
            break;
-
 
53844
          case 3: // REASON
-
 
53845
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
53846
              this.reason = iprot.readString();
-
 
53847
            } else { 
-
 
53848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53849
            }
-
 
53850
            break;
-
 
53851
          default:
-
 
53852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53853
        }
-
 
53854
        iprot.readFieldEnd();
-
 
53855
      }
-
 
53856
      iprot.readStructEnd();
-
 
53857
      validate();
-
 
53858
    }
-
 
53859
 
-
 
53860
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53861
      validate();
-
 
53862
 
-
 
53863
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53864
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
53865
      oprot.writeI64(this.transactionId);
-
 
53866
      oprot.writeFieldEnd();
-
 
53867
      if (this.refundedBy != null) {
-
 
53868
        oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);
-
 
53869
        oprot.writeString(this.refundedBy);
-
 
53870
        oprot.writeFieldEnd();
-
 
53871
      }
-
 
53872
      if (this.reason != null) {
-
 
53873
        oprot.writeFieldBegin(REASON_FIELD_DESC);
-
 
53874
        oprot.writeString(this.reason);
-
 
53875
        oprot.writeFieldEnd();
-
 
53876
      }
-
 
53877
      oprot.writeFieldStop();
-
 
53878
      oprot.writeStructEnd();
-
 
53879
    }
-
 
53880
 
-
 
53881
    @Override
-
 
53882
    public String toString() {
-
 
53883
      StringBuilder sb = new StringBuilder("refundTransaction_args(");
-
 
53884
      boolean first = true;
-
 
53885
 
-
 
53886
      sb.append("transactionId:");
-
 
53887
      sb.append(this.transactionId);
-
 
53888
      first = false;
-
 
53889
      if (!first) sb.append(", ");
-
 
53890
      sb.append("refundedBy:");
-
 
53891
      if (this.refundedBy == null) {
-
 
53892
        sb.append("null");
-
 
53893
      } else {
-
 
53894
        sb.append(this.refundedBy);
-
 
53895
      }
-
 
53896
      first = false;
-
 
53897
      if (!first) sb.append(", ");
-
 
53898
      sb.append("reason:");
-
 
53899
      if (this.reason == null) {
-
 
53900
        sb.append("null");
-
 
53901
      } else {
-
 
53902
        sb.append(this.reason);
-
 
53903
      }
-
 
53904
      first = false;
-
 
53905
      sb.append(")");
-
 
53906
      return sb.toString();
-
 
53907
    }
-
 
53908
 
-
 
53909
    public void validate() throws org.apache.thrift.TException {
-
 
53910
      // check for required fields
-
 
53911
    }
-
 
53912
 
-
 
53913
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53914
      try {
-
 
53915
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53916
      } catch (org.apache.thrift.TException te) {
-
 
53917
        throw new java.io.IOException(te);
-
 
53918
      }
-
 
53919
    }
-
 
53920
 
-
 
53921
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53922
      try {
-
 
53923
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
53924
        __isset_bit_vector = new BitSet(1);
-
 
53925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53926
      } catch (org.apache.thrift.TException te) {
-
 
53927
        throw new java.io.IOException(te);
-
 
53928
      }
-
 
53929
    }
-
 
53930
 
-
 
53931
  }
-
 
53932
 
-
 
53933
  public static class refundTransaction_result implements org.apache.thrift.TBase<refundTransaction_result, refundTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundTransaction_result");
-
 
53935
 
-
 
53936
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
53937
 
-
 
53938
    private TransactionServiceException ex; // required
-
 
53939
 
-
 
53940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53942
      EX((short)1, "ex");
-
 
53943
 
-
 
53944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53945
 
-
 
53946
      static {
-
 
53947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53948
          byName.put(field.getFieldName(), field);
-
 
53949
        }
-
 
53950
      }
-
 
53951
 
-
 
53952
      /**
-
 
53953
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53954
       */
-
 
53955
      public static _Fields findByThriftId(int fieldId) {
-
 
53956
        switch(fieldId) {
-
 
53957
          case 1: // EX
-
 
53958
            return EX;
-
 
53959
          default:
-
 
53960
            return null;
-
 
53961
        }
-
 
53962
      }
-
 
53963
 
-
 
53964
      /**
-
 
53965
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53966
       * if it is not found.
-
 
53967
       */
-
 
53968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53969
        _Fields fields = findByThriftId(fieldId);
-
 
53970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53971
        return fields;
-
 
53972
      }
-
 
53973
 
-
 
53974
      /**
-
 
53975
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53976
       */
-
 
53977
      public static _Fields findByName(String name) {
-
 
53978
        return byName.get(name);
-
 
53979
      }
-
 
53980
 
-
 
53981
      private final short _thriftId;
-
 
53982
      private final String _fieldName;
-
 
53983
 
-
 
53984
      _Fields(short thriftId, String fieldName) {
-
 
53985
        _thriftId = thriftId;
-
 
53986
        _fieldName = fieldName;
-
 
53987
      }
-
 
53988
 
-
 
53989
      public short getThriftFieldId() {
-
 
53990
        return _thriftId;
-
 
53991
      }
-
 
53992
 
-
 
53993
      public String getFieldName() {
-
 
53994
        return _fieldName;
-
 
53995
      }
-
 
53996
    }
-
 
53997
 
-
 
53998
    // isset id assignments
-
 
53999
 
-
 
54000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54001
    static {
-
 
54002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54003
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54004
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
54005
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54006
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundTransaction_result.class, metaDataMap);
-
 
54007
    }
-
 
54008
 
-
 
54009
    public refundTransaction_result() {
-
 
54010
    }
-
 
54011
 
-
 
54012
    public refundTransaction_result(
-
 
54013
      TransactionServiceException ex)
-
 
54014
    {
-
 
54015
      this();
-
 
54016
      this.ex = ex;
-
 
54017
    }
-
 
54018
 
-
 
54019
    /**
-
 
54020
     * Performs a deep copy on <i>other</i>.
-
 
54021
     */
-
 
54022
    public refundTransaction_result(refundTransaction_result other) {
-
 
54023
      if (other.isSetEx()) {
-
 
54024
        this.ex = new TransactionServiceException(other.ex);
-
 
54025
      }
-
 
54026
    }
-
 
54027
 
-
 
54028
    public refundTransaction_result deepCopy() {
-
 
54029
      return new refundTransaction_result(this);
-
 
54030
    }
-
 
54031
 
-
 
54032
    @Override
-
 
54033
    public void clear() {
-
 
54034
      this.ex = null;
-
 
54035
    }
-
 
54036
 
-
 
54037
    public TransactionServiceException getEx() {
-
 
54038
      return this.ex;
-
 
54039
    }
-
 
54040
 
-
 
54041
    public void setEx(TransactionServiceException ex) {
-
 
54042
      this.ex = ex;
-
 
54043
    }
-
 
54044
 
-
 
54045
    public void unsetEx() {
-
 
54046
      this.ex = null;
-
 
54047
    }
-
 
54048
 
-
 
54049
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
54050
    public boolean isSetEx() {
-
 
54051
      return this.ex != null;
-
 
54052
    }
-
 
54053
 
-
 
54054
    public void setExIsSet(boolean value) {
-
 
54055
      if (!value) {
-
 
54056
        this.ex = null;
-
 
54057
      }
-
 
54058
    }
-
 
54059
 
-
 
54060
    public void setFieldValue(_Fields field, Object value) {
-
 
54061
      switch (field) {
-
 
54062
      case EX:
-
 
54063
        if (value == null) {
-
 
54064
          unsetEx();
-
 
54065
        } else {
-
 
54066
          setEx((TransactionServiceException)value);
-
 
54067
        }
-
 
54068
        break;
-
 
54069
 
-
 
54070
      }
-
 
54071
    }
-
 
54072
 
-
 
54073
    public Object getFieldValue(_Fields field) {
-
 
54074
      switch (field) {
-
 
54075
      case EX:
-
 
54076
        return getEx();
-
 
54077
 
-
 
54078
      }
-
 
54079
      throw new IllegalStateException();
-
 
54080
    }
-
 
54081
 
-
 
54082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54083
    public boolean isSet(_Fields field) {
-
 
54084
      if (field == null) {
-
 
54085
        throw new IllegalArgumentException();
-
 
54086
      }
-
 
54087
 
-
 
54088
      switch (field) {
-
 
54089
      case EX:
-
 
54090
        return isSetEx();
-
 
54091
      }
-
 
54092
      throw new IllegalStateException();
-
 
54093
    }
-
 
54094
 
-
 
54095
    @Override
-
 
54096
    public boolean equals(Object that) {
-
 
54097
      if (that == null)
-
 
54098
        return false;
-
 
54099
      if (that instanceof refundTransaction_result)
-
 
54100
        return this.equals((refundTransaction_result)that);
-
 
54101
      return false;
-
 
54102
    }
-
 
54103
 
-
 
54104
    public boolean equals(refundTransaction_result that) {
-
 
54105
      if (that == null)
-
 
54106
        return false;
-
 
54107
 
-
 
54108
      boolean this_present_ex = true && this.isSetEx();
-
 
54109
      boolean that_present_ex = true && that.isSetEx();
-
 
54110
      if (this_present_ex || that_present_ex) {
-
 
54111
        if (!(this_present_ex && that_present_ex))
-
 
54112
          return false;
-
 
54113
        if (!this.ex.equals(that.ex))
-
 
54114
          return false;
-
 
54115
      }
-
 
54116
 
-
 
54117
      return true;
-
 
54118
    }
-
 
54119
 
-
 
54120
    @Override
-
 
54121
    public int hashCode() {
-
 
54122
      return 0;
-
 
54123
    }
-
 
54124
 
-
 
54125
    public int compareTo(refundTransaction_result other) {
-
 
54126
      if (!getClass().equals(other.getClass())) {
-
 
54127
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54128
      }
-
 
54129
 
-
 
54130
      int lastComparison = 0;
-
 
54131
      refundTransaction_result typedOther = (refundTransaction_result)other;
-
 
54132
 
-
 
54133
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
54134
      if (lastComparison != 0) {
-
 
54135
        return lastComparison;
-
 
54136
      }
-
 
54137
      if (isSetEx()) {
-
 
54138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
54139
        if (lastComparison != 0) {
-
 
54140
          return lastComparison;
-
 
54141
        }
-
 
54142
      }
-
 
54143
      return 0;
-
 
54144
    }
-
 
54145
 
-
 
54146
    public _Fields fieldForId(int fieldId) {
-
 
54147
      return _Fields.findByThriftId(fieldId);
-
 
54148
    }
-
 
54149
 
-
 
54150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54151
      org.apache.thrift.protocol.TField field;
-
 
54152
      iprot.readStructBegin();
-
 
54153
      while (true)
-
 
54154
      {
-
 
54155
        field = iprot.readFieldBegin();
-
 
54156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54157
          break;
-
 
54158
        }
-
 
54159
        switch (field.id) {
-
 
54160
          case 1: // EX
-
 
54161
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
54162
              this.ex = new TransactionServiceException();
-
 
54163
              this.ex.read(iprot);
-
 
54164
            } else { 
-
 
54165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54166
            }
-
 
54167
            break;
-
 
54168
          default:
-
 
54169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54170
        }
-
 
54171
        iprot.readFieldEnd();
-
 
54172
      }
-
 
54173
      iprot.readStructEnd();
-
 
54174
      validate();
-
 
54175
    }
-
 
54176
 
-
 
54177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54178
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54179
 
-
 
54180
      if (this.isSetEx()) {
-
 
54181
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
54182
        this.ex.write(oprot);
-
 
54183
        oprot.writeFieldEnd();
-
 
54184
      }
-
 
54185
      oprot.writeFieldStop();
-
 
54186
      oprot.writeStructEnd();
-
 
54187
    }
-
 
54188
 
-
 
54189
    @Override
-
 
54190
    public String toString() {
-
 
54191
      StringBuilder sb = new StringBuilder("refundTransaction_result(");
-
 
54192
      boolean first = true;
-
 
54193
 
-
 
54194
      sb.append("ex:");
-
 
54195
      if (this.ex == null) {
-
 
54196
        sb.append("null");
53337
      } else {
54197
      } else {
53338
        sb.append(this.ex);
54198
        sb.append(this.ex);
53339
      }
54199
      }
53340
      first = false;
54200
      first = false;
53341
      sb.append(")");
54201
      sb.append(")");