Subversion Repositories SmartDukaan

Rev

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

Rev 2612 Rev 2615
Line 258... Line 258...
258
     */
258
     */
259
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, TException;
259
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, TException;
260
 
260
 
261
    /**
261
    /**
262
     * If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
262
     * If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
-
 
263
     * If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
263
     * If the order is in any other state, it returns false.
264
     * If the order is in any other state, it returns false.
264
     * Throws an exception if the order with the given id couldn't be found.
265
     * Throws an exception if the order with the given id couldn't be found.
265
     * 
266
     * 
266
     * @param orderId
267
     * @param orderId
267
     */
268
     */
268
    public boolean acceptDoa(long orderId) throws TransactionServiceException, TException;
269
    public boolean receiveReturn(long orderId) throws TransactionServiceException, TException;
269
 
270
 
270
    /**
271
    /**
271
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
272
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
272
     * the order state is changed to DOA_CERT_VALID.
-
 
273
     * If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
273
     * the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
274
     * If the order is in any other state, it returns false.
274
     * If the order is in any other state, it returns false.
275
     * Throws an exception if the order with the given id couldn't be found.
275
     * Throws an exception if the order with the given id couldn't be found.
276
     * 
276
     * 
277
     * @param orderId
277
     * @param orderId
278
     * @param isValid
278
     * @param isValid
279
     */
279
     */
280
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, TException;
280
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, TException;
281
 
281
 
-
 
282
    /**
-
 
283
     * If the order is in SALES_RET_RECEIVED or DOA_CERT_INVALID state, it does the following:
-
 
284
     * 	1. Creates a new order for processing in the BILLED state. All billing information is saved.
-
 
285
     * 	2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
-
 
286
     * 	
-
 
287
     * If the order is in DOA_CERT_VALID state, it does the following:
-
 
288
     * 	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
-
 
289
     * 	2. Creates a return order for the warehouse executive to return the DOA material.
-
 
290
     * 	3. Marks the current order as the final DOA_RESHIPPED state.
-
 
291
     * 
-
 
292
     * Returns the id of the newly created order.
-
 
293
     * 
-
 
294
     * Throws an exception if the order with the given id couldn't be found.
-
 
295
     * 
-
 
296
     * @param orderId
-
 
297
     */
-
 
298
    public long reshipOrder(long orderId) throws TransactionServiceException, TException;
-
 
299
 
-
 
300
    /**
-
 
301
     * If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
-
 
302
     * 	1. Creates a refund request for batch processing.
-
 
303
     * 	2. Creates a return order for the warehouse executive to return the shipped material.
-
 
304
     * 	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
-
 
305
     * 
-
 
306
     * If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
-
 
307
     * 	1. Creates a refund request for batch processing.
-
 
308
     * 	2. Marks the current order as the REFUNDED final state.
-
 
309
     * 
-
 
310
     * Returns True if it is successful, False otherwise.
-
 
311
     * 
-
 
312
     * Throws an exception if the order with the given id couldn't be found.
-
 
313
     * 
-
 
314
     * @param orderId
-
 
315
     */
-
 
316
    public boolean refundOrder(long orderId) throws TransactionServiceException, TException;
-
 
317
 
282
  }
318
  }
283
 
319
 
284
  public static class Client implements Iface {
320
  public static class Client implements Iface {
285
    public Client(TProtocol prot)
321
    public Client(TProtocol prot)
286
    {
322
    {
Line 1737... Line 1773...
1737
        throw result.ex;
1773
        throw result.ex;
1738
      }
1774
      }
1739
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
1775
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
1740
    }
1776
    }
1741
 
1777
 
1742
    public boolean acceptDoa(long orderId) throws TransactionServiceException, TException
1778
    public boolean receiveReturn(long orderId) throws TransactionServiceException, TException
1743
    {
1779
    {
1744
      send_acceptDoa(orderId);
1780
      send_receiveReturn(orderId);
1745
      return recv_acceptDoa();
1781
      return recv_receiveReturn();
1746
    }
1782
    }
1747
 
1783
 
1748
    public void send_acceptDoa(long orderId) throws TException
1784
    public void send_receiveReturn(long orderId) throws TException
1749
    {
1785
    {
1750
      oprot_.writeMessageBegin(new TMessage("acceptDoa", TMessageType.CALL, seqid_));
1786
      oprot_.writeMessageBegin(new TMessage("receiveReturn", TMessageType.CALL, seqid_));
1751
      acceptDoa_args args = new acceptDoa_args();
1787
      receiveReturn_args args = new receiveReturn_args();
1752
      args.orderId = orderId;
1788
      args.orderId = orderId;
1753
      args.write(oprot_);
1789
      args.write(oprot_);
1754
      oprot_.writeMessageEnd();
1790
      oprot_.writeMessageEnd();
1755
      oprot_.getTransport().flush();
1791
      oprot_.getTransport().flush();
1756
    }
1792
    }
1757
 
1793
 
1758
    public boolean recv_acceptDoa() throws TransactionServiceException, TException
1794
    public boolean recv_receiveReturn() throws TransactionServiceException, TException
1759
    {
1795
    {
1760
      TMessage msg = iprot_.readMessageBegin();
1796
      TMessage msg = iprot_.readMessageBegin();
1761
      if (msg.type == TMessageType.EXCEPTION) {
1797
      if (msg.type == TMessageType.EXCEPTION) {
1762
        TApplicationException x = TApplicationException.read(iprot_);
1798
        TApplicationException x = TApplicationException.read(iprot_);
1763
        iprot_.readMessageEnd();
1799
        iprot_.readMessageEnd();
1764
        throw x;
1800
        throw x;
1765
      }
1801
      }
1766
      acceptDoa_result result = new acceptDoa_result();
1802
      receiveReturn_result result = new receiveReturn_result();
1767
      result.read(iprot_);
1803
      result.read(iprot_);
1768
      iprot_.readMessageEnd();
1804
      iprot_.readMessageEnd();
1769
      if (result.isSetSuccess()) {
1805
      if (result.isSetSuccess()) {
1770
        return result.success;
1806
        return result.success;
1771
      }
1807
      }
1772
      if (result.ex != null) {
1808
      if (result.ex != null) {
1773
        throw result.ex;
1809
        throw result.ex;
1774
      }
1810
      }
1775
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "acceptDoa failed: unknown result");
1811
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
1776
    }
1812
    }
1777
 
1813
 
1778
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, TException
1814
    public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, TException
1779
    {
1815
    {
1780
      send_validateDoa(orderId, isValid);
1816
      send_validateDoa(orderId, isValid);
Line 1810... Line 1846...
1810
        throw result.ex;
1846
        throw result.ex;
1811
      }
1847
      }
1812
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
1848
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
1813
    }
1849
    }
1814
 
1850
 
-
 
1851
    public long reshipOrder(long orderId) throws TransactionServiceException, TException
-
 
1852
    {
-
 
1853
      send_reshipOrder(orderId);
-
 
1854
      return recv_reshipOrder();
-
 
1855
    }
-
 
1856
 
-
 
1857
    public void send_reshipOrder(long orderId) throws TException
-
 
1858
    {
-
 
1859
      oprot_.writeMessageBegin(new TMessage("reshipOrder", TMessageType.CALL, seqid_));
-
 
1860
      reshipOrder_args args = new reshipOrder_args();
-
 
1861
      args.orderId = orderId;
-
 
1862
      args.write(oprot_);
-
 
1863
      oprot_.writeMessageEnd();
-
 
1864
      oprot_.getTransport().flush();
-
 
1865
    }
-
 
1866
 
-
 
1867
    public long recv_reshipOrder() throws TransactionServiceException, TException
-
 
1868
    {
-
 
1869
      TMessage msg = iprot_.readMessageBegin();
-
 
1870
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1871
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1872
        iprot_.readMessageEnd();
-
 
1873
        throw x;
-
 
1874
      }
-
 
1875
      reshipOrder_result result = new reshipOrder_result();
-
 
1876
      result.read(iprot_);
-
 
1877
      iprot_.readMessageEnd();
-
 
1878
      if (result.isSetSuccess()) {
-
 
1879
        return result.success;
-
 
1880
      }
-
 
1881
      if (result.ex != null) {
-
 
1882
        throw result.ex;
-
 
1883
      }
-
 
1884
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
-
 
1885
    }
-
 
1886
 
-
 
1887
    public boolean refundOrder(long orderId) throws TransactionServiceException, TException
-
 
1888
    {
-
 
1889
      send_refundOrder(orderId);
-
 
1890
      return recv_refundOrder();
-
 
1891
    }
-
 
1892
 
-
 
1893
    public void send_refundOrder(long orderId) throws TException
-
 
1894
    {
-
 
1895
      oprot_.writeMessageBegin(new TMessage("refundOrder", TMessageType.CALL, seqid_));
-
 
1896
      refundOrder_args args = new refundOrder_args();
-
 
1897
      args.orderId = orderId;
-
 
1898
      args.write(oprot_);
-
 
1899
      oprot_.writeMessageEnd();
-
 
1900
      oprot_.getTransport().flush();
-
 
1901
    }
-
 
1902
 
-
 
1903
    public boolean recv_refundOrder() throws TransactionServiceException, TException
-
 
1904
    {
-
 
1905
      TMessage msg = iprot_.readMessageBegin();
-
 
1906
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1907
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1908
        iprot_.readMessageEnd();
-
 
1909
        throw x;
-
 
1910
      }
-
 
1911
      refundOrder_result result = new refundOrder_result();
-
 
1912
      result.read(iprot_);
-
 
1913
      iprot_.readMessageEnd();
-
 
1914
      if (result.isSetSuccess()) {
-
 
1915
        return result.success;
-
 
1916
      }
-
 
