Subversion Repositories SmartDukaan

Rev

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

Rev 19819 Rev 19832
Line 206... Line 206...
206
     * 
206
     * 
207
     * @param orderId
207
     * @param orderId
208
     */
208
     */
209
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
209
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
210
 
210
 
-
 
211
    public boolean unacceptOrder(long orderId) throws org.apache.thrift.TException;
-
 
212
 
211
    /**
213
    /**
212
     * Add billing details such as the bill number and the biller to the Order.
214
     * Add billing details such as the bill number and the biller to the Order.
213
     * Adds jacket number, item number and Serial no. to the order. Doesn't update
215
     * Adds jacket number, item number and Serial no. to the order. Doesn't update
214
     * the IMEI no. if a -1 is supplied.
216
     * the IMEI no. if a -1 is supplied.
215
     * Also, it generates an invoice number for the order, marks the order as
217
     * Also, it generates an invoice number for the order, marks the order as
Line 1226... Line 1228...
1226
 
1228
 
1227
    public boolean markReturnNotRequiredOrdersProcessed(long returnTransactionId) throws TransactionServiceException, org.apache.thrift.TException;
1229
    public boolean markReturnNotRequiredOrdersProcessed(long returnTransactionId) throws TransactionServiceException, org.apache.thrift.TException;
1228
 
1230
 
1229
    public ReturnPickupRequest getReturnPickupRequest(long returnPickupId) throws org.apache.thrift.TException;
1231
    public ReturnPickupRequest getReturnPickupRequest(long returnPickupId) throws org.apache.thrift.TException;
1230
 
1232
 
-
 
1233
    public List<PendingStoreOrder> getPendingStoreOrders(long storeId) throws org.apache.thrift.TException;
-
 
1234
 
1231
  }
1235
  }
1232
 
1236
 
1233
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1237
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1234
 
1238
 
1235
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1239
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1298... Line 1302...
1298
 
1302
 
1299
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
1303
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
1300
 
1304
 
1301
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
1305
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
1302
 
1306
 
-
 
1307
    public void unacceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unacceptOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1308
 
1303
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
1309
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
1304
 
1310
 
1305
    public void addInvoiceNumber(long orderId, String invoiceNumber, String color, String serialNumber, String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
1311
    public void addInvoiceNumber(long orderId, String invoiceNumber, String color, String serialNumber, String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
1306
 
1312
 
1307
    public void markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsShippedFromWarehouse_call> resultHandler) throws org.apache.thrift.TException;
1313
    public void markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsShippedFromWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 1820... Line 1826...
1820
 
1826
 
1821
    public void markReturnNotRequiredOrdersProcessed(long returnTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markReturnNotRequiredOrdersProcessed_call> resultHandler) throws org.apache.thrift.TException;
1827
    public void markReturnNotRequiredOrdersProcessed(long returnTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markReturnNotRequiredOrdersProcessed_call> resultHandler) throws org.apache.thrift.TException;
1822
 
1828
 
1823
    public void getReturnPickupRequest(long returnPickupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnPickupRequest_call> resultHandler) throws org.apache.thrift.TException;
1829
    public void getReturnPickupRequest(long returnPickupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnPickupRequest_call> resultHandler) throws org.apache.thrift.TException;
1824
 
1830
 
-
 
1831
    public void getPendingStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
1832
 
1825
  }
1833
  }
1826
 
1834
 
1827
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1835
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1828
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1836
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1829
      public Factory() {}
1837
      public Factory() {}
Line 2730... Line 2738...
2730
        throw result.ex;
2738
        throw result.ex;
2731
      }
2739
      }
2732
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
2740
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
2733
    }
2741
    }
2734
 
2742
 
-
 
2743
    public boolean unacceptOrder(long orderId) throws org.apache.thrift.TException
-
 
2744
    {
-
 
2745
      send_unacceptOrder(orderId);
-
 
2746
      return recv_unacceptOrder();
-
 
2747
    }
-
 
2748
 
-
 
2749
    public void send_unacceptOrder(long orderId) throws org.apache.thrift.TException
-
 
2750
    {
-
 
2751
      unacceptOrder_args args = new unacceptOrder_args();
-
 
2752
      args.setOrderId(orderId);
-
 
2753
      sendBase("unacceptOrder", args);
-
 
2754
    }
-
 
2755
 
-
 
2756
    public boolean recv_unacceptOrder() throws org.apache.thrift.TException
-
 
2757
    {
-
 
2758
      unacceptOrder_result result = new unacceptOrder_result();
-
 
2759
      receiveBase(result, "unacceptOrder");
-
 
2760
      if (result.isSetSuccess()) {
-
 
2761
        return result.success;
-
 
2762
      }
-
 
2763
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unacceptOrder failed: unknown result");
-
 
2764
    }
-
 
2765
 
2735
    public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException
2766
    public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException
2736
    {
2767
    {
2737
      send_addBillingDetails(orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize);
2768
      send_addBillingDetails(orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize);
2738
      return recv_addBillingDetails();
2769
      return recv_addBillingDetails();
2739
    }
2770
    }
Line 9157... Line 9188...
9157
        return result.success;
9188
        return result.success;
9158
      }
9189
      }
9159
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
9190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnPickupRequest failed: unknown result");
9160
    }
9191
    }
9161
 
9192
 
-
 
9193
    public List<PendingStoreOrder> getPendingStoreOrders(long storeId) throws org.apache.thrift.TException
-
 
9194
    {
-
 
9195
      send_getPendingStoreOrders(storeId);
-
 
9196
      return recv_getPendingStoreOrders();
-
 
9197
    }
-
 
9198
 
-
 
9199
    public void send_getPendingStoreOrders(long storeId) throws org.apache.thrift.TException
-
 
9200
    {
-
 
9201
      getPendingStoreOrders_args args = new getPendingStoreOrders_args();
-
 
9202
      args.setStoreId(storeId);
-
 
9203
      sendBase("getPendingStoreOrders", args);
-
 
9204
    }
-
 
9205
 
-
 
9206
    public List<PendingStoreOrder> recv_getPendingStoreOrders() throws org.apache.thrift.TException
-
 
9207
    {
-
 
9208
      getPendingStoreOrders_result result = new getPendingStoreOrders_result();
-
 
9209
      receiveBase(result, "getPendingStoreOrders");
-
 
9210
      if (result.isSetSuccess()) {
-
 
9211
        return result.success;
-
 
9212
      }
-
 
9213
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingStoreOrders failed: unknown result");
-
 
9214
    }
-
 
9215
 
9162
  }
9216
  }
9163
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9217
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9164
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9218
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9165
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9219
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9166
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9220
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10374... Line 10428...
10374
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10428
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10375
        return (new Client(prot)).recv_acceptOrder();
10429
        return (new Client(prot)).recv_acceptOrder();
10376
      }
10430
      }
10377
    }
10431
    }
10378
 
10432
 
-
 
10433
    public void unacceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<unacceptOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
10434
      checkReady();
-
 
10435
      unacceptOrder_call method_call = new unacceptOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10436
      this.___currentMethod = method_call;
-
 
10437
      ___manager.call(method_call);
-
 
10438
    }
-
 
10439
 
-
 
10440
    public static class unacceptOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10441
      private long orderId;
-
 
10442
      public unacceptOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<unacceptOrder_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 {
-
 
10443
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10444
        this.orderId = orderId;
-
 
10445
      }
-
 
10446
 
-
 
10447
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10448
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unacceptOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10449
        unacceptOrder_args args = new unacceptOrder_args();
-
 
10450
        args.setOrderId(orderId);
-
 
10451
        args.write(prot);
-
 
10452
        prot.writeMessageEnd();
-
 
10453
      }
-
 
10454
 
-
 
10455
      public boolean getResult() throws org.apache.thrift.TException {
-
 
10456
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10457
          throw new IllegalStateException("Method call not finished!");
-
 
10458
        }
-
 
10459
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10460
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10461
        return (new Client(prot)).recv_unacceptOrder();
-
 
10462
      }
-
 
10463
    }
-
 
10464
 
10379
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
10465
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
10380
      checkReady();
10466
      checkReady();
10381
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize, resultHandler, this, ___protocolFactory, ___transport);
10467
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize, resultHandler, this, ___protocolFactory, ___transport);
10382
      this.___currentMethod = method_call;
10468
      this.___currentMethod = method_call;
10383
      ___manager.call(method_call);
10469
      ___manager.call(method_call);
Line 19467... Line 19553...
19467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19553
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19468
        return (new Client(prot)).recv_getReturnPickupRequest();
19554
        return (new Client(prot)).recv_getReturnPickupRequest();
19469
      }
19555
      }
19470
    }
19556
    }
19471
 
19557
 
-
 
19558
    public void getPendingStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPendingStoreOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
19559
      checkReady();
-
 
19560
      getPendingStoreOrders_call method_call = new getPendingStoreOrders_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
19561
      this.___currentMethod = method_call;
-
 
19562
      ___manager.call(method_call);
-
 
19563
    }
-
 
19564
 
-
 
19565
    public static class getPendingStoreOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19566
      private long storeId;
-
 
19567
      public getPendingStoreOrders_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPendingStoreOrders_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 {
-
 
19568
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19569
        this.storeId = storeId;
-
 
19570
      }
-
 
19571
 
-
 
19572
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19573
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingStoreOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19574
        getPendingStoreOrders_args args = new getPendingStoreOrders_args();
-
 
19575
        args.setStoreId(storeId);
-
 
19576
        args.write(prot);
-
 
19577
        prot.writeMessageEnd();
-
 
19578
      }
-
 
19579
 
-
 
19580
      public List<PendingStoreOrder> getResult() throws org.apache.thrift.TException {
-
 
19581
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19582
          throw new IllegalStateException("Method call not finished!");
-
 
19583
        }
-
 
19584
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19585
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19586
        return (new Client(prot)).recv_getPendingStoreOrders();
-
 
19587
      }
-
 
19588
    }
-
 
19589
 
19472
  }
19590
  }
19473
 
19591
 
19474
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19592
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19475
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19593
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19476
    public Processor(I iface) {
19594
    public Processor(I iface) {
Line 19514... Line 19632...
19514
      processMap.put("getValidOrders", new getValidOrders());
19632
      processMap.put("getValidOrders", new getValidOrders());
19515
      processMap.put("batchOrders", new batchOrders());
19633
      processMap.put("batchOrders", new batchOrders());
19516
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
19634
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
19517
      processMap.put("verifyOrder", new verifyOrder());
19635
      processMap.put("verifyOrder", new verifyOrder());
19518
      processMap.put("acceptOrder", new acceptOrder());
19636
      processMap.put("acceptOrder", new acceptOrder());
-
 
19637
      processMap.put("unacceptOrder", new unacceptOrder());
19519
      processMap.put("addBillingDetails", new addBillingDetails());
19638
      processMap.put("addBillingDetails", new addBillingDetails());
19520
      processMap.put("addInvoiceNumber", new addInvoiceNumber());
19639
      processMap.put("addInvoiceNumber", new addInvoiceNumber());
19521
      processMap.put("markOrdersAsShippedFromWarehouse", new markOrdersAsShippedFromWarehouse());
19640
      processMap.put("markOrdersAsShippedFromWarehouse", new markOrdersAsShippedFromWarehouse());
19522
      processMap.put("markOrdersAsReturnedFromStore", new markOrdersAsReturnedFromStore());
19641
      processMap.put("markOrdersAsReturnedFromStore", new markOrdersAsReturnedFromStore());
19523
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
19642
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
Line 19775... Line 19894...
19775
      processMap.put("getEligibleOrdersForReturn", new getEligibleOrdersForReturn());
19894
      processMap.put("getEligibleOrdersForReturn", new getEligibleOrdersForReturn());
19776
      processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
19895
      processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
19777
      processMap.put("validateReturnTransaction", new validateReturnTransaction());
19896
      processMap.put("validateReturnTransaction", new validateReturnTransaction());
19778
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
19897
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
19779
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
19898
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
-
 
19899
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
19780
      return processMap;
19900
      return processMap;
19781
    }
19901
    }
19782
 
19902
 
19783
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19903
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19784
      public createTransaction() {
19904
      public createTransaction() {
Line 20433... Line 20553...
20433
        }
20553
        }
20434
        return result;
20554
        return result;
20435
      }
20555
      }
20436
    }
20556
    }
20437
 
20557
 
-
 
20558
    private static class unacceptOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unacceptOrder_args> {
-
 
20559
      public unacceptOrder() {
-
 
20560
        super("unacceptOrder");
-
 
20561
      }
-
 
20562
 
-
 
20563
      protected unacceptOrder_args getEmptyArgsInstance() {
-
 
20564
        return new unacceptOrder_args();
-
 
20565
      }
-
 
20566
 
-
 
20567
      protected unacceptOrder_result getResult(I iface, unacceptOrder_args args) throws org.apache.thrift.TException {
-
 
20568
        unacceptOrder_result result = new unacceptOrder_result();
-
 
20569
        result.success = iface.unacceptOrder(args.orderId);
-
 
20570
        result.setSuccessIsSet(true);
-
 
20571
        return result;
-
 
20572
      }
-
 
20573
    }
-
 
20574
 
20438
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
20575
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
20439
      public addBillingDetails() {
20576
      public addBillingDetails() {
20440
        super("addBillingDetails");
20577
        super("addBillingDetails");
20441
      }
20578
      }
20442
 
20579
 
Line 25131... Line 25268...
25131
        result.success = iface.getReturnPickupRequest(args.returnPickupId);
25268
        result.success = iface.getReturnPickupRequest(args.returnPickupId);
25132
        return result;
25269
        return result;
25133
      }
25270
      }
25134
    }
25271
    }
25135
 
25272
 
-
 
25273
    private static class getPendingStoreOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingStoreOrders_args> {
-
 
25274
      public getPendingStoreOrders() {
-
 
25275
        super("getPendingStoreOrders");
-
 
25276
      }
-
 
25277
 
-
 
25278
      protected getPendingStoreOrders_args getEmptyArgsInstance() {
-
 
25279
        return new getPendingStoreOrders_args();
-
 
25280
      }
-
 
25281
 
-
 
25282
      protected getPendingStoreOrders_result getResult(I iface, getPendingStoreOrders_args args) throws org.apache.thrift.TException {
-
 
25283
        getPendingStoreOrders_result result = new getPendingStoreOrders_result();
-
 
25284
        result.success = iface.getPendingStoreOrders(args.storeId);
-
 
25285
        return result;
-
 
25286
      }
-
 
25287
    }
-
 
25288
 
25136
  }
25289
  }
25137
 
25290
 
25138
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25291
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
25292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
25140
 
25293
 
Line 51143... Line 51296...
51143
      }
51296
      }
51144
    }
51297
    }
51145
 
51298
 
51146
  }
51299
  }
51147
 
51300
 
-
 
51301
  public static class unacceptOrder_args implements org.apache.thrift.TBase<unacceptOrder_args, unacceptOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
51302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unacceptOrder_args");
-
 
51303
 
-
 
51304
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
51305
 
-
 
51306
    private long orderId; // required
-
 
51307
 
-
 
51308
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51309
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51310
      ORDER_ID((short)1, "orderId");
-
 
51311
 
-
 
51312
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51313
 
-
 
51314
      static {
-
 
51315
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51316
          byName.put(field.getFieldName(), field);
-
 
51317
        }
-
 
51318
      }
-
 
51319
 
-
 
51320
      /**
-
 
51321
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51322
       */
-
 
51323
      public static _Fields findByThriftId(int fieldId) {
-
 
51324
        switch(fieldId) {
-
 
51325
          case 1: // ORDER_ID
-
 
51326
            return ORDER_ID;
-
 
51327
          default:
-
 
51328
            return null;
-
 
51329
        }
-
 
51330
      }
-
 
51331
 
-
 
51332
      /**
-
 
51333
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51334
       * if it is not found.
-
 
51335
       */
-
 
51336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51337
        _Fields fields = findByThriftId(fieldId);
-
 
51338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51339
        return fields;
-
 
51340
      }
-
 
51341
 
-
 
51342
      /**
-
 
51343
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51344
       */
-
 
51345
      public static _Fields findByName(String name) {
-
 
51346
        return byName.get(name);
-
 
51347
      }
-
 
51348
 
-
 
51349
      private final short _thriftId;
-
 
51350
      private final String _fieldName;
-
 
51351
 
-
 
51352
      _Fields(short thriftId, String fieldName) {
-
 
51353
        _thriftId = thriftId;
-
 
51354
        _fieldName = fieldName;
-
 
51355
      }
-
 
51356
 
-
 
51357
      public short getThriftFieldId() {
-
 
51358
        return _thriftId;
-
 
51359
      }
-
 
51360
 
-
 
51361
      public String getFieldName() {
-
 
51362
        return _fieldName;
-
 
51363
      }
-
 
51364
    }
-
 
51365
 
-
 
51366
    // isset id assignments
-
 
51367
    private static final int __ORDERID_ISSET_ID = 0;
-
 
51368
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51369
 
-
 
51370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51371
    static {
-
 
51372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51373
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51375
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51376
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unacceptOrder_args.class, metaDataMap);
-
 
51377
    }
-
 
51378
 
-
 
51379
    public unacceptOrder_args() {
-
 
51380
    }
-
 
51381
 
-
 
51382
    public unacceptOrder_args(
-
 
51383
      long orderId)
-
 
51384
    {
-
 
51385
      this();
-
 
51386
      this.orderId = orderId;
-
 
51387
      setOrderIdIsSet(true);
-
 
51388
    }
-
 
51389
 
-
 
51390
    /**
-
 
51391
     * Performs a deep copy on <i>other</i>.
-
 
51392
     */
-
 
51393
    public unacceptOrder_args(unacceptOrder_args other) {
-
 
51394
      __isset_bit_vector.clear();
-
 
51395
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51396
      this.orderId = other.orderId;
-
 
51397
    }
-
 
51398
 
-
 
51399
    public unacceptOrder_args deepCopy() {
-
 
51400
      return new unacceptOrder_args(this);
-
 
51401
    }
-
 
51402
 
-
 
51403
    @Override
-
 
51404
    public void clear() {
-
 
51405
      setOrderIdIsSet(false);
-
 
51406
      this.orderId = 0;
-
 
51407
    }
-
 
51408
 
-
 
51409
    public long getOrderId() {
-
 
51410
      return this.orderId;
-
 
51411
    }
-
 
51412
 
-
 
51413
    public void setOrderId(long orderId) {
-
 
51414
      this.orderId = orderId;
-
 
51415
      setOrderIdIsSet(true);
-
 
51416
    }
-
 
51417
 
-
 
51418
    public void unsetOrderId() {
-
 
51419
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
51420
    }
-
 
51421
 
-
 
51422
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
51423
    public boolean isSetOrderId() {
-
 
51424
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
51425
    }
-
 
51426
 
-
 
51427
    public void setOrderIdIsSet(boolean value) {
-
 
51428
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
51429
    }
-
 
51430
 
-
 
51431
    public void setFieldValue(_Fields field, Object value) {
-
 
51432
      switch (field) {
-
 
51433
      case ORDER_ID:
-
 
51434
        if (value == null) {
-
 
51435
          unsetOrderId();
-
 
51436
        } else {
-
 
51437
          setOrderId((Long)value);
-
 
51438
        }
-
 
51439
        break;
-
 
51440
 
-
 
51441
      }
-
 
51442
    }
-
 
51443
 
-
 
51444
    public Object getFieldValue(_Fields field) {
-
 
51445
      switch (field) {
-
 
51446
      case ORDER_ID:
-
 
51447
        return Long.valueOf(getOrderId());
-
 
51448
 
-
 
51449
      }
-
 
51450
      throw new IllegalStateException();
-
 
51451
    }
-
 
51452
 
-
 
51453
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51454
    public boolean isSet(_Fields field) {
-
 
51455
      if (field == null) {
-
 
51456
        throw new IllegalArgumentException();
-
 
51457
      }
-
 
51458
 
-
 
51459
      switch (field) {
-
 
51460
      case ORDER_ID:
-
 
51461
        return isSetOrderId();
-
 
51462
      }
-
 
51463
      throw new IllegalStateException();
-
 
51464
    }
-
 
51465
 
-
 
51466
    @Override
-
 
51467
    public boolean equals(Object that) {
-
 
51468
      if (that == null)
-
 
51469
        return false;
-
 
51470
      if (that instanceof unacceptOrder_args)
-
 
51471
        return this.equals((unacceptOrder_args)that);
-
 
51472
      return false;
-
 
51473
    }
-
 
51474
 
-
 
51475
    public boolean equals(unacceptOrder_args that) {
-
 
51476
      if (that == null)
-
 
51477
        return false;
-
 
51478
 
-
 
51479
      boolean this_present_orderId = true;
-
 
51480
      boolean that_present_orderId = true;
-
 
51481
      if (this_present_orderId || that_present_orderId) {
-
 
51482
        if (!(this_present_orderId && that_present_orderId))
-
 
51483
          return false;
-
 
51484
        if (this.orderId != that.orderId)
-
 
51485
          return false;
-
 
51486
      }
-
 
51487
 
-
 
51488
      return true;
-
 
51489
    }
-
 
51490
 
-
 
51491
    @Override
-
 
51492
    public int hashCode() {
-
 
51493
      return 0;
-
 
51494
    }
-
 
51495
 
-
 
51496
    public int compareTo(unacceptOrder_args other) {
-
 
51497
      if (!getClass().equals(other.getClass())) {
-
 
51498
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51499
      }
-
 
51500
 
-
 
51501
      int lastComparison = 0;
-
 
51502
      unacceptOrder_args typedOther = (unacceptOrder_args)other;
-
 
51503
 
-
 
51504
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
51505
      if (lastComparison != 0) {
-
 
51506
        return lastComparison;
-
 
51507
      }
-
 
51508
      if (isSetOrderId()) {
-
 
51509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
51510
        if (lastComparison != 0) {
-
 
51511
          return lastComparison;
-
 
51512
        }
-
 
51513
      }
-
 
51514
      return 0;
-
 
51515
    }
-
 
51516
 
-
 
51517
    public _Fields fieldForId(int fieldId) {
-
 
51518
      return _Fields.findByThriftId(fieldId);
-
 
51519
    }
-
 
51520
 
-
 
51521
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51522
      org.apache.thrift.protocol.TField field;
-
 
51523
      iprot.readStructBegin();
-
 
51524
      while (true)
-
 
51525
      {
-
 
51526
        field = iprot.readFieldBegin();
-
 
51527
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51528
          break;
-
 
51529
        }
-
 
51530
        switch (field.id) {
-
 
51531
          case 1: // ORDER_ID
-
 
51532
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51533
              this.orderId = iprot.readI64();
-
 
51534
              setOrderIdIsSet(true);
-
 
51535
            } else { 
-
 
51536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51537
            }
-
 
51538
            break;
-
 
51539
          default:
-
 
51540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51541
        }
-
 
51542
        iprot.readFieldEnd();
-
 
51543
      }
-
 
51544
      iprot.readStructEnd();
-
 
51545
      validate();
-
 
51546
    }
-
 
51547
 
-
 
51548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51549
      validate();
-
 
51550
 
-
 
51551
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51552
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
51553
      oprot.writeI64(this.orderId);
-
 
51554
      oprot.writeFieldEnd();
-
 
51555
      oprot.writeFieldStop();
-
 
51556
      oprot.writeStructEnd();
-
 
51557
    }
-
 
51558
 
-
 
51559
    @Override
-
 
51560
    public String toString() {
-
 
51561
      StringBuilder sb = new StringBuilder("unacceptOrder_args(");
-
 
51562
      boolean first = true;
-
 
51563
 
-
 
51564
      sb.append("orderId:");
-
 
51565
      sb.append(this.orderId);
-
 
51566
      first = false;
-
 
51567
      sb.append(")");
-
 
51568
      return sb.toString();
-
 
51569
    }
-
 
51570
 
-
 
51571
    public void validate() throws org.apache.thrift.TException {
-
 
51572
      // check for required fields
-
 
51573
    }
-
 
51574
 
-
 
51575
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51576
      try {
-
 
51577
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51578
      } catch (org.apache.thrift.TException te) {
-
 
51579
        throw new java.io.IOException(te);
-
 
51580
      }
-
 
51581
    }
-
 
51582
 
-
 
51583
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51584
      try {
-
 
51585
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
51586
        __isset_bit_vector = new BitSet(1);
-
 
51587
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51588
      } catch (org.apache.thrift.TException te) {
-
 
51589
        throw new java.io.IOException(te);
-
 
51590
      }
-
 
51591
    }
-
 
51592
 
-
 
51593
  }
-
 
51594
 
-
 
51595
  public static class unacceptOrder_result implements org.apache.thrift.TBase<unacceptOrder_result, unacceptOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
51596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unacceptOrder_result");
-
 
51597
 
-
 
51598
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
51599
 
-
 
51600
    private boolean success; // required
-
 
51601
 
-
 
51602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51604
      SUCCESS((short)0, "success");
-
 
51605
 
-
 
51606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51607
 
-
 
51608
      static {
-
 
51609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51610
          byName.put(field.getFieldName(), field);
-
 
51611
        }
-
 
51612
      }
-
 
51613
 
-
 
51614
      /**
-
 
51615
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51616
       */
-
 
51617
      public static _Fields findByThriftId(int fieldId) {
-
 
51618
        switch(fieldId) {
-
 
51619
          case 0: // SUCCESS
-
 
51620
            return SUCCESS;
-
 
51621
          default:
-
 
51622
            return null;
-
 
51623
        }
-
 
51624
      }
-
 
51625
 
-
 
51626
      /**
-
 
51627
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51628
       * if it is not found.
-
 
51629
       */
-
 
51630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51631
        _Fields fields = findByThriftId(fieldId);
-
 
51632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51633
        return fields;
-
 
51634
      }
-
 
51635
 
-
 
51636
      /**
-
 
51637
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51638
       */
-
 
51639
      public static _Fields findByName(String name) {
-
 
51640
        return byName.get(name);
-
 
51641
      }
-
 
51642
 
-
 
51643
      private final short _thriftId;
-
 
51644
      private final String _fieldName;
-
 
51645
 
-
 
51646
      _Fields(short thriftId, String fieldName) {
-
 
51647
        _thriftId = thriftId;
-
 
51648
        _fieldName = fieldName;
-
 
51649
      }
-
 
51650
 
-
 
51651
      public short getThriftFieldId() {
-
 
51652
        return _thriftId;
-
 
51653
      }
-
 
51654
 
-
 
51655
      public String getFieldName() {
-
 
51656
        return _fieldName;
-
 
51657
      }
-
 
51658
    }
-
 
51659
 
-
 
51660
    // isset id assignments
-
 
51661
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
51662
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51663
 
-
 
51664
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51665
    static {
-
 
51666
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51667
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51668
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
51669
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51670
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unacceptOrder_result.class, metaDataMap);
-
 
51671
    }
-
 
51672
 
-
 
51673
    public unacceptOrder_result() {
-
 
51674
    }
-
 
51675
 
-
 
51676
    public unacceptOrder_result(
-
 
51677
      boolean success)
-
 
51678
    {
-
 
51679
      this();
-
 
51680
      this.success = success;
-
 
51681
      setSuccessIsSet(true);
-
 
51682
    }
-
 
51683
 
-
 
51684
    /**
-
 
51685
     * Performs a deep copy on <i>other</i>.
-
 
51686
     */
-
 
51687
    public unacceptOrder_result(unacceptOrder_result other) {
-
 
51688
      __isset_bit_vector.clear();
-
 
51689
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51690
      this.success = other.success;
-
 
51691
    }
-
 
51692
 
-
 
51693
    public unacceptOrder_result deepCopy() {
-
 
51694
      return new unacceptOrder_result(this);
-
 
51695
    }
-
 
51696
 
-
 
51697
    @Override
-
 
51698
    public void clear() {
-
 
51699
      setSuccessIsSet(false);
-
 
51700
      this.success = false;
-
 
51701
    }
-
 
51702
 
-
 
51703
    public boolean isSuccess() {
-
 
51704
      return this.success;
-
 
51705
    }
-
 
51706
 
-
 
51707
    public void setSuccess(boolean success) {
-
 
51708
      this.success = success;
-
 
51709
      setSuccessIsSet(true);
-
 
51710
    }
-
 
51711
 
-
 
51712
    public void unsetSuccess() {
-
 
51713
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
51714
    }
-
 
51715
 
-
 
51716
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
51717
    public boolean isSetSuccess() {
-
 
51718
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
51719
    }
-
 
51720
 
-
 
51721
    public void setSuccessIsSet(boolean value) {
-
 
51722
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
51723
    }
-
 
51724
 
-
 
51725
    public void setFieldValue(_Fields field, Object value) {
-
 
51726
      switch (field) {
-
 
51727
      case SUCCESS:
-
 
51728
        if (value == null) {
-
 
51729
          unsetSuccess();
-
 
51730
        } else {
-
 
51731
          setSuccess((Boolean)value);
-
 
51732
        }
-
 
51733
        break;
-
 
51734
 
-
 
51735
      }
-
 
51736
    }
-
 
51737
 
-
 
51738
    public Object getFieldValue(_Fields field) {
-
 
51739
      switch (field) {
-
 
51740
      case SUCCESS:
-
 
51741
        return Boolean.valueOf(isSuccess());
-
 
51742
 
-
 
51743
      }
-
 
51744
      throw new IllegalStateException();
-
 
51745
    }
-
 
51746
 
-
 
51747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51748
    public boolean isSet(_Fields field) {
-
 
51749
      if (field == null) {
-
 
51750
        throw new IllegalArgumentException();
-
 
51751
      }
-
 
51752
 
-
 
51753
      switch (field) {
-
 
51754
      case SUCCESS:
-
 
51755
        return isSetSuccess();
-
 
51756
      }
-
 
51757
      throw new IllegalStateException();
-
 
51758
    }
-
 
51759
 
-
 
51760
    @Override
-
 
51761
    public boolean equals(Object that) {
-
 
51762
      if (that == null)
-
 
51763
        return false;
-
 
51764
      if (that instanceof unacceptOrder_result)
-
 
51765
        return this.equals((unacceptOrder_result)that);
-
 
51766
      return false;
-
 
51767
    }
-
 
51768
 
-
 
51769
    public boolean equals(unacceptOrder_result that) {
-
 
51770
      if (that == null)
-
 
51771
        return false;
-
 
51772
 
-
 
51773
      boolean this_present_success = true;
-
 
51774
      boolean that_present_success = true;
-
 
51775
      if (this_present_success || that_present_success) {
-
 
51776
        if (!(this_present_success && that_present_success))
-
 
51777
          return false;
-
 
51778
        if (this.success != that.success)
-
 
51779
          return false;
-
 
51780
      }
-
 
51781
 
-
 
51782
      return true;
-
 
51783
    }
-
 
51784
 
-
 
51785
    @Override
-
 
51786
    public int hashCode() {
-
 
51787
      return 0;
-
 
51788
    }
-
 
51789
 
-
 
51790
    public int compareTo(unacceptOrder_result other) {
-
 
51791
      if (!getClass().equals(other.getClass())) {
-
 
51792
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51793
      }
-
 
51794
 
-
 
51795
      int lastComparison = 0;
-
 
51796
      unacceptOrder_result typedOther = (unacceptOrder_result)other;
-
 
51797
 
-
 
51798
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
51799
      if (lastComparison != 0) {
-
 
51800
        return lastComparison;
-
 
51801
      }
-
 
51802
      if (isSetSuccess()) {
-
 
51803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
51804
        if (lastComparison != 0) {
-
 
51805
          return lastComparison;
-
 
51806
        }
-
 
51807
      }
-
 
51808
      return 0;
-
 
51809
    }
-
 
51810
 
-
 
51811
    public _Fields fieldForId(int fieldId) {
-
 
51812
      return _Fields.findByThriftId(fieldId);
-
 
51813
    }
-
 
51814
 
-
 
51815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51816
      org.apache.thrift.protocol.TField field;
-
 
51817
      iprot.readStructBegin();
-
 
51818
      while (true)
-
 
51819
      {
-
 
51820
        field = iprot.readFieldBegin();
-
 
51821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51822
          break;
-
 
51823
        }
-
 
51824
        switch (field.id) {
-
 
51825
          case 0: // SUCCESS
-
 
51826
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
51827
              this.success = iprot.readBool();
-
 
51828
              setSuccessIsSet(true);
-
 
51829
            } else { 
-
 
51830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51831
            }
-
 
51832
            break;
-
 
51833
          default:
-
 
51834
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51835
        }
-
 
51836
        iprot.readFieldEnd();
-
 
51837
      }
-
 
51838
      iprot.readStructEnd();
-
 
51839
      validate();
-
 
51840
    }
-
 
51841
 
-
 
51842
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51843
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51844
 
-
 
51845
      if (this.isSetSuccess()) {
-
 
51846
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
51847
        oprot.writeBool(this.success);
-
 
51848
        oprot.writeFieldEnd();
-
 
51849
      }
-
 
51850
      oprot.writeFieldStop();
-
 
51851
      oprot.writeStructEnd();
-
 
51852
    }
-
 
51853
 
-
 
51854
    @Override
-
 
51855
    public String toString() {
-
 
51856
      StringBuilder sb = new StringBuilder("unacceptOrder_result(");
-
 
51857
      boolean first = true;
-
 
51858
 
-
 
51859
      sb.append("success:");
-
 
51860
      sb.append(this.success);
-
 
51861
      first = false;
-
 
51862
      sb.append(")");
-
 
51863
      return sb.toString();
-
 
51864
    }
-
 
51865
 
-
 
51866
    public void validate() throws org.apache.thrift.TException {
-
 
51867
      // check for required fields
-
 
51868
    }
-
 
51869
 
-
 
51870
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51871
      try {
-
 
51872
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51873
      } catch (org.apache.thrift.TException te) {
-
 
51874
        throw new java.io.IOException(te);
-
 
51875
      }
-
 
51876
    }
-
 
51877
 
-
 
51878
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51879
      try {
-
 
51880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51881
      } catch (org.apache.thrift.TException te) {
-
 
51882
        throw new java.io.IOException(te);
-
 
51883
      }
-
 
51884
    }
-
 
51885
 
-
 
51886
  }
-
 
51887
 
51148
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
51888
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
51149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
51889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
51150
 
51890
 
51151
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
51891
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
51152
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
51892
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
Line 52268... Line 53008...
52268
      }
53008
      }
52269
    }
53009
    }
52270
 
53010
 
52271
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53011
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52272
      try {
53012
      try {
-
 
53013
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
53014
        __isset_bit_vector = new BitSet(1);
52273
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53015
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52274
      } catch (org.apache.thrift.TException te) {
53016
      } catch (org.apache.thrift.TException te) {
52275
        throw new java.io.IOException(te);
53017
        throw new java.io.IOException(te);
52276
      }
53018
      }
52277
    }
53019
    }
Line 75695... Line 76437...
75695
      }
76437
      }
75696
    }
76438
    }
75697
 
76439
 
75698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
76440
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
75699
      try {
76441
      try {
75700
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
75701
        __isset_bit_vector = new BitSet(1);
-
 
75702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
76442
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
75703
      } catch (org.apache.thrift.TException te) {
76443
      } catch (org.apache.thrift.TException te) {
75704
        throw new java.io.IOException(te);
76444
        throw new java.io.IOException(te);
75705
      }
76445
      }
75706
    }
76446
    }
Line 121404... Line 122144...
121404
      }
122144
      }
121405
    }
122145
    }
121406
 
122146
 
121407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
122147
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
121408
      try {
122148
      try {
-
 
122149
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
122150
        __isset_bit_vector = new BitSet(1);
121409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
122151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
121410
      } catch (org.apache.thrift.TException te) {
122152
      } catch (org.apache.thrift.TException te) {
121411
        throw new java.io.IOException(te);
122153
        throw new java.io.IOException(te);
121412
      }
122154
      }
121413
    }
122155
    }
Line 206520... Line 207262...
206520
      }
207262
      }
206521
    }
207263
    }
206522
 
207264
 
206523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
207265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
206524
      try {
207266
      try {
206525
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
206526
        __isset_bit_vector = new BitSet(1);
-
 
206527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
207267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
206528
      } catch (org.apache.thrift.TException te) {
207268
      } catch (org.apache.thrift.TException te) {
206529
        throw new java.io.IOException(te);
207269
        throw new java.io.IOException(te);
206530
      }
207270
      }
206531
    }
207271
    }
Line 207328... Line 208068...
207328
      }
208068
      }
207329
    }
208069
    }
207330
 
208070
 
207331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
208071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
207332
      try {
208072
      try {
-
 
208073
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
208074
        __isset_bit_vector = new BitSet(1);
207333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
208075
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
207334
      } catch (org.apache.thrift.TException te) {
208076
      } catch (org.apache.thrift.TException te) {
207335
        throw new java.io.IOException(te);
208077
        throw new java.io.IOException(te);
207336
      }
208078
      }
207337
    }
208079
    }
Line 236493... Line 237235...
236493
      boolean first = true;
237235
      boolean first = true;
236494
 
237236
 
236495
      sb.append("success:");
237237
      sb.append("success:");
236496
      if (this.success == null) {
237238
      if (this.success == null) {
236497
        sb.append("null");
237239
        sb.append("null");
-
 
237240
      } else {
-
 
237241
        sb.append(this.success);
-
 
237242
      }
-
 
237243
      first = false;
-
 
237244
      sb.append(")");
-
 
237245
      return sb.toString();
-
 
237246
    }
-
 
237247
 
-
 
237248
    public void validate() throws org.apache.thrift.TException {
-
 
237249
      // check for required fields
-
 
237250
    }
-
 
237251
 
-
 
237252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
237253
      try {
-
 
237254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
237255
      } catch (org.apache.thrift.TException te) {
-
 
237256
        throw new java.io.IOException(te);
-
 
237257
      }
-
 
237258
    }
-
 
237259
 
-
 
237260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
237261
      try {
-
 
237262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
237263
      } catch (org.apache.thrift.TException te) {
-
 
237264
        throw new java.io.IOException(te);
-
 
237265
      }
-
 
237266
    }
-
 
237267
 
-
 
237268
  }
-
 
237269
 
-
 
237270
  public static class getPendingStoreOrders_args implements org.apache.thrift.TBase<getPendingStoreOrders_args, getPendingStoreOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
237271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingStoreOrders_args");
-
 
237272
 
-
 
237273
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
237274
 
-
 
237275
    private long storeId; // required
-
 
237276
 
-
 
237277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
237278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
237279
      STORE_ID((short)1, "storeId");
-
 
237280
 
-
 
237281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
237282
 
-
 
237283
      static {
-
 
237284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
237285
          byName.put(field.getFieldName(), field);
-
 
237286
        }
-
 
237287
      }
-
 
237288
 
-
 
237289
      /**
-
 
237290
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
237291
       */
-
 
237292
      public static _Fields findByThriftId(int fieldId) {
-
 
237293
        switch(fieldId) {
-
 
237294
          case 1: // STORE_ID
-
 
237295
            return STORE_ID;
-
 
237296
          default:
-
 
237297
            return null;
-
 
237298
        }
-
 
237299
      }
-
 
237300
 
-
 
237301
      /**
-
 
237302
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
237303
       * if it is not found.
-
 
237304
       */
-
 
237305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
237306
        _Fields fields = findByThriftId(fieldId);
-
 
237307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
237308
        return fields;
-
 
237309
      }
-
 
237310
 
-
 
237311
      /**
-
 
237312
       * Find the _Fields constant that matches name, or null if its not found.
-
 
237313
       */
-
 
237314
      public static _Fields findByName(String name) {
-
 
237315
        return byName.get(name);
-
 
237316
      }
-
 
237317
 
-
 
237318
      private final short _thriftId;
-
 
237319
      private final String _fieldName;
-
 
237320
 
-
 
237321
      _Fields(short thriftId, String fieldName) {
-
 
237322
        _thriftId = thriftId;
-
 
237323
        _fieldName = fieldName;
-
 
237324
      }
-
 
237325
 
-
 
237326
      public short getThriftFieldId() {
-
 
237327
        return _thriftId;
-
 
237328
      }
-
 
237329
 
-
 
237330
      public String getFieldName() {
-
 
237331
        return _fieldName;
-
 
237332
      }
-
 
237333
    }
-
 
237334
 
-
 
237335
    // isset id assignments
-
 
237336
    private static final int __STOREID_ISSET_ID = 0;
-
 
237337
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
237338
 
-
 
237339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
237340
    static {
-
 
237341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
237342
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
237343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
237344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
237345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingStoreOrders_args.class, metaDataMap);
-
 
237346
    }
-
 
237347
 
-
 
237348
    public getPendingStoreOrders_args() {
-
 
237349
    }
-
 
237350
 
-
 
237351
    public getPendingStoreOrders_args(
-
 
237352
      long storeId)
-
 
237353
    {
-
 
237354
      this();
-
 
237355
      this.storeId = storeId;
-
 
237356
      setStoreIdIsSet(true);
-
 
237357
    }
-
 
237358
 
-
 
237359
    /**
-
 
237360
     * Performs a deep copy on <i>other</i>.
-
 
237361
     */
-
 
237362
    public getPendingStoreOrders_args(getPendingStoreOrders_args other) {
-
 
237363
      __isset_bit_vector.clear();
-
 
237364
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
237365
      this.storeId = other.storeId;
-
 
237366
    }
-
 
237367
 
-
 
237368
    public getPendingStoreOrders_args deepCopy() {
-
 
237369
      return new getPendingStoreOrders_args(this);
-
 
237370
    }
-
 
237371
 
-
 
237372
    @Override
-
 
237373
    public void clear() {
-
 
237374
      setStoreIdIsSet(false);
-
 
237375
      this.storeId = 0;
-
 
237376
    }
-
 
237377
 
-
 
237378
    public long getStoreId() {
-
 
237379
      return this.storeId;
-
 
237380
    }
-
 
237381
 
-
 
237382
    public void setStoreId(long storeId) {
-
 
237383
      this.storeId = storeId;
-
 
237384
      setStoreIdIsSet(true);
-
 
237385
    }
-
 
237386
 
-
 
237387
    public void unsetStoreId() {
-
 
237388
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
237389
    }
-
 
237390
 
-
 
237391
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
237392
    public boolean isSetStoreId() {
-
 
237393
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
237394
    }
-
 
237395
 
-
 
237396
    public void setStoreIdIsSet(boolean value) {
-
 
237397
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
237398
    }
-
 
237399
 
-
 
237400
    public void setFieldValue(_Fields field, Object value) {
-
 
237401
      switch (field) {
-
 
237402
      case STORE_ID:
-
 
237403
        if (value == null) {
-
 
237404
          unsetStoreId();
-
 
237405
        } else {
-
 
237406
          setStoreId((Long)value);
-
 
237407
        }
-
 
237408
        break;
-
 
237409
 
-
 
237410
      }
-
 
237411
    }
-
 
237412
 
-
 
237413
    public Object getFieldValue(_Fields field) {
-
 
237414
      switch (field) {
-
 
237415
      case STORE_ID:
-
 
237416
        return Long.valueOf(getStoreId());
-
 
237417
 
-
 
237418
      }
-
 
237419
      throw new IllegalStateException();
-
 
237420
    }
-
 
237421
 
-
 
237422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
237423
    public boolean isSet(_Fields field) {
-
 
237424
      if (field == null) {
-
 
237425
        throw new IllegalArgumentException();
-
 
237426
      }
-
 
237427
 
-
 
237428
      switch (field) {
-
 
237429
      case STORE_ID:
-
 
237430
        return isSetStoreId();
-
 
237431
      }
-
 
237432
      throw new IllegalStateException();
-
 
237433
    }
-
 
237434
 
-
 
237435
    @Override
-
 
237436
    public boolean equals(Object that) {
-
 
237437
      if (that == null)
-
 
237438
        return false;
-
 
237439
      if (that instanceof getPendingStoreOrders_args)
-
 
237440
        return this.equals((getPendingStoreOrders_args)that);
-
 
237441
      return false;
-
 
237442
    }
-
 
237443
 
-
 
237444
    public boolean equals(getPendingStoreOrders_args that) {
-
 
237445
      if (that == null)
-
 
237446
        return false;
-
 
237447
 
-
 
237448
      boolean this_present_storeId = true;
-
 
237449
      boolean that_present_storeId = true;
-
 
237450
      if (this_present_storeId || that_present_storeId) {
-
 
237451
        if (!(this_present_storeId && that_present_storeId))
-
 
237452
          return false;
-
 
237453
        if (this.storeId != that.storeId)
-
 
237454
          return false;
-
 
237455
      }
-
 
237456
 
-
 
237457
      return true;
-
 
237458
    }
-
 
237459
 
-
 
237460
    @Override
-
 
237461
    public int hashCode() {
-
 
237462
      return 0;
-
 
237463
    }
-
 
237464
 
-
 
237465
    public int compareTo(getPendingStoreOrders_args other) {
-
 
237466
      if (!getClass().equals(other.getClass())) {
-
 
237467
        return getClass().getName().compareTo(other.getClass().getName());
-
 
237468
      }
-
 
237469
 
-
 
237470
      int lastComparison = 0;
-
 
237471
      getPendingStoreOrders_args typedOther = (getPendingStoreOrders_args)other;
-
 
237472
 
-
 
237473
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
237474
      if (lastComparison != 0) {
-
 
237475
        return lastComparison;
-
 
237476
      }
-
 
237477
      if (isSetStoreId()) {
-
 
237478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
237479
        if (lastComparison != 0) {
-
 
237480
          return lastComparison;
-
 
237481
        }
-
 
237482
      }
-
 
237483
      return 0;
-
 
237484
    }
-
 
237485
 
-
 
237486
    public _Fields fieldForId(int fieldId) {
-
 
237487
      return _Fields.findByThriftId(fieldId);
-
 
237488
    }
-
 
237489
 
-
 
237490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
237491
      org.apache.thrift.protocol.TField field;
-
 
237492
      iprot.readStructBegin();
-
 
237493
      while (true)
-
 
237494
      {
-
 
237495
        field = iprot.readFieldBegin();
-
 
237496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
237497
          break;
-
 
237498
        }
-
 
237499
        switch (field.id) {
-
 
237500
          case 1: // STORE_ID
-
 
237501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
237502
              this.storeId = iprot.readI64();
-
 
237503
              setStoreIdIsSet(true);
-
 
237504
            } else { 
-
 
237505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
237506
            }
-
 
237507
            break;
-
 
237508
          default:
-
 
237509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
237510
        }
-
 
237511
        iprot.readFieldEnd();
-
 
237512
      }
-
 
237513
      iprot.readStructEnd();
-
 
237514
      validate();
-
 
237515
    }
-
 
237516
 
-
 
237517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
237518
      validate();
-
 
237519
 
-
 
237520
      oprot.writeStructBegin(STRUCT_DESC);
-
 
237521
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
237522
      oprot.writeI64(this.storeId);
-
 
237523
      oprot.writeFieldEnd();
-
 
237524
      oprot.writeFieldStop();
-
 
237525
      oprot.writeStructEnd();
-
 
237526
    }
-
 
237527
 
-
 
237528
    @Override
-
 
237529
    public String toString() {
-
 
237530
      StringBuilder sb = new StringBuilder("getPendingStoreOrders_args(");
-
 
237531
      boolean first = true;
-
 
237532
 
-
 
237533
      sb.append("storeId:");
-
 
237534
      sb.append(this.storeId);
-
 
237535
      first = false;
-
 
237536
      sb.append(")");
-
 
237537
      return sb.toString();
-
 
237538
    }
-
 
237539
 
-
 
237540
    public void validate() throws org.apache.thrift.TException {
-
 
237541
      // check for required fields
-
 
237542
    }
-
 
237543
 
-
 
237544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
237545
      try {
-
 
237546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
237547
      } catch (org.apache.thrift.TException te) {
-
 
237548
        throw new java.io.IOException(te);
-
 
237549
      }
-
 
237550
    }
-
 
237551
 
-
 
237552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
237553
      try {
-
 
237554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
237555
        __isset_bit_vector = new BitSet(1);
-
 
237556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
237557
      } catch (org.apache.thrift.TException te) {
-
 
237558
        throw new java.io.IOException(te);
-
 
237559
      }
-
 
237560
    }
-
 
237561
 
-
 
237562
  }
-
 
237563
 
-
 
237564
  public static class getPendingStoreOrders_result implements org.apache.thrift.TBase<getPendingStoreOrders_result, getPendingStoreOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
237565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingStoreOrders_result");
-
 
237566
 
-
 
237567
    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);
-
 
237568
 
-
 
237569
    private List<PendingStoreOrder> success; // required
-
 
237570
 
-
 
237571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
237572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
237573
      SUCCESS((short)0, "success");
-
 
237574
 
-
 
237575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
237576
 
-
 
237577
      static {
-
 
237578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
237579
          byName.put(field.getFieldName(), field);
-
 
237580
        }
-
 
237581
      }
-
 
237582
 
-
 
237583
      /**
-
 
237584
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
237585
       */
-
 
237586
      public static _Fields findByThriftId(int fieldId) {
-
 
237587
        switch(fieldId) {
-
 
237588
          case 0: // SUCCESS
-
 
237589
            return SUCCESS;
-
 
237590
          default:
-
 
237591
            return null;
-
 
237592
        }
-
 
237593
      }
-
 
237594
 
-
 
237595
      /**
-
 
237596
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
237597
       * if it is not found.
-
 
237598
       */
-
 
237599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
237600
        _Fields fields = findByThriftId(fieldId);
-
 
237601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
237602
        return fields;
-
 
237603
      }
-
 
237604
 
-
 
237605
      /**
-
 
237606
       * Find the _Fields constant that matches name, or null if its not found.
-
 
237607
       */
-
 
237608
      public static _Fields findByName(String name) {
-
 
237609
        return byName.get(name);
-
 
237610
      }
-
 
237611
 
-
 
237612
      private final short _thriftId;
-
 
237613
      private final String _fieldName;
-
 
237614
 
-
 
237615
      _Fields(short thriftId, String fieldName) {
-
 
237616
        _thriftId = thriftId;
-
 
237617
        _fieldName = fieldName;
-
 
237618
      }
-
 
237619
 
-
 
237620
      public short getThriftFieldId() {
-
 
237621
        return _thriftId;
-
 
237622
      }
-
 
237623
 
-
 
237624
      public String getFieldName() {
-
 
237625
        return _fieldName;
-
 
237626
      }
-
 
237627
    }
-
 
237628
 
-
 
237629
    // isset id assignments
-
 
237630
 
-
 
237631
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
237632
    static {
-
 
237633
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
237634
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
237635
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
237636
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PendingStoreOrder.class))));
-
 
237637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
237638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingStoreOrders_result.class, metaDataMap);
-
 
237639
    }
-
 
237640
 
-
 
237641
    public getPendingStoreOrders_result() {
-
 
237642
    }
-
 
237643
 
-
 
237644
    public getPendingStoreOrders_result(
-
 
237645
      List<PendingStoreOrder> success)
-
 
237646
    {
-
 
237647
      this();
-
 
237648
      this.success = success;
-
 
237649
    }
-
 
237650
 
-
 
237651
    /**
-
 
237652
     * Performs a deep copy on <i>other</i>.
-
 
237653
     */
-
 
237654
    public getPendingStoreOrders_result(getPendingStoreOrders_result other) {
-
 
237655
      if (other.isSetSuccess()) {
-
 
237656
        List<PendingStoreOrder> __this__success = new ArrayList<PendingStoreOrder>();
-
 
237657
        for (PendingStoreOrder other_element : other.success) {
-
 
237658
          __this__success.add(new PendingStoreOrder(other_element));
-
 
237659
        }
-
 
237660
        this.success = __this__success;
-
 
237661
      }
-
 
237662
    }
-
 
237663
 
-
 
237664
    public getPendingStoreOrders_result deepCopy() {
-
 
237665
      return new getPendingStoreOrders_result(this);
-
 
237666
    }
-
 
237667
 
-
 
237668
    @Override
-
 
237669
    public void clear() {
-
 
237670
      this.success = null;
-
 
237671
    }
-
 
237672
 
-
 
237673
    public int getSuccessSize() {
-
 
237674
      return (this.success == null) ? 0 : this.success.size();
-
 
237675
    }
-
 
237676
 
-
 
237677
    public java.util.Iterator<PendingStoreOrder> getSuccessIterator() {
-
 
237678
      return (this.success == null) ? null : this.success.iterator();
-
 
237679
    }
-
 
237680
 
-
 
237681
    public void addToSuccess(PendingStoreOrder elem) {
-
 
237682
      if (this.success == null) {
-
 
237683
        this.success = new ArrayList<PendingStoreOrder>();
-
 
237684
      }
-
 
237685
      this.success.add(elem);
-
 
237686
    }
-
 
237687
 
-
 
237688
    public List<PendingStoreOrder> getSuccess() {
-
 
237689
      return this.success;
-
 
237690
    }
-
 
237691
 
-
 
237692
    public void setSuccess(List<PendingStoreOrder> success) {
-
 
237693
      this.success = success;
-
 
237694
    }
-
 
237695
 
-
 
237696
    public void unsetSuccess() {
-
 
237697
      this.success = null;
-
 
237698
    }
-
 
237699
 
-
 
237700
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
237701
    public boolean isSetSuccess() {
-
 
237702
      return this.success != null;
-
 
237703
    }
-
 
237704
 
-
 
237705
    public void setSuccessIsSet(boolean value) {
-
 
237706
      if (!value) {
-
 
237707
        this.success = null;
-
 
237708
      }
-
 
237709
    }
-
 
237710
 
-
 
237711
    public void setFieldValue(_Fields field, Object value) {
-
 
237712
      switch (field) {
-
 
237713
      case SUCCESS:
-
 
237714
        if (value == null) {
-
 
237715
          unsetSuccess();
-
 
237716
        } else {
-
 
237717
          setSuccess((List<PendingStoreOrder>)value);
-
 
237718
        }
-
 
237719
        break;
-
 
237720
 
-
 
237721
      }
-
 
237722
    }
-
 
237723
 
-
 
237724
    public Object getFieldValue(_Fields field) {
-
 
237725
      switch (field) {
-
 
237726
      case SUCCESS:
-
 
237727
        return getSuccess();
-
 
237728
 
-
 
237729
      }
-
 
237730
      throw new IllegalStateException();
-
 
237731
    }
-
 
237732
 
-
 
237733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
237734
    public boolean isSet(_Fields field) {
-
 
237735
      if (field == null) {
-
 
237736
        throw new IllegalArgumentException();
-
 
237737
      }
-
 
237738
 
-
 
237739
      switch (field) {
-
 
237740
      case SUCCESS:
-
 
237741
        return isSetSuccess();
-
 
237742
      }
-
 
237743
      throw new IllegalStateException();
-
 
237744
    }
-
 
237745
 
-
 
237746
    @Override
-
 
237747
    public boolean equals(Object that) {
-
 
237748
      if (that == null)
-
 
237749
        return false;
-
 
237750
      if (that instanceof getPendingStoreOrders_result)
-
 
237751
        return this.equals((getPendingStoreOrders_result)that);
-
 
237752
      return false;
-
 
237753
    }
-
 
237754
 
-
 
237755
    public boolean equals(getPendingStoreOrders_result that) {
-
 
237756
      if (that == null)
-
 
237757
        return false;
-
 
237758
 
-
 
237759
      boolean this_present_success = true && this.isSetSuccess();
-
 
237760
      boolean that_present_success = true && that.isSetSuccess();
-
 
237761
      if (this_present_success || that_present_success) {
-
 
237762
        if (!(this_present_success && that_present_success))
-
 
237763
          return false;
-
 
237764
        if (!this.success.equals(that.success))
-
 
237765
          return false;
-
 
237766
      }
-
 
237767
 
-
 
237768
      return true;
-
 
237769
    }
-
 
237770
 
-
 
237771
    @Override
-
 
237772
    public int hashCode() {
-
 
237773
      return 0;
-
 
237774
    }
-
 
237775
 
-
 
237776
    public int compareTo(getPendingStoreOrders_result other) {
-
 
237777
      if (!getClass().equals(other.getClass())) {
-
 
237778
        return getClass().getName().compareTo(other.getClass().getName());
-
 
237779
      }
-
 
237780
 
-
 
237781
      int lastComparison = 0;
-
 
237782
      getPendingStoreOrders_result typedOther = (getPendingStoreOrders_result)other;
-
 
237783
 
-
 
237784
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
237785
      if (lastComparison != 0) {
-
 
237786
        return lastComparison;
-
 
237787
      }
-
 
237788
      if (isSetSuccess()) {
-
 
237789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
237790
        if (lastComparison != 0) {
-
 
237791
          return lastComparison;
-
 
237792
        }
-
 
237793
      }
-
 
237794
      return 0;
-
 
237795
    }
-
 
237796
 
-
 
237797
    public _Fields fieldForId(int fieldId) {
-
 
237798
      return _Fields.findByThriftId(fieldId);
-
 
237799
    }
-
 
237800
 
-
 
237801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
237802
      org.apache.thrift.protocol.TField field;
-
 
237803
      iprot.readStructBegin();
-
 
237804
      while (true)
-
 
237805
      {
-
 
237806
        field = iprot.readFieldBegin();
-
 
237807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
237808
          break;
-
 
237809
        }
-
 
237810
        switch (field.id) {
-
 
237811
          case 0: // SUCCESS
-
 
237812
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
237813
              {
-
 
237814
                org.apache.thrift.protocol.TList _list828 = iprot.readListBegin();
-
 
237815
                this.success = new ArrayList<PendingStoreOrder>(_list828.size);
-
 
237816
                for (int _i829 = 0; _i829 < _list828.size; ++_i829)
-
 
237817
                {
-
 
237818
                  PendingStoreOrder _elem830; // required
-
 
237819
                  _elem830 = new PendingStoreOrder();
-
 
237820
                  _elem830.read(iprot);
-
 
237821
                  this.success.add(_elem830);
-
 
237822
                }
-
 
237823
                iprot.readListEnd();
-
 
237824
              }
-
 
237825
            } else { 
-
 
237826
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
237827
            }
-
 
237828
            break;
-
 
237829
          default:
-
 
237830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
237831
        }
-
 
237832
        iprot.readFieldEnd();
-
 
237833
      }
-
 
237834
      iprot.readStructEnd();
-
 
237835
      validate();
-
 
237836
    }
-
 
237837
 
-
 
237838
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
237839
      oprot.writeStructBegin(STRUCT_DESC);
-
 
237840
 
-
 
237841
      if (this.isSetSuccess()) {
-
 
237842
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
237843
        {
-
 
237844
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
237845
          for (PendingStoreOrder _iter831 : this.success)
-
 
237846
          {
-
 
237847
            _iter831.write(oprot);
-
 
237848
          }
-
 
237849
          oprot.writeListEnd();
-
 
237850
        }
-
 
237851
        oprot.writeFieldEnd();
-
 
237852
      }
-
 
237853
      oprot.writeFieldStop();
-
 
237854
      oprot.writeStructEnd();
-
 
237855
    }
-
 
237856
 
-
 
237857
    @Override
-
 
237858
    public String toString() {
-
 
237859
      StringBuilder sb = new StringBuilder("getPendingStoreOrders_result(");
-
 
237860
      boolean first = true;
-
 
237861
 
-
 
237862
      sb.append("success:");
-
 
237863
      if (this.success == null) {
-
 
237864
        sb.append("null");
236498
      } else {
237865
      } else {
236499
        sb.append(this.success);
237866
        sb.append(this.success);
236500
      }
237867
      }
236501
      first = false;
237868
      first = false;
236502
      sb.append(")");
237869
      sb.append(")");