Subversion Repositories SmartDukaan

Rev

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

Rev 6385 Rev 6467
Line 156... Line 156...
156
     * 
156
     * 
157
     * @param supplier
157
     * @param supplier
158
     */
158
     */
159
    public void updateSupplier(Supplier supplier) throws org.apache.thrift.TException;
159
    public void updateSupplier(Supplier supplier) throws org.apache.thrift.TException;
160
 
160
 
-
 
161
    /**
-
 
162
     * Create a new Purchase Return
-
 
163
     * 
-
 
164
     * @param purchaseReturn
-
 
165
     */
-
 
166
    public long createPurchaseReturn(PurchaseReturn purchaseReturn) throws org.apache.thrift.TException;
-
 
167
 
-
 
168
    /**
-
 
169
     * Create a new Purchase Return
-
 
170
     * 
-
 
171
     * @param id
-
 
172
     */
-
 
173
    public void settlePurchaseReturn(long id) throws org.apache.thrift.TException;
-
 
174
 
-
 
175
    /**
-
 
176
     * Create a new Purchase Return
-
 
177
     */
-
 
178
    public List<PurchaseReturn> getUnsettledPurchaseReturns() throws org.apache.thrift.TException;
-
 
179
 
161
  }
180
  }
162
 
181
 
163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
182
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
164
 
183
 
165
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
184
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
Line 196... Line 215...
196
 
215
 
197
    public void addSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSupplier_call> resultHandler) throws org.apache.thrift.TException;
216
    public void addSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSupplier_call> resultHandler) throws org.apache.thrift.TException;
198
 
217
 
199
    public void updateSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSupplier_call> resultHandler) throws org.apache.thrift.TException;
218
    public void updateSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSupplier_call> resultHandler) throws org.apache.thrift.TException;
200
 
219
 
-
 
220
    public void createPurchaseReturn(PurchaseReturn purchaseReturn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
221
 
-
 
222
    public void settlePurchaseReturn(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.settlePurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
-
 
223
 
-
 
224
    public void getUnsettledPurchaseReturns(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnsettledPurchaseReturns_call> resultHandler) throws org.apache.thrift.TException;
-
 
225
 
201
  }
226
  }
202
 
227
 
203
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
228
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
204
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
229
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
205
      public Factory() {}
230
      public Factory() {}
Line 665... Line 690...
665
      updateSupplier_result result = new updateSupplier_result();
690
      updateSupplier_result result = new updateSupplier_result();
666
      receiveBase(result, "updateSupplier");
691
      receiveBase(result, "updateSupplier");
667
      return;
692
      return;
668
    }
693
    }
669
 
694
 
-
 
695
    public long createPurchaseReturn(PurchaseReturn purchaseReturn) throws org.apache.thrift.TException
-
 
696
    {
-
 
697
      send_createPurchaseReturn(purchaseReturn);
-
 
698
      return recv_createPurchaseReturn();
-
 
699
    }
-
 
700
 
-
 
701
    public void send_createPurchaseReturn(PurchaseReturn purchaseReturn) throws org.apache.thrift.TException
-
 
702
    {
-
 
703
      createPurchaseReturn_args args = new createPurchaseReturn_args();
-
 
704
      args.setPurchaseReturn(purchaseReturn);
-
 
705
      sendBase("createPurchaseReturn", args);
-
 
706
    }
-
 
707
 
-
 
708
    public long recv_createPurchaseReturn() throws org.apache.thrift.TException
-
 
709
    {
-
 
710
      createPurchaseReturn_result result = new createPurchaseReturn_result();
-
 
711
      receiveBase(result, "createPurchaseReturn");
-
 
712
      if (result.isSetSuccess()) {
-
 
713
        return result.success;
-
 
714
      }
-
 
715
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseReturn failed: unknown result");
-
 
716
    }
-
 
717
 
-
 
718
    public void settlePurchaseReturn(long id) throws org.apache.thrift.TException
-
 
719
    {
-
 
720
      send_settlePurchaseReturn(id);
-
 
721
      recv_settlePurchaseReturn();
-
 
722
    }
-
 
723
 
-
 
724
    public void send_settlePurchaseReturn(long id) throws org.apache.thrift.TException
-
 
725
    {
-
 
726
      settlePurchaseReturn_args args = new settlePurchaseReturn_args();
-
 
727
      args.setId(id);
-
 
728
      sendBase("settlePurchaseReturn", args);
-
 
729
    }
-
 
730
 
-
 
731
    public void recv_settlePurchaseReturn() throws org.apache.thrift.TException
-
 
732
    {
-
 
733
      settlePurchaseReturn_result result = new settlePurchaseReturn_result();
-
 
734
      receiveBase(result, "settlePurchaseReturn");
-
 
735
      return;
-
 
736
    }
-
 
737
 
-
 
738
    public List<PurchaseReturn> getUnsettledPurchaseReturns() throws org.apache.thrift.TException
-
 
739
    {
-
 
740
      send_getUnsettledPurchaseReturns();
-
 
741
      return recv_getUnsettledPurchaseReturns();
-
 
742
    }
-
 
743
 
-
 
744
    public void send_getUnsettledPurchaseReturns() throws org.apache.thrift.TException
-
 
745
    {
-
 
746
      getUnsettledPurchaseReturns_args args = new getUnsettledPurchaseReturns_args();
-
 
747
      sendBase("getUnsettledPurchaseReturns", args);
-
 
748
    }
-
 
749
 
-
 
750
    public List<PurchaseReturn> recv_getUnsettledPurchaseReturns() throws org.apache.thrift.TException
-
 
751
    {
-
 
752
      getUnsettledPurchaseReturns_result result = new getUnsettledPurchaseReturns_result();
-
 
753
      receiveBase(result, "getUnsettledPurchaseReturns");
-
 
754
      if (result.isSetSuccess()) {
-
 
755
        return result.success;
-
 
756
      }
-
 
757
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUnsettledPurchaseReturns failed: unknown result");
-
 
758
    }
-
 
759
 
670
  }
760
  }
671
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
761
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
672
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
762
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
673
      private org.apache.thrift.async.TAsyncClientManager clientManager;
763
      private org.apache.thrift.async.TAsyncClientManager clientManager;
674
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
764
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1277... Line 1367...
1277
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1367
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1278
        (new Client(prot)).recv_updateSupplier();
1368
        (new Client(prot)).recv_updateSupplier();
1279
      }
1369
      }
1280
    }
1370
    }
1281
 
1371
 
-
 
1372
    public void createPurchaseReturn(PurchaseReturn purchaseReturn, org.apache.thrift.async.AsyncMethodCallback<createPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
1373
      checkReady();
-
 
1374
      createPurchaseReturn_call method_call = new createPurchaseReturn_call(purchaseReturn, resultHandler, this, ___protocolFactory, ___transport);
-
 
1375
      this.___currentMethod = method_call;
-
 
1376
      ___manager.call(method_call);
-
 
1377
    }
-
 
1378
 
-
 
1379
    public static class createPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1380
      private PurchaseReturn purchaseReturn;
-
 
1381
      public createPurchaseReturn_call(PurchaseReturn purchaseReturn, org.apache.thrift.async.AsyncMethodCallback<createPurchaseReturn_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 {
-
 
1382
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1383
        this.purchaseReturn = purchaseReturn;
-
 
1384
      }
-
 
1385
 
-
 
1386
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1387
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1388
        createPurchaseReturn_args args = new createPurchaseReturn_args();
-
 
1389
        args.setPurchaseReturn(purchaseReturn);
-
 
1390
        args.write(prot);
-
 
1391
        prot.writeMessageEnd();
-
 
1392
      }
-
 
1393
 
-
 
1394
      public long getResult() throws org.apache.thrift.TException {
-
 
1395
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1396
          throw new IllegalStateException("Method call not finished!");
-
 
1397
        }
-
 
1398
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1399
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1400
        return (new Client(prot)).recv_createPurchaseReturn();
-
 
1401
      }
-
 
1402
    }
-
 
1403
 
-
 
1404
    public void settlePurchaseReturn(long id, org.apache.thrift.async.AsyncMethodCallback<settlePurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
-
 
1405
      checkReady();
-
 
1406
      settlePurchaseReturn_call method_call = new settlePurchaseReturn_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
1407
      this.___currentMethod = method_call;
-
 
1408
      ___manager.call(method_call);
-
 
1409
    }
-
 
1410
 
-
 
1411
    public static class settlePurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1412
      private long id;
-
 
1413
      public settlePurchaseReturn_call(long id, org.apache.thrift.async.AsyncMethodCallback<settlePurchaseReturn_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 {
-
 
1414
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1415
        this.id = id;
-
 
1416
      }
-
 
1417
 
-
 
1418
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1419
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("settlePurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1420
        settlePurchaseReturn_args args = new settlePurchaseReturn_args();
-
 
1421
        args.setId(id);
-
 
1422
        args.write(prot);
-
 
1423
        prot.writeMessageEnd();
-
 
1424
      }
-
 
1425
 
-
 
1426
      public void getResult() throws org.apache.thrift.TException {
-
 
1427
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1428
          throw new IllegalStateException("Method call not finished!");
-
 
1429
        }
-
 
1430
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1431
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1432
        (new Client(prot)).recv_settlePurchaseReturn();
-
 
1433
      }
-
 
1434
    }
-
 
1435
 
-
 
1436
    public void getUnsettledPurchaseReturns(org.apache.thrift.async.AsyncMethodCallback<getUnsettledPurchaseReturns_call> resultHandler) throws org.apache.thrift.TException {
-
 
1437
      checkReady();
-
 
1438
      getUnsettledPurchaseReturns_call method_call = new getUnsettledPurchaseReturns_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
1439
      this.___currentMethod = method_call;
-
 
1440
      ___manager.call(method_call);
-
 
1441
    }
-
 
1442
 
-
 
1443
    public static class getUnsettledPurchaseReturns_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1444
      public getUnsettledPurchaseReturns_call(org.apache.thrift.async.AsyncMethodCallback<getUnsettledPurchaseReturns_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 {
-
 
1445
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1446
      }
-
 
1447
 
-
 
1448
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1449
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUnsettledPurchaseReturns", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1450
        getUnsettledPurchaseReturns_args args = new getUnsettledPurchaseReturns_args();
-
 
1451
        args.write(prot);
-
 
1452
        prot.writeMessageEnd();
-
 
1453
      }
-
 
1454
 
-
 
1455
      public List<PurchaseReturn> getResult() throws org.apache.thrift.TException {
-
 
1456
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1457
          throw new IllegalStateException("Method call not finished!");
-
 
1458
        }
-
 
1459
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1460
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1461
        return (new Client(prot)).recv_getUnsettledPurchaseReturns();
-
 
1462
      }
-
 
1463
    }
-
 
1464
 
1282
  }
1465
  }
1283
 
1466
 
1284
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1467
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1285
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1468
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1286
    public Processor(I iface) {
1469
    public Processor(I iface) {
Line 1308... Line 1491...
1308
      processMap.put("unFulfillPO", new unFulfillPO());
1491
      processMap.put("unFulfillPO", new unFulfillPO());
1309
      processMap.put("getInvoices", new getInvoices());
1492
      processMap.put("getInvoices", new getInvoices());
1310
      processMap.put("createInvoice", new createInvoice());
1493
      processMap.put("createInvoice", new createInvoice());
1311
      processMap.put("addSupplier", new addSupplier());
1494
      processMap.put("addSupplier", new addSupplier());
1312
      processMap.put("updateSupplier", new updateSupplier());
1495
      processMap.put("updateSupplier", new updateSupplier());
-
 
1496
      processMap.put("createPurchaseReturn", new createPurchaseReturn());
-
 
1497
      processMap.put("settlePurchaseReturn", new settlePurchaseReturn());
-
 
1498
      processMap.put("getUnsettledPurchaseReturns", new getUnsettledPurchaseReturns());
1313
      return processMap;
1499
      return processMap;
1314
    }
1500
    }
1315
 
1501
 
1316
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1502
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1317
      public createPurchaseOrder() {
1503
      public createPurchaseOrder() {
Line 1658... Line 1844...
1658
        iface.updateSupplier(args.supplier);
1844
        iface.updateSupplier(args.supplier);
1659
        return result;
1845
        return result;
1660
      }
1846
      }
1661
    }
1847
    }
1662
 
1848
 
-
 
1849
    private static class createPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseReturn_args> {
-
 
1850
      public createPurchaseReturn() {
-
 
1851
        super("createPurchaseReturn");
-
 
1852
      }
-
 
1853
 
-
 
1854
      protected createPurchaseReturn_args getEmptyArgsInstance() {
-
 
1855
        return new createPurchaseReturn_args();
-
 
1856
      }
-
 
1857
 
-
 
1858
      protected createPurchaseReturn_result getResult(I iface, createPurchaseReturn_args args) throws org.apache.thrift.TException {
-
 
1859
        createPurchaseReturn_result result = new createPurchaseReturn_result();
-
 
1860
        result.success = iface.createPurchaseReturn(args.purchaseReturn);
-
 
1861
        result.setSuccessIsSet(true);
-
 
1862
        return result;
-
 
1863
      }
-
 
1864
    }
-
 
1865
 
-
 
1866
    private static class settlePurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, settlePurchaseReturn_args> {
-
 
1867
      public settlePurchaseReturn() {
-
 
1868
        super("settlePurchaseReturn");
-
 
1869
      }
-
 
1870
 
-
 
1871
      protected settlePurchaseReturn_args getEmptyArgsInstance() {
-
 
1872
        return new settlePurchaseReturn_args();
-
 
1873
      }
-
 
1874
 
-
 
1875
      protected settlePurchaseReturn_result getResult(I iface, settlePurchaseReturn_args args) throws org.apache.thrift.TException {
-
 
1876
        settlePurchaseReturn_result result = new settlePurchaseReturn_result();
-
 
1877
        iface.settlePurchaseReturn(args.id);
-
 
1878
        return result;
-
 
1879
      }
-
 
1880
    }
-
 
1881
 
-
 
1882
    private static class getUnsettledPurchaseReturns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUnsettledPurchaseReturns_args> {
-
 
1883
      public getUnsettledPurchaseReturns() {
-
 
1884
        super("getUnsettledPurchaseReturns");
-
 
1885
      }
-
 
1886
 
-
 
1887
      protected getUnsettledPurchaseReturns_args getEmptyArgsInstance() {
-
 
1888
        return new getUnsettledPurchaseReturns_args();
-
 
1889
      }
-
 
1890
 
-
 
1891
      protected getUnsettledPurchaseReturns_result getResult(I iface, getUnsettledPurchaseReturns_args args) throws org.apache.thrift.TException {
-
 
1892
        getUnsettledPurchaseReturns_result result = new getUnsettledPurchaseReturns_result();
-
 
1893
        result.success = iface.getUnsettledPurchaseReturns();
-
 
1894
        return result;
-
 
1895
      }
-
 
1896
    }
-
 
1897
 
1663
  }
1898
  }
1664
 
1899
 
1665
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1900
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1666
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1901
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1667
 
1902
 
Line 13728... Line 13963...
13728
      sb.append(")");
13963
      sb.append(")");
13729
      return sb.toString();
13964
      return sb.toString();
13730
    }
13965
    }
13731
 
13966
 
13732
    public void validate() throws org.apache.thrift.TException {
13967
    public void validate() throws org.apache.thrift.TException {
-
 
13968
      // check for required fields
-
 
13969
    }
-
 
13970
 
-
 
13971
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13972
      try {
-
 
13973
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13974
      } catch (org.apache.thrift.TException te) {
-
 
13975
        throw new java.io.IOException(te);
-
 
13976
      }
-
 
13977
    }
-
 
13978
 
-
 
13979
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13980
      try {
-
 
13981
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13982
      } catch (org.apache.thrift.TException te) {
-
 
13983
        throw new java.io.IOException(te);
-
 
13984
      }
-
 
13985
    }
-
 
13986
 
-
 
13987
  }
-
 
13988
 
-
 
13989
  public static class createPurchaseReturn_args implements org.apache.thrift.TBase<createPurchaseReturn_args, createPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
13990
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseReturn_args");
-
 
13991
 
-
 
13992
    private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturn", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
13993
 
-
 
13994
    private PurchaseReturn purchaseReturn; // required
-
 
13995
 
-
 
13996
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13997
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
13998
      PURCHASE_RETURN((short)1, "purchaseReturn");
-
 
13999
 
-
 
14000
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14001
 
-
 
14002
      static {
-
 
14003
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14004
          byName.put(field.getFieldName(), field);
-
 
14005
        }
-
 
14006
      }
-
 
14007
 
-
 
14008
      /**
-
 
14009
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14010
       */
-
 
14011
      public static _Fields findByThriftId(int fieldId) {
-
 
14012
        switch(fieldId) {
-
 
14013
          case 1: // PURCHASE_RETURN
-
 
14014
            return PURCHASE_RETURN;
-
 
14015
          default:
-
 
14016
            return null;
-
 
14017
        }
-
 
14018
      }
-
 
14019
 
-
 
14020
      /**
-
 
14021
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14022
       * if it is not found.
-
 
14023
       */
-
 
14024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14025
        _Fields fields = findByThriftId(fieldId);
-
 
14026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14027
        return fields;
-
 
14028
      }
-
 
14029
 
-
 
14030
      /**
-
 
14031
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14032
       */
-
 
14033
      public static _Fields findByName(String name) {
-
 
14034
        return byName.get(name);
-
 
14035
      }
-
 
14036
 
-
 
14037
      private final short _thriftId;
-
 
14038
      private final String _fieldName;
-
 
14039
 
-
 
14040
      _Fields(short thriftId, String fieldName) {
-
 
14041
        _thriftId = thriftId;
-
 
14042
        _fieldName = fieldName;
-
 
14043
      }
-
 
14044
 
-
 
14045
      public short getThriftFieldId() {
-
 
14046
        return _thriftId;
-
 
14047
      }
-
 
14048
 
-
 
14049
      public String getFieldName() {
-
 
14050
        return _fieldName;
-
 
14051
      }
-
 
14052
    }
-
 
14053
 
-
 
14054
    // isset id assignments
-
 
14055
 
-
 
14056
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14057
    static {
-
 
14058
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14059
      tmpMap.put(_Fields.PURCHASE_RETURN, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14060
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseReturn.class)));
-
 
14061
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14062
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseReturn_args.class, metaDataMap);
-
 
14063
    }
-
 
14064
 
-
 
14065
    public createPurchaseReturn_args() {
-
 
14066
    }
-
 
14067
 
-
 
14068
    public createPurchaseReturn_args(
-
 
14069
      PurchaseReturn purchaseReturn)
-
 
14070
    {
-
 
14071
      this();
-
 
14072
      this.purchaseReturn = purchaseReturn;
-
 
14073
    }
-
 
14074
 
-
 
14075
    /**
-
 
14076
     * Performs a deep copy on <i>other</i>.
-
 
14077
     */
-
 
14078
    public createPurchaseReturn_args(createPurchaseReturn_args other) {
-
 
14079
      if (other.isSetPurchaseReturn()) {
-
 
14080
        this.purchaseReturn = new PurchaseReturn(other.purchaseReturn);
-
 
14081
      }
-
 
14082
    }
-
 
14083
 
-
 
14084
    public createPurchaseReturn_args deepCopy() {
-
 
14085
      return new createPurchaseReturn_args(this);
-
 
14086
    }
-
 
14087
 
-
 
14088
    @Override
-
 
14089
    public void clear() {
-
 
14090
      this.purchaseReturn = null;
-
 
14091
    }
-
 
14092
 
-
 
14093
    public PurchaseReturn getPurchaseReturn() {
-
 
14094
      return this.purchaseReturn;
-
 
14095
    }
-
 
14096
 
-
 
14097
    public void setPurchaseReturn(PurchaseReturn purchaseReturn) {
-
 
14098
      this.purchaseReturn = purchaseReturn;
-
 
14099
    }
-
 
14100
 
-
 
14101
    public void unsetPurchaseReturn() {
-
 
14102
      this.purchaseReturn = null;
-
 
14103
    }
-
 
14104
 
-
 
14105
    /** Returns true if field purchaseReturn is set (has been assigned a value) and false otherwise */
-
 
14106
    public boolean isSetPurchaseReturn() {
-
 
14107
      return this.purchaseReturn != null;
-
 
14108
    }
-
 
14109
 
-
 
14110
    public void setPurchaseReturnIsSet(boolean value) {
-
 
14111
      if (!value) {
-
 
14112
        this.purchaseReturn = null;
-
 
14113
      }
-
 
14114
    }
-
 
14115
 
-
 
14116
    public void setFieldValue(_Fields field, Object value) {
-
 
14117
      switch (field) {
-
 
14118
      case PURCHASE_RETURN:
-
 
14119
        if (value == null) {
-
 
14120
          unsetPurchaseReturn();
-
 
14121
        } else {
-
 
14122
          setPurchaseReturn((PurchaseReturn)value);
-
 
14123
        }
-
 
14124
        break;
-
 
14125
 
-
 
14126
      }
-
 
14127
    }
-
 
14128
 
-
 
14129
    public Object getFieldValue(_Fields field) {
-
 
14130
      switch (field) {
-
 
14131
      case PURCHASE_RETURN:
-
 
14132
        return getPurchaseReturn();
-
 
14133
 
-
 
14134
      }
-
 
14135
      throw new IllegalStateException();
-
 
14136
    }
-
 
14137
 
-
 
14138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14139
    public boolean isSet(_Fields field) {
-
 
14140
      if (field == null) {
-
 
14141
        throw new IllegalArgumentException();
-
 
14142
      }
-
 
14143
 
-
 
14144
      switch (field) {
-
 
14145
      case PURCHASE_RETURN:
-
 
14146
        return isSetPurchaseReturn();
-
 
14147
      }
-
 
14148
      throw new IllegalStateException();
-
 
14149
    }
-
 
14150
 
-
 
14151
    @Override
-
 
14152
    public boolean equals(Object that) {
-
 
14153
      if (that == null)
-
 
14154
        return false;
-
 
14155
      if (that instanceof createPurchaseReturn_args)
-
 
14156
        return this.equals((createPurchaseReturn_args)that);
-
 
14157
      return false;
-
 
14158
    }
-
 
14159
 
-
 
14160
    public boolean equals(createPurchaseReturn_args that) {
-
 
14161
      if (that == null)
-
 
14162
        return false;
-
 
14163
 
-
 
14164
      boolean this_present_purchaseReturn = true && this.isSetPurchaseReturn();
-
 
14165
      boolean that_present_purchaseReturn = true && that.isSetPurchaseReturn();
-
 
14166
      if (this_present_purchaseReturn || that_present_purchaseReturn) {
-
 
14167
        if (!(this_present_purchaseReturn && that_present_purchaseReturn))
-
 
14168
          return false;
-
 
14169
        if (!this.purchaseReturn.equals(that.purchaseReturn))
-
 
14170
          return false;
-
 
14171
      }
-
 
14172
 
-
 
14173
      return true;
-
 
14174
    }
-
 
14175
 
-
 
14176
    @Override
-
 
14177
    public int hashCode() {
-
 
14178
      return 0;
-
 
14179
    }
-
 
14180
 
-
 
14181
    public int compareTo(createPurchaseReturn_args other) {
-
 
14182
      if (!getClass().equals(other.getClass())) {
-
 
14183
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14184
      }
-
 
14185
 
-
 
14186
      int lastComparison = 0;
-
 
14187
      createPurchaseReturn_args typedOther = (createPurchaseReturn_args)other;
-
 
14188
 
-
 
14189
      lastComparison = Boolean.valueOf(isSetPurchaseReturn()).compareTo(typedOther.isSetPurchaseReturn());
-
 
14190
      if (lastComparison != 0) {
-
 
14191
        return lastComparison;
-
 
14192
      }
-
 
14193
      if (isSetPurchaseReturn()) {
-
 
14194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturn, typedOther.purchaseReturn);
-
 
14195
        if (lastComparison != 0) {
-
 
14196
          return lastComparison;
-
 
14197
        }
-
 
14198
      }
-
 
14199
      return 0;
-
 
14200
    }
-
 
14201
 
-
 
14202
    public _Fields fieldForId(int fieldId) {
-
 
14203
      return _Fields.findByThriftId(fieldId);
-
 
14204
    }
-
 
14205
 
-
 
14206
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14207
      org.apache.thrift.protocol.TField field;
-
 
14208
      iprot.readStructBegin();
-
 
14209
      while (true)
-
 
14210
      {
-
 
14211
        field = iprot.readFieldBegin();
-
 
14212
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14213
          break;
-
 
14214
        }
-
 
14215
        switch (field.id) {
-
 
14216
          case 1: // PURCHASE_RETURN
-
 
14217
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
14218
              this.purchaseReturn = new PurchaseReturn();
-
 
14219
              this.purchaseReturn.read(iprot);
-
 
14220
            } else { 
-
 
14221
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14222
            }
-
 
14223
            break;
-
 
14224
          default:
-
 
14225
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14226
        }
-
 
14227
        iprot.readFieldEnd();
-
 
14228
      }
-
 
14229
      iprot.readStructEnd();
-
 
14230
      validate();
-
 
14231
    }
-
 
14232
 
-
 
14233
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14234
      validate();
-
 
14235
 
-
 
14236
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14237
      if (this.purchaseReturn != null) {
-
 
14238
        oprot.writeFieldBegin(PURCHASE_RETURN_FIELD_DESC);
-
 
14239
        this.purchaseReturn.write(oprot);
-
 
14240
        oprot.writeFieldEnd();
-
 
14241
      }
-
 
14242
      oprot.writeFieldStop();
-
 
14243
      oprot.writeStructEnd();
-
 
14244
    }
-
 
14245
 
-
 
14246
    @Override
-
 
14247
    public String toString() {
-
 
14248
      StringBuilder sb = new StringBuilder("createPurchaseReturn_args(");
-
 
14249
      boolean first = true;
-
 
14250
 
-
 
14251
      sb.append("purchaseReturn:");
-
 
14252
      if (this.purchaseReturn == null) {
-
 
14253
        sb.append("null");
-
 
14254
      } else {
-
 
14255
        sb.append(this.purchaseReturn);
-
 
14256
      }
-
 
14257
      first = false;
-
 
14258
      sb.append(")");
-
 
14259
      return sb.toString();
-
 
14260
    }
-
 
14261
 
-
 
14262
    public void validate() throws org.apache.thrift.TException {
-
 
14263
      // check for required fields
-
 
14264
    }
-
 
14265
 
-
 
14266
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14267
      try {
-
 
14268
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14269
      } catch (org.apache.thrift.TException te) {
-
 
14270
        throw new java.io.IOException(te);
-
 
14271
      }
-
 
14272
    }
-
 
14273
 
-
 
14274
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14275
      try {
-
 
14276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14277
      } catch (org.apache.thrift.TException te) {
-
 
14278
        throw new java.io.IOException(te);
-
 
14279
      }
-
 
14280
    }
-
 
14281
 
-
 
14282
  }
-
 
14283
 
-
 
14284
  public static class createPurchaseReturn_result implements org.apache.thrift.TBase<createPurchaseReturn_result, createPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
14285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseReturn_result");
-
 
14286
 
-
 
14287
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
14288
 
-
 
14289
    private long success; // required
-
 
14290
 
-
 
14291
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14292
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14293
      SUCCESS((short)0, "success");
-
 
14294
 
-
 
14295
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14296
 
-
 
14297
      static {
-
 
14298
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14299
          byName.put(field.getFieldName(), field);
-
 
14300
        }
-
 
14301
      }
-
 
14302
 
-
 
14303
      /**
-
 
14304
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14305
       */
-
 
14306
      public static _Fields findByThriftId(int fieldId) {
-
 
14307
        switch(fieldId) {
-
 
14308
          case 0: // SUCCESS
-
 
14309
            return SUCCESS;
-
 
14310
          default:
-
 
14311
            return null;
-
 
14312
        }
-
 
14313
      }
-
 
14314
 
-
 
14315
      /**
-
 
14316
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14317
       * if it is not found.
-
 
14318
       */
-
 
14319
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14320
        _Fields fields = findByThriftId(fieldId);
-
 
14321
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14322
        return fields;
-
 
14323
      }
-
 
14324
 
-
 
14325
      /**
-
 
14326
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14327
       */
-
 
14328
      public static _Fields findByName(String name) {
-
 
14329
        return byName.get(name);
-
 
14330
      }
-
 
14331
 
-
 
14332
      private final short _thriftId;
-
 
14333
      private final String _fieldName;
-
 
14334
 
-
 
14335
      _Fields(short thriftId, String fieldName) {
-
 
14336
        _thriftId = thriftId;
-
 
14337
        _fieldName = fieldName;
-
 
14338
      }
-
 
14339
 
-
 
14340
      public short getThriftFieldId() {
-
 
14341
        return _thriftId;
-
 
14342
      }
-
 
14343
 
-
 
14344
      public String getFieldName() {
-
 
14345
        return _fieldName;
-
 
14346
      }
-
 
14347
    }
-
 
14348
 
-
 
14349
    // isset id assignments
-
 
14350
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
14351
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14352
 
-
 
14353
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14354
    static {
-
 
14355
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14356
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14357
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
14358
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14359
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseReturn_result.class, metaDataMap);
-
 
14360
    }
-
 
14361
 
-
 
14362
    public createPurchaseReturn_result() {
-
 
14363
    }
-
 
14364
 
-
 
14365
    public createPurchaseReturn_result(
-
 
14366
      long success)
-
 
14367
    {
-
 
14368
      this();
-
 
14369
      this.success = success;
-
 
14370
      setSuccessIsSet(true);
-
 
14371
    }
-
 
14372
 
-
 
14373
    /**
-
 
14374
     * Performs a deep copy on <i>other</i>.
-
 
14375
     */
-
 
14376
    public createPurchaseReturn_result(createPurchaseReturn_result other) {
-
 
14377
      __isset_bit_vector.clear();
-
 
14378
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14379
      this.success = other.success;
-
 
14380
    }
-
 
14381
 
-
 
14382
    public createPurchaseReturn_result deepCopy() {
-
 
14383
      return new createPurchaseReturn_result(this);
-
 
14384
    }
-
 
14385
 
-
 
14386
    @Override
-
 
14387
    public void clear() {
-
 
14388
      setSuccessIsSet(false);
-
 
14389
      this.success = 0;
-
 
14390
    }
-
 
14391
 
-
 
14392
    public long getSuccess() {
-
 
14393
      return this.success;
-
 
14394
    }
-
 
14395
 
-
 
14396
    public void setSuccess(long success) {
-
 
14397
      this.success = success;
-
 
14398
      setSuccessIsSet(true);
-
 
14399
    }
-
 
14400
 
-
 
14401
    public void unsetSuccess() {
-
 
14402
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
14403
    }
-
 
14404
 
-
 
14405
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
14406
    public boolean isSetSuccess() {
-
 
14407
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
14408
    }
-
 
14409
 
-
 
14410
    public void setSuccessIsSet(boolean value) {
-
 
14411
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
14412
    }
-
 
14413
 
-
 
14414
    public void setFieldValue(_Fields field, Object value) {
-
 
14415
      switch (field) {
-
 
14416
      case SUCCESS:
-
 
14417
        if (value == null) {
-
 
14418
          unsetSuccess();
-
 
14419
        } else {
-
 
14420
          setSuccess((Long)value);
-
 
14421
        }
-
 
14422
        break;
-
 
14423
 
-
 
14424
      }
-
 
14425
    }
-
 
14426
 
-
 
14427
    public Object getFieldValue(_Fields field) {
-
 
14428
      switch (field) {
-
 
14429
      case SUCCESS:
-
 
14430
        return Long.valueOf(getSuccess());
-
 
14431
 
-
 
14432
      }
-
 
14433
      throw new IllegalStateException();
-
 
14434
    }
-
 
14435
 
-
 
14436
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14437
    public boolean isSet(_Fields field) {
-
 
14438
      if (field == null) {
-
 
14439
        throw new IllegalArgumentException();
-
 
14440
      }
-
 
14441
 
-
 
14442
      switch (field) {
-
 
14443
      case SUCCESS:
-
 
14444
        return isSetSuccess();
-
 
14445
      }
-
 
14446
      throw new IllegalStateException();
-
 
14447
    }
-
 
14448
 
-
 
14449
    @Override
-
 
14450
    public boolean equals(Object that) {
-
 
14451
      if (that == null)
-
 
14452
        return false;
-
 
14453
      if (that instanceof createPurchaseReturn_result)
-
 
14454
        return this.equals((createPurchaseReturn_result)that);
-
 
14455
      return false;
-
 
14456
    }
-
 
14457
 
-
 
14458
    public boolean equals(createPurchaseReturn_result that) {
-
 
14459
      if (that == null)
-
 
14460
        return false;
-
 
14461
 
-
 
14462
      boolean this_present_success = true;
-
 
14463
      boolean that_present_success = true;
-
 
14464
      if (this_present_success || that_present_success) {
-
 
14465
        if (!(this_present_success && that_present_success))
-
 
14466
          return false;
-
 
14467
        if (this.success != that.success)
-
 
14468
          return false;
-
 
14469
      }
-
 
14470
 
-
 
14471
      return true;
-
 
14472
    }
-
 
14473
 
-
 
14474
    @Override
-
 
14475
    public int hashCode() {
-
 
14476
      return 0;
-
 
14477
    }
-
 
14478
 
-
 
14479
    public int compareTo(createPurchaseReturn_result other) {
-
 
14480
      if (!getClass().equals(other.getClass())) {
-
 
14481
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14482
      }
-
 
14483
 
-
 
14484
      int lastComparison = 0;
-
 
14485
      createPurchaseReturn_result typedOther = (createPurchaseReturn_result)other;
-
 
14486
 
-
 
14487
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
14488
      if (lastComparison != 0) {
-
 
14489
        return lastComparison;
-
 
14490
      }
-
 
14491
      if (isSetSuccess()) {
-
 
14492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
14493
        if (lastComparison != 0) {
-
 
14494
          return lastComparison;
-
 
14495
        }
-
 
14496
      }
-
 
14497
      return 0;
-
 
14498
    }
-
 
14499
 
-
 
14500
    public _Fields fieldForId(int fieldId) {
-
 
14501
      return _Fields.findByThriftId(fieldId);
-
 
14502
    }
-
 
14503
 
-
 
14504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14505
      org.apache.thrift.protocol.TField field;
-
 
14506
      iprot.readStructBegin();
-
 
14507
      while (true)
-
 
14508
      {
-
 
14509
        field = iprot.readFieldBegin();
-
 
14510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14511
          break;
-
 
14512
        }
-
 
14513
        switch (field.id) {
-
 
14514
          case 0: // SUCCESS
-
 
14515
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
14516
              this.success = iprot.readI64();
-
 
14517
              setSuccessIsSet(true);
-
 
14518
            } else { 
-
 
14519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14520
            }
-
 
14521
            break;
-
 
14522
          default:
-
 
14523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14524
        }
-
 
14525
        iprot.readFieldEnd();
-
 
14526
      }
-
 
14527
      iprot.readStructEnd();
-
 
14528
      validate();
-
 
14529
    }
-
 
14530
 
-
 
14531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14532
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14533
 
-
 
14534
      if (this.isSetSuccess()) {
-
 
14535
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
14536
        oprot.writeI64(this.success);
-
 
14537
        oprot.writeFieldEnd();
-
 
14538
      }
-
 
14539
      oprot.writeFieldStop();
-
 
14540
      oprot.writeStructEnd();
-
 
14541
    }
-
 
14542
 
-
 
14543
    @Override
-
 
14544
    public String toString() {
-
 
14545
      StringBuilder sb = new StringBuilder("createPurchaseReturn_result(");
-
 
14546
      boolean first = true;
-
 
14547
 
-
 
14548
      sb.append("success:");
-
 
14549
      sb.append(this.success);
-
 
14550
      first = false;
-
 
14551
      sb.append(")");
-
 
14552
      return sb.toString();
-
 
14553
    }
-
 
14554
 
-
 
14555
    public void validate() throws org.apache.thrift.TException {
-
 
14556
      // check for required fields
-
 
14557
    }
-
 
14558
 
-
 
14559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14560
      try {
-
 
14561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14562
      } catch (org.apache.thrift.TException te) {
-
 
14563
        throw new java.io.IOException(te);
-
 
14564
      }
-
 
14565
    }
-
 
14566
 
-
 
14567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14568
      try {
-
 
14569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14570
      } catch (org.apache.thrift.TException te) {
-
 
14571
        throw new java.io.IOException(te);
-
 
14572
      }
-
 
14573
    }
-
 
14574
 
-
 
14575
  }
-
 
14576
 
-
 
14577
  public static class settlePurchaseReturn_args implements org.apache.thrift.TBase<settlePurchaseReturn_args, settlePurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
-
 
14578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("settlePurchaseReturn_args");
-
 
14579
 
-
 
14580
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
14581
 
-
 
14582
    private long id; // required
-
 
14583
 
-
 
14584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14586
      ID((short)1, "id");
-
 
14587
 
-
 
14588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14589
 
-
 
14590
      static {
-
 
14591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14592
          byName.put(field.getFieldName(), field);
-
 
14593
        }
-
 
14594
      }
-
 
14595
 
-
 
14596
      /**
-
 
14597
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14598
       */
-
 
14599
      public static _Fields findByThriftId(int fieldId) {
-
 
14600
        switch(fieldId) {
-
 
14601
          case 1: // ID
-
 
14602
            return ID;
-
 
14603
          default:
-
 
14604
            return null;
-
 
14605
        }
-
 
14606
      }
-
 
14607
 
-
 
14608
      /**
-
 
14609
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14610
       * if it is not found.
-
 
14611
       */
-
 
14612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14613
        _Fields fields = findByThriftId(fieldId);
-
 
14614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14615
        return fields;
-
 
14616
      }
-
 
14617
 
-
 
14618
      /**
-
 
14619
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14620
       */
-
 
14621
      public static _Fields findByName(String name) {
-
 
14622
        return byName.get(name);
-
 
14623
      }
-
 
14624
 
-
 
14625
      private final short _thriftId;
-
 
14626
      private final String _fieldName;
-
 
14627
 
-
 
14628
      _Fields(short thriftId, String fieldName) {
-
 
14629
        _thriftId = thriftId;
-
 
14630
        _fieldName = fieldName;
-
 
14631
      }
-
 
14632
 
-
 
14633
      public short getThriftFieldId() {
-
 
14634
        return _thriftId;
-
 
14635
      }
-
 
14636
 
-
 
14637
      public String getFieldName() {
-
 
14638
        return _fieldName;
-
 
14639
      }
-
 
14640
    }
-
 
14641
 
-
 
14642
    // isset id assignments
-
 
14643
    private static final int __ID_ISSET_ID = 0;
-
 
14644
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14645
 
-
 
14646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14647
    static {
-
 
14648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14649
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
14651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(settlePurchaseReturn_args.class, metaDataMap);
-
 
14653
    }
-
 
14654
 
-
 
14655
    public settlePurchaseReturn_args() {
-
 
14656
    }
-
 
14657
 
-
 
14658
    public settlePurchaseReturn_args(
-
 
14659
      long id)
-
 
14660
    {
-
 
14661
      this();
-
 
14662
      this.id = id;
-
 
14663
      setIdIsSet(true);
-
 
14664
    }
-
 
14665
 
-
 
14666
    /**
-
 
14667
     * Performs a deep copy on <i>other</i>.
-
 
14668
     */
-
 
14669
    public settlePurchaseReturn_args(settlePurchaseReturn_args other) {
-
 
14670
      __isset_bit_vector.clear();
-
 
14671
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14672
      this.id = other.id;
-
 
14673
    }
-
 
14674
 
-
 
14675
    public settlePurchaseReturn_args deepCopy() {
-
 
14676
      return new settlePurchaseReturn_args(this);
-
 
14677
    }
-
 
14678
 
-
 
14679
    @Override
-
 
14680
    public void clear() {
-
 
14681
      setIdIsSet(false);
-
 
14682
      this.id = 0;
-
 
14683
    }
-
 
14684
 
-
 
14685
    public long getId() {
-
 
14686
      return this.id;
-
 
14687
    }
-
 
14688
 
-
 
14689
    public void setId(long id) {
-
 
14690
      this.id = id;
-
 
14691
      setIdIsSet(true);
-
 
14692
    }
-
 
14693
 
-
 
14694
    public void unsetId() {
-
 
14695
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
14696
    }
-
 
14697
 
-
 
14698
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
14699
    public boolean isSetId() {
-
 
14700
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
14701
    }
-
 
14702
 
-
 
14703
    public void setIdIsSet(boolean value) {
-
 
14704
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
14705
    }
-
 
14706
 
-
 
14707
    public void setFieldValue(_Fields field, Object value) {
-
 
14708
      switch (field) {
-
 
14709
      case ID:
-
 
14710
        if (value == null) {
-
 
14711
          unsetId();
-
 
14712
        } else {
-
 
14713
          setId((Long)value);
-
 
14714
        }
-
 
14715
        break;
-
 
14716
 
-
 
14717
      }
-
 
14718
    }
-
 
14719
 
-
 
14720
    public Object getFieldValue(_Fields field) {
-
 
14721
      switch (field) {
-
 
14722
      case ID:
-
 
14723
        return Long.valueOf(getId());
-
 
14724
 
-
 
14725
      }
-
 
14726
      throw new IllegalStateException();
-
 
14727
    }
-
 
14728
 
-
 
14729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14730
    public boolean isSet(_Fields field) {
-
 
14731
      if (field == null) {
-
 
14732
        throw new IllegalArgumentException();
-
 
14733
      }
-
 
14734
 
-
 
14735
      switch (field) {
-
 
14736
      case ID:
-
 
14737
        return isSetId();
-
 
14738
      }
-
 
14739
      throw new IllegalStateException();
-
 
14740
    }
-
 
14741
 
-
 
14742
    @Override
-
 
14743
    public boolean equals(Object that) {
-
 
14744
      if (that == null)
-
 
14745
        return false;
-
 
14746
      if (that instanceof settlePurchaseReturn_args)
-
 
14747
        return this.equals((settlePurchaseReturn_args)that);
-
 
14748
      return false;
-
 
14749
    }
-
 
14750
 
-
 
14751
    public boolean equals(settlePurchaseReturn_args that) {
-
 
14752
      if (that == null)
-
 
14753
        return false;
-
 
14754
 
-
 
14755
      boolean this_present_id = true;
-
 
14756
      boolean that_present_id = true;
-
 
14757
      if (this_present_id || that_present_id) {
-
 
14758
        if (!(this_present_id && that_present_id))
-
 
14759
          return false;
-
 
14760
        if (this.id != that.id)
-
 
14761
          return false;
-
 
14762
      }
-
 
14763
 
-
 
14764
      return true;
-
 
14765
    }
-
 
14766
 
-
 
14767
    @Override
-
 
14768
    public int hashCode() {
-
 
14769
      return 0;
-
 
14770
    }
-
 
14771
 
-
 
14772
    public int compareTo(settlePurchaseReturn_args other) {
-
 
14773
      if (!getClass().equals(other.getClass())) {
-
 
14774
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14775
      }
-
 
14776
 
-
 
14777
      int lastComparison = 0;
-
 
14778
      settlePurchaseReturn_args typedOther = (settlePurchaseReturn_args)other;
-
 
14779
 
-
 
14780
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
14781
      if (lastComparison != 0) {
-
 
14782
        return lastComparison;
-
 
14783
      }
-
 
14784
      if (isSetId()) {
-
 
14785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
14786
        if (lastComparison != 0) {
-
 
14787
          return lastComparison;
-
 
14788
        }
-
 
14789
      }
-
 
14790
      return 0;
-
 
14791
    }
-
 
14792
 
-
 
14793
    public _Fields fieldForId(int fieldId) {
-
 
14794
      return _Fields.findByThriftId(fieldId);
-
 
14795
    }
-
 
14796
 
-
 
14797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
14798
      org.apache.thrift.protocol.TField field;
-
 
14799
      iprot.readStructBegin();
-
 
14800
      while (true)
-
 
14801
      {
-
 
14802
        field = iprot.readFieldBegin();
-
 
14803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
14804
          break;
-
 
14805
        }
-
 
14806
        switch (field.id) {
-
 
14807
          case 1: // ID
-
 
14808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
14809
              this.id = iprot.readI64();
-
 
14810
              setIdIsSet(true);
-
 
14811
            } else { 
-
 
14812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14813
            }
-
 
14814
            break;
-
 
14815
          default:
-
 
14816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14817
        }
-
 
14818
        iprot.readFieldEnd();
-
 
14819
      }
-
 
14820
      iprot.readStructEnd();
-
 
14821
      validate();
-
 
14822
    }
-
 
14823
 
-
 
14824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
14825
      validate();
-
 
14826
 
-
 
14827
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14828
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
14829
      oprot.writeI64(this.id);
-
 
14830
      oprot.writeFieldEnd();
-
 
14831
      oprot.writeFieldStop();
-
 
14832
      oprot.writeStructEnd();
-
 
14833
    }
-
 
14834
 
-
 
14835
    @Override
-
 
14836
    public String toString() {
-
 
14837
      StringBuilder sb = new StringBuilder("settlePurchaseReturn_args(");
-
 
14838
      boolean first = true;
-
 
14839
 
-
 
14840
      sb.append("id:");
-
 
14841
      sb.append(this.id);
-
 
14842
      first = false;
-
 
14843
      sb.append(")");
-
 
14844
      return sb.toString();
-
 
14845
    }
-
 
14846
 
-
 
14847
    public void validate() throws org.apache.thrift.TException {
-
 
14848
      // check for required fields
-
 
14849
    }
-
 
14850
 
-
 
14851
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14852
      try {
-
 
14853
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14854
      } catch (org.apache.thrift.TException te) {
-
 
14855
        throw new java.io.IOException(te);
-
 
14856
      }
-
 
14857
    }
-
 
14858
 
-
 
14859
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14860
      try {
-
 
14861
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
14862
        __isset_bit_vector = new BitSet(1);
-
 
14863
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14864
      } catch (org.apache.thrift.TException te) {
-
 
14865
        throw new java.io.IOException(te);
-
 
14866
      }
-
 
14867
    }
-
 
14868
 
-
 
14869
  }
-
 
14870
 
-
 
14871
  public static class settlePurchaseReturn_result implements org.apache.thrift.TBase<settlePurchaseReturn_result, settlePurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
-
 
14872
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("settlePurchaseReturn_result");
-
 
14873
 
-
 
14874
 
-
 
14875
 
-
 
14876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
14878
;
-
 
14879
 
-
 
14880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14881
 
-
 
14882
      static {
-
 
14883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14884
          byName.put(field.getFieldName(), field);
-
 
14885
        }
-
 
14886
      }
-
 
14887
 
-
 
14888
      /**
-
 
14889
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14890
       */
-
 
14891
      public static _Fields findByThriftId(int fieldId) {
-
 
14892
        switch(fieldId) {
-
 
14893
          default:
-
 
14894
            return null;
-
 
14895
        }
-
 
14896
      }
-
 
14897
 
-
 
14898
      /**
-
 
14899
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14900
       * if it is not found.
-
 
14901
       */
-
 
14902
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14903
        _Fields fields = findByThriftId(fieldId);
-
 
14904
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14905
        return fields;
-
 
14906
      }
-
 
14907
 
-
 
14908
      /**
-
 
14909
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14910
       */
-
 
14911
      public static _Fields findByName(String name) {
-
 
14912
        return byName.get(name);
-
 
14913
      }
-
 
14914
 
-
 
14915
      private final short _thriftId;
-
 
14916
      private final String _fieldName;
-
 
14917
 
-
 
14918
      _Fields(short thriftId, String fieldName) {
-
 
14919
        _thriftId = thriftId;
-
 
14920
        _fieldName = fieldName;
-
 
14921
      }
-
 
14922
 
-
 
14923
      public short getThriftFieldId() {
-
 
14924
        return _thriftId;
-
 
14925
      }
-
 
14926
 
-
 
14927
      public String getFieldName() {
-
 
14928
        return _fieldName;
-
 
14929
      }
-
 
14930
    }
-
 
14931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
14932
    static {
-
 
14933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14934
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
14935
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(settlePurchaseReturn_result.class, metaDataMap);
-
 
14936
    }
-
 
14937
 
-
 
14938
    public settlePurchaseReturn_result() {
-
 
14939
    }
-
 
14940
 
-
 
14941
    /**
-
 
14942
     * Performs a deep copy on <i>other</i>.
-
 
14943
     */
-
 
14944
    public settlePurchaseReturn_result(settlePurchaseReturn_result other) {
-
 
14945
    }
-
 
14946
 
-
 
14947
    public settlePurchaseReturn_result deepCopy() {
-
 
14948
      return new settlePurchaseReturn_result(this);
-
 
14949
    }
-
 
14950
 
-
 
14951
    @Override
-
 
14952
    public void clear() {
-
 
14953
    }
-
 
14954
 
-
 
14955
    public void setFieldValue(_Fields field, Object value) {
-
 
14956
      switch (field) {
-
 
14957
      }
-
 
14958
    }
-
 
14959
 
-
 
14960
    public Object getFieldValue(_Fields field) {
-
 
14961
      switch (field) {
-
 
14962
      }
-
 
14963
      throw new IllegalStateException();
-
 
14964
    }
-
 
14965
 
-
 
14966
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
14967
    public boolean isSet(_Fields field) {
-
 
14968
      if (field == null) {
-
 
14969
        throw new IllegalArgumentException();
-
 
14970
      }
-
 
14971
 
-
 
14972
      switch (field) {
-
 
14973
      }
-
 
14974
      throw new IllegalStateException();
-
 
14975
    }
-
 
14976
 
-
 
14977
    @Override
-
 
14978
    public boolean equals(Object that) {
-
 
14979
      if (that == null)
-
 
14980
        return false;
-
 
14981
      if (that instanceof settlePurchaseReturn_result)
-
 
14982
        return this.equals((settlePurchaseReturn_result)that);
-
 
14983
      return false;
-
 
14984
    }
-
 
14985
 
-
 
14986
    public boolean equals(settlePurchaseReturn_result that) {
-
 
14987
      if (that == null)
-
 
14988
        return false;
-
 
14989
 
-
 
14990
      return true;
-
 
14991
    }
-
 
14992
 
-
 
14993
    @Override
-
 
14994
    public int hashCode() {
-
 
14995
      return 0;
-
 
14996
    }
-
 
14997
 
-
 
14998
    public int compareTo(settlePurchaseReturn_result other) {
-
 
14999
      if (!getClass().equals(other.getClass())) {
-
 
15000
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15001
      }
-
 
15002
 
-
 
15003
      int lastComparison = 0;
-
 
15004
      settlePurchaseReturn_result typedOther = (settlePurchaseReturn_result)other;
-
 
15005
 
-
 
15006
      return 0;
-
 
15007
    }
-
 
15008
 
-
 
15009
    public _Fields fieldForId(int fieldId) {
-
 
15010
      return _Fields.findByThriftId(fieldId);
-
 
15011
    }
-
 
15012
 
-
 
15013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15014
      org.apache.thrift.protocol.TField field;
-
 
15015
      iprot.readStructBegin();
-
 
15016
      while (true)
-
 
15017
      {
-
 
15018
        field = iprot.readFieldBegin();
-
 
15019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15020
          break;
-
 
15021
        }
-
 
15022
        switch (field.id) {
-
 
15023
          default:
-
 
15024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15025
        }
-
 
15026
        iprot.readFieldEnd();
-
 
15027
      }
-
 
15028
      iprot.readStructEnd();
-
 
15029
      validate();
-
 
15030
    }
-
 
15031
 
-
 
15032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15033
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15034
 
-
 
15035
      oprot.writeFieldStop();
-
 
15036
      oprot.writeStructEnd();
-
 
15037
    }
-
 
15038
 
-
 
15039
    @Override
-
 
15040
    public String toString() {
-
 
15041
      StringBuilder sb = new StringBuilder("settlePurchaseReturn_result(");
-
 
15042
      boolean first = true;
-
 
15043
 
-
 
15044
      sb.append(")");
-
 
15045
      return sb.toString();
-
 
15046
    }
-
 
15047
 
-
 
15048
    public void validate() throws org.apache.thrift.TException {
-
 
15049
      // check for required fields
-
 
15050
    }
-
 
15051
 
-
 
15052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
15053
      try {
-
 
15054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
15055
      } catch (org.apache.thrift.TException te) {
-
 
15056
        throw new java.io.IOException(te);
-
 
15057
      }
-
 
15058
    }
-
 
15059
 
-
 
15060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
15061
      try {
-
 
15062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
15063
      } catch (org.apache.thrift.TException te) {
-
 
15064
        throw new java.io.IOException(te);
-
 
15065
      }
-
 
15066
    }
-
 
15067
 
-
 
15068
  }
-
 
15069
 
-
 
15070
  public static class getUnsettledPurchaseReturns_args implements org.apache.thrift.TBase<getUnsettledPurchaseReturns_args, getUnsettledPurchaseReturns_args._Fields>, java.io.Serializable, Cloneable   {
-
 
15071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnsettledPurchaseReturns_args");
-
 
15072
 
-
 
15073
 
-
 
15074
 
-
 
15075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15077
;
-
 
15078
 
-
 
15079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15080
 
-
 
15081
      static {
-
 
15082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15083
          byName.put(field.getFieldName(), field);
-
 
15084
        }
-
 
15085
      }
-
 
15086
 
-
 
15087
      /**
-
 
15088
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15089
       */
-
 
15090
      public static _Fields findByThriftId(int fieldId) {
-
 
15091
        switch(fieldId) {
-
 
15092
          default:
-
 
15093
            return null;
-
 
15094
        }
-
 
15095
      }
-
 
15096
 
-
 
15097
      /**
-
 
15098
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15099
       * if it is not found.
-
 
15100
       */
-
 
15101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15102
        _Fields fields = findByThriftId(fieldId);
-
 
15103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15104
        return fields;
-
 
15105
      }
-
 
15106
 
-
 
15107
      /**
-
 
15108
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15109
       */
-
 
15110
      public static _Fields findByName(String name) {
-
 
15111
        return byName.get(name);
-
 
15112
      }
-
 
15113
 
-
 
15114
      private final short _thriftId;
-
 
15115
      private final String _fieldName;
-
 
15116
 
-
 
15117
      _Fields(short thriftId, String fieldName) {
-
 
15118
        _thriftId = thriftId;
-
 
15119
        _fieldName = fieldName;
-
 
15120
      }
-
 
15121
 
-
 
15122
      public short getThriftFieldId() {
-
 
15123
        return _thriftId;
-
 
15124
      }
-
 
15125
 
-
 
15126
      public String getFieldName() {
-
 
15127
        return _fieldName;
-
 
15128
      }
-
 
15129
    }
-
 
15130
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15131
    static {
-
 
15132
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15133
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15134
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnsettledPurchaseReturns_args.class, metaDataMap);
-
 
15135
    }
-
 
15136
 
-
 
15137
    public getUnsettledPurchaseReturns_args() {
-
 
15138
    }
-
 
15139
 
-
 
15140
    /**
-
 
15141
     * Performs a deep copy on <i>other</i>.
-
 
15142
     */
-
 
15143
    public getUnsettledPurchaseReturns_args(getUnsettledPurchaseReturns_args other) {
-
 
15144
    }
-
 
15145
 
-
 
15146
    public getUnsettledPurchaseReturns_args deepCopy() {
-
 
15147
      return new getUnsettledPurchaseReturns_args(this);
-
 
15148
    }
-
 
15149
 
-
 
15150
    @Override
-
 
15151
    public void clear() {
-
 
15152
    }
-
 
15153
 
-
 
15154
    public void setFieldValue(_Fields field, Object value) {
-
 
15155
      switch (field) {
-
 
15156
      }
-
 
15157
    }
-
 
15158
 
-
 
15159
    public Object getFieldValue(_Fields field) {
-
 
15160
      switch (field) {
-
 
15161
      }
-
 
15162
      throw new IllegalStateException();
-
 
15163
    }
-
 
15164
 
-
 
15165
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15166
    public boolean isSet(_Fields field) {
-
 
15167
      if (field == null) {
-
 
15168
        throw new IllegalArgumentException();
-
 
15169
      }
-
 
15170
 
-
 
15171
      switch (field) {
-
 
15172
      }
-
 
15173
      throw new IllegalStateException();
-
 
15174
    }
-
 
15175
 
-
 
15176
    @Override
-
 
15177
    public boolean equals(Object that) {
-
 
15178
      if (that == null)
-
 
15179
        return false;
-
 
15180
      if (that instanceof getUnsettledPurchaseReturns_args)
-
 
15181
        return this.equals((getUnsettledPurchaseReturns_args)that);
-
 
15182
      return false;
-
 
15183
    }
-
 
15184
 
-
 
15185
    public boolean equals(getUnsettledPurchaseReturns_args that) {
-
 
15186
      if (that == null)
-
 
15187
        return false;
-
 
15188
 
-
 
15189
      return true;
-
 
15190
    }
-
 
15191
 
-
 
15192
    @Override
-
 
15193
    public int hashCode() {
-
 
15194
      return 0;
-
 
15195
    }
-
 
15196
 
-
 
15197
    public int compareTo(getUnsettledPurchaseReturns_args other) {
-
 
15198
      if (!getClass().equals(other.getClass())) {
-
 
15199
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15200
      }
-
 
15201
 
-
 
15202
      int lastComparison = 0;
-
 
15203
      getUnsettledPurchaseReturns_args typedOther = (getUnsettledPurchaseReturns_args)other;
-
 
15204
 
-
 
15205
      return 0;
-
 
15206
    }
-
 
15207
 
-
 
15208
    public _Fields fieldForId(int fieldId) {
-
 
15209
      return _Fields.findByThriftId(fieldId);
-
 
15210
    }
-
 
15211
 
-
 
15212
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15213
      org.apache.thrift.protocol.TField field;
-
 
15214
      iprot.readStructBegin();
-
 
15215
      while (true)
-
 
15216
      {
-
 
15217
        field = iprot.readFieldBegin();
-
 
15218
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15219
          break;
-
 
15220
        }
-
 
15221
        switch (field.id) {
-
 
15222
          default:
-
 
15223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15224
        }
-
 
15225
        iprot.readFieldEnd();
-
 
15226
      }
-
 
15227
      iprot.readStructEnd();
-
 
15228
      validate();
-
 
15229
    }
-
 
15230
 
-
 
15231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15232
      validate();
-
 
15233
 
-
 
15234
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15235
      oprot.writeFieldStop();
-
 
15236
      oprot.writeStructEnd();
-
 
15237
    }
-
 
15238
 
-
 
15239
    @Override
-
 
15240
    public String toString() {
-
 
15241
      StringBuilder sb = new StringBuilder("getUnsettledPurchaseReturns_args(");
-
 
15242
      boolean first = true;
-
 
15243
 
-
 
15244
      sb.append(")");
-
 
15245
      return sb.toString();
-
 
15246
    }
-
 
15247
 
-
 
15248
    public void validate() throws org.apache.thrift.TException {
-
 
15249
      // check for required fields
-
 
15250
    }
-
 
15251
 
-
 
15252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
15253
      try {
-
 
15254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
15255
      } catch (org.apache.thrift.TException te) {
-
 
15256
        throw new java.io.IOException(te);
-
 
15257
      }
-
 
15258
    }
-
 
15259
 
-
 
15260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
15261
      try {
-
 
15262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
15263
      } catch (org.apache.thrift.TException te) {
-
 
15264
        throw new java.io.IOException(te);
-
 
15265
      }
-
 
15266
    }
-
 
15267
 
-
 
15268
  }
-
 
15269
 
-
 
15270
  public static class getUnsettledPurchaseReturns_result implements org.apache.thrift.TBase<getUnsettledPurchaseReturns_result, getUnsettledPurchaseReturns_result._Fields>, java.io.Serializable, Cloneable   {
-
 
15271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnsettledPurchaseReturns_result");
-
 
15272
 
-
 
15273
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
15274
 
-
 
15275
    private List<PurchaseReturn> success; // required
-
 
15276
 
-
 
15277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15279
      SUCCESS((short)0, "success");
-
 
15280
 
-
 
15281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15282
 
-
 
15283
      static {
-
 
15284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15285
          byName.put(field.getFieldName(), field);
-
 
15286
        }
-
 
15287
      }
-
 
15288
 
-
 
15289
      /**
-
 
15290
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15291
       */
-
 
15292
      public static _Fields findByThriftId(int fieldId) {
-
 
15293
        switch(fieldId) {
-
 
15294
          case 0: // SUCCESS
-
 
15295
            return SUCCESS;
-
 
15296
          default:
-
 
15297
            return null;
-
 
15298
        }
-
 
15299
      }
-
 
15300
 
-
 
15301
      /**
-
 
15302
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15303
       * if it is not found.
-
 
15304
       */
-
 
15305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15306
        _Fields fields = findByThriftId(fieldId);
-
 
15307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15308
        return fields;
-
 
15309
      }
-
 
15310
 
-
 
15311
      /**
-
 
15312
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15313
       */
-
 
15314
      public static _Fields findByName(String name) {
-
 
15315
        return byName.get(name);
-
 
15316
      }
-
 
15317
 
-
 
15318
      private final short _thriftId;
-
 
15319
      private final String _fieldName;
-
 
15320
 
-
 
15321
      _Fields(short thriftId, String fieldName) {
-
 
15322
        _thriftId = thriftId;
-
 
15323
        _fieldName = fieldName;
-
 
15324
      }
-
 
15325
 
-
 
15326
      public short getThriftFieldId() {
-
 
15327
        return _thriftId;
-
 
15328
      }
-
 
15329
 
-
 
15330
      public String getFieldName() {
-
 
15331
        return _fieldName;
-
 
15332
      }
-
 
15333
    }
-
 
15334
 
-
 
15335
    // isset id assignments
-
 
15336
 
-
 
15337
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15338
    static {
-
 
15339
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15340
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15341
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
15342
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseReturn.class))));
-
 
15343
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15344
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnsettledPurchaseReturns_result.class, metaDataMap);
-
 
15345
    }
-
 
15346
 
-
 
15347
    public getUnsettledPurchaseReturns_result() {
-
 
15348
    }
-
 
15349
 
-
 
15350
    public getUnsettledPurchaseReturns_result(
-
 
15351
      List<PurchaseReturn> success)
-
 
15352
    {
-
 
15353
      this();
-
 
15354
      this.success = success;
-
 
15355
    }
-
 
15356
 
-
 
15357
    /**
-
 
15358
     * Performs a deep copy on <i>other</i>.
-
 
15359
     */
-
 
15360
    public getUnsettledPurchaseReturns_result(getUnsettledPurchaseReturns_result other) {
-
 
15361
      if (other.isSetSuccess()) {
-
 
15362
        List<PurchaseReturn> __this__success = new ArrayList<PurchaseReturn>();
-
 
15363
        for (PurchaseReturn other_element : other.success) {
-
 
15364
          __this__success.add(new PurchaseReturn(other_element));
-
 
15365
        }
-
 
15366
        this.success = __this__success;
-
 
15367
      }
-
 
15368
    }
-
 
15369
 
-
 
15370
    public getUnsettledPurchaseReturns_result deepCopy() {
-
 
15371
      return new getUnsettledPurchaseReturns_result(this);
-
 
15372
    }
-
 
15373
 
-
 
15374
    @Override
-
 
15375
    public void clear() {
-
 
15376
      this.success = null;
-
 
15377
    }
-
 
15378
 
-
 
15379
    public int getSuccessSize() {
-
 
15380
      return (this.success == null) ? 0 : this.success.size();
-
 
15381
    }
-
 
15382
 
-
 
15383
    public java.util.Iterator<PurchaseReturn> getSuccessIterator() {
-
 
15384
      return (this.success == null) ? null : this.success.iterator();
-
 
15385
    }
-
 
15386
 
-
 
15387
    public void addToSuccess(PurchaseReturn elem) {
-
 
15388
      if (this.success == null) {
-
 
15389
        this.success = new ArrayList<PurchaseReturn>();
-
 
15390
      }
-
 
15391
      this.success.add(elem);
-
 
15392
    }
-
 
15393
 
-
 
15394
    public List<PurchaseReturn> getSuccess() {
-
 
15395
      return this.success;
-
 
15396
    }
-
 
15397
 
-
 
15398
    public void setSuccess(List<PurchaseReturn> success) {
-
 
15399
      this.success = success;
-
 
15400
    }
-
 
15401
 
-
 
15402
    public void unsetSuccess() {
-
 
15403
      this.success = null;
-
 
15404
    }
-
 
15405
 
-
 
15406
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
15407
    public boolean isSetSuccess() {
-
 
15408
      return this.success != null;
-
 
15409
    }
-
 
15410
 
-
 
15411
    public void setSuccessIsSet(boolean value) {
-
 
15412
      if (!value) {
-
 
15413
        this.success = null;
-
 
15414
      }
-
 
15415
    }
-
 
15416
 
-
 
15417
    public void setFieldValue(_Fields field, Object value) {
-
 
15418
      switch (field) {
-
 
15419
      case SUCCESS:
-
 
15420
        if (value == null) {
-
 
15421
          unsetSuccess();
-
 
15422
        } else {
-
 
15423
          setSuccess((List<PurchaseReturn>)value);
-
 
15424
        }
-
 
15425
        break;
-
 
15426
 
-
 
15427
      }
-
 
15428
    }
-
 
15429
 
-
 
15430
    public Object getFieldValue(_Fields field) {
-
 
15431
      switch (field) {
-
 
15432
      case SUCCESS:
-
 
15433
        return getSuccess();
-
 
15434
 
-
 
15435
      }
-
 
15436
      throw new IllegalStateException();
-
 
15437
    }
-
 
15438
 
-
 
15439
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15440
    public boolean isSet(_Fields field) {
-
 
15441
      if (field == null) {
-
 
15442
        throw new IllegalArgumentException();
-
 
15443
      }
-
 
15444
 
-
 
15445
      switch (field) {
-
 
15446
      case SUCCESS:
-
 
15447
        return isSetSuccess();
-
 
15448
      }
-
 
15449
      throw new IllegalStateException();
-
 
15450
    }
-
 
15451
 
-
 
15452
    @Override
-
 
15453
    public boolean equals(Object that) {
-
 
15454
      if (that == null)
-
 
15455
        return false;
-
 
15456
      if (that instanceof getUnsettledPurchaseReturns_result)
-
 
15457
        return this.equals((getUnsettledPurchaseReturns_result)that);
-
 
15458
      return false;
-
 
15459
    }
-
 
15460
 
-
 
15461
    public boolean equals(getUnsettledPurchaseReturns_result that) {
-
 
15462
      if (that == null)
-
 
15463
        return false;
-
 
15464
 
-
 
15465
      boolean this_present_success = true && this.isSetSuccess();
-
 
15466
      boolean that_present_success = true && that.isSetSuccess();
-
 
15467
      if (this_present_success || that_present_success) {
-
 
15468
        if (!(this_present_success && that_present_success))
-
 
15469
          return false;
-
 
15470
        if (!this.success.equals(that.success))
-
 
15471
          return false;
-
 
15472
      }
-
 
15473
 
-
 
15474
      return true;
-
 
15475
    }
-
 
15476
 
-
 
15477
    @Override
-
 
15478
    public int hashCode() {
-
 
15479
      return 0;
-
 
15480
    }
-
 
15481
 
-
 
15482
    public int compareTo(getUnsettledPurchaseReturns_result other) {
-
 
15483
      if (!getClass().equals(other.getClass())) {
-
 
15484
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15485
      }
-
 
15486
 
-
 
15487
      int lastComparison = 0;
-
 
15488
      getUnsettledPurchaseReturns_result typedOther = (getUnsettledPurchaseReturns_result)other;
-
 
15489
 
-
 
15490
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
15491
      if (lastComparison != 0) {
-
 
15492
        return lastComparison;
-
 
15493
      }
-
 
15494
      if (isSetSuccess()) {
-
 
15495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
15496
        if (lastComparison != 0) {
-
 
15497
          return lastComparison;
-
 
15498
        }
-
 
15499
      }
-
 
15500
      return 0;
-
 
15501
    }
-
 
15502
 
-
 
15503
    public _Fields fieldForId(int fieldId) {
-
 
15504
      return _Fields.findByThriftId(fieldId);
-
 
15505
    }
-
 
15506
 
-
 
15507
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15508
      org.apache.thrift.protocol.TField field;
-
 
15509
      iprot.readStructBegin();
-
 
15510
      while (true)
-
 
15511
      {
-
 
15512
        field = iprot.readFieldBegin();
-
 
15513
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15514
          break;
-
 
15515
        }
-
 
15516
        switch (field.id) {
-
 
15517
          case 0: // SUCCESS
-
 
15518
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
15519
              {
-
 
15520
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
-
 
15521
                this.success = new ArrayList<PurchaseReturn>(_list28.size);
-
 
15522
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
15523
                {
-
 
15524
                  PurchaseReturn _elem30; // required
-
 
15525
                  _elem30 = new PurchaseReturn();
-
 
15526
                  _elem30.read(iprot);
-
 
15527
                  this.success.add(_elem30);
-
 
15528
                }
-
 
15529
                iprot.readListEnd();
-
 
15530
              }
-
 
15531
            } else { 
-
 
15532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15533
            }
-
 
15534
            break;
-
 
15535
          default:
-
 
15536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15537
        }
-
 
15538
        iprot.readFieldEnd();
-
 
15539
      }
-
 
15540
      iprot.readStructEnd();
-
 
15541
      validate();
-
 
15542
    }
-
 
15543
 
-
 
15544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15545
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15546
 
-
 
15547
      if (this.isSetSuccess()) {
-
 
15548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
15549
        {
-
 
15550
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
15551
          for (PurchaseReturn _iter31 : this.success)
-
 
15552
          {
-
 
15553
            _iter31.write(oprot);
-
 
15554
          }
-
 
15555
          oprot.writeListEnd();
-
 
15556
        }
-
 
15557
        oprot.writeFieldEnd();
-
 
15558
      }
-
 
15559
      oprot.writeFieldStop();
-
 
15560
      oprot.writeStructEnd();
-
 
15561
    }
-
 
15562
 
-
 
15563
    @Override
-
 
15564
    public String toString() {
-
 
15565
      StringBuilder sb = new StringBuilder("getUnsettledPurchaseReturns_result(");
-
 
15566
      boolean first = true;
-
 
15567
 
-
 
15568
      sb.append("success:");
-
 
15569
      if (this.success == null) {
-
 
15570
        sb.append("null");
-
 
15571
      } else {
-
 
15572
        sb.append(this.success);
-
 
15573
      }
-
 
15574
      first = false;
-
 
15575
      sb.append(")");
-
 
15576
      return sb.toString();
-
 
15577
    }
-
 
15578
 
-
 
15579
    public void validate() throws org.apache.thrift.TException {
13733
      // check for required fields
15580
      // check for required fields
13734
    }
15581
    }
13735
 
15582
 
13736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13737
      try {
15584
      try {