1917
      if (result.ex != null) {
-
 
1918
        throw result.ex;
-
 
1919
      }
-
 
1920
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
-
 
1921
    }
-
 
1922
 
1815
  }
1923
  }
1816
  public static class Processor implements TProcessor {
1924
  public static class Processor implements TProcessor {
1817
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1925
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1818
    public Processor(Iface iface)
1926
    public Processor(Iface iface)
1819
    {
1927
    {
Line 1856... Line 1964...
1856
      processMap_.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
1964
      processMap_.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
1857
      processMap_.put("getValidOrders", new getValidOrders());
1965
      processMap_.put("getValidOrders", new getValidOrders());
1858
      processMap_.put("toggleDOAFlag", new toggleDOAFlag());
1966
      processMap_.put("toggleDOAFlag", new toggleDOAFlag());
1859
      processMap_.put("requestPickupNumber", new requestPickupNumber());
1967
      processMap_.put("requestPickupNumber", new requestPickupNumber());
1860
      processMap_.put("authorizePickup", new authorizePickup());
1968
      processMap_.put("authorizePickup", new authorizePickup());
1861
      processMap_.put("acceptDoa", new acceptDoa());
1969
      processMap_.put("receiveReturn", new receiveReturn());
1862
      processMap_.put("validateDoa", new validateDoa());
1970
      processMap_.put("validateDoa", new validateDoa());
-
 
1971
      processMap_.put("reshipOrder", new reshipOrder());
-
 
1972
      processMap_.put("refundOrder", new refundOrder());
1863
    }
1973
    }
1864
 
1974
 
1865
    protected static interface ProcessFunction {
1975
    protected static interface ProcessFunction {
1866
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1976
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1867
    }
1977
    }
Line 2925... Line 3035...
2925
        oprot.getTransport().flush();
3035
        oprot.getTransport().flush();
2926
      }
3036
      }
2927
 
3037
 
2928
    }
3038
    }
2929
 
3039
 
2930
    private class acceptDoa implements ProcessFunction {
3040
    private class receiveReturn implements ProcessFunction {
2931
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3041
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2932
      {
3042
      {
2933
        acceptDoa_args args = new acceptDoa_args();
3043
        receiveReturn_args args = new receiveReturn_args();
2934
        args.read(iprot);
3044
        args.read(iprot);
2935
        iprot.readMessageEnd();
3045
        iprot.readMessageEnd();
2936
        acceptDoa_result result = new acceptDoa_result();
3046
        receiveReturn_result result = new receiveReturn_result();
2937
        try {
3047
        try {
2938
          result.success = iface_.acceptDoa(args.orderId);
3048
          result.success = iface_.receiveReturn(args.orderId);
2939
          result.setSuccessIsSet(true);
3049
          result.setSuccessIsSet(true);
2940
        } catch (TransactionServiceException ex) {
3050
        } catch (TransactionServiceException ex) {
2941
          result.ex = ex;
3051
          result.ex = ex;
2942
        } catch (Throwable th) {
3052
        } catch (Throwable th) {
2943
          LOGGER.error("Internal error processing acceptDoa", th);
3053
          LOGGER.error("Internal error processing receiveReturn", th);
2944
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing acceptDoa");
3054
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing receiveReturn");
2945
          oprot.writeMessageBegin(new TMessage("acceptDoa", TMessageType.EXCEPTION, seqid));
3055
          oprot.writeMessageBegin(new TMessage("receiveReturn", TMessageType.EXCEPTION, seqid));
2946
          x.write(oprot);
3056
          x.write(oprot);
2947
          oprot.writeMessageEnd();
3057
          oprot.writeMessageEnd();
2948
          oprot.getTransport().flush();
3058
          oprot.getTransport().flush();
2949
          return;
3059
          return;
2950
        }
3060
        }
2951
        oprot.writeMessageBegin(new TMessage("acceptDoa", TMessageType.REPLY, seqid));
3061
        oprot.writeMessageBegin(new TMessage("receiveReturn", TMessageType.REPLY, seqid));
2952
        result.write(oprot);
3062
        result.write(oprot);
2953
        oprot.writeMessageEnd();
3063
        oprot.writeMessageEnd();
2954
        oprot.getTransport().flush();
3064
        oprot.getTransport().flush();
2955
      }
3065
      }
2956
 
3066
 
Line 2983... Line 3093...
2983
        oprot.getTransport().flush();
3093
        oprot.getTransport().flush();
2984
      }
3094
      }
2985
 
3095
 
2986
    }
3096
    }
2987
 
3097
 
-
 
3098
    private class reshipOrder implements ProcessFunction {
-
 
3099
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3100
      {
-
 
3101
        reshipOrder_args args = new reshipOrder_args();
-
 
3102
        args.read(iprot);
-
 
3103
        iprot.readMessageEnd();
-
 
3104
        reshipOrder_result result = new reshipOrder_result();
-
 
3105
        try {
-
 
3106
          result.success = iface_.reshipOrder(args.orderId);
-
 
3107
          result.setSuccessIsSet(true);
-
 
3108
        } catch (TransactionServiceException ex) {
-
 
3109
          result.ex = ex;
-
 
3110
        } catch (Throwable th) {
-
 
3111
          LOGGER.error("Internal error processing reshipOrder", th);
-
 
3112
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing reshipOrder");
-
 
3113
          oprot.writeMessageBegin(new TMessage("reshipOrder", TMessageType.EXCEPTION, seqid));
-
 
3114
          x.write(oprot);
-
 
3115
          oprot.writeMessageEnd();
-
 
3116
          oprot.getTransport().flush();
-
 
3117
          return;
-
 
3118
        }
-
 
3119
        oprot.writeMessageBegin(new TMessage("reshipOrder", TMessageType.REPLY, seqid));
-
 
3120
        result.write(oprot);
-
 
3121
        oprot.writeMessageEnd();
-
 
3122
        oprot.getTransport().flush();
-
 
3123
      }
-
 
3124
 
-
 
3125
    }
-
 
3126
 
-
 
3127
    private class refundOrder implements ProcessFunction {
-
 
3128
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3129
      {
-
 
3130
        refundOrder_args args = new refundOrder_args();
-
 
3131
        args.read(iprot);
-
 
3132
        iprot.readMessageEnd();
-
 
3133
        refundOrder_result result = new refundOrder_result();
-
 
3134
        try {
-
 
3135
          result.success = iface_.refundOrder(args.orderId);
-
 
3136
          result.setSuccessIsSet(true);
-
 
3137
        } catch (TransactionServiceException ex) {
-
 
3138
          result.ex = ex;
-
 
3139
        } catch (Throwable th) {
-
 
3140
          LOGGER.error("Internal error processing refundOrder", th);
-
 
3141
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing refundOrder");
-
 
3142
          oprot.writeMessageBegin(new TMessage("refundOrder", TMessageType.EXCEPTION, seqid));
-
 
3143
          x.write(oprot);
-
 
3144
          oprot.writeMessageEnd();
-
 
3145
          oprot.getTransport().flush();
-
 
3146
          return;
-
 
3147
        }
-
 
3148
        oprot.writeMessageBegin(new TMessage("refundOrder", TMessageType.REPLY, seqid));
-
 
3149
        result.write(oprot);
-
 
3150
        oprot.writeMessageEnd();
-
 
3151
        oprot.getTransport().flush();
-
 
3152
      }
-
 
3153
 
-
 
3154
    }
-
 
3155
 
2988
  }
3156
  }
2989
 
3157
 
2990
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3158
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2991
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3159
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2992
 
3160
 
Line 30738... Line 30906...
30738
      // check for required fields
30906
      // check for required fields
30739
    }
30907
    }
30740
 
30908
 
30741
  }
30909
  }
30742
 
30910
 
30743
  public static class acceptDoa_args implements TBase<acceptDoa_args._Fields>, java.io.Serializable, Cloneable, Comparable<acceptDoa_args>   {
30911
  public static class receiveReturn_args implements TBase<receiveReturn_args._Fields>, java.io.Serializable, Cloneable, Comparable<receiveReturn_args>   {
30744
    private static final TStruct STRUCT_DESC = new TStruct("acceptDoa_args");
30912
    private static final TStruct STRUCT_DESC = new TStruct("receiveReturn_args");
30745
 
30913
 
30746
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
30914
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
30747
 
30915
 
30748
    private long orderId;
30916
    private long orderId;
30749
 
30917
 
Line 30810... Line 30978...
30810
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
30978
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
30811
          new FieldValueMetaData(TType.I64)));
30979
          new FieldValueMetaData(TType.I64)));
30812
    }});
30980
    }});
30813
 
30981
 
30814
    static {
30982
    static {
30815
      FieldMetaData.addStructMetaDataMap(acceptDoa_args.class, metaDataMap);
30983
      FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);
30816
    }
30984
    }
30817
 
30985
 
30818
    public acceptDoa_args() {
30986
    public receiveReturn_args() {
30819
    }
30987
    }
30820
 
30988
 
30821
    public acceptDoa_args(
30989
    public receiveReturn_args(
30822
      long orderId)
30990
      long orderId)
30823
    {
30991
    {
30824
      this();
30992
      this();
30825
      this.orderId = orderId;
30993
      this.orderId = orderId;
30826
      setOrderIdIsSet(true);
30994
      setOrderIdIsSet(true);
30827
    }
30995
    }
30828
 
30996
 
30829
    /**
30997
    /**
30830
     * Performs a deep copy on <i>other</i>.
30998
     * Performs a deep copy on <i>other</i>.
30831
     */
30999
     */
30832
    public acceptDoa_args(acceptDoa_args other) {
31000
    public receiveReturn_args(receiveReturn_args other) {
30833
      __isset_bit_vector.clear();
31001
      __isset_bit_vector.clear();
30834
      __isset_bit_vector.or(other.__isset_bit_vector);
31002
      __isset_bit_vector.or(other.__isset_bit_vector);
30835
      this.orderId = other.orderId;
31003
      this.orderId = other.orderId;
30836
    }
31004
    }
30837
 
31005
 
30838
    public acceptDoa_args deepCopy() {
31006
    public receiveReturn_args deepCopy() {
30839
      return new acceptDoa_args(this);
31007
      return new receiveReturn_args(this);
30840
    }
31008
    }
30841
 
31009
 
30842
    @Deprecated
31010
    @Deprecated
30843
    public acceptDoa_args clone() {
31011
    public receiveReturn_args clone() {
30844
      return new acceptDoa_args(this);
31012
      return new receiveReturn_args(this);
30845
    }
31013
    }
30846
 
31014
 
30847
    public long getOrderId() {
31015
    public long getOrderId() {
30848
      return this.orderId;
31016
      return this.orderId;
30849
    }
31017
    }
30850
 
31018
 
30851
    public acceptDoa_args setOrderId(long orderId) {
31019
    public receiveReturn_args setOrderId(long orderId) {
30852
      this.orderId = orderId;
31020
      this.orderId = orderId;
30853
      setOrderIdIsSet(true);
31021
      setOrderIdIsSet(true);
30854
      return this;
31022
      return this;
30855
    }
31023
    }
30856
 
31024
 
Line 30912... Line 31080...
30912
 
31080
 
30913
    @Override
31081
    @Override
30914
    public boolean equals(Object that) {
31082
    public boolean equals(Object that) {
30915
      if (that == null)
31083
      if (that == null)
30916
        return false;
31084
        return false;
30917
      if (that instanceof acceptDoa_args)
31085
      if (that instanceof receiveReturn_args)
30918
        return this.equals((acceptDoa_args)that);
31086
        return this.equals((receiveReturn_args)that);
30919
      return false;
31087
      return false;
30920
    }
31088
    }
30921
 
31089
 
30922
    public boolean equals(acceptDoa_args that) {
31090
    public boolean equals(receiveReturn_args that) {
30923
      if (that == null)
31091
      if (that == null)
30924
        return false;
31092
        return false;
30925
 
31093
 
30926
      boolean this_present_orderId = true;
31094
      boolean this_present_orderId = true;
30927
      boolean that_present_orderId = true;
31095
      boolean that_present_orderId = true;
Line 30938... Line 31106...
30938
    @Override
31106
    @Override
30939
    public int hashCode() {
31107
    public int hashCode() {
30940
      return 0;
31108
      return 0;
30941
    }
31109
    }
30942
 
31110
 
30943
    public int compareTo(acceptDoa_args other) {
31111
    public int compareTo(receiveReturn_args other) {
30944
      if (!getClass().equals(other.getClass())) {
31112
      if (!getClass().equals(other.getClass())) {
30945
        return getClass().getName().compareTo(other.getClass().getName());
31113
        return getClass().getName().compareTo(other.getClass().getName());
30946
      }
31114
      }
30947
 
31115
 
30948
      int lastComparison = 0;
31116
      int lastComparison = 0;
30949
      acceptDoa_args typedOther = (acceptDoa_args)other;
31117
      receiveReturn_args typedOther = (receiveReturn_args)other;
30950
 
31118
 
30951
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
31119
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
30952
      if (lastComparison != 0) {
31120
      if (lastComparison != 0) {
30953
        return lastComparison;
31121
        return lastComparison;
30954
      }
31122
      }
Line 31000... Line 31168...
31000
      oprot.writeStructEnd();
31168
      oprot.writeStructEnd();
31001
    }
31169
    }
31002
 
31170
 
31003
    @Override
31171
    @Override
31004
    public String toString() {
31172
    public String toString() {
31005
      StringBuilder sb = new StringBuilder("acceptDoa_args(");
31173
      StringBuilder sb = new StringBuilder("receiveReturn_args(");
31006
      boolean first = true;
31174
      boolean first = true;
31007
 
31175
 
31008
      sb.append("orderId:");
31176
      sb.append("orderId:");
31009
      sb.append(this.orderId);
31177
      sb.append(this.orderId);
31010
      first = false;
31178
      first = false;
Line 31016... Line 31184...
31016
      // check for required fields
31184
      // check for required fields
31017
    }
31185
    }
31018
 
31186
 
31019
  }
31187
  }
31020
 
31188
 
31021
  public static class acceptDoa_result implements TBase<acceptDoa_result._Fields>, java.io.Serializable, Cloneable, Comparable<acceptDoa_result>   {
31189
  public static class receiveReturn_result implements TBase<receiveReturn_result._Fields>, java.io.Serializable, Cloneable, Comparable<receiveReturn_result>   {
31022
    private static final TStruct STRUCT_DESC = new TStruct("acceptDoa_result");
31190
    private static final TStruct STRUCT_DESC = new TStruct("receiveReturn_result");
31023
 
31191
 
31024
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
31192
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
31025
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
31193
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
31026
 
31194
 
31027
    private boolean success;
31195
    private boolean success;
Line 31093... Line 31261...
31093
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
31261
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
31094
          new FieldValueMetaData(TType.STRUCT)));
31262
          new FieldValueMetaData(TType.STRUCT)));
31095
    }});
31263
    }});
31096
 
31264
 
31097
    static {
31265
    static {
31098
      FieldMetaData.addStructMetaDataMap(acceptDoa_result.class, metaDataMap);
31266
      FieldMetaData.addStructMetaDataMap(receiveReturn_result.class, metaDataMap);
31099
    }
31267
    }
31100
 
31268
 
31101
    public acceptDoa_result() {
31269
    public receiveReturn_result() {
31102
    }
31270
    }
31103
 
31271
 
31104
    public acceptDoa_result(
31272
    public receiveReturn_result(
31105
      boolean success,
31273
      boolean success,
31106
      TransactionServiceException ex)
31274
      TransactionServiceException ex)
31107
    {
31275
    {
31108
      this();
31276
      this();
31109
      this.success = success;
31277
      this.success = success;
Line 31112... Line 31280...
31112
    }
31280
    }
31113
 
31281
 
31114
    /**
31282
    /**
31115
     * Performs a deep copy on <i>other</i>.
31283
     * Performs a deep copy on <i>other</i>.
31116
     */
31284
     */
31117
    public acceptDoa_result(acceptDoa_result other) {
31285
    public receiveReturn_result(receiveReturn_result other) {
31118
      __isset_bit_vector.clear();
31286
      __isset_bit_vector.clear();
31119
      __isset_bit_vector.or(other.__isset_bit_vector);
31287
      __isset_bit_vector.or(other.__isset_bit_vector);
31120
      this.success = other.success;
31288
      this.success = other.success;
31121
      if (other.isSetEx()) {
31289
      if (other.isSetEx()) {
31122
        this.ex = new TransactionServiceException(other.ex);
31290
        this.ex = new TransactionServiceException(other.ex);
31123
      }
31291
      }
31124
    }
31292
    }
31125
 
31293
 
31126
    public acceptDoa_result deepCopy() {
31294
    public receiveReturn_result deepCopy() {
31127
      return new acceptDoa_result(this);
31295
      return new receiveReturn_result(this);
31128
    }
31296
    }
31129
 
31297
 
31130
    @Deprecated
31298
    @Deprecated
31131
    public acceptDoa_result clone() {
31299
    public receiveReturn_result clone() {
31132
      return new acceptDoa_result(this);
31300
      return new receiveReturn_result(this);
31133
    }
31301
    }
31134
 
31302
 
31135
    public boolean isSuccess() {
31303
    public boolean isSuccess() {
31136
      return this.success;
31304
      return this.success;
31137
    }
31305
    }
31138
 
31306
 
31139
    public acceptDoa_result setSuccess(boolean success) {
31307
    public receiveReturn_result setSuccess(boolean success) {
31140
      this.success = success;
31308
      this.success = success;
31141
      setSuccessIsSet(true);
31309
      setSuccessIsSet(true);
31142
      return this;
31310
      return this;
31143
    }
31311
    }
31144
 
31312
 
Line 31157... Line 31325...
31157
 
31325
 
31158
    public TransactionServiceException getEx() {
31326
    public TransactionServiceException getEx() {
31159
      return this.ex;
31327
      return this.ex;
31160
    }
31328
    }
31161
 
31329
 
31162
    public acceptDoa_result setEx(TransactionServiceException ex) {
31330
    public receiveReturn_result setEx(TransactionServiceException ex) {
31163
      this.ex = ex;
31331
      this.ex = ex;
31164
      return this;
31332
      return this;
31165
    }
31333
    }
31166
 
31334
 
31167
    public void unsetEx() {
31335
    public void unsetEx() {
Line 31237... Line 31405...
31237
 
31405
 
31238
    @Override
31406
    @Override
31239
    public boolean equals(Object that) {
31407
    public boolean equals(Object that) {
31240
      if (that == null)
31408
      if (that == null)
31241
        return false;
31409
        return false;
31242
      if (that instanceof acceptDoa_result)
31410
      if (that instanceof receiveReturn_result)
31243
        return this.equals((acceptDoa_result)that);
31411
        return this.equals((receiveReturn_result)that);
31244
      return false;
31412
      return false;
31245
    }
31413
    }
31246
 
31414
 
31247
    public boolean equals(acceptDoa_result that) {
31415
    public boolean equals(receiveReturn_result that) {
31248
      if (that == null)
31416
      if (that == null)
31249
        return false;
31417
        return false;
31250
 
31418
 
31251
      boolean this_present_success = true;
31419
      boolean this_present_success = true;
31252
      boolean that_present_success = true;
31420
      boolean that_present_success = true;
Line 31272... Line 31440...
31272
    @Override
31440
    @Override
31273
    public int hashCode() {
31441
    public int hashCode() {
31274
      return 0;
31442
      return 0;
31275
    }
31443
    }
31276
 
31444
 
31277
    public int compareTo(acceptDoa_result other) {
31445
    public int compareTo(receiveReturn_result other) {
31278
      if (!getClass().equals(other.getClass())) {
31446
      if (!getClass().equals(other.getClass())) {
31279
        return getClass().getName().compareTo(other.getClass().getName());
31447
        return getClass().getName().compareTo(other.getClass().getName());
31280
      }
31448
      }
31281
 
31449
 
31282
      int lastComparison = 0;
31450
      int lastComparison = 0;
31283
      acceptDoa_result typedOther = (acceptDoa_result)other;
31451
      receiveReturn_result typedOther = (receiveReturn_result)other;
31284
 
31452
 
31285
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
31453
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
31286
      if (lastComparison != 0) {
31454
      if (lastComparison != 0) {
31287
        return lastComparison;
31455
        return lastComparison;
31288
      }
31456
      }
Line 31355... Line 31523...
31355
      oprot.writeStructEnd();
31523
      oprot.writeStructEnd();
31356
    }
31524
    }
31357
 
31525
 
31358
    @Override
31526
    @Override
31359
    public String toString() {
31527
    public String toString() {
31360
      StringBuilder sb = new StringBuilder("acceptDoa_result(");
31528
      StringBuilder sb = new StringBuilder("receiveReturn_result(");
31361
      boolean first = true;
31529
      boolean first = true;
31362
 
31530
 
31363
      sb.append("success:");
31531
      sb.append("success:");
31364
      sb.append(this.success);
31532
      sb.append(this.success);
31365
      first = false;
31533
      first = false;
Line 32080... Line 32248...
32080
      boolean first = true;
32248
      boolean first = true;
32081
 
32249
 
32082
      sb.append("success:");
32250
      sb.append("success:");
32083
      sb.append(this.success);
32251
      sb.append(this.success);
32084
      first = false;
32252
      first = false;
-
 
32253
      if (!first) sb.append(", ");
-
 
32254
      sb.append("ex:");
-
 
32255
      if (this.ex == null) {
-
 
32256
        sb.append("null");
-
 
32257
      } else {
-
 
32258
        sb.append(this.ex);
-
 
32259
      }
-
 
32260
      first = false;
-
 
32261
      sb.append(")");
-
 
32262
      return sb.toString();
-
 
32263
    }
-
 
32264
 
-
 
32265
    public void validate() throws TException {
-
 
32266
      // check for required fields
-
 
32267
    }
-
 
32268
 
-
 
32269
  }
-
 
32270
 
-
 
32271
  public static class reshipOrder_args implements TBase<reshipOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<reshipOrder_args>   {
-
 
32272
    private static final TStruct STRUCT_DESC = new TStruct("reshipOrder_args");
-
 
32273
 
-
 
32274
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
32275
 
-
 
32276
    private long orderId;
-
 
32277
 
-
 
32278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32279
    public enum _Fields implements TFieldIdEnum {
-
 
32280
      ORDER_ID((short)1, "orderId");
-
 
32281
 
-
 
32282
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32284
 
-
 
32285
      static {
-
 
32286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32287
          byId.put((int)field._thriftId, field);
-
 
32288
          byName.put(field.getFieldName(), field);
-
 
32289
        }
-
 
32290
      }
-
 
32291
 
-
 
32292
      /**
-
 
32293
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32294
       */
-
 
32295
      public static _Fields findByThriftId(int fieldId) {
-
 
32296
        return byId.get(fieldId);
-
 
32297
      }
-
 
32298
 
-
 
32299
      /**
-
 
32300
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32301
       * if it is not found.
-
 
32302
       */
-
 
32303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32304
        _Fields fields = findByThriftId(fieldId);
-
 
32305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32306
        return fields;
-
 
32307
      }
-
 
32308
 
-
 
32309
      /**
-
 
32310
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32311
       */
-
 
32312
      public static _Fields findByName(String name) {
-
 
32313
        return byName.get(name);
-
 
32314
      }
-
 
32315
 
-
 
32316
      private final short _thriftId;
-
 
32317
      private final String _fieldName;
-
 
32318
 
-
 
32319
      _Fields(short thriftId, String fieldName) {
-
 
32320
        _thriftId = thriftId;
-
 
32321
        _fieldName = fieldName;
-
 
32322
      }
-
 
32323
 
-
 
32324
      public short getThriftFieldId() {
-
 
32325
        return _thriftId;
-
 
32326
      }
-
 
32327
 
-
 
32328
      public String getFieldName() {
-
 
32329
        return _fieldName;
-
 
32330
      }
-
 
32331
    }
-
 
32332
 
-
 
32333
    // isset id assignments
-
 
32334
    private static final int __ORDERID_ISSET_ID = 0;
-
 
32335
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32336
 
-
 
32337
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32338
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
32339
          new FieldValueMetaData(TType.I64)));
-
 
32340
    }});
-
 
32341
 
-
 
32342
    static {
-
 
32343
      FieldMetaData.addStructMetaDataMap(reshipOrder_args.class, metaDataMap);
-
 
32344
    }
-
 
32345
 
-
 
32346
    public reshipOrder_args() {
-
 
32347
    }
-
 
32348
 
-
 
32349
    public reshipOrder_args(
-
 
32350
      long orderId)
-
 
32351
    {
-
 
32352
      this();
-
 
32353
      this.orderId = orderId;
-
 
32354
      setOrderIdIsSet(true);
-
 
32355
    }
-
 
32356
 
-
 
32357
    /**
-
 
32358
     * Performs a deep copy on <i>other</i>.
-
 
32359
     */
-
 
32360
    public reshipOrder_args(reshipOrder_args other) {
-
 
32361
      __isset_bit_vector.clear();
-
 
32362
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32363
      this.orderId = other.orderId;
-
 
32364
    }
-
 
32365
 
-
 
32366
    public reshipOrder_args deepCopy() {
-
 
32367
      return new reshipOrder_args(this);
-
 
32368
    }
-
 
32369
 
-
 
32370
    @Deprecated
-
 
32371
    public reshipOrder_args clone() {
-
 
32372
      return new reshipOrder_args(this);
-
 
32373
    }
-
 
32374
 
-
 
32375
    public long getOrderId() {
-
 
32376
      return this.orderId;
-
 
32377
    }
-
 
32378
 
-
 
32379
    public reshipOrder_args setOrderId(long orderId) {
-
 
32380
      this.orderId = orderId;
-
 
32381
      setOrderIdIsSet(true);
-
 
32382
      return this;
-
 
32383
    }
-
 
32384
 
-
 
32385
    public void unsetOrderId() {
-
 
32386
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
32387
    }
-
 
32388
 
-
 
32389
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
32390
    public boolean isSetOrderId() {
-
 
32391
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
32392
    }
-
 
32393
 
-
 
32394
    public void setOrderIdIsSet(boolean value) {
-
 
32395
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
32396
    }
-
 
32397
 
-
 
32398
    public void setFieldValue(_Fields field, Object value) {
-
 
32399
      switch (field) {
-
 
32400
      case ORDER_ID:
-
 
32401
        if (value == null) {
-
 
32402
          unsetOrderId();
-
 
32403
        } else {
-
 
32404
          setOrderId((Long)value);
-
 
32405
        }
-
 
32406
        break;
-
 
32407
 
-
 
32408
      }
-
 
32409
    }
-
 
32410
 
-
 
32411
    public void setFieldValue(int fieldID, Object value) {
-
 
32412
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32413
    }
-
 
32414
 
-
 
32415
    public Object getFieldValue(_Fields field) {
-
 
32416
      switch (field) {
-
 
32417
      case ORDER_ID:
-
 
32418
        return new Long(getOrderId());
-
 
32419
 
-
 
32420
      }
-
 
32421
      throw new IllegalStateException();
-
 
32422
    }
-
 
32423
 
-
 
32424
    public Object getFieldValue(int fieldId) {
-
 
32425
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32426
    }
-
 
32427
 
-
 
32428
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32429
    public boolean isSet(_Fields field) {
-
 
32430
      switch (field) {
-
 
32431
      case ORDER_ID:
-
 
32432
        return isSetOrderId();
-
 
32433
      }
-
 
32434
      throw new IllegalStateException();
-
 
32435
    }
-
 
32436
 
-
 
32437
    public boolean isSet(int fieldID) {
-
 
32438
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32439
    }
-
 
32440
 
-
 
32441
    @Override
-
 
32442
    public boolean equals(Object that) {
-
 
32443
      if (that == null)
-
 
32444
        return false;
-
 
32445
      if (that instanceof reshipOrder_args)
-
 
32446
        return this.equals((reshipOrder_args)that);
-
 
32447
      return false;
-
 
32448
    }
-
 
32449
 
-
 
32450
    public boolean equals(reshipOrder_args that) {
-
 
32451
      if (that == null)
-
 
32452
        return false;
-
 
32453
 
-
 
32454
      boolean this_present_orderId = true;
-
 
32455
      boolean that_present_orderId = true;
-
 
32456
      if (this_present_orderId || that_present_orderId) {
-
 
32457
        if (!(this_present_orderId && that_present_orderId))
-
 
32458
          return false;
-
 
32459
        if (this.orderId != that.orderId)
-
 
32460
          return false;
-
 
32461
      }
-
 
32462
 
-
 
32463
      return true;
-
 
32464
    }
-
 
32465
 
-
 
32466
    @Override
-
 
32467
    public int hashCode() {
-
 
32468
      return 0;
-
 
32469
    }
-
 
32470
 
-
 
32471
    public int compareTo(reshipOrder_args other) {
-
 
32472
      if (!getClass().equals(other.getClass())) {
-
 
32473
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32474
      }
-
 
32475
 
-
 
32476
      int lastComparison = 0;
-
 
32477
      reshipOrder_args typedOther = (reshipOrder_args)other;
-
 
32478
 
-
 
32479
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
32480
      if (lastComparison != 0) {
-
 
32481
        return lastComparison;
-
 
32482
      }
-
 
32483
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
32484
      if (lastComparison != 0) {
-
 
32485
        return lastComparison;
-
 
32486
      }
-
 
32487
      return 0;
-
 
32488
    }
-
 
32489
 
-
 
32490
    public void read(TProtocol iprot) throws TException {
-
 
32491
      TField field;
-
 
32492
      iprot.readStructBegin();
-
 
32493
      while (true)
-
 
32494
      {
-
 
32495
        field = iprot.readFieldBegin();
-
 
32496
        if (field.type == TType.STOP) { 
-
 
32497
          break;
-
 
32498
        }
-
 
32499
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32500
        if (fieldId == null) {
-
 
32501
          TProtocolUtil.skip(iprot, field.type);
-
 
32502
        } else {
-
 
32503
          switch (fieldId) {
-
 
32504
            case ORDER_ID:
-
 
32505
              if (field.type == TType.I64) {
-
 
32506
                this.orderId = iprot.readI64();
-
 
32507
                setOrderIdIsSet(true);
-
 
32508
              } else { 
-
 
32509
                TProtocolUtil.skip(iprot, field.type);
-
 
32510
              }
-
 
32511
              break;
-
 
32512
          }
-
 
32513
          iprot.readFieldEnd();
-
 
32514
        }
-
 
32515
      }
-
 
32516
      iprot.readStructEnd();
-
 
32517
      validate();
-
 
32518
    }
-
 
32519
 
-
 
32520
    public void write(TProtocol oprot) throws TException {
-
 
32521
      validate();
-
 
32522
 
-
 
32523
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32524
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
32525
      oprot.writeI64(this.orderId);
-
 
32526
      oprot.writeFieldEnd();
-
 
32527
      oprot.writeFieldStop();
-
 
32528
      oprot.writeStructEnd();
-
 
32529
    }
-
 
32530
 
-
 
32531
    @Override
-
 
32532
    public String toString() {
-
 
32533
      StringBuilder sb = new StringBuilder("reshipOrder_args(");
-
 
32534
      boolean first = true;
-
 
32535
 
-
 
32536
      sb.append("orderId:");
-
 
32537
      sb.append(this.orderId);
-
 
32538
      first = false;
-
 
32539
      sb.append(")");
-
 
32540
      return sb.toString();
-
 
32541
    }
-
 
32542
 
-
 
32543
    public void validate() throws TException {
-
 
32544
      // check for required fields
-
 
32545
    }
-
 
32546
 
-
 
32547
  }
-
 
32548
 
-
 
32549
  public static class reshipOrder_result implements TBase<reshipOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<reshipOrder_result>   {
-
 
32550
    private static final TStruct STRUCT_DESC = new TStruct("reshipOrder_result");
-
 
32551
 
-
 
32552
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
32553
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
32554
 
-
 
32555
    private long success;
-
 
32556
    private TransactionServiceException ex;
-
 
32557
 
-
 
32558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32559
    public enum _Fields implements TFieldIdEnum {
-
 
32560
      SUCCESS((short)0, "success"),
-
 
32561
      EX((short)1, "ex");
-
 
32562
 
-
 
32563
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32565
 
-
 
32566
      static {
-
 
32567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32568
          byId.put((int)field._thriftId, field);
-
 
32569
          byName.put(field.getFieldName(), field);
-
 
32570
        }
-
 
32571
      }
-
 
32572
 
-
 
32573
      /**
-
 
32574
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32575
       */
-
 
32576
      public static _Fields findByThriftId(int fieldId) {
-
 
32577
        return byId.get(fieldId);
-
 
32578
      }
-
 
32579
 
-
 
32580
      /**
-
 
32581
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32582
       * if it is not found.
-
 
32583
       */
-
 
32584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32585
        _Fields fields = findByThriftId(fieldId);
-
 
32586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32587
        return fields;
-
 
32588
      }
-
 
32589
 
-
 
32590
      /**
-
 
32591
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32592
       */
-
 
32593
      public static _Fields findByName(String name) {
-
 
32594
        return byName.get(name);
-
 
32595
      }
-
 
32596
 
-
 
32597
      private final short _thriftId;
-
 
32598
      private final String _fieldName;
-
 
32599
 
-
 
32600
      _Fields(short thriftId, String fieldName) {
-
 
32601
        _thriftId = thriftId;
-
 
32602
        _fieldName = fieldName;
-
 
32603
      }
-
 
32604
 
-
 
32605
      public short getThriftFieldId() {
-
 
32606
        return _thriftId;
-
 
32607
      }
-
 
32608
 
-
 
32609
      public String getFieldName() {
-
 
32610
        return _fieldName;
-
 
32611
      }
-
 
32612
    }
-
 
32613
 
-
 
32614
    // isset id assignments
-
 
32615
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
32616
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32617
 
-
 
32618
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32619
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
32620
          new FieldValueMetaData(TType.I64)));
-
 
32621
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
32622
          new FieldValueMetaData(TType.STRUCT)));
-
 
32623
    }});
-
 
32624
 
-
 
32625
    static {
-
 
32626
      FieldMetaData.addStructMetaDataMap(reshipOrder_result.class, metaDataMap);
-
 
32627
    }
-
 
32628
 
-
 
32629
    public reshipOrder_result() {
-
 
32630
    }
-
 
32631
 
-
 
32632
    public reshipOrder_result(
-
 
32633
      long success,
-
 
32634
      TransactionServiceException ex)
-
 
32635
    {
-
 
32636
      this();
-
 
32637
      this.success = success;
-
 
32638
      setSuccessIsSet(true);
-
 
32639
      this.ex = ex;
-
 
32640
    }
-
 
32641
 
-
 
32642
    /**
-
 
32643
     * Performs a deep copy on <i>other</i>.
-
 
32644
     */
-
 
32645
    public reshipOrder_result(reshipOrder_result other) {
-
 
32646
      __isset_bit_vector.clear();
-
 
32647
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
32648
      this.success = other.success;
-
 
32649
      if (other.isSetEx()) {
-
 
32650
        this.ex = new TransactionServiceException(other.ex);
-
 
32651
      }
-
 
32652
    }
-
 
32653
 
-
 
32654
    public reshipOrder_result deepCopy() {
-
 
32655
      return new reshipOrder_result(this);
-
 
32656
    }
-
 
32657
 
-
 
32658
    @Deprecated
-
 
32659
    public reshipOrder_result clone() {
-
 
32660
      return new reshipOrder_result(this);
-
 
32661
    }
-
 
32662
 
-
 
32663
    public long getSuccess() {
-
 
32664
      return this.success;
-
 
32665
    }
-
 
32666
 
-
 
32667
    public reshipOrder_result setSuccess(long success) {
-
 
32668
      this.success = success;
-
 
32669
      setSuccessIsSet(true);
-
 
32670
      return this;
-
 
32671
    }
-
 
32672
 
-
 
32673
    public void unsetSuccess() {
-
 
32674
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
32675
    }
-
 
32676
 
-
 
32677
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
32678
    public boolean isSetSuccess() {
-
 
32679
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
32680
    }
-
 
32681
 
-
 
32682
    public void setSuccessIsSet(boolean value) {
-
 
32683
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
32684
    }
-
 
32685
 
-
 
32686
    public TransactionServiceException getEx() {
-
 
32687
      return this.ex;
-
 
32688
    }
-
 
32689
 
-
 
32690
    public reshipOrder_result setEx(TransactionServiceException ex) {
-
 
32691
      this.ex = ex;
-
 
32692
      return this;
-
 
32693
    }
-
 
32694
 
-
 
32695
    public void unsetEx() {
-
 
32696
      this.ex = null;
-
 
32697
    }
-
 
32698
 
-
 
32699
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
32700
    public boolean isSetEx() {
-
 
32701
      return this.ex != null;
-
 
32702
    }
-
 
32703
 
-
 
32704
    public void setExIsSet(boolean value) {
-
 
32705
      if (!value) {
-
 
32706
        this.ex = null;
-
 
32707
      }
-
 
32708
    }
-
 
32709
 
-
 
32710
    public void setFieldValue(_Fields field, Object value) {
-
 
32711
      switch (field) {
-
 
32712
      case SUCCESS:
-
 
32713
        if (value == null) {
-
 
32714
          unsetSuccess();
-
 
32715
        } else {
-
 
32716
          setSuccess((Long)value);
-
 
32717
        }
-
 
32718
        break;
-
 
32719
 
-
 
32720
      case EX:
-
 
32721
        if (value == null) {
-
 
32722
          unsetEx();
-
 
32723
        } else {
-
 
32724
          setEx((TransactionServiceException)value);
-
 
32725
        }
-
 
32726
        break;
-
 
32727
 
-
 
32728
      }
-
 
32729
    }
-
 
32730
 
-
 
32731
    public void setFieldValue(int fieldID, Object value) {
-
 
32732
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
32733
    }
-
 
32734
 
-
 
32735
    public Object getFieldValue(_Fields field) {
-
 
32736
      switch (field) {
-
 
32737
      case SUCCESS:
-
 
32738
        return new Long(getSuccess());
-
 
32739
 
-
 
32740
      case EX:
-
 
32741
        return getEx();
-
 
32742
 
-
 
32743
      }
-
 
32744
      throw new IllegalStateException();
-
 
32745
    }
-
 
32746
 
-
 
32747
    public Object getFieldValue(int fieldId) {
-
 
32748
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
32749
    }
-
 
32750
 
-
 
32751
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
32752
    public boolean isSet(_Fields field) {
-
 
32753
      switch (field) {
-
 
32754
      case SUCCESS:
-
 
32755
        return isSetSuccess();
-
 
32756
      case EX:
-
 
32757
        return isSetEx();
-
 
32758
      }
-
 
32759
      throw new IllegalStateException();
-
 
32760
    }
-
 
32761
 
-
 
32762
    public boolean isSet(int fieldID) {
-
 
32763
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
32764
    }
-
 
32765
 
-
 
32766
    @Override
-
 
32767
    public boolean equals(Object that) {
-
 
32768
      if (that == null)
-
 
32769
        return false;
-
 
32770
      if (that instanceof reshipOrder_result)
-
 
32771
        return this.equals((reshipOrder_result)that);
-
 
32772
      return false;
-
 
32773
    }
-
 
32774
 
-
 
32775
    public boolean equals(reshipOrder_result that) {
-
 
32776
      if (that == null)
-
 
32777
        return false;
-
 
32778
 
-
 
32779
      boolean this_present_success = true;
-
 
32780
      boolean that_present_success = true;
-
 
32781
      if (this_present_success || that_present_success) {
-
 
32782
        if (!(this_present_success && that_present_success))
-
 
32783
          return false;
-
 
32784
        if (this.success != that.success)
-
 
32785
          return false;
-
 
32786
      }
-
 
32787
 
-
 
32788
      boolean this_present_ex = true && this.isSetEx();
-
 
32789
      boolean that_present_ex = true && that.isSetEx();
-
 
32790
      if (this_present_ex || that_present_ex) {
-
 
32791
        if (!(this_present_ex && that_present_ex))
-
 
32792
          return false;
-
 
32793
        if (!this.ex.equals(that.ex))
-
 
32794
          return false;
-
 
32795
      }
-
 
32796
 
-
 
32797
      return true;
-
 
32798
    }
-
 
32799
 
-
 
32800
    @Override
-
 
32801
    public int hashCode() {
-
 
32802
      return 0;
-
 
32803
    }
-
 
32804
 
-
 
32805
    public int compareTo(reshipOrder_result other) {
-
 
32806
      if (!getClass().equals(other.getClass())) {
-
 
32807
        return getClass().getName().compareTo(other.getClass().getName());
-
 
32808
      }
-
 
32809
 
-
 
32810
      int lastComparison = 0;
-
 
32811
      reshipOrder_result typedOther = (reshipOrder_result)other;
-
 
32812
 
-
 
32813
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
32814
      if (lastComparison != 0) {
-
 
32815
        return lastComparison;
-
 
32816
      }
-
 
32817
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
32818
      if (lastComparison != 0) {
-
 
32819
        return lastComparison;
-
 
32820
      }
-
 
32821
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
32822
      if (lastComparison != 0) {
-
 
32823
        return lastComparison;
-
 
32824
      }
-
 
32825
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
32826
      if (lastComparison != 0) {
-
 
32827
        return lastComparison;
-
 
32828
      }
-
 
32829
      return 0;
-
 
32830
    }
-
 
32831
 
-
 
32832
    public void read(TProtocol iprot) throws TException {
-
 
32833
      TField field;
-
 
32834
      iprot.readStructBegin();
-
 
32835
      while (true)
-
 
32836
      {
-
 
32837
        field = iprot.readFieldBegin();
-
 
32838
        if (field.type == TType.STOP) { 
-
 
32839
          break;
-
 
32840
        }
-
 
32841
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
32842
        if (fieldId == null) {
-
 
32843
          TProtocolUtil.skip(iprot, field.type);
-
 
32844
        } else {
-
 
32845
          switch (fieldId) {
-
 
32846
            case SUCCESS:
-
 
32847
              if (field.type == TType.I64) {
-
 
32848
                this.success = iprot.readI64();
-
 
32849
                setSuccessIsSet(true);
-
 
32850
              } else { 
-
 
32851
                TProtocolUtil.skip(iprot, field.type);
-
 
32852
              }
-
 
32853
              break;
-
 
32854
            case EX:
-
 
32855
              if (field.type == TType.STRUCT) {
-
 
32856
                this.ex = new TransactionServiceException();
-
 
32857
                this.ex.read(iprot);
-
 
32858
              } else { 
-
 
32859
                TProtocolUtil.skip(iprot, field.type);
-
 
32860
              }
-
 
32861
              break;
-
 
32862
          }
-
 
32863
          iprot.readFieldEnd();
-
 
32864
        }
-
 
32865
      }
-
 
32866
      iprot.readStructEnd();
-
 
32867
      validate();
-
 
32868
    }
-
 
32869
 
-
 
32870
    public void write(TProtocol oprot) throws TException {
-
 
32871
      oprot.writeStructBegin(STRUCT_DESC);
-
 
32872
 
-
 
32873
      if (this.isSetSuccess()) {
-
 
32874
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
32875
        oprot.writeI64(this.success);
-
 
32876
        oprot.writeFieldEnd();
-
 
32877
      } else if (this.isSetEx()) {
-
 
32878
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
32879
        this.ex.write(oprot);
-
 
32880
        oprot.writeFieldEnd();
-
 
32881
      }
-
 
32882
      oprot.writeFieldStop();
-
 
32883
      oprot.writeStructEnd();
-
 
32884
    }
-
 
32885
 
-
 
32886
    @Override
-
 
32887
    public String toString() {
-
 
32888
      StringBuilder sb = new StringBuilder("reshipOrder_result(");
-
 
32889
      boolean first = true;
-
 
32890
 
-
 
32891
      sb.append("success:");
-
 
32892
      sb.append(this.success);
-
 
32893
      first = false;
-
 
32894
      if (!first) sb.append(", ");
-
 
32895
      sb.append("ex:");
-
 
32896
      if (this.ex == null) {
-
 
32897
        sb.append("null");
-
 
32898
      } else {
-
 
32899
        sb.append(this.ex);
-
 
32900
      }
-
 
32901
      first = false;
-
 
32902
      sb.append(")");
-
 
32903
      return sb.toString();
-
 
32904
    }
-
 
32905
 
-
 
32906
    public void validate() throws TException {
-
 
32907
      // check for required fields
-
 
32908
    }
-
 
32909
 
-
 
32910
  }
-
 
32911
 
-
 
32912
  public static class refundOrder_args implements TBase<refundOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<refundOrder_args>   {
-
 
32913
    private static final TStruct STRUCT_DESC = new TStruct("refundOrder_args");
-
 
32914
 
-
 
32915
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
32916
 
-
 
32917
    private long orderId;
-
 
32918
 
-
 
32919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
32920
    public enum _Fields implements TFieldIdEnum {
-
 
32921
      ORDER_ID((short)1, "orderId");
-
 
32922
 
-
 
32923
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
32924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
32925
 
-
 
32926
      static {
-
 
32927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
32928
          byId.put((int)field._thriftId, field);
-
 
32929
          byName.put(field.getFieldName(), field);
-
 
32930
        }
-
 
32931
      }
-
 
32932
 
-
 
32933
      /**
-
 
32934
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
32935
       */
-
 
32936
      public static _Fields findByThriftId(int fieldId) {
-
 
32937
        return byId.get(fieldId);
-
 
32938
      }
-
 
32939
 
-
 
32940
      /**
-
 
32941
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
32942
       * if it is not found.
-
 
32943
       */
-
 
32944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
32945
        _Fields fields = findByThriftId(fieldId);
-
 
32946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
32947
        return fields;
-
 
32948
      }
-
 
32949
 
-
 
32950
      /**
-
 
32951
       * Find the _Fields constant that matches name, or null if its not found.
-
 
32952
       */
-
 
32953
      public static _Fields findByName(String name) {
-
 
32954
        return byName.get(name);
-
 
32955
      }
-
 
32956
 
-
 
32957
      private final short _thriftId;
-
 
32958
      private final String _fieldName;
-
 
32959
 
-
 
32960
      _Fields(short thriftId, String fieldName) {
-
 
32961
        _thriftId = thriftId;
-
 
32962
        _fieldName = fieldName;
-
 
32963
      }
-
 
32964
 
-
 
32965
      public short getThriftFieldId() {
-
 
32966
        return _thriftId;
-
 
32967
      }
-
 
32968
 
-
 
32969
      public String getFieldName() {
-
 
32970
        return _fieldName;
-
 
32971
      }
-
 
32972
    }
-
 
32973
 
-
 
32974
    // isset id assignments
-
 
32975
    private static final int __ORDERID_ISSET_ID = 0;
-
 
32976
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
32977
 
-
 
32978
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
32979
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
32980
          new FieldValueMetaData(TType.I64)));
-
 
32981
    }});
-
 
32982
 
-
 
32983
    static {
-
 
32984
      FieldMetaData.addStructMetaDataMap(refundOrder_args.class, metaDataMap);
-
 
32985
    }
-
 
32986
 
-
 
32987
    public refundOrder_args() {
-
 
32988
    }
-
 
32989
 
-
 
32990
    public refundOrder_args(
-
 
32991
      long orderId)
-
 
32992
    {
-
 
32993
      this();
-
 
32994
      this.orderId = orderId;
-
 
32995
      setOrderIdIsSet(true);
-
 
32996
    }
-
 
32997
 
-
 
32998
    /**
-
 
32999
     * Performs a deep copy on <i>other</i>.
-
 
33000
     */
-
 
33001
    public refundOrder_args(refundOrder_args other) {
-
 
33002
      __isset_bit_vector.clear();
-
 
33003
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
33004
      this.orderId = other.orderId;
-
 
33005
    }
-
 
33006
 
-
 
33007
    public refundOrder_args deepCopy() {
-
 
33008
      return new refundOrder_args(this);
-
 
33009
    }
-
 
33010
 
-
 
33011
    @Deprecated
-
 
33012
    public refundOrder_args clone() {
-
 
33013
      return new refundOrder_args(this);
-
 
33014
    }
-
 
33015
 
-
 
33016
    public long getOrderId() {
-
 
33017
      return this.orderId;
-
 
33018
    }
-
 
33019
 
-
 
33020
    public refundOrder_args setOrderId(long orderId) {
-
 
33021
      this.orderId = orderId;
-
 
33022
      setOrderIdIsSet(true);
-
 
33023
      return this;
-
 
33024
    }
-
 
33025
 
-
 
33026
    public void unsetOrderId() {
-
 
33027
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
33028
    }
-
 
33029
 
-
 
33030
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
33031
    public boolean isSetOrderId() {
-
 
33032
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
33033
    }
-
 
33034
 
-
 
33035
    public void setOrderIdIsSet(boolean value) {
-
 
33036
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
33037
    }
-
 
33038
 
-
 
33039
    public void setFieldValue(_Fields field, Object value) {
-
 
33040
      switch (field) {
-
 
33041
      case ORDER_ID:
-
 
33042
        if (value == null) {
-
 
33043
          unsetOrderId();
-
 
33044
        } else {
-
 
33045
          setOrderId((Long)value);
-
 
33046
        }
-
 
33047
        break;
-
 
33048
 
-
 
33049
      }
-
 
33050
    }
-
 
33051
 
-
 
33052
    public void setFieldValue(int fieldID, Object value) {
-
 
33053
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33054
    }
-
 
33055
 
-
 
33056
    public Object getFieldValue(_Fields field) {
-
 
33057
      switch (field) {
-
 
33058
      case ORDER_ID:
-
 
33059
        return new Long(getOrderId());
-
 
33060
 
-
 
33061
      }
-
 
33062
      throw new IllegalStateException();
-
 
33063
    }
-
 
33064
 
-
 
33065
    public Object getFieldValue(int fieldId) {
-
 
33066
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33067
    }
-
 
33068
 
-
 
33069
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33070
    public boolean isSet(_Fields field) {
-
 
33071
      switch (field) {
-
 
33072
      case ORDER_ID:
-
 
33073
        return isSetOrderId();
-
 
33074
      }
-
 
33075
      throw new IllegalStateException();
-
 
33076
    }
-
 
33077
 
-
 
33078
    public boolean isSet(int fieldID) {
-
 
33079
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33080
    }
-
 
33081
 
-
 
33082
    @Override
-
 
33083
    public boolean equals(Object that) {
-
 
33084
      if (that == null)
-
 
33085
        return false;
-
 
33086
      if (that instanceof refundOrder_args)
-
 
33087
        return this.equals((refundOrder_args)that);
-
 
33088
      return false;
-
 
33089
    }
-
 
33090
 
-
 
33091
    public boolean equals(refundOrder_args that) {
-
 
33092
      if (that == null)
-
 
33093
        return false;
-
 
33094
 
-
 
33095
      boolean this_present_orderId = true;
-
 
33096
      boolean that_present_orderId = true;
-
 
33097
      if (this_present_orderId || that_present_orderId) {
-
 
33098
        if (!(this_present_orderId && that_present_orderId))
-
 
33099
          return false;
-
 
33100
        if (this.orderId != that.orderId)
-
 
33101
          return false;
-
 
33102
      }
-
 
33103
 
-
 
33104
      return true;
-
 
33105
    }
-
 
33106
 
-
 
33107
    @Override
-
 
33108
    public int hashCode() {
-
 
33109
      return 0;
-
 
33110
    }
-
 
33111
 
-
 
33112
    public int compareTo(refundOrder_args other) {
-
 
33113
      if (!getClass().equals(other.getClass())) {
-
 
33114
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33115
      }
-
 
33116
 
-
 
33117
      int lastComparison = 0;
-
 
33118
      refundOrder_args typedOther = (refundOrder_args)other;
-
 
33119
 
-
 
33120
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
33121
      if (lastComparison != 0) {
-
 
33122
        return lastComparison;
-
 
33123
      }
-
 
33124
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
33125
      if (lastComparison != 0) {
-
 
33126
        return lastComparison;
-
 
33127
      }
-
 
33128
      return 0;
-
 
33129
    }
-
 
33130
 
-
 
33131
    public void read(TProtocol iprot) throws TException {
-
 
33132
      TField field;
-
 
33133
      iprot.readStructBegin();
-
 
33134
      while (true)
-
 
33135
      {
-
 
33136
        field = iprot.readFieldBegin();
-
 
33137
        if (field.type == TType.STOP) { 
-
 
33138
          break;
-
 
33139
        }
-
 
33140
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33141
        if (fieldId == null) {
-
 
33142
          TProtocolUtil.skip(iprot, field.type);
-
 
33143
        } else {
-
 
33144
          switch (fieldId) {
-
 
33145
            case ORDER_ID:
-
 
33146
              if (field.type == TType.I64) {
-
 
33147
                this.orderId = iprot.readI64();
-
 
33148
                setOrderIdIsSet(true);
-
 
33149
              } else { 
-
 
33150
                TProtocolUtil.skip(iprot, field.type);
-
 
33151
              }
-
 
33152
              break;
-
 
33153
          }
-
 
33154
          iprot.readFieldEnd();
-
 
33155
        }
-
 
33156
      }
-
 
33157
      iprot.readStructEnd();
-
 
33158
      validate();
-
 
33159
    }
-
 
33160
 
-
 
33161
    public void write(TProtocol oprot) throws TException {
-
 
33162
      validate();
-
 
33163
 
-
 
33164
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33165
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
33166
      oprot.writeI64(this.orderId);
-
 
33167
      oprot.writeFieldEnd();
-
 
33168
      oprot.writeFieldStop();
-
 
33169
      oprot.writeStructEnd();
-
 
33170
    }
-
 
33171
 
-
 
33172
    @Override
-
 
33173
    public String toString() {
-
 
33174
      StringBuilder sb = new StringBuilder("refundOrder_args(");
-
 
33175
      boolean first = true;
-
 
33176
 
-
 
33177
      sb.append("orderId:");
-
 
33178
      sb.append(this.orderId);
-
 
33179
      first = false;
-
 
33180
      sb.append(")");
-
 
33181
      return sb.toString();
-
 
33182
    }
-
 
33183
 
-
 
33184
    public void validate() throws TException {
-
 
33185
      // check for required fields
-
 
33186
    }
-
 
33187
 
-
 
33188
  }
-
 
33189
 
-
 
33190
  public static class refundOrder_result implements TBase<refundOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<refundOrder_result>   {
-
 
33191
    private static final TStruct STRUCT_DESC = new TStruct("refundOrder_result");
-
 
33192
 
-
 
33193
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
33194
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
33195
 
-
 
33196
    private boolean success;
-
 
33197
    private TransactionServiceException ex;
-
 
33198
 
-
 
33199
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
33200
    public enum _Fields implements TFieldIdEnum {
-
 
33201
      SUCCESS((short)0, "success"),
-
 
33202
      EX((short)1, "ex");
-
 
33203
 
-
 
33204
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
33205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
33206
 
-
 
33207
      static {
-
 
33208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
33209
          byId.put((int)field._thriftId, field);
-
 
33210
          byName.put(field.getFieldName(), field);
-
 
33211
        }
-
 
33212
      }
-
 
33213
 
-
 
33214
      /**
-
 
33215
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
33216
       */
-
 
33217
      public static _Fields findByThriftId(int fieldId) {
-
 
33218
        return byId.get(fieldId);
-
 
33219
      }
-
 
33220
 
-
 
33221
      /**
-
 
33222
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
33223
       * if it is not found.
-
 
33224
       */
-
 
33225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
33226
        _Fields fields = findByThriftId(fieldId);
-
 
33227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
33228
        return fields;
-
 
33229
      }
-
 
33230
 
-
 
33231
      /**
-
 
33232
       * Find the _Fields constant that matches name, or null if its not found.
-
 
33233
       */
-
 
33234
      public static _Fields findByName(String name) {
-
 
33235
        return byName.get(name);
-
 
33236
      }
-
 
33237
 
-
 
33238
      private final short _thriftId;
-
 
33239
      private final String _fieldName;
-
 
33240
 
-
 
33241
      _Fields(short thriftId, String fieldName) {
-
 
33242
        _thriftId = thriftId;
-
 
33243
        _fieldName = fieldName;
-
 
33244
      }
-
 
33245
 
-
 
33246
      public short getThriftFieldId() {
-
 
33247
        return _thriftId;
-
 
33248
      }
-
 
33249
 
-
 
33250
      public String getFieldName() {
-
 
33251
        return _fieldName;
-
 
33252
      }
-
 
33253
    }
-
 
33254
 
-
 
33255
    // isset id assignments
-
 
33256
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
33257
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
33258
 
-
 
33259
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
33260
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
33261
          new FieldValueMetaData(TType.BOOL)));
-
 
33262
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
33263
          new FieldValueMetaData(TType.STRUCT)));
-
 
33264
    }});
-
 
33265
 
-
 
33266
    static {
-
 
33267
      FieldMetaData.addStructMetaDataMap(refundOrder_result.class, metaDataMap);
-
 
33268
    }
-
 
33269
 
-
 
33270
    public refundOrder_result() {
-
 
33271
    }
-
 
33272
 
-
 
33273
    public refundOrder_result(
-
 
33274
      boolean success,
-
 
33275
      TransactionServiceException ex)
-
 
33276
    {
-
 
33277
      this();
-
 
33278
      this.success = success;
-
 
33279
      setSuccessIsSet(true);
-
 
33280
      this.ex = ex;
-
 
33281
    }
-
 
33282
 
-
 
33283
    /**
-
 
33284
     * Performs a deep copy on <i>other</i>.
-
 
33285
     */
-
 
33286
    public refundOrder_result(refundOrder_result other) {
-
 
33287
      __isset_bit_vector.clear();
-
 
33288
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
33289
      this.success = other.success;
-
 
33290
      if (other.isSetEx()) {
-
 
33291
        this.ex = new TransactionServiceException(other.ex);
-
 
33292
      }
-
 
33293
    }
-
 
33294
 
-
 
33295
    public refundOrder_result deepCopy() {
-
 
33296
      return new refundOrder_result(this);
-
 
33297
    }
-
 
33298
 
-
 
33299
    @Deprecated
-
 
33300
    public refundOrder_result clone() {
-
 
33301
      return new refundOrder_result(this);
-
 
33302
    }
-
 
33303
 
-
 
33304
    public boolean isSuccess() {
-
 
33305
      return this.success;
-
 
33306
    }
-
 
33307
 
-
 
33308
    public refundOrder_result setSuccess(boolean success) {
-
 
33309
      this.success = success;
-
 
33310
      setSuccessIsSet(true);
-
 
33311
      return this;
-
 
33312
    }
-
 
33313
 
-
 
33314
    public void unsetSuccess() {
-
 
33315
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
33316
    }
-
 
33317
 
-
 
33318
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
33319
    public boolean isSetSuccess() {
-
 
33320
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
33321
    }
-
 
33322
 
-
 
33323
    public void setSuccessIsSet(boolean value) {
-
 
33324
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
33325
    }
-
 
33326
 
-
 
33327
    public TransactionServiceException getEx() {
-
 
33328
      return this.ex;
-
 
33329
    }
-
 
33330
 
-
 
33331
    public refundOrder_result setEx(TransactionServiceException ex) {
-
 
33332
      this.ex = ex;
-
 
33333
      return this;
-
 
33334
    }
-
 
33335
 
-
 
33336
    public void unsetEx() {
-
 
33337
      this.ex = null;
-
 
33338
    }
-
 
33339
 
-
 
33340
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
33341
    public boolean isSetEx() {
-
 
33342
      return this.ex != null;
-
 
33343
    }
-
 
33344
 
-
 
33345
    public void setExIsSet(boolean value) {
-
 
33346
      if (!value) {
-
 
33347
        this.ex = null;
-
 
33348
      }
-
 
33349
    }
-
 
33350
 
-
 
33351
    public void setFieldValue(_Fields field, Object value) {
-
 
33352
      switch (field) {
-
 
33353
      case SUCCESS:
-
 
33354
        if (value == null) {
-
 
33355
          unsetSuccess();
-
 
33356
        } else {
-
 
33357
          setSuccess((Boolean)value);
-
 
33358
        }
-
 
33359
        break;
-
 
33360
 
-
 
33361
      case EX:
-
 
33362
        if (value == null) {
-
 
33363
          unsetEx();
-
 
33364
        } else {
-
 
33365
          setEx((TransactionServiceException)value);
-
 
33366
        }
-
 
33367
        break;
-
 
33368
 
-
 
33369
      }
-
 
33370
    }
-
 
33371
 
-
 
33372
    public void setFieldValue(int fieldID, Object value) {
-
 
33373
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
33374
    }
-
 
33375
 
-
 
33376
    public Object getFieldValue(_Fields field) {
-
 
33377
      switch (field) {
-
 
33378
      case SUCCESS:
-
 
33379
        return new Boolean(isSuccess());
-
 
33380
 
-
 
33381
      case EX:
-
 
33382
        return getEx();
-
 
33383
 
-
 
33384
      }
-
 
33385
      throw new IllegalStateException();
-
 
33386
    }
-
 
33387
 
-
 
33388
    public Object getFieldValue(int fieldId) {
-
 
33389
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
33390
    }
-
 
33391
 
-
 
33392
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
33393
    public boolean isSet(_Fields field) {
-
 
33394
      switch (field) {
-
 
33395
      case SUCCESS:
-
 
33396
        return isSetSuccess();
-
 
33397
      case EX:
-
 
33398
        return isSetEx();
-
 
33399
      }
-
 
33400
      throw new IllegalStateException();
-
 
33401
    }
-
 
33402
 
-
 
33403
    public boolean isSet(int fieldID) {
-
 
33404
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
33405
    }
-
 
33406
 
-
 
33407
    @Override
-
 
33408
    public boolean equals(Object that) {
-
 
33409
      if (that == null)
-
 
33410
        return false;
-
 
33411
      if (that instanceof refundOrder_result)
-
 
33412
        return this.equals((refundOrder_result)that);
-
 
33413
      return false;
-
 
33414
    }
-
 
33415
 
-
 
33416
    public boolean equals(refundOrder_result that) {
-
 
33417
      if (that == null)
-
 
33418
        return false;
-
 
33419
 
-
 
33420
      boolean this_present_success = true;
-
 
33421
      boolean that_present_success = true;
-
 
33422
      if (this_present_success || that_present_success) {
-
 
33423
        if (!(this_present_success && that_present_success))
-
 
33424
          return false;
-
 
33425
        if (this.success != that.success)
-
 
33426
          return false;
-
 
33427
      }
-
 
33428
 
-
 
33429
      boolean this_present_ex = true && this.isSetEx();
-
 
33430
      boolean that_present_ex = true && that.isSetEx();
-
 
33431
      if (this_present_ex || that_present_ex) {
-
 
33432
        if (!(this_present_ex && that_present_ex))
-
 
33433
          return false;
-
 
33434
        if (!this.ex.equals(that.ex))
-
 
33435
          return false;
-
 
33436
      }
-
 
33437
 
-
 
33438
      return true;
-
 
33439
    }
-
 
33440
 
-
 
33441
    @Override
-
 
33442
    public int hashCode() {
-
 
33443
      return 0;
-
 
33444
    }
-
 
33445
 
-
 
33446
    public int compareTo(refundOrder_result other) {
-
 
33447
      if (!getClass().equals(other.getClass())) {
-
 
33448
        return getClass().getName().compareTo(other.getClass().getName());
-
 
33449
      }
-
 
33450
 
-
 
33451
      int lastComparison = 0;
-
 
33452
      refundOrder_result typedOther = (refundOrder_result)other;
-
 
33453
 
-
 
33454
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
33455
      if (lastComparison != 0) {
-
 
33456
        return lastComparison;
-
 
33457
      }
-
 
33458
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
33459
      if (lastComparison != 0) {
-
 
33460
        return lastComparison;
-
 
33461
      }
-
 
33462
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
33463
      if (lastComparison != 0) {
-
 
33464
        return lastComparison;
-
 
33465
      }
-
 
33466
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
33467
      if (lastComparison != 0) {
-
 
33468
        return lastComparison;
-
 
33469
      }
-
 
33470
      return 0;
-
 
33471
    }
-
 
33472
 
-
 
33473
    public void read(TProtocol iprot) throws TException {
-
 
33474
      TField field;
-
 
33475
      iprot.readStructBegin();
-
 
33476
      while (true)
-
 
33477
      {
-
 
33478
        field = iprot.readFieldBegin();
-
 
33479
        if (field.type == TType.STOP) { 
-
 
33480
          break;
-
 
33481
        }
-
 
33482
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
33483
        if (fieldId == null) {
-
 
33484
          TProtocolUtil.skip(iprot, field.type);
-
 
33485
        } else {
-
 
33486
          switch (fieldId) {
-
 
33487
            case SUCCESS:
-
 
33488
              if (field.type == TType.BOOL) {
-
 
33489
                this.success = iprot.readBool();
-
 
33490
                setSuccessIsSet(true);
-
 
33491
              } else { 
-
 
33492
                TProtocolUtil.skip(iprot, field.type);
-
 
33493
              }
-
 
33494
              break;
-
 
33495
            case EX:
-
 
33496
              if (field.type == TType.STRUCT) {
-
 
33497
                this.ex = new TransactionServiceException();
-
 
33498
                this.ex.read(iprot);
-
 
33499
              } else { 
-
 
33500
                TProtocolUtil.skip(iprot, field.type);
-
 
33501
              }
-
 
33502
              break;
-
 
33503
          }
-
 
33504
          iprot.readFieldEnd();
-
 
33505
        }
-
 
33506
      }
-
 
33507
      iprot.readStructEnd();
-
 
33508
      validate();
-
 
33509
    }
-
 
33510
 
-
 
33511
    public void write(TProtocol oprot) throws TException {
-
 
33512
      oprot.writeStructBegin(STRUCT_DESC);
-
 
33513
 
-
 
33514
      if (this.isSetSuccess()) {
-
 
33515
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
33516
        oprot.writeBool(this.success);
-
 
33517
        oprot.writeFieldEnd();
-
 
33518
      } else if (this.isSetEx()) {
-
 
33519
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
33520
        this.ex.write(oprot);
-
 
33521
        oprot.writeFieldEnd();
-
 
33522
      }
-
 
33523
      oprot.writeFieldStop();
-
 
33524
      oprot.writeStructEnd();
-
 
33525
    }
-
 
33526
 
-
 
33527
    @Override
-
 
33528
    public String toString() {
-
 
33529
      StringBuilder sb = new StringBuilder("refundOrder_result(");
-
 
33530
      boolean first = true;
-
 
33531
 
-
 
33532
      sb.append("success:");
-
 
33533
      sb.append(this.success);
-
 
33534
      first = false;
32085
      if (!first) sb.append(", ");
33535
      if (!first) sb.append(", ");
32086
      sb.append("ex:");
33536
      sb.append("ex:");
32087
      if (this.ex == null) {
33537
      if (this.ex == null) {
32088
        sb.append("null");
33538
        sb.append("null");
32089
      } else {
33539
      } else {