Subversion Repositories SmartDukaan

Rev

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

Rev 12589 Rev 12614
Line 990... Line 990...
990
 
990
 
991
    public boolean saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount) throws org.apache.thrift.TException;
991
    public boolean saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount) throws org.apache.thrift.TException;
992
 
992
 
993
    public List<StoreOrderCollection> getCollectionsForStore(long storeId, long startDate, long endDate) throws org.apache.thrift.TException;
993
    public List<StoreOrderCollection> getCollectionsForStore(long storeId, long startDate, long endDate) throws org.apache.thrift.TException;
994
 
994
 
995
    public List<AmazonOrdersToAcknowledge> getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException;
995
    public List<AmazonOrdersToAcknowledge> getAmazonOrdersToAcknowledge(OrderSource source) throws org.apache.thrift.TException;
996
 
996
 
997
    public void changeAmazonOrderStatus(String amazonOrderCode, String status) throws org.apache.thrift.TException;
997
    public void changeAmazonOrderStatus(String amazonOrderCode, String status) throws org.apache.thrift.TException;
998
 
998
 
999
    public boolean updateTimestampForAmazonOrder(Map<Long,Map<String,String>> amazonOrderDelivery) throws org.apache.thrift.TException;
999
    public boolean updateTimestampForAmazonOrder(Map<Long,Map<String,String>> amazonOrderDelivery) throws org.apache.thrift.TException;
1000
 
1000
 
Line 1080... Line 1080...
1080
 
1080
 
1081
    public Map<Long,Map<String,Long>> getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
1081
    public Map<Long,Map<String,Long>> getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
1082
 
1082
 
1083
    public List<FlipkartOrder> getVerificationPendingOrdersFK() throws TransactionServiceException, org.apache.thrift.TException;
1083
    public List<FlipkartOrder> getVerificationPendingOrdersFK() throws TransactionServiceException, org.apache.thrift.TException;
1084
 
1084
 
-
 
1085
    public FlipkartAdvantageOrder getFAOrderByFkOrderId(String fkOrderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1086
 
-
 
1087
    public List<FlipkartAdvantageOrder> getAllFAOrdersList() throws TransactionServiceException, org.apache.thrift.TException;
-
 
1088
 
-
 
1089
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1090
 
1085
  }
1091
  }
1086
 
1092
 
1087
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1093
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1088
 
1094
 
1089
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1095
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1456... Line 1462...
1456
 
1462
 
1457
    public void saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveRefundAmountsForStoreOrder_call> resultHandler) throws org.apache.thrift.TException;
1463
    public void saveRefundAmountsForStoreOrder(long orderId, long storeId, double cashRefundAmount, double cardRefundAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveRefundAmountsForStoreOrder_call> resultHandler) throws org.apache.thrift.TException;
1458
 
1464
 
1459
    public void getCollectionsForStore(long storeId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCollectionsForStore_call> resultHandler) throws org.apache.thrift.TException;
1465
    public void getCollectionsForStore(long storeId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCollectionsForStore_call> resultHandler) throws org.apache.thrift.TException;
1460
 
1466
 
1461
    public void getAmazonOrdersToAcknowledge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersToAcknowledge_call> resultHandler) throws org.apache.thrift.TException;
1467
    public void getAmazonOrdersToAcknowledge(OrderSource source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersToAcknowledge_call> resultHandler) throws org.apache.thrift.TException;
1462
 
1468
 
1463
    public void changeAmazonOrderStatus(String amazonOrderCode, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1469
    public void changeAmazonOrderStatus(String amazonOrderCode, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1464
 
1470
 
1465
    public void updateTimestampForAmazonOrder(Map<Long,Map<String,String>> amazonOrderDelivery, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1471
    public void updateTimestampForAmazonOrder(Map<Long,Map<String,String>> amazonOrderDelivery, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1466
 
1472
 
Line 1546... Line 1552...
1546
 
1552
 
1547
    public void getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTotalSaleReturnsFbaSkusCurentTime_call> resultHandler) throws org.apache.thrift.TException;
1553
    public void getTotalSaleReturnsFbaSkusCurentTime(long insertionTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTotalSaleReturnsFbaSkusCurentTime_call> resultHandler) throws org.apache.thrift.TException;
1548
 
1554
 
1549
    public void getVerificationPendingOrdersFK(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVerificationPendingOrdersFK_call> resultHandler) throws org.apache.thrift.TException;
1555
    public void getVerificationPendingOrdersFK(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVerificationPendingOrdersFK_call> resultHandler) throws org.apache.thrift.TException;
1550
 
1556
 
-
 
1557
    public void getFAOrderByFkOrderId(String fkOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFAOrderByFkOrderId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1558
 
-
 
1559
    public void getAllFAOrdersList(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFAOrdersList_call> resultHandler) throws org.apache.thrift.TException;
-
 
1560
 
-
 
1561
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateFaOrdersBulk_call> resultHandler) throws org.apache.thrift.TException;
-
 
1562
 
1551
  }
1563
  }
1552
 
1564
 
1553
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1565
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1554
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1566
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1555
      public Factory() {}
1567
      public Factory() {}
Line 6215... Line 6227...
6215
        return result.success;
6227
        return result.success;
6216
      }
6228
      }
6217
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCollectionsForStore failed: unknown result");
6229
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCollectionsForStore failed: unknown result");
6218
    }
6230
    }
6219
 
6231
 
6220
    public List<AmazonOrdersToAcknowledge> getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException
6232
    public List<AmazonOrdersToAcknowledge> getAmazonOrdersToAcknowledge(OrderSource source) throws org.apache.thrift.TException
6221
    {
6233
    {
6222
      send_getAmazonOrdersToAcknowledge();
6234
      send_getAmazonOrdersToAcknowledge(source);
6223
      return recv_getAmazonOrdersToAcknowledge();
6235
      return recv_getAmazonOrdersToAcknowledge();
6224
    }
6236
    }
6225
 
6237
 
6226
    public void send_getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException
6238
    public void send_getAmazonOrdersToAcknowledge(OrderSource source) throws org.apache.thrift.TException
6227
    {
6239
    {
6228
      getAmazonOrdersToAcknowledge_args args = new getAmazonOrdersToAcknowledge_args();
6240
      getAmazonOrdersToAcknowledge_args args = new getAmazonOrdersToAcknowledge_args();
-
 
6241
      args.setSource(source);
6229
      sendBase("getAmazonOrdersToAcknowledge", args);
6242
      sendBase("getAmazonOrdersToAcknowledge", args);
6230
    }
6243
    }
6231
 
6244
 
6232
    public List<AmazonOrdersToAcknowledge> recv_getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException
6245
    public List<AmazonOrdersToAcknowledge> recv_getAmazonOrdersToAcknowledge() throws org.apache.thrift.TException
6233
    {
6246
    {
Line 7262... Line 7275...
7262
        throw result.ex;
7275
        throw result.ex;
7263
      }
7276
      }
7264
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerificationPendingOrdersFK failed: unknown result");
7277
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerificationPendingOrdersFK failed: unknown result");
7265
    }
7278
    }
7266
 
7279
 
-
 
7280
    public FlipkartAdvantageOrder getFAOrderByFkOrderId(String fkOrderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
7281
    {
-
 
7282
      send_getFAOrderByFkOrderId(fkOrderId);
-
 
7283
      return recv_getFAOrderByFkOrderId();
-
 
7284
    }
-
 
7285
 
-
 
7286
    public void send_getFAOrderByFkOrderId(String fkOrderId) throws org.apache.thrift.TException
-
 
7287
    {
-
 
7288
      getFAOrderByFkOrderId_args args = new getFAOrderByFkOrderId_args();
-
 
7289
      args.setFkOrderId(fkOrderId);
-
 
7290
      sendBase("getFAOrderByFkOrderId", args);
-
 
7291
    }
-
 
7292
 
-
 
7293
    public FlipkartAdvantageOrder recv_getFAOrderByFkOrderId() throws TransactionServiceException, org.apache.thrift.TException
-
 
7294
    {
-
 
7295
      getFAOrderByFkOrderId_result result = new getFAOrderByFkOrderId_result();
-
 
7296
      receiveBase(result, "getFAOrderByFkOrderId");
-
 
7297
      if (result.isSetSuccess()) {
-
 
7298
        return result.success;
-
 
7299
      }
-
 
7300
      if (result.ex != null) {
-
 
7301
        throw result.ex;
-
 
7302
      }
-
 
7303
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFAOrderByFkOrderId failed: unknown result");
-
 
7304
    }
-
 
7305
 
-
 
7306
    public List<FlipkartAdvantageOrder> getAllFAOrdersList() throws TransactionServiceException, org.apache.thrift.TException
-
 
7307
    {
-
 
7308
      send_getAllFAOrdersList();
-
 
7309
      return recv_getAllFAOrdersList();
-
 
7310
    }
-
 
7311
 
-
 
7312
    public void send_getAllFAOrdersList() throws org.apache.thrift.TException
-
 
7313
    {
-
 
7314
      getAllFAOrdersList_args args = new getAllFAOrdersList_args();
-
 
7315
      sendBase("getAllFAOrdersList", args);
-
 
7316
    }
-
 
7317
 
-
 
7318
    public List<FlipkartAdvantageOrder> recv_getAllFAOrdersList() throws TransactionServiceException, org.apache.thrift.TException
-
 
7319
    {
-
 
7320
      getAllFAOrdersList_result result = new getAllFAOrdersList_result();
-
 
7321
      receiveBase(result, "getAllFAOrdersList");
-
 
7322
      if (result.isSetSuccess()) {
-
 
7323
        return result.success;
-
 
7324
      }
-
 
7325
      if (result.ex != null) {
-
 
7326
        throw result.ex;
-
 
7327
      }
-
 
7328
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFAOrdersList failed: unknown result");
-
 
7329
    }
-
 
7330
 
-
 
7331
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList) throws TransactionServiceException, org.apache.thrift.TException
-
 
7332
    {
-
 
7333
      send_addUpdateFaOrdersBulk(faOrdersList);
-
 
7334
      recv_addUpdateFaOrdersBulk();
-
 
7335
    }
-
 
7336
 
-
 
7337
    public void send_addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList) throws org.apache.thrift.TException
-
 
7338
    {
-
 
7339
      addUpdateFaOrdersBulk_args args = new addUpdateFaOrdersBulk_args();
-
 
7340
      args.setFaOrdersList(faOrdersList);
-
 
7341
      sendBase("addUpdateFaOrdersBulk", args);
-
 
7342
    }
-
 
7343
 
-
 
7344
    public void recv_addUpdateFaOrdersBulk() throws TransactionServiceException, org.apache.thrift.TException
-
 
7345
    {
-
 
7346
      addUpdateFaOrdersBulk_result result = new addUpdateFaOrdersBulk_result();
-
 
7347
      receiveBase(result, "addUpdateFaOrdersBulk");
-
 
7348
      if (result.ex != null) {
-
 
7349
        throw result.ex;
-
 
7350
      }
-
 
7351
      return;
-
 
7352
    }
-
 
7353
 
7267
  }
7354
  }
7268
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7355
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7269
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7356
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7270
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7357
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7271
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7358
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 13790... Line 13877...
13790
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13877
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13791
        return (new Client(prot)).recv_getCollectionsForStore();
13878
        return (new Client(prot)).recv_getCollectionsForStore();
13792
      }
13879
      }
13793
    }
13880
    }
13794
 
13881
 
13795
    public void getAmazonOrdersToAcknowledge(org.apache.thrift.async.AsyncMethodCallback<getAmazonOrdersToAcknowledge_call> resultHandler) throws org.apache.thrift.TException {
13882
    public void getAmazonOrdersToAcknowledge(OrderSource source, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrdersToAcknowledge_call> resultHandler) throws org.apache.thrift.TException {
13796
      checkReady();
13883
      checkReady();
13797
      getAmazonOrdersToAcknowledge_call method_call = new getAmazonOrdersToAcknowledge_call(resultHandler, this, ___protocolFactory, ___transport);
13884
      getAmazonOrdersToAcknowledge_call method_call = new getAmazonOrdersToAcknowledge_call(source, resultHandler, this, ___protocolFactory, ___transport);
13798
      this.___currentMethod = method_call;
13885
      this.___currentMethod = method_call;
13799
      ___manager.call(method_call);
13886
      ___manager.call(method_call);
13800
    }
13887
    }
13801
 
13888
 
13802
    public static class getAmazonOrdersToAcknowledge_call extends org.apache.thrift.async.TAsyncMethodCall {
13889
    public static class getAmazonOrdersToAcknowledge_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13890
      private OrderSource source;
13803
      public getAmazonOrdersToAcknowledge_call(org.apache.thrift.async.AsyncMethodCallback<getAmazonOrdersToAcknowledge_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 {
13891
      public getAmazonOrdersToAcknowledge_call(OrderSource source, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrdersToAcknowledge_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 {
13804
        super(client, protocolFactory, transport, resultHandler, false);
13892
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13893
        this.source = source;
13805
      }
13894
      }
13806
 
13895
 
13807
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
13896
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
13808
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonOrdersToAcknowledge", org.apache.thrift.protocol.TMessageType.CALL, 0));
13897
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonOrdersToAcknowledge", org.apache.thrift.protocol.TMessageType.CALL, 0));
13809
        getAmazonOrdersToAcknowledge_args args = new getAmazonOrdersToAcknowledge_args();
13898
        getAmazonOrdersToAcknowledge_args args = new getAmazonOrdersToAcknowledge_args();
-
 
13899
        args.setSource(source);
13810
        args.write(prot);
13900
        args.write(prot);
13811
        prot.writeMessageEnd();
13901
        prot.writeMessageEnd();
13812
      }
13902
      }
13813
 
13903
 
13814
      public List<AmazonOrdersToAcknowledge> getResult() throws org.apache.thrift.TException {
13904
      public List<AmazonOrdersToAcknowledge> getResult() throws org.apache.thrift.TException {
Line 15302... Line 15392...
15302
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
15392
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
15303
        return (new Client(prot)).recv_getVerificationPendingOrdersFK();
15393
        return (new Client(prot)).recv_getVerificationPendingOrdersFK();
15304
      }
15394
      }
15305
    }
15395
    }
15306
 
15396
 
-
 
15397
    public void getFAOrderByFkOrderId(String fkOrderId, org.apache.thrift.async.AsyncMethodCallback<getFAOrderByFkOrderId_call> resultHandler) throws org.apache.thrift.TException {
-
 
15398
      checkReady();
-
 
15399
      getFAOrderByFkOrderId_call method_call = new getFAOrderByFkOrderId_call(fkOrderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
15400
      this.___currentMethod = method_call;
-
 
15401
      ___manager.call(method_call);
-
 
15402
    }
-
 
15403
 
-
 
15404
    public static class getFAOrderByFkOrderId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
15405
      private String fkOrderId;
-
 
15406
      public getFAOrderByFkOrderId_call(String fkOrderId, org.apache.thrift.async.AsyncMethodCallback<getFAOrderByFkOrderId_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 {
-
 
15407
        super(client, protocolFactory, transport, resultHandler, false);
-
 
15408
        this.fkOrderId = fkOrderId;
-
 
15409
      }
-
 
15410
 
-
 
15411
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
15412
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFAOrderByFkOrderId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
15413
        getFAOrderByFkOrderId_args args = new getFAOrderByFkOrderId_args();
-
 
15414
        args.setFkOrderId(fkOrderId);
-
 
15415
        args.write(prot);
-
 
15416
        prot.writeMessageEnd();
-
 
15417
      }
-
 
15418
 
-
 
15419
      public FlipkartAdvantageOrder getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
15420
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
15421
          throw new IllegalStateException("Method call not finished!");
-
 
15422
        }
-
 
15423
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
15424
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
15425
        return (new Client(prot)).recv_getFAOrderByFkOrderId();
-
 
15426
      }
-
 
15427
    }
-
 
15428
 
-
 
15429
    public void getAllFAOrdersList(org.apache.thrift.async.AsyncMethodCallback<getAllFAOrdersList_call> resultHandler) throws org.apache.thrift.TException {
-
 
15430
      checkReady();
-
 
15431
      getAllFAOrdersList_call method_call = new getAllFAOrdersList_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
15432
      this.___currentMethod = method_call;
-
 
15433
      ___manager.call(method_call);
-
 
15434
    }
-
 
15435
 
-
 
15436
    public static class getAllFAOrdersList_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
15437
      public getAllFAOrdersList_call(org.apache.thrift.async.AsyncMethodCallback<getAllFAOrdersList_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 {
-
 
15438
        super(client, protocolFactory, transport, resultHandler, false);
-
 
15439
      }
-
 
15440
 
-
 
15441
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
15442
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFAOrdersList", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
15443
        getAllFAOrdersList_args args = new getAllFAOrdersList_args();
-
 
15444
        args.write(prot);
-
 
15445
        prot.writeMessageEnd();
-
 
15446
      }
-
 
15447
 
-
 
15448
      public List<FlipkartAdvantageOrder> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
15449
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
15450
          throw new IllegalStateException("Method call not finished!");
-
 
15451
        }
-
 
15452
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
15453
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
15454
        return (new Client(prot)).recv_getAllFAOrdersList();
-
 
15455
      }
-
 
15456
    }
-
 
15457
 
-
 
15458
    public void addUpdateFaOrdersBulk(List<FlipkartAdvantageOrder> faOrdersList, org.apache.thrift.async.AsyncMethodCallback<addUpdateFaOrdersBulk_call> resultHandler) throws org.apache.thrift.TException {
-
 
15459
      checkReady();
-
 
15460
      addUpdateFaOrdersBulk_call method_call = new addUpdateFaOrdersBulk_call(faOrdersList, resultHandler, this, ___protocolFactory, ___transport);
-
 
15461
      this.___currentMethod = method_call;
-
 
15462
      ___manager.call(method_call);
-
 
15463
    }
-
 
15464
 
-
 
15465
    public static class addUpdateFaOrdersBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
15466
      private List<FlipkartAdvantageOrder> faOrdersList;
-
 
15467
      public addUpdateFaOrdersBulk_call(List<FlipkartAdvantageOrder> faOrdersList, org.apache.thrift.async.AsyncMethodCallback<addUpdateFaOrdersBulk_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 {
-
 
15468
        super(client, protocolFactory, transport, resultHandler, false);
-
 
15469
        this.faOrdersList = faOrdersList;
-
 
15470
      }
-
 
15471
 
-
 
15472
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
15473
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUpdateFaOrdersBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
15474
        addUpdateFaOrdersBulk_args args = new addUpdateFaOrdersBulk_args();
-
 
15475
        args.setFaOrdersList(faOrdersList);
-
 
15476
        args.write(prot);
-
 
15477
        prot.writeMessageEnd();
-
 
15478
      }
-
 
15479
 
-
 
15480
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
15481
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
15482
          throw new IllegalStateException("Method call not finished!");
-
 
15483
        }
-
 
15484
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
15485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
15486
        (new Client(prot)).recv_addUpdateFaOrdersBulk();
-
 
15487
      }
-
 
15488
    }
-
 
15489
 
15307
  }
15490
  }
15308
 
15491
 
15309
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
15492
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
15310
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
15493
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
15311
    public Processor(I iface) {
15494
    public Processor(I iface) {
Line 15546... Line 15729...
15546
      processMap.put("changeEasyshipMfnOrderTxnStatus", new changeEasyshipMfnOrderTxnStatus());
15729
      processMap.put("changeEasyshipMfnOrderTxnStatus", new changeEasyshipMfnOrderTxnStatus());
15547
      processMap.put("updateAmazonFbaOrdersReturns", new updateAmazonFbaOrdersReturns());
15730
      processMap.put("updateAmazonFbaOrdersReturns", new updateAmazonFbaOrdersReturns());
15548
      processMap.put("getAllAmazonFbaOrderReturnsByCurrentTime", new getAllAmazonFbaOrderReturnsByCurrentTime());
15731
      processMap.put("getAllAmazonFbaOrderReturnsByCurrentTime", new getAllAmazonFbaOrderReturnsByCurrentTime());
15549
      processMap.put("getTotalSaleReturnsFbaSkusCurentTime", new getTotalSaleReturnsFbaSkusCurentTime());
15732
      processMap.put("getTotalSaleReturnsFbaSkusCurentTime", new getTotalSaleReturnsFbaSkusCurentTime());
15550
      processMap.put("getVerificationPendingOrdersFK", new getVerificationPendingOrdersFK());
15733
      processMap.put("getVerificationPendingOrdersFK", new getVerificationPendingOrdersFK());
-
 
15734
      processMap.put("getFAOrderByFkOrderId", new getFAOrderByFkOrderId());
-
 
15735
      processMap.put("getAllFAOrdersList", new getAllFAOrdersList());
-
 
15736
      processMap.put("addUpdateFaOrdersBulk", new addUpdateFaOrdersBulk());
15551
      return processMap;
15737
      return processMap;
15552
    }
15738
    }
15553
 
15739
 
15554
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15740
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15555
      public createTransaction() {
15741
      public createTransaction() {
Line 18977... Line 19163...
18977
        return new getAmazonOrdersToAcknowledge_args();
19163
        return new getAmazonOrdersToAcknowledge_args();
18978
      }
19164
      }
18979
 
19165
 
18980
      protected getAmazonOrdersToAcknowledge_result getResult(I iface, getAmazonOrdersToAcknowledge_args args) throws org.apache.thrift.TException {
19166
      protected getAmazonOrdersToAcknowledge_result getResult(I iface, getAmazonOrdersToAcknowledge_args args) throws org.apache.thrift.TException {
18981
        getAmazonOrdersToAcknowledge_result result = new getAmazonOrdersToAcknowledge_result();
19167
        getAmazonOrdersToAcknowledge_result result = new getAmazonOrdersToAcknowledge_result();
18982
        result.success = iface.getAmazonOrdersToAcknowledge();
19168
        result.success = iface.getAmazonOrdersToAcknowledge(args.source);
18983
        return result;
19169
        return result;
18984
      }
19170
      }
18985
    }
19171
    }
18986
 
19172
 
18987
    private static class changeAmazonOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAmazonOrderStatus_args> {
19173
    private static class changeAmazonOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAmazonOrderStatus_args> {
Line 19731... Line 19917...
19731
        }
19917
        }
19732
        return result;
19918
        return result;
19733
      }
19919
      }
19734
    }
19920
    }
19735
 
19921
 
-
 
19922
    private static class getFAOrderByFkOrderId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFAOrderByFkOrderId_args> {
-
 
19923
      public getFAOrderByFkOrderId() {
-
 
19924
        super("getFAOrderByFkOrderId");
-
 
19925
      }
-
 
19926
 
-
 
19927
      protected getFAOrderByFkOrderId_args getEmptyArgsInstance() {
-
 
19928
        return new getFAOrderByFkOrderId_args();
-
 
19929
      }
-
 
19930
 
-
 
19931
      protected getFAOrderByFkOrderId_result getResult(I iface, getFAOrderByFkOrderId_args args) throws org.apache.thrift.TException {
-
 
19932
        getFAOrderByFkOrderId_result result = new getFAOrderByFkOrderId_result();
-
 
19933
        try {
-
 
19934
          result.success = iface.getFAOrderByFkOrderId(args.fkOrderId);
-
 
19935
        } catch (TransactionServiceException ex) {
-
 
19936
          result.ex = ex;
-
 
19937
        }
-
 
19938
        return result;
-
 
19939
      }
-
 
19940
    }
-
 
19941
 
-
 
19942
    private static class getAllFAOrdersList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFAOrdersList_args> {
-
 
19943
      public getAllFAOrdersList() {
-
 
19944
        super("getAllFAOrdersList");
-
 
19945
      }
-
 
19946
 
-
 
19947
      protected getAllFAOrdersList_args getEmptyArgsInstance() {
-
 
19948
        return new getAllFAOrdersList_args();
-
 
19949
      }
-
 
19950
 
-
 
19951
      protected getAllFAOrdersList_result getResult(I iface, getAllFAOrdersList_args args) throws org.apache.thrift.TException {
-
 
19952
        getAllFAOrdersList_result result = new getAllFAOrdersList_result();
-
 
19953
        try {
-
 
19954
          result.success = iface.getAllFAOrdersList();
-
 
19955
        } catch (TransactionServiceException ex) {
-
 
19956
          result.ex = ex;
-
 
19957
        }
-
 
19958
        return result;
-
 
19959
      }
-
 
19960
    }
-
 
19961
 
-
 
19962
    private static class addUpdateFaOrdersBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUpdateFaOrdersBulk_args> {
-
 
19963
      public addUpdateFaOrdersBulk() {
-
 
19964
        super("addUpdateFaOrdersBulk");
-
 
19965
      }
-
 
19966
 
-
 
19967
      protected addUpdateFaOrdersBulk_args getEmptyArgsInstance() {
-
 
19968
        return new addUpdateFaOrdersBulk_args();
-
 
19969
      }
-
 
19970
 
-
 
19971
      protected addUpdateFaOrdersBulk_result getResult(I iface, addUpdateFaOrdersBulk_args args) throws org.apache.thrift.TException {
-
 
19972
        addUpdateFaOrdersBulk_result result = new addUpdateFaOrdersBulk_result();
-
 
19973
        try {
-
 
19974
          iface.addUpdateFaOrdersBulk(args.faOrdersList);
-
 
19975
        } catch (TransactionServiceException ex) {
-
 
19976
          result.ex = ex;
-
 
19977
        }
-
 
19978
        return result;
-
 
19979
      }
-
 
19980
    }
-
 
19981
 
19736
  }
19982
  }
19737
 
19983
 
19738
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19984
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19740
 
19986
 
Line 153876... Line 154122...
153876
  }
154122
  }
153877
 
154123
 
153878
  public static class getAmazonOrdersToAcknowledge_args implements org.apache.thrift.TBase<getAmazonOrdersToAcknowledge_args, getAmazonOrdersToAcknowledge_args._Fields>, java.io.Serializable, Cloneable   {
154124
  public static class getAmazonOrdersToAcknowledge_args implements org.apache.thrift.TBase<getAmazonOrdersToAcknowledge_args, getAmazonOrdersToAcknowledge_args._Fields>, java.io.Serializable, Cloneable   {
153879
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOrdersToAcknowledge_args");
154125
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOrdersToAcknowledge_args");
153880
 
154126
 
-
 
154127
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I32, (short)1);
153881
 
154128
 
-
 
154129
    private OrderSource source; // required
153882
 
154130
 
153883
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
154131
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
153884
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
154132
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
154133
      /**
-
 
154134
       * 
-
 
154135
       * @see OrderSource
153885
;
154136
       */
-
 
154137
      SOURCE((short)1, "source");
153886
 
154138
 
153887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
154139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
153888
 
154140
 
153889
      static {
154141
      static {
153890
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
154142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 153895... Line 154147...
153895
      /**
154147
      /**
153896
       * Find the _Fields constant that matches fieldId, or null if its not found.
154148
       * Find the _Fields constant that matches fieldId, or null if its not found.
153897
       */
154149
       */
153898
      public static _Fields findByThriftId(int fieldId) {
154150
      public static _Fields findByThriftId(int fieldId) {
153899
        switch(fieldId) {
154151
        switch(fieldId) {
-
 
154152
          case 1: // SOURCE
-
 
154153
            return SOURCE;
153900
          default:
154154
          default:
153901
            return null;
154155
            return null;
153902
        }
154156
        }
153903
      }
154157
      }
153904
 
154158
 
Line 153933... Line 154187...
153933
 
154187
 
153934
      public String getFieldName() {
154188
      public String getFieldName() {
153935
        return _fieldName;
154189
        return _fieldName;
153936
      }
154190
      }
153937
    }
154191
    }
-
 
154192
 
-
 
154193
    // isset id assignments
-
 
154194
 
153938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
154195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
153939
    static {
154196
    static {
153940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
154197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
154198
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
154199
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderSource.class)));
153941
      metaDataMap = Collections.unmodifiableMap(tmpMap);
154200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
153942
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOrdersToAcknowledge_args.class, metaDataMap);
154201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOrdersToAcknowledge_args.class, metaDataMap);
153943
    }
154202
    }
153944
 
154203
 
153945
    public getAmazonOrdersToAcknowledge_args() {
154204
    public getAmazonOrdersToAcknowledge_args() {
153946
    }
154205
    }
153947
 
154206
 
-
 
154207
    public getAmazonOrdersToAcknowledge_args(
-
 
154208
      OrderSource source)
-
 
154209
    {
-
 
154210
      this();
-
 
154211
      this.source = source;
-
 
154212
    }
-
 
154213
 
153948
    /**
154214
    /**
153949
     * Performs a deep copy on <i>other</i>.
154215
     * Performs a deep copy on <i>other</i>.
153950
     */
154216
     */
153951
    public getAmazonOrdersToAcknowledge_args(getAmazonOrdersToAcknowledge_args other) {
154217
    public getAmazonOrdersToAcknowledge_args(getAmazonOrdersToAcknowledge_args other) {
-
 
154218
      if (other.isSetSource()) {
-
 
154219
        this.source = other.source;
-
 
154220
      }
153952
    }
154221
    }
153953
 
154222
 
153954
    public getAmazonOrdersToAcknowledge_args deepCopy() {
154223
    public getAmazonOrdersToAcknowledge_args deepCopy() {
153955
      return new getAmazonOrdersToAcknowledge_args(this);
154224
      return new getAmazonOrdersToAcknowledge_args(this);
153956
    }
154225
    }
153957
 
154226
 
153958
    @Override
154227
    @Override
153959
    public void clear() {
154228
    public void clear() {
-
 
154229
      this.source = null;
-
 
154230
    }
-
 
154231
 
-
 
154232
    /**
-
 
154233
     * 
-
 
154234
     * @see OrderSource
-
 
154235
     */
-
 
154236
    public OrderSource getSource() {
-
 
154237
      return this.source;
-
 
154238
    }
-
 
154239
 
-
 
154240
    /**
-
 
154241
     * 
-
 
154242
     * @see OrderSource
-
 
154243
     */
-
 
154244
    public void setSource(OrderSource source) {
-
 
154245
      this.source = source;
-
 
154246
    }
-
 
154247
 
-
 
154248
    public void unsetSource() {
-
 
154249
      this.source = null;
-
 
154250
    }
-
 
154251
 
-
 
154252
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
154253
    public boolean isSetSource() {
-
 
154254
      return this.source != null;
-
 
154255
    }
-
 
154256
 
-
 
154257
    public void setSourceIsSet(boolean value) {
-
 
154258
      if (!value) {
-
 
154259
        this.source = null;
-
 
154260
      }
153960
    }
154261
    }
153961
 
154262
 
153962
    public void setFieldValue(_Fields field, Object value) {
154263
    public void setFieldValue(_Fields field, Object value) {
153963
      switch (field) {
154264
      switch (field) {
-
 
154265
      case SOURCE:
-
 
154266
        if (value == null) {
-
 
154267
          unsetSource();
-
 
154268
        } else {
-
 
154269
          setSource((OrderSource)value);
-
 
154270
        }
-
 
154271
        break;
-
 
154272
 
153964
      }
154273
      }
153965
    }
154274
    }
153966
 
154275
 
153967
    public Object getFieldValue(_Fields field) {
154276
    public Object getFieldValue(_Fields field) {
153968
      switch (field) {
154277
      switch (field) {
-
 
154278
      case SOURCE:
-
 
154279
        return getSource();
-
 
154280
 
153969
      }
154281
      }
153970
      throw new IllegalStateException();
154282
      throw new IllegalStateException();
153971
    }
154283
    }
153972
 
154284
 
153973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
154285
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 153975... Line 154287...
153975
      if (field == null) {
154287
      if (field == null) {
153976
        throw new IllegalArgumentException();
154288
        throw new IllegalArgumentException();
153977
      }
154289
      }
153978
 
154290
 
153979
      switch (field) {
154291
      switch (field) {
-
 
154292
      case SOURCE:
-
 
154293
        return isSetSource();
153980
      }
154294
      }
153981
      throw new IllegalStateException();
154295
      throw new IllegalStateException();
153982
    }
154296
    }
153983
 
154297
 
153984
    @Override
154298
    @Override
Line 153992... Line 154306...
153992
 
154306
 
153993
    public boolean equals(getAmazonOrdersToAcknowledge_args that) {
154307
    public boolean equals(getAmazonOrdersToAcknowledge_args that) {
153994
      if (that == null)
154308
      if (that == null)
153995
        return false;
154309
        return false;
153996
 
154310
 
-
 
154311
      boolean this_present_source = true && this.isSetSource();
-
 
154312
      boolean that_present_source = true && that.isSetSource();
-
 
154313
      if (this_present_source || that_present_source) {
-
 
154314
        if (!(this_present_source && that_present_source))
-
 
154315
          return false;
-
 
154316
        if (!this.source.equals(that.source))
-
 
154317
          return false;
-
 
154318
      }
-
 
154319
 
153997
      return true;
154320
      return true;
153998
    }
154321
    }
153999
 
154322
 
154000
    @Override
154323
    @Override
154001
    public int hashCode() {
154324
    public int hashCode() {
Line 154008... Line 154331...
154008
      }
154331
      }
154009
 
154332
 
154010
      int lastComparison = 0;
154333
      int lastComparison = 0;
154011
      getAmazonOrdersToAcknowledge_args typedOther = (getAmazonOrdersToAcknowledge_args)other;
154334
      getAmazonOrdersToAcknowledge_args typedOther = (getAmazonOrdersToAcknowledge_args)other;
154012
 
154335
 
-
 
154336
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
154337
      if (lastComparison != 0) {
-
 
154338
        return lastComparison;
-
 
154339
      }
-
 
154340
      if (isSetSource()) {
-
 
154341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
154342
        if (lastComparison != 0) {
-
 
154343
          return lastComparison;
-
 
154344
        }
-
 
154345
      }
154013
      return 0;
154346
      return 0;
154014
    }
154347
    }
154015
 
154348
 
154016
    public _Fields fieldForId(int fieldId) {
154349
    public _Fields fieldForId(int fieldId) {
154017
      return _Fields.findByThriftId(fieldId);
154350
      return _Fields.findByThriftId(fieldId);
Line 154025... Line 154358...
154025
        field = iprot.readFieldBegin();
154358
        field = iprot.readFieldBegin();
154026
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
154359
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
154027
          break;
154360
          break;
154028
        }
154361
        }
154029
        switch (field.id) {
154362
        switch (field.id) {
-
 
154363
          case 1: // SOURCE
-
 
154364
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
154365
              this.source = OrderSource.findByValue(iprot.readI32());
-
 
154366
            } else { 
-
 
154367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
154368
            }
-
 
154369
            break;
154030
          default:
154370
          default:
154031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
154371
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
154032
        }
154372
        }
154033
        iprot.readFieldEnd();
154373
        iprot.readFieldEnd();
154034
      }
154374
      }
Line 154038... Line 154378...
154038
 
154378
 
154039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
154379
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
154040
      validate();
154380
      validate();
154041
 
154381
 
154042
      oprot.writeStructBegin(STRUCT_DESC);
154382
      oprot.writeStructBegin(STRUCT_DESC);
-
 
154383
      if (this.source != null) {
-
 
154384
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
154385
        oprot.writeI32(this.source.getValue());
-
 
154386
        oprot.writeFieldEnd();
-
 
154387
      }
154043
      oprot.writeFieldStop();
154388
      oprot.writeFieldStop();
154044
      oprot.writeStructEnd();
154389
      oprot.writeStructEnd();
154045
    }
154390
    }
154046
 
154391
 
154047
    @Override
154392
    @Override
154048
    public String toString() {
154393
    public String toString() {
154049
      StringBuilder sb = new StringBuilder("getAmazonOrdersToAcknowledge_args(");
154394
      StringBuilder sb = new StringBuilder("getAmazonOrdersToAcknowledge_args(");
154050
      boolean first = true;
154395
      boolean first = true;
154051
 
154396
 
-
 
154397
      sb.append("source:");
-
 
154398
      if (this.source == null) {
-
 
154399
        sb.append("null");
-
 
154400
      } else {
-
 
154401
        sb.append(this.source);
-
 
154402
      }
-
 
154403
      first = false;
154052
      sb.append(")");
154404
      sb.append(")");
154053
      return sb.toString();
154405
      return sb.toString();
154054
    }
154406
    }
154055
 
154407
 
154056
    public void validate() throws org.apache.thrift.TException {
154408
    public void validate() throws org.apache.thrift.TException {
Line 182908... Line 183260...
182908
      sb.append("ex:");
183260
      sb.append("ex:");
182909
      if (this.ex == null) {
183261
      if (this.ex == null) {
182910
        sb.append("null");
183262
        sb.append("null");
182911
      } else {
183263
      } else {
182912
        sb.append(this.ex);
183264
        sb.append(this.ex);
-
 
183265
      }
-
 
183266
      first = false;
-
 
183267
      sb.append(")");
-
 
183268
      return sb.toString();
-
 
183269
    }
-
 
183270
 
-
 
183271
    public void validate() throws org.apache.thrift.TException {
-
 
183272
      // check for required fields
-
 
183273
    }
-
 
183274
 
-
 
183275
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
183276
      try {
-
 
183277
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
183278
      } catch (org.apache.thrift.TException te) {
-
 
183279
        throw new java.io.IOException(te);
-
 
183280
      }
-
 
183281
    }
-
 
183282
 
-
 
183283
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
183284
      try {
-
 
183285
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
183286
      } catch (org.apache.thrift.TException te) {
-
 
183287
        throw new java.io.IOException(te);
-
 
183288
      }
-
 
183289
    }
-
 
183290
 
-
 
183291
  }
-
 
183292
 
-
 
183293
  public static class getFAOrderByFkOrderId_args implements org.apache.thrift.TBase<getFAOrderByFkOrderId_args, getFAOrderByFkOrderId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
183294
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFAOrderByFkOrderId_args");
-
 
183295
 
-
 
183296
    private static final org.apache.thrift.protocol.TField FK_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fkOrderId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
183297
 
-
 
183298
    private String fkOrderId; // required
-
 
183299
 
-
 
183300
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
183301
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
183302
      FK_ORDER_ID((short)1, "fkOrderId");
-
 
183303
 
-
 
183304
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
183305
 
-
 
183306
      static {
-
 
183307
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
183308
          byName.put(field.getFieldName(), field);
-
 
183309
        }
-
 
183310
      }
-
 
183311
 
-
 
183312
      /**
-
 
183313
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
183314
       */
-
 
183315
      public static _Fields findByThriftId(int fieldId) {
-
 
183316
        switch(fieldId) {
-
 
183317
          case 1: // FK_ORDER_ID
-
 
183318
            return FK_ORDER_ID;
-
 
183319
          default:
-
 
183320
            return null;
-
 
183321
        }
-
 
183322
      }
-
 
183323
 
-
 
183324
      /**
-
 
183325
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
183326
       * if it is not found.
-
 
183327
       */
-
 
183328
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
183329
        _Fields fields = findByThriftId(fieldId);
-
 
183330
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
183331
        return fields;
-
 
183332
      }
-
 
183333
 
-
 
183334
      /**
-
 
183335
       * Find the _Fields constant that matches name, or null if its not found.
-
 
183336
       */
-
 
183337
      public static _Fields findByName(String name) {
-
 
183338
        return byName.get(name);
-
 
183339
      }
-
 
183340
 
-
 
183341
      private final short _thriftId;
-
 
183342
      private final String _fieldName;
-
 
183343
 
-
 
183344
      _Fields(short thriftId, String fieldName) {
-
 
183345
        _thriftId = thriftId;
-
 
183346
        _fieldName = fieldName;
-
 
183347
      }
-
 
183348
 
-
 
183349
      public short getThriftFieldId() {
-
 
183350
        return _thriftId;
-
 
183351
      }
-
 
183352
 
-
 
183353
      public String getFieldName() {
-
 
183354
        return _fieldName;
-
 
183355
      }
-
 
183356
    }
-
 
183357
 
-
 
183358
    // isset id assignments
-
 
183359
 
-
 
183360
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
183361
    static {
-
 
183362
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
183363
      tmpMap.put(_Fields.FK_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("fkOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
183365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
183366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFAOrderByFkOrderId_args.class, metaDataMap);
-
 
183367
    }
-
 
183368
 
-
 
183369
    public getFAOrderByFkOrderId_args() {
-
 
183370
    }
-
 
183371
 
-
 
183372
    public getFAOrderByFkOrderId_args(
-
 
183373
      String fkOrderId)
-
 
183374
    {
-
 
183375
      this();
-
 
183376
      this.fkOrderId = fkOrderId;
-
 
183377
    }
-
 
183378
 
-
 
183379
    /**
-
 
183380
     * Performs a deep copy on <i>other</i>.
-
 
183381
     */
-
 
183382
    public getFAOrderByFkOrderId_args(getFAOrderByFkOrderId_args other) {
-
 
183383
      if (other.isSetFkOrderId()) {
-
 
183384
        this.fkOrderId = other.fkOrderId;
-
 
183385
      }
-
 
183386
    }
-
 
183387
 
-
 
183388
    public getFAOrderByFkOrderId_args deepCopy() {
-
 
183389
      return new getFAOrderByFkOrderId_args(this);
-
 
183390
    }
-
 
183391
 
-
 
183392
    @Override
-
 
183393
    public void clear() {
-
 
183394
      this.fkOrderId = null;
-
 
183395
    }
-
 
183396
 
-
 
183397
    public String getFkOrderId() {
-
 
183398
      return this.fkOrderId;
-
 
183399
    }
-
 
183400
 
-
 
183401
    public void setFkOrderId(String fkOrderId) {
-
 
183402
      this.fkOrderId = fkOrderId;
-
 
183403
    }
-
 
183404
 
-
 
183405
    public void unsetFkOrderId() {
-
 
183406
      this.fkOrderId = null;
-
 
183407
    }
-
 
183408
 
-
 
183409
    /** Returns true if field fkOrderId is set (has been assigned a value) and false otherwise */
-
 
183410
    public boolean isSetFkOrderId() {
-
 
183411
      return this.fkOrderId != null;
-
 
183412
    }
-
 
183413
 
-
 
183414
    public void setFkOrderIdIsSet(boolean value) {
-
 
183415
      if (!value) {
-
 
183416
        this.fkOrderId = null;
-
 
183417
      }
-
 
183418
    }
-
 
183419
 
-
 
183420
    public void setFieldValue(_Fields field, Object value) {
-
 
183421
      switch (field) {
-
 
183422
      case FK_ORDER_ID:
-
 
183423
        if (value == null) {
-
 
183424
          unsetFkOrderId();
-
 
183425
        } else {
-
 
183426
          setFkOrderId((String)value);
-
 
183427
        }
-
 
183428
        break;
-
 
183429
 
-
 
183430
      }
-
 
183431
    }
-
 
183432
 
-
 
183433
    public Object getFieldValue(_Fields field) {
-
 
183434
      switch (field) {
-
 
183435
      case FK_ORDER_ID:
-
 
183436
        return getFkOrderId();
-
 
183437
 
-
 
183438
      }
-
 
183439
      throw new IllegalStateException();
-
 
183440
    }
-
 
183441
 
-
 
183442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
183443
    public boolean isSet(_Fields field) {
-
 
183444
      if (field == null) {
-
 
183445
        throw new IllegalArgumentException();
-
 
183446
      }
-
 
183447
 
-
 
183448
      switch (field) {
-
 
183449
      case FK_ORDER_ID:
-
 
183450
        return isSetFkOrderId();
-
 
183451
      }
-
 
183452
      throw new IllegalStateException();
-
 
183453
    }
-
 
183454
 
-
 
183455
    @Override
-
 
183456
    public boolean equals(Object that) {
-
 
183457
      if (that == null)
-
 
183458
        return false;
-
 
183459
      if (that instanceof getFAOrderByFkOrderId_args)
-
 
183460
        return this.equals((getFAOrderByFkOrderId_args)that);
-
 
183461
      return false;
-
 
183462
    }
-
 
183463
 
-
 
183464
    public boolean equals(getFAOrderByFkOrderId_args that) {
-
 
183465
      if (that == null)
-
 
183466
        return false;
-
 
183467
 
-
 
183468
      boolean this_present_fkOrderId = true && this.isSetFkOrderId();
-
 
183469
      boolean that_present_fkOrderId = true && that.isSetFkOrderId();
-
 
183470
      if (this_present_fkOrderId || that_present_fkOrderId) {
-
 
183471
        if (!(this_present_fkOrderId && that_present_fkOrderId))
-
 
183472
          return false;
-
 
183473
        if (!this.fkOrderId.equals(that.fkOrderId))
-
 
183474
          return false;
-
 
183475
      }
-
 
183476
 
-
 
183477
      return true;
-
 
183478
    }
-
 
183479
 
-
 
183480
    @Override
-
 
183481
    public int hashCode() {
-
 
183482
      return 0;
-
 
183483
    }
-
 
183484
 
-
 
183485
    public int compareTo(getFAOrderByFkOrderId_args other) {
-
 
183486
      if (!getClass().equals(other.getClass())) {
-
 
183487
        return getClass().getName().compareTo(other.getClass().getName());
-
 
183488
      }
-
 
183489
 
-
 
183490
      int lastComparison = 0;
-
 
183491
      getFAOrderByFkOrderId_args typedOther = (getFAOrderByFkOrderId_args)other;
-
 
183492
 
-
 
183493
      lastComparison = Boolean.valueOf(isSetFkOrderId()).compareTo(typedOther.isSetFkOrderId());
-
 
183494
      if (lastComparison != 0) {
-
 
183495
        return lastComparison;
-
 
183496
      }
-
 
183497
      if (isSetFkOrderId()) {
-
 
183498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fkOrderId, typedOther.fkOrderId);
-
 
183499
        if (lastComparison != 0) {
-
 
183500
          return lastComparison;
-
 
183501
        }
-
 
183502
      }
-
 
183503
      return 0;
-
 
183504
    }
-
 
183505
 
-
 
183506
    public _Fields fieldForId(int fieldId) {
-
 
183507
      return _Fields.findByThriftId(fieldId);
-
 
183508
    }
-
 
183509
 
-
 
183510
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
183511
      org.apache.thrift.protocol.TField field;
-
 
183512
      iprot.readStructBegin();
-
 
183513
      while (true)
-
 
183514
      {
-
 
183515
        field = iprot.readFieldBegin();
-
 
183516
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
183517
          break;
-
 
183518
        }
-
 
183519
        switch (field.id) {
-
 
183520
          case 1: // FK_ORDER_ID
-
 
183521
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
183522
              this.fkOrderId = iprot.readString();
-
 
183523
            } else { 
-
 
183524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
183525
            }
-
 
183526
            break;
-
 
183527
          default:
-
 
183528
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
183529
        }
-
 
183530
        iprot.readFieldEnd();
-
 
183531
      }
-
 
183532
      iprot.readStructEnd();
-
 
183533
      validate();
-
 
183534
    }
-
 
183535
 
-
 
183536
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
183537
      validate();
-
 
183538
 
-
 
183539
      oprot.writeStructBegin(STRUCT_DESC);
-
 
183540
      if (this.fkOrderId != null) {
-
 
183541
        oprot.writeFieldBegin(FK_ORDER_ID_FIELD_DESC);
-
 
183542
        oprot.writeString(this.fkOrderId);
-
 
183543
        oprot.writeFieldEnd();
-
 
183544
      }
-
 
183545
      oprot.writeFieldStop();
-
 
183546
      oprot.writeStructEnd();
-
 
183547
    }
-
 
183548
 
-
 
183549
    @Override
-
 
183550
    public String toString() {
-
 
183551
      StringBuilder sb = new StringBuilder("getFAOrderByFkOrderId_args(");
-
 
183552
      boolean first = true;
-
 
183553
 
-
 
183554
      sb.append("fkOrderId:");
-
 
183555
      if (this.fkOrderId == null) {
-
 
183556
        sb.append("null");
-
 
183557
      } else {
-
 
183558
        sb.append(this.fkOrderId);
-
 
183559
      }
-
 
183560
      first = false;
-
 
183561
      sb.append(")");
-
 
183562
      return sb.toString();
-
 
183563
    }
-
 
183564
 
-
 
183565
    public void validate() throws org.apache.thrift.TException {
-
 
183566
      // check for required fields
-
 
183567
    }
-
 
183568
 
-
 
183569
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
183570
      try {
-
 
183571
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
183572
      } catch (org.apache.thrift.TException te) {
-
 
183573
        throw new java.io.IOException(te);
-
 
183574
      }
-
 
183575
    }
-
 
183576
 
-
 
183577
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
183578
      try {
-
 
183579
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
183580
      } catch (org.apache.thrift.TException te) {
-
 
183581
        throw new java.io.IOException(te);
-
 
183582
      }
-
 
183583
    }
-
 
183584
 
-
 
183585
  }
-
 
183586
 
-
 
183587
  public static class getFAOrderByFkOrderId_result implements org.apache.thrift.TBase<getFAOrderByFkOrderId_result, getFAOrderByFkOrderId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
183588
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFAOrderByFkOrderId_result");
-
 
183589
 
-
 
183590
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
183591
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
183592
 
-
 
183593
    private FlipkartAdvantageOrder success; // required
-
 
183594
    private TransactionServiceException ex; // required
-
 
183595
 
-
 
183596
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
183597
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
183598
      SUCCESS((short)0, "success"),
-
 
183599
      EX((short)1, "ex");
-
 
183600
 
-
 
183601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
183602
 
-
 
183603
      static {
-
 
183604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
183605
          byName.put(field.getFieldName(), field);
-
 
183606
        }
-
 
183607
      }
-
 
183608
 
-
 
183609
      /**
-
 
183610
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
183611
       */
-
 
183612
      public static _Fields findByThriftId(int fieldId) {
-
 
183613
        switch(fieldId) {
-
 
183614
          case 0: // SUCCESS
-
 
183615
            return SUCCESS;
-
 
183616
          case 1: // EX
-
 
183617
            return EX;
-
 
183618
          default:
-
 
183619
            return null;
-
 
183620
        }
-
 
183621
      }
-
 
183622
 
-
 
183623
      /**
-
 
183624
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
183625
       * if it is not found.
-
 
183626
       */
-
 
183627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
183628
        _Fields fields = findByThriftId(fieldId);
-
 
183629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
183630
        return fields;
-
 
183631
      }
-
 
183632
 
-
 
183633
      /**
-
 
183634
       * Find the _Fields constant that matches name, or null if its not found.
-
 
183635
       */
-
 
183636
      public static _Fields findByName(String name) {
-
 
183637
        return byName.get(name);
-
 
183638
      }
-
 
183639
 
-
 
183640
      private final short _thriftId;
-
 
183641
      private final String _fieldName;
-
 
183642
 
-
 
183643
      _Fields(short thriftId, String fieldName) {
-
 
183644
        _thriftId = thriftId;
-
 
183645
        _fieldName = fieldName;
-
 
183646
      }
-
 
183647
 
-
 
183648
      public short getThriftFieldId() {
-
 
183649
        return _thriftId;
-
 
183650
      }
-
 
183651
 
-
 
183652
      public String getFieldName() {
-
 
183653
        return _fieldName;
-
 
183654
      }
-
 
183655
    }
-
 
183656
 
-
 
183657
    // isset id assignments
-
 
183658
 
-
 
183659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
183660
    static {
-
 
183661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
183662
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183663
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartAdvantageOrder.class)));
-
 
183664
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
183666
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
183667
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFAOrderByFkOrderId_result.class, metaDataMap);
-
 
183668
    }
-
 
183669
 
-
 
183670
    public getFAOrderByFkOrderId_result() {
-
 
183671
    }
-
 
183672
 
-
 
183673
    public getFAOrderByFkOrderId_result(
-
 
183674
      FlipkartAdvantageOrder success,
-
 
183675
      TransactionServiceException ex)
-
 
183676
    {
-
 
183677
      this();
-
 
183678
      this.success = success;
-
 
183679
      this.ex = ex;
-
 
183680
    }
-
 
183681
 
-
 
183682
    /**
-
 
183683
     * Performs a deep copy on <i>other</i>.
-
 
183684
     */
-
 
183685
    public getFAOrderByFkOrderId_result(getFAOrderByFkOrderId_result other) {
-
 
183686
      if (other.isSetSuccess()) {
-
 
183687
        this.success = new FlipkartAdvantageOrder(other.success);
-
 
183688
      }
-
 
183689
      if (other.isSetEx()) {
-
 
183690
        this.ex = new TransactionServiceException(other.ex);
-
 
183691
      }
-
 
183692
    }
-
 
183693
 
-
 
183694
    public getFAOrderByFkOrderId_result deepCopy() {
-
 
183695
      return new getFAOrderByFkOrderId_result(this);
-
 
183696
    }
-
 
183697
 
-
 
183698
    @Override
-
 
183699
    public void clear() {
-
 
183700
      this.success = null;
-
 
183701
      this.ex = null;
-
 
183702
    }
-
 
183703
 
-
 
183704
    public FlipkartAdvantageOrder getSuccess() {
-
 
183705
      return this.success;
-
 
183706
    }
-
 
183707
 
-
 
183708
    public void setSuccess(FlipkartAdvantageOrder success) {
-
 
183709
      this.success = success;
-
 
183710
    }
-
 
183711
 
-
 
183712
    public void unsetSuccess() {
-
 
183713
      this.success = null;
-
 
183714
    }
-
 
183715
 
-
 
183716
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
183717
    public boolean isSetSuccess() {
-
 
183718
      return this.success != null;
-
 
183719
    }
-
 
183720
 
-
 
183721
    public void setSuccessIsSet(boolean value) {
-
 
183722
      if (!value) {
-
 
183723
        this.success = null;
-
 
183724
      }
-
 
183725
    }
-
 
183726
 
-
 
183727
    public TransactionServiceException getEx() {
-
 
183728
      return this.ex;
-
 
183729
    }
-
 
183730
 
-
 
183731
    public void setEx(TransactionServiceException ex) {
-
 
183732
      this.ex = ex;
-
 
183733
    }
-
 
183734
 
-
 
183735
    public void unsetEx() {
-
 
183736
      this.ex = null;
-
 
183737
    }
-
 
183738
 
-
 
183739
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
183740
    public boolean isSetEx() {
-
 
183741
      return this.ex != null;
-
 
183742
    }
-
 
183743
 
-
 
183744
    public void setExIsSet(boolean value) {
-
 
183745
      if (!value) {
-
 
183746
        this.ex = null;
-
 
183747
      }
-
 
183748
    }
-
 
183749
 
-
 
183750
    public void setFieldValue(_Fields field, Object value) {
-
 
183751
      switch (field) {
-
 
183752
      case SUCCESS:
-
 
183753
        if (value == null) {
-
 
183754
          unsetSuccess();
-
 
183755
        } else {
-
 
183756
          setSuccess((FlipkartAdvantageOrder)value);
-
 
183757
        }
-
 
183758
        break;
-
 
183759
 
-
 
183760
      case EX:
-
 
183761
        if (value == null) {
-
 
183762
          unsetEx();
-
 
183763
        } else {
-
 
183764
          setEx((TransactionServiceException)value);
-
 
183765
        }
-
 
183766
        break;
-
 
183767
 
-
 
183768
      }
-
 
183769
    }
-
 
183770
 
-
 
183771
    public Object getFieldValue(_Fields field) {
-
 
183772
      switch (field) {
-
 
183773
      case SUCCESS:
-
 
183774
        return getSuccess();
-
 
183775
 
-
 
183776
      case EX:
-
 
183777
        return getEx();
-
 
183778
 
-
 
183779
      }
-
 
183780
      throw new IllegalStateException();
-
 
183781
    }
-
 
183782
 
-
 
183783
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
183784
    public boolean isSet(_Fields field) {
-
 
183785
      if (field == null) {
-
 
183786
        throw new IllegalArgumentException();
-
 
183787
      }
-
 
183788
 
-
 
183789
      switch (field) {
-
 
183790
      case SUCCESS:
-
 
183791
        return isSetSuccess();
-
 
183792
      case EX:
-
 
183793
        return isSetEx();
-
 
183794
      }
-
 
183795
      throw new IllegalStateException();
-
 
183796
    }
-
 
183797
 
-
 
183798
    @Override
-
 
183799
    public boolean equals(Object that) {
-
 
183800
      if (that == null)
-
 
183801
        return false;
-
 
183802
      if (that instanceof getFAOrderByFkOrderId_result)
-
 
183803
        return this.equals((getFAOrderByFkOrderId_result)that);
-
 
183804
      return false;
-
 
183805
    }
-
 
183806
 
-
 
183807
    public boolean equals(getFAOrderByFkOrderId_result that) {
-
 
183808
      if (that == null)
-
 
183809
        return false;
-
 
183810
 
-
 
183811
      boolean this_present_success = true && this.isSetSuccess();
-
 
183812
      boolean that_present_success = true && that.isSetSuccess();
-
 
183813
      if (this_present_success || that_present_success) {
-
 
183814
        if (!(this_present_success && that_present_success))
-
 
183815
          return false;
-
 
183816
        if (!this.success.equals(that.success))
-
 
183817
          return false;
-
 
183818
      }
-
 
183819
 
-
 
183820
      boolean this_present_ex = true && this.isSetEx();
-
 
183821
      boolean that_present_ex = true && that.isSetEx();
-
 
183822
      if (this_present_ex || that_present_ex) {
-
 
183823
        if (!(this_present_ex && that_present_ex))
-
 
183824
          return false;
-
 
183825
        if (!this.ex.equals(that.ex))
-
 
183826
          return false;
-
 
183827
      }
-
 
183828
 
-
 
183829
      return true;
-
 
183830
    }
-
 
183831
 
-
 
183832
    @Override
-
 
183833
    public int hashCode() {
-
 
183834
      return 0;
-
 
183835
    }
-
 
183836
 
-
 
183837
    public int compareTo(getFAOrderByFkOrderId_result other) {
-
 
183838
      if (!getClass().equals(other.getClass())) {
-
 
183839
        return getClass().getName().compareTo(other.getClass().getName());
-
 
183840
      }
-
 
183841
 
-
 
183842
      int lastComparison = 0;
-
 
183843
      getFAOrderByFkOrderId_result typedOther = (getFAOrderByFkOrderId_result)other;
-
 
183844
 
-
 
183845
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
183846
      if (lastComparison != 0) {
-
 
183847
        return lastComparison;
-
 
183848
      }
-
 
183849
      if (isSetSuccess()) {
-
 
183850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
183851
        if (lastComparison != 0) {
-
 
183852
          return lastComparison;
-
 
183853
        }
-
 
183854
      }
-
 
183855
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
183856
      if (lastComparison != 0) {
-
 
183857
        return lastComparison;
-
 
183858
      }
-
 
183859
      if (isSetEx()) {
-
 
183860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
183861
        if (lastComparison != 0) {
-
 
183862
          return lastComparison;
-
 
183863
        }
-
 
183864
      }
-
 
183865
      return 0;
-
 
183866
    }
-
 
183867
 
-
 
183868
    public _Fields fieldForId(int fieldId) {
-
 
183869
      return _Fields.findByThriftId(fieldId);
-
 
183870
    }
-
 
183871
 
-
 
183872
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
183873
      org.apache.thrift.protocol.TField field;
-
 
183874
      iprot.readStructBegin();
-
 
183875
      while (true)
-
 
183876
      {
-
 
183877
        field = iprot.readFieldBegin();
-
 
183878
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
183879
          break;
-
 
183880
        }
-
 
183881
        switch (field.id) {
-
 
183882
          case 0: // SUCCESS
-
 
183883
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
183884
              this.success = new FlipkartAdvantageOrder();
-
 
183885
              this.success.read(iprot);
-
 
183886
            } else { 
-
 
183887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
183888
            }
-
 
183889
            break;
-
 
183890
          case 1: // EX
-
 
183891
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
183892
              this.ex = new TransactionServiceException();
-
 
183893
              this.ex.read(iprot);
-
 
183894
            } else { 
-
 
183895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
183896
            }
-
 
183897
            break;
-
 
183898
          default:
-
 
183899
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
183900
        }
-
 
183901
        iprot.readFieldEnd();
-
 
183902
      }
-
 
183903
      iprot.readStructEnd();
-
 
183904
      validate();
-
 
183905
    }
-
 
183906
 
-
 
183907
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
183908
      oprot.writeStructBegin(STRUCT_DESC);
-
 
183909
 
-
 
183910
      if (this.isSetSuccess()) {
-
 
183911
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
183912
        this.success.write(oprot);
-
 
183913
        oprot.writeFieldEnd();
-
 
183914
      } else if (this.isSetEx()) {
-
 
183915
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
183916
        this.ex.write(oprot);
-
 
183917
        oprot.writeFieldEnd();
-
 
183918
      }
-
 
183919
      oprot.writeFieldStop();
-
 
183920
      oprot.writeStructEnd();
-
 
183921
    }
-
 
183922
 
-
 
183923
    @Override
-
 
183924
    public String toString() {
-
 
183925
      StringBuilder sb = new StringBuilder("getFAOrderByFkOrderId_result(");
-
 
183926
      boolean first = true;
-
 
183927
 
-
 
183928
      sb.append("success:");
-
 
183929
      if (this.success == null) {
-
 
183930
        sb.append("null");
-
 
183931
      } else {
-
 
183932
        sb.append(this.success);
-
 
183933
      }
-
 
183934
      first = false;
-
 
183935
      if (!first) sb.append(", ");
-
 
183936
      sb.append("ex:");
-
 
183937
      if (this.ex == null) {
-
 
183938
        sb.append("null");
-
 
183939
      } else {
-
 
183940
        sb.append(this.ex);
-
 
183941
      }
-
 
183942
      first = false;
-
 
183943
      sb.append(")");
-
 
183944
      return sb.toString();
-
 
183945
    }
-
 
183946
 
-
 
183947
    public void validate() throws org.apache.thrift.TException {
-
 
183948
      // check for required fields
-
 
183949
    }
-
 
183950
 
-
 
183951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
183952
      try {
-
 
183953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
183954
      } catch (org.apache.thrift.TException te) {
-
 
183955
        throw new java.io.IOException(te);
-
 
183956
      }
-
 
183957
    }
-
 
183958
 
-
 
183959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
183960
      try {
-
 
183961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
183962
      } catch (org.apache.thrift.TException te) {
-
 
183963
        throw new java.io.IOException(te);
-
 
183964
      }
-
 
183965
    }
-
 
183966
 
-
 
183967
  }
-
 
183968
 
-
 
183969
  public static class getAllFAOrdersList_args implements org.apache.thrift.TBase<getAllFAOrdersList_args, getAllFAOrdersList_args._Fields>, java.io.Serializable, Cloneable   {
-
 
183970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFAOrdersList_args");
-
 
183971
 
-
 
183972
 
-
 
183973
 
-
 
183974
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
183975
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
183976
;
-
 
183977
 
-
 
183978
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
183979
 
-
 
183980
      static {
-
 
183981
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
183982
          byName.put(field.getFieldName(), field);
-
 
183983
        }
-
 
183984
      }
-
 
183985
 
-
 
183986
      /**
-
 
183987
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
183988
       */
-
 
183989
      public static _Fields findByThriftId(int fieldId) {
-
 
183990
        switch(fieldId) {
-
 
183991
          default:
-
 
183992
            return null;
-
 
183993
        }
-
 
183994
      }
-
 
183995
 
-
 
183996
      /**
-
 
183997
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
183998
       * if it is not found.
-
 
183999
       */
-
 
184000
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
184001
        _Fields fields = findByThriftId(fieldId);
-
 
184002
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
184003
        return fields;
-
 
184004
      }
-
 
184005
 
-
 
184006
      /**
-
 
184007
       * Find the _Fields constant that matches name, or null if its not found.
-
 
184008
       */
-
 
184009
      public static _Fields findByName(String name) {
-
 
184010
        return byName.get(name);
-
 
184011
      }
-
 
184012
 
-
 
184013
      private final short _thriftId;
-
 
184014
      private final String _fieldName;
-
 
184015
 
-
 
184016
      _Fields(short thriftId, String fieldName) {
-
 
184017
        _thriftId = thriftId;
-
 
184018
        _fieldName = fieldName;
-
 
184019
      }
-
 
184020
 
-
 
184021
      public short getThriftFieldId() {
-
 
184022
        return _thriftId;
-
 
184023
      }
-
 
184024
 
-
 
184025
      public String getFieldName() {
-
 
184026
        return _fieldName;
-
 
184027
      }
-
 
184028
    }
-
 
184029
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
184030
    static {
-
 
184031
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
184032
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
184033
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFAOrdersList_args.class, metaDataMap);
-
 
184034
    }
-
 
184035
 
-
 
184036
    public getAllFAOrdersList_args() {
-
 
184037
    }
-
 
184038
 
-
 
184039
    /**
-
 
184040
     * Performs a deep copy on <i>other</i>.
-
 
184041
     */
-
 
184042
    public getAllFAOrdersList_args(getAllFAOrdersList_args other) {
-
 
184043
    }
-
 
184044
 
-
 
184045
    public getAllFAOrdersList_args deepCopy() {
-
 
184046
      return new getAllFAOrdersList_args(this);
-
 
184047
    }
-
 
184048
 
-
 
184049
    @Override
-
 
184050
    public void clear() {
-
 
184051
    }
-
 
184052
 
-
 
184053
    public void setFieldValue(_Fields field, Object value) {
-
 
184054
      switch (field) {
-
 
184055
      }
-
 
184056
    }
-
 
184057
 
-
 
184058
    public Object getFieldValue(_Fields field) {
-
 
184059
      switch (field) {
-
 
184060
      }
-
 
184061
      throw new IllegalStateException();
-
 
184062
    }
-
 
184063
 
-
 
184064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
184065
    public boolean isSet(_Fields field) {
-
 
184066
      if (field == null) {
-
 
184067
        throw new IllegalArgumentException();
-
 
184068
      }
-
 
184069
 
-
 
184070
      switch (field) {
-
 
184071
      }
-
 
184072
      throw new IllegalStateException();
-
 
184073
    }
-
 
184074
 
-
 
184075
    @Override
-
 
184076
    public boolean equals(Object that) {
-
 
184077
      if (that == null)
-
 
184078
        return false;
-
 
184079
      if (that instanceof getAllFAOrdersList_args)
-
 
184080
        return this.equals((getAllFAOrdersList_args)that);
-
 
184081
      return false;
-
 
184082
    }
-
 
184083
 
-
 
184084
    public boolean equals(getAllFAOrdersList_args that) {
-
 
184085
      if (that == null)
-
 
184086
        return false;
-
 
184087
 
-
 
184088
      return true;
-
 
184089
    }
-
 
184090
 
-
 
184091
    @Override
-
 
184092
    public int hashCode() {
-
 
184093
      return 0;
-
 
184094
    }
-
 
184095
 
-
 
184096
    public int compareTo(getAllFAOrdersList_args other) {
-
 
184097
      if (!getClass().equals(other.getClass())) {
-
 
184098
        return getClass().getName().compareTo(other.getClass().getName());
-
 
184099
      }
-
 
184100
 
-
 
184101
      int lastComparison = 0;
-
 
184102
      getAllFAOrdersList_args typedOther = (getAllFAOrdersList_args)other;
-
 
184103
 
-
 
184104
      return 0;
-
 
184105
    }
-
 
184106
 
-
 
184107
    public _Fields fieldForId(int fieldId) {
-
 
184108
      return _Fields.findByThriftId(fieldId);
-
 
184109
    }
-
 
184110
 
-
 
184111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
184112
      org.apache.thrift.protocol.TField field;
-
 
184113
      iprot.readStructBegin();
-
 
184114
      while (true)
-
 
184115
      {
-
 
184116
        field = iprot.readFieldBegin();
-
 
184117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
184118
          break;
-
 
184119
        }
-
 
184120
        switch (field.id) {
-
 
184121
          default:
-
 
184122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
184123
        }
-
 
184124
        iprot.readFieldEnd();
-
 
184125
      }
-
 
184126
      iprot.readStructEnd();
-
 
184127
      validate();
-
 
184128
    }
-
 
184129
 
-
 
184130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
184131
      validate();
-
 
184132
 
-
 
184133
      oprot.writeStructBegin(STRUCT_DESC);
-
 
184134
      oprot.writeFieldStop();
-
 
184135
      oprot.writeStructEnd();
-
 
184136
    }
-
 
184137
 
-
 
184138
    @Override
-
 
184139
    public String toString() {
-
 
184140
      StringBuilder sb = new StringBuilder("getAllFAOrdersList_args(");
-
 
184141
      boolean first = true;
-
 
184142
 
-
 
184143
      sb.append(")");
-
 
184144
      return sb.toString();
-
 
184145
    }
-
 
184146
 
-
 
184147
    public void validate() throws org.apache.thrift.TException {
-
 
184148
      // check for required fields
-
 
184149
    }
-
 
184150
 
-
 
184151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
184152
      try {
-
 
184153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
184154
      } catch (org.apache.thrift.TException te) {
-
 
184155
        throw new java.io.IOException(te);
-
 
184156
      }
-
 
184157
    }
-
 
184158
 
-
 
184159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
184160
      try {
-
 
184161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
184162
      } catch (org.apache.thrift.TException te) {
-
 
184163
        throw new java.io.IOException(te);
-
 
184164
      }
-
 
184165
    }
-
 
184166
 
-
 
184167
  }
-
 
184168
 
-
 
184169
  public static class getAllFAOrdersList_result implements org.apache.thrift.TBase<getAllFAOrdersList_result, getAllFAOrdersList_result._Fields>, java.io.Serializable, Cloneable   {
-
 
184170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFAOrdersList_result");
-
 
184171
 
-
 
184172
    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);
-
 
184173
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
184174
 
-
 
184175
    private List<FlipkartAdvantageOrder> success; // required
-
 
184176
    private TransactionServiceException ex; // required
-
 
184177
 
-
 
184178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
184179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
184180
      SUCCESS((short)0, "success"),
-
 
184181
      EX((short)1, "ex");
-
 
184182
 
-
 
184183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
184184
 
-
 
184185
      static {
-
 
184186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
184187
          byName.put(field.getFieldName(), field);
-
 
184188
        }
-
 
184189
      }
-
 
184190
 
-
 
184191
      /**
-
 
184192
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
184193
       */
-
 
184194
      public static _Fields findByThriftId(int fieldId) {
-
 
184195
        switch(fieldId) {
-
 
184196
          case 0: // SUCCESS
-
 
184197
            return SUCCESS;
-
 
184198
          case 1: // EX
-
 
184199
            return EX;
-
 
184200
          default:
-
 
184201
            return null;
-
 
184202
        }
-
 
184203
      }
-
 
184204
 
-
 
184205
      /**
-
 
184206
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
184207
       * if it is not found.
-
 
184208
       */
-
 
184209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
184210
        _Fields fields = findByThriftId(fieldId);
-
 
184211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
184212
        return fields;
-
 
184213
      }
-
 
184214
 
-
 
184215
      /**
-
 
184216
       * Find the _Fields constant that matches name, or null if its not found.
-
 
184217
       */
-
 
184218
      public static _Fields findByName(String name) {
-
 
184219
        return byName.get(name);
-
 
184220
      }
-
 
184221
 
-
 
184222
      private final short _thriftId;
-
 
184223
      private final String _fieldName;
-
 
184224
 
-
 
184225
      _Fields(short thriftId, String fieldName) {
-
 
184226
        _thriftId = thriftId;
-
 
184227
        _fieldName = fieldName;
-
 
184228
      }
-
 
184229
 
-
 
184230
      public short getThriftFieldId() {
-
 
184231
        return _thriftId;
-
 
184232
      }
-
 
184233
 
-
 
184234
      public String getFieldName() {
-
 
184235
        return _fieldName;
-
 
184236
      }
-
 
184237
    }
-
 
184238
 
-
 
184239
    // isset id assignments
-
 
184240
 
-
 
184241
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
184242
    static {
-
 
184243
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
184244
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
184245
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
184246
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartAdvantageOrder.class))));
-
 
184247
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
184248
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
184249
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
184250
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFAOrdersList_result.class, metaDataMap);
-
 
184251
    }
-
 
184252
 
-
 
184253
    public getAllFAOrdersList_result() {
-
 
184254
    }
-
 
184255
 
-
 
184256
    public getAllFAOrdersList_result(
-
 
184257
      List<FlipkartAdvantageOrder> success,
-
 
184258
      TransactionServiceException ex)
-
 
184259
    {
-
 
184260
      this();
-
 
184261
      this.success = success;
-
 
184262
      this.ex = ex;
-
 
184263
    }
-
 
184264
 
-
 
184265
    /**
-
 
184266
     * Performs a deep copy on <i>other</i>.
-
 
184267
     */
-
 
184268
    public getAllFAOrdersList_result(getAllFAOrdersList_result other) {
-
 
184269
      if (other.isSetSuccess()) {
-
 
184270
        List<FlipkartAdvantageOrder> __this__success = new ArrayList<FlipkartAdvantageOrder>();
-
 
184271
        for (FlipkartAdvantageOrder other_element : other.success) {
-
 
184272
          __this__success.add(new FlipkartAdvantageOrder(other_element));
-
 
184273
        }
-
 
184274
        this.success = __this__success;
-
 
184275
      }
-
 
184276
      if (other.isSetEx()) {
-
 
184277
        this.ex = new TransactionServiceException(other.ex);
-
 
184278
      }
-
 
184279
    }
-
 
184280
 
-
 
184281
    public getAllFAOrdersList_result deepCopy() {
-
 
184282
      return new getAllFAOrdersList_result(this);
-
 
184283
    }
-
 
184284
 
-
 
184285
    @Override
-
 
184286
    public void clear() {
-
 
184287
      this.success = null;
-
 
184288
      this.ex = null;
-
 
184289
    }
-
 
184290
 
-
 
184291
    public int getSuccessSize() {
-
 
184292
      return (this.success == null) ? 0 : this.success.size();
-
 
184293
    }
-
 
184294
 
-
 
184295
    public java.util.Iterator<FlipkartAdvantageOrder> getSuccessIterator() {
-
 
184296
      return (this.success == null) ? null : this.success.iterator();
-
 
184297
    }
-
 
184298
 
-
 
184299
    public void addToSuccess(FlipkartAdvantageOrder elem) {
-
 
184300
      if (this.success == null) {
-
 
184301
        this.success = new ArrayList<FlipkartAdvantageOrder>();
-
 
184302
      }
-
 
184303
      this.success.add(elem);
-
 
184304
    }
-
 
184305
 
-
 
184306
    public List<FlipkartAdvantageOrder> getSuccess() {
-
 
184307
      return this.success;
-
 
184308
    }
-
 
184309
 
-
 
184310
    public void setSuccess(List<FlipkartAdvantageOrder> success) {
-
 
184311
      this.success = success;
-
 
184312
    }
-
 
184313
 
-
 
184314
    public void unsetSuccess() {
-
 
184315
      this.success = null;
-
 
184316
    }
-
 
184317
 
-
 
184318
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
184319
    public boolean isSetSuccess() {
-
 
184320
      return this.success != null;
-
 
184321
    }
-
 
184322
 
-
 
184323
    public void setSuccessIsSet(boolean value) {
-
 
184324
      if (!value) {
-
 
184325
        this.success = null;
-
 
184326
      }
-
 
184327
    }
-
 
184328
 
-
 
184329
    public TransactionServiceException getEx() {
-
 
184330
      return this.ex;
-
 
184331
    }
-
 
184332
 
-
 
184333
    public void setEx(TransactionServiceException ex) {
-
 
184334
      this.ex = ex;
-
 
184335
    }
-
 
184336
 
-
 
184337
    public void unsetEx() {
-
 
184338
      this.ex = null;
-
 
184339
    }
-
 
184340
 
-
 
184341
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
184342
    public boolean isSetEx() {
-
 
184343
      return this.ex != null;
-
 
184344
    }
-
 
184345
 
-
 
184346
    public void setExIsSet(boolean value) {
-
 
184347
      if (!value) {
-
 
184348
        this.ex = null;
-
 
184349
      }
-
 
184350
    }
-
 
184351
 
-
 
184352
    public void setFieldValue(_Fields field, Object value) {
-
 
184353
      switch (field) {
-
 
184354
      case SUCCESS:
-
 
184355
        if (value == null) {
-
 
184356
          unsetSuccess();
-
 
184357
        } else {
-
 
184358
          setSuccess((List<FlipkartAdvantageOrder>)value);
-
 
184359
        }
-
 
184360
        break;
-
 
184361
 
-
 
184362
      case EX:
-
 
184363
        if (value == null) {
-
 
184364
          unsetEx();
-
 
184365
        } else {
-
 
184366
          setEx((TransactionServiceException)value);
-
 
184367
        }
-
 
184368
        break;
-
 
184369
 
-
 
184370
      }
-
 
184371
    }
-
 
184372
 
-
 
184373
    public Object getFieldValue(_Fields field) {
-
 
184374
      switch (field) {
-
 
184375
      case SUCCESS:
-
 
184376
        return getSuccess();
-
 
184377
 
-
 
184378
      case EX:
-
 
184379
        return getEx();
-
 
184380
 
-
 
184381
      }
-
 
184382
      throw new IllegalStateException();
-
 
184383
    }
-
 
184384
 
-
 
184385
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
184386
    public boolean isSet(_Fields field) {
-
 
184387
      if (field == null) {
-
 
184388
        throw new IllegalArgumentException();
-
 
184389
      }
-
 
184390
 
-
 
184391
      switch (field) {
-
 
184392
      case SUCCESS:
-
 
184393
        return isSetSuccess();
-
 
184394
      case EX:
-
 
184395
        return isSetEx();
-
 
184396
      }
-
 
184397
      throw new IllegalStateException();
-
 
184398
    }
-
 
184399
 
-
 
184400
    @Override
-
 
184401
    public boolean equals(Object that) {
-
 
184402
      if (that == null)
-
 
184403
        return false;
-
 
184404
      if (that instanceof getAllFAOrdersList_result)
-
 
184405
        return this.equals((getAllFAOrdersList_result)that);
-
 
184406
      return false;
-
 
184407
    }
-
 
184408
 
-
 
184409
    public boolean equals(getAllFAOrdersList_result that) {
-
 
184410
      if (that == null)
-
 
184411
        return false;
-
 
184412
 
-
 
184413
      boolean this_present_success = true && this.isSetSuccess();
-
 
184414
      boolean that_present_success = true && that.isSetSuccess();
-
 
184415
      if (this_present_success || that_present_success) {
-
 
184416
        if (!(this_present_success && that_present_success))
-
 
184417
          return false;
-
 
184418
        if (!this.success.equals(that.success))
-
 
184419
          return false;
-
 
184420
      }
-
 
184421
 
-
 
184422
      boolean this_present_ex = true && this.isSetEx();
-
 
184423
      boolean that_present_ex = true && that.isSetEx();
-
 
184424
      if (this_present_ex || that_present_ex) {
-
 
184425
        if (!(this_present_ex && that_present_ex))
-
 
184426
          return false;
-
 
184427
        if (!this.ex.equals(that.ex))
-
 
184428
          return false;
-
 
184429
      }
-
 
184430
 
-
 
184431
      return true;
-
 
184432
    }
-
 
184433
 
-
 
184434
    @Override
-
 
184435
    public int hashCode() {
-
 
184436
      return 0;
-
 
184437
    }
-
 
184438
 
-
 
184439
    public int compareTo(getAllFAOrdersList_result other) {
-
 
184440
      if (!getClass().equals(other.getClass())) {
-
 
184441
        return getClass().getName().compareTo(other.getClass().getName());
-
 
184442
      }
-
 
184443
 
-
 
184444
      int lastComparison = 0;
-
 
184445
      getAllFAOrdersList_result typedOther = (getAllFAOrdersList_result)other;
-
 
184446
 
-
 
184447
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
184448
      if (lastComparison != 0) {
-
 
184449
        return lastComparison;
-
 
184450
      }
-
 
184451
      if (isSetSuccess()) {
-
 
184452
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
184453
        if (lastComparison != 0) {
-
 
184454
          return lastComparison;
-
 
184455
        }
-
 
184456
      }
-
 
184457
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
184458
      if (lastComparison != 0) {
-
 
184459
        return lastComparison;
-
 
184460
      }
-
 
184461
      if (isSetEx()) {
-
 
184462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
184463
        if (lastComparison != 0) {
-
 
184464
          return lastComparison;
-
 
184465
        }
-
 
184466
      }
-
 
184467
      return 0;
-
 
184468
    }
-
 
184469
 
-
 
184470
    public _Fields fieldForId(int fieldId) {
-
 
184471
      return _Fields.findByThriftId(fieldId);
-
 
184472
    }
-
 
184473
 
-
 
184474
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
184475
      org.apache.thrift.protocol.TField field;
-
 
184476
      iprot.readStructBegin();
-
 
184477
      while (true)
-
 
184478
      {
-
 
184479
        field = iprot.readFieldBegin();
-
 
184480
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
184481
          break;
-
 
184482
        }
-
 
184483
        switch (field.id) {
-
 
184484
          case 0: // SUCCESS
-
 
184485
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
184486
              {
-
 
184487
                org.apache.thrift.protocol.TList _list581 = iprot.readListBegin();
-
 
184488
                this.success = new ArrayList<FlipkartAdvantageOrder>(_list581.size);
-
 
184489
                for (int _i582 = 0; _i582 < _list581.size; ++_i582)
-
 
184490
                {
-
 
184491
                  FlipkartAdvantageOrder _elem583; // required
-
 
184492
                  _elem583 = new FlipkartAdvantageOrder();
-
 
184493
                  _elem583.read(iprot);
-
 
184494
                  this.success.add(_elem583);
-
 
184495
                }
-
 
184496
                iprot.readListEnd();
-
 
184497
              }
-
 
184498
            } else { 
-
 
184499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
184500
            }
-
 
184501
            break;
-
 
184502
          case 1: // EX
-
 
184503
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
184504
              this.ex = new TransactionServiceException();
-
 
184505
              this.ex.read(iprot);
-
 
184506
            } else { 
-
 
184507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
184508
            }
-
 
184509
            break;
-
 
184510
          default:
-
 
184511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
184512
        }
-
 
184513
        iprot.readFieldEnd();
-
 
184514
      }
-
 
184515
      iprot.readStructEnd();
-
 
184516
      validate();
-
 
184517
    }
-
 
184518
 
-
 
184519
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
184520
      oprot.writeStructBegin(STRUCT_DESC);
-
 
184521
 
-
 
184522
      if (this.isSetSuccess()) {
-
 
184523
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
184524
        {
-
 
184525
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
184526
          for (FlipkartAdvantageOrder _iter584 : this.success)
-
 
184527
          {
-
 
184528
            _iter584.write(oprot);
-
 
184529
          }
-
 
184530
          oprot.writeListEnd();
-
 
184531
        }
-
 
184532
        oprot.writeFieldEnd();
-
 
184533
      } else if (this.isSetEx()) {
-
 
184534
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
184535
        this.ex.write(oprot);
-
 
184536
        oprot.writeFieldEnd();
-
 
184537
      }
-
 
184538
      oprot.writeFieldStop();
-
 
184539
      oprot.writeStructEnd();
-
 
184540
    }
-
 
184541
 
-
 
184542
    @Override
-
 
184543
    public String toString() {
-
 
184544
      StringBuilder sb = new StringBuilder("getAllFAOrdersList_result(");
-
 
184545
      boolean first = true;
-
 
184546
 
-
 
184547
      sb.append("success:");
-
 
184548
      if (this.success == null) {
-
 
184549
        sb.append("null");
-
 
184550
      } else {
-
 
184551
        sb.append(this.success);
-
 
184552
      }
-
 
184553
      first = false;
-
 
184554
      if (!first) sb.append(", ");
-
 
184555
      sb.append("ex:");
-
 
184556
      if (this.ex == null) {
-
 
184557
        sb.append("null");
-
 
184558
      } else {
-
 
184559
        sb.append(this.ex);
-
 
184560
      }
-
 
184561
      first = false;
-
 
184562
      sb.append(")");
-
 
184563
      return sb.toString();
-
 
184564
    }
-
 
184565
 
-
 
184566
    public void validate() throws org.apache.thrift.TException {
-
 
184567
      // check for required fields
-
 
184568
    }
-
 
184569
 
-
 
184570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
184571
      try {
-
 
184572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
184573
      } catch (org.apache.thrift.TException te) {
-
 
184574
        throw new java.io.IOException(te);
-
 
184575
      }
-
 
184576
    }
-
 
184577
 
-
 
184578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
184579
      try {
-
 
184580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
184581
      } catch (org.apache.thrift.TException te) {
-
 
184582
        throw new java.io.IOException(te);
-
 
184583
      }
-
 
184584
    }
-
 
184585
 
-
 
184586
  }
-
 
184587
 
-
 
184588
  public static class addUpdateFaOrdersBulk_args implements org.apache.thrift.TBase<addUpdateFaOrdersBulk_args, addUpdateFaOrdersBulk_args._Fields>, java.io.Serializable, Cloneable   {
-
 
184589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateFaOrdersBulk_args");
-
 
184590
 
-
 
184591
    private static final org.apache.thrift.protocol.TField FA_ORDERS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("faOrdersList", org.apache.thrift.protocol.TType.LIST, (short)-1);
-
 
184592
 
-
 
184593
    private List<FlipkartAdvantageOrder> faOrdersList; // required
-
 
184594
 
-
 
184595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
184596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
184597
      FA_ORDERS_LIST((short)-1, "faOrdersList");
-
 
184598
 
-
 
184599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
184600
 
-
 
184601
      static {
-
 
184602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
184603
          byName.put(field.getFieldName(), field);
-
 
184604
        }
-
 
184605
      }
-
 
184606
 
-
 
184607
      /**
-
 
184608
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
184609
       */
-
 
184610
      public static _Fields findByThriftId(int fieldId) {
-
 
184611
        switch(fieldId) {
-
 
184612
          case -1: // FA_ORDERS_LIST
-
 
184613
            return FA_ORDERS_LIST;
-
 
184614
          default:
-
 
184615
            return null;
-
 
184616
        }
-
 
184617
      }
-
 
184618
 
-
 
184619
      /**
-
 
184620
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
184621
       * if it is not found.
-
 
184622
       */
-
 
184623
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
184624
        _Fields fields = findByThriftId(fieldId);
-
 
184625
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
184626
        return fields;
-
 
184627
      }
-
 
184628
 
-
 
184629
      /**
-
 
184630
       * Find the _Fields constant that matches name, or null if its not found.
-
 
184631
       */
-
 
184632
      public static _Fields findByName(String name) {
-
 
184633
        return byName.get(name);
-
 
184634
      }
-
 
184635
 
-
 
184636
      private final short _thriftId;
-
 
184637
      private final String _fieldName;
-
 
184638
 
-
 
184639
      _Fields(short thriftId, String fieldName) {
-
 
184640
        _thriftId = thriftId;
-
 
184641
        _fieldName = fieldName;
-
 
184642
      }
-
 
184643
 
-
 
184644
      public short getThriftFieldId() {
-
 
184645
        return _thriftId;
-
 
184646
      }
-
 
184647
 
-
 
184648
      public String getFieldName() {
-
 
184649
        return _fieldName;
-
 
184650
      }
-
 
184651
    }
-
 
184652
 
-
 
184653
    // isset id assignments
-
 
184654
 
-
 
184655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
184656
    static {
-
 
184657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
184658
      tmpMap.put(_Fields.FA_ORDERS_LIST, new org.apache.thrift.meta_data.FieldMetaData("faOrdersList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
184659
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
184660
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartAdvantageOrder.class))));
-
 
184661
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
184662
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateFaOrdersBulk_args.class, metaDataMap);
-
 
184663
    }
-
 
184664
 
-
 
184665
    public addUpdateFaOrdersBulk_args() {
-
 
184666
    }
-
 
184667
 
-
 
184668
    public addUpdateFaOrdersBulk_args(
-
 
184669
      List<FlipkartAdvantageOrder> faOrdersList)
-
 
184670
    {
-
 
184671
      this();
-
 
184672
      this.faOrdersList = faOrdersList;
-
 
184673
    }
-
 
184674
 
-
 
184675
    /**
-
 
184676
     * Performs a deep copy on <i>other</i>.
-
 
184677
     */
-
 
184678
    public addUpdateFaOrdersBulk_args(addUpdateFaOrdersBulk_args other) {
-
 
184679
      if (other.isSetFaOrdersList()) {
-
 
184680
        List<FlipkartAdvantageOrder> __this__faOrdersList = new ArrayList<FlipkartAdvantageOrder>();
-
 
184681
        for (FlipkartAdvantageOrder other_element : other.faOrdersList) {
-
 
184682
          __this__faOrdersList.add(new FlipkartAdvantageOrder(other_element));
-
 
184683
        }
-
 
184684
        this.faOrdersList = __this__faOrdersList;
-
 
184685
      }
-
 
184686
    }
-
 
184687
 
-
 
184688
    public addUpdateFaOrdersBulk_args deepCopy() {
-
 
184689
      return new addUpdateFaOrdersBulk_args(this);
-
 
184690
    }
-
 
184691
 
-
 
184692
    @Override
-
 
184693
    public void clear() {
-
 
184694
      this.faOrdersList = null;
-
 
184695
    }
-
 
184696
 
-
 
184697
    public int getFaOrdersListSize() {
-
 
184698
      return (this.faOrdersList == null) ? 0 : this.faOrdersList.size();
-
 
184699
    }
-
 
184700
 
-
 
184701
    public java.util.Iterator<FlipkartAdvantageOrder> getFaOrdersListIterator() {
-
 
184702
      return (this.faOrdersList == null) ? null : this.faOrdersList.iterator();
-
 
184703
    }
-
 
184704
 
-
 
184705
    public void addToFaOrdersList(FlipkartAdvantageOrder elem) {
-
 
184706
      if (this.faOrdersList == null) {
-
 
184707
        this.faOrdersList = new ArrayList<FlipkartAdvantageOrder>();
-
 
184708
      }
-
 
184709
      this.faOrdersList.add(elem);
-
 
184710
    }
-
 
184711
 
-
 
184712
    public List<FlipkartAdvantageOrder> getFaOrdersList() {
-
 
184713
      return this.faOrdersList;
-
 
184714
    }
-
 
184715
 
-
 
184716
    public void setFaOrdersList(List<FlipkartAdvantageOrder> faOrdersList) {
-
 
184717
      this.faOrdersList = faOrdersList;
-
 
184718
    }
-
 
184719
 
-
 
184720
    public void unsetFaOrdersList() {
-
 
184721
      this.faOrdersList = null;
-
 
184722
    }
-
 
184723
 
-
 
184724
    /** Returns true if field faOrdersList is set (has been assigned a value) and false otherwise */
-
 
184725
    public boolean isSetFaOrdersList() {
-
 
184726
      return this.faOrdersList != null;
-
 
184727
    }
-
 
184728
 
-
 
184729
    public void setFaOrdersListIsSet(boolean value) {
-
 
184730
      if (!value) {
-
 
184731
        this.faOrdersList = null;
-
 
184732
      }
-
 
184733
    }
-
 
184734
 
-
 
184735
    public void setFieldValue(_Fields field, Object value) {
-
 
184736
      switch (field) {
-
 
184737
      case FA_ORDERS_LIST:
-
 
184738
        if (value == null) {
-
 
184739
          unsetFaOrdersList();
-
 
184740
        } else {
-
 
184741
          setFaOrdersList((List<FlipkartAdvantageOrder>)value);
-
 
184742
        }
-
 
184743
        break;
-
 
184744
 
-
 
184745
      }
-
 
184746
    }
-
 
184747
 
-
 
184748
    public Object getFieldValue(_Fields field) {
-
 
184749
      switch (field) {
-
 
184750
      case FA_ORDERS_LIST:
-
 
184751
        return getFaOrdersList();
-
 
184752
 
-
 
184753
      }
-
 
184754
      throw new IllegalStateException();
-
 
184755
    }
-
 
184756
 
-
 
184757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
184758
    public boolean isSet(_Fields field) {
-
 
184759
      if (field == null) {
-
 
184760
        throw new IllegalArgumentException();
-
 
184761
      }
-
 
184762
 
-
 
184763
      switch (field) {
-
 
184764
      case FA_ORDERS_LIST:
-
 
184765
        return isSetFaOrdersList();
-
 
184766
      }
-
 
184767
      throw new IllegalStateException();
-
 
184768
    }
-
 
184769
 
-
 
184770
    @Override
-
 
184771
    public boolean equals(Object that) {
-
 
184772
      if (that == null)
-
 
184773
        return false;
-
 
184774
      if (that instanceof addUpdateFaOrdersBulk_args)
-
 
184775
        return this.equals((addUpdateFaOrdersBulk_args)that);
-
 
184776
      return false;
-
 
184777
    }
-
 
184778
 
-
 
184779
    public boolean equals(addUpdateFaOrdersBulk_args that) {
-
 
184780
      if (that == null)
-
 
184781
        return false;
-
 
184782
 
-
 
184783
      boolean this_present_faOrdersList = true && this.isSetFaOrdersList();
-
 
184784
      boolean that_present_faOrdersList = true && that.isSetFaOrdersList();
-
 
184785
      if (this_present_faOrdersList || that_present_faOrdersList) {
-
 
184786
        if (!(this_present_faOrdersList && that_present_faOrdersList))
-
 
184787
          return false;
-
 
184788
        if (!this.faOrdersList.equals(that.faOrdersList))
-
 
184789
          return false;
-
 
184790
      }
-
 
184791
 
-
 
184792
      return true;
-
 
184793
    }
-
 
184794
 
-
 
184795
    @Override
-
 
184796
    public int hashCode() {
-
 
184797
      return 0;
-
 
184798
    }
-
 
184799
 
-
 
184800
    public int compareTo(addUpdateFaOrdersBulk_args other) {
-
 
184801
      if (!getClass().equals(other.getClass())) {
-
 
184802
        return getClass().getName().compareTo(other.getClass().getName());
-
 
184803
      }
-
 
184804
 
-
 
184805
      int lastComparison = 0;
-
 
184806
      addUpdateFaOrdersBulk_args typedOther = (addUpdateFaOrdersBulk_args)other;
-
 
184807
 
-
 
184808
      lastComparison = Boolean.valueOf(isSetFaOrdersList()).compareTo(typedOther.isSetFaOrdersList());
-
 
184809
      if (lastComparison != 0) {
-
 
184810
        return lastComparison;
-
 
184811
      }
-
 
184812
      if (isSetFaOrdersList()) {
-
 
184813
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.faOrdersList, typedOther.faOrdersList);
-
 
184814
        if (lastComparison != 0) {
-
 
184815
          return lastComparison;
-
 
184816
        }
-
 
184817
      }
-
 
184818
      return 0;
-
 
184819
    }
-
 
184820
 
-
 
184821
    public _Fields fieldForId(int fieldId) {
-
 
184822
      return _Fields.findByThriftId(fieldId);
-
 
184823
    }
-
 
184824
 
-
 
184825
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
184826
      org.apache.thrift.protocol.TField field;
-
 
184827
      iprot.readStructBegin();
-
 
184828
      while (true)
-
 
184829
      {
-
 
184830
        field = iprot.readFieldBegin();
-
 
184831
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
184832
          break;
-
 
184833
        }
-
 
184834
        switch (field.id) {
-
 
184835
          case -1: // FA_ORDERS_LIST
-
 
184836
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
184837
              {
-
 
184838
                org.apache.thrift.protocol.TList _list585 = iprot.readListBegin();
-
 
184839
                this.faOrdersList = new ArrayList<FlipkartAdvantageOrder>(_list585.size);
-
 
184840
                for (int _i586 = 0; _i586 < _list585.size; ++_i586)
-
 
184841
                {
-
 
184842
                  FlipkartAdvantageOrder _elem587; // required
-
 
184843
                  _elem587 = new FlipkartAdvantageOrder();
-
 
184844
                  _elem587.read(iprot);
-
 
184845
                  this.faOrdersList.add(_elem587);
-
 
184846
                }
-
 
184847
                iprot.readListEnd();
-
 
184848
              }
-
 
184849
            } else { 
-
 
184850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
184851
            }
-
 
184852
            break;
-
 
184853
          default:
-
 
184854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
184855
        }
-
 
184856
        iprot.readFieldEnd();
-
 
184857
      }
-
 
184858
      iprot.readStructEnd();
-
 
184859
      validate();
-
 
184860
    }
-
 
184861
 
-
 
184862
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
184863
      validate();
-
 
184864
 
-
 
184865
      oprot.writeStructBegin(STRUCT_DESC);
-
 
184866
      if (this.faOrdersList != null) {
-
 
184867
        oprot.writeFieldBegin(FA_ORDERS_LIST_FIELD_DESC);
-
 
184868
        {
-
 
184869
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.faOrdersList.size()));
-
 
184870
          for (FlipkartAdvantageOrder _iter588 : this.faOrdersList)
-
 
184871
          {
-
 
184872
            _iter588.write(oprot);
-
 
184873
          }
-
 
184874
          oprot.writeListEnd();
-
 
184875
        }
-
 
184876
        oprot.writeFieldEnd();
-
 
184877
      }
-
 
184878
      oprot.writeFieldStop();
-
 
184879
      oprot.writeStructEnd();
-
 
184880
    }
-
 
184881
 
-
 
184882
    @Override
-
 
184883
    public String toString() {
-
 
184884
      StringBuilder sb = new StringBuilder("addUpdateFaOrdersBulk_args(");
-
 
184885
      boolean first = true;
-
 
184886
 
-
 
184887
      sb.append("faOrdersList:");
-
 
184888
      if (this.faOrdersList == null) {
-
 
184889
        sb.append("null");
-
 
184890
      } else {
-
 
184891
        sb.append(this.faOrdersList);
-
 
184892
      }
-
 
184893
      first = false;
-
 
184894
      sb.append(")");
-
 
184895
      return sb.toString();
-
 
184896
    }
-
 
184897
 
-
 
184898
    public void validate() throws org.apache.thrift.TException {
-
 
184899
      // check for required fields
-
 
184900
    }
-
 
184901
 
-
 
184902
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
184903
      try {
-
 
184904
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
184905
      } catch (org.apache.thrift.TException te) {
-
 
184906
        throw new java.io.IOException(te);
-
 
184907
      }
-
 
184908
    }
-
 
184909
 
-
 
184910
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
184911
      try {
-
 
184912
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
184913
      } catch (org.apache.thrift.TException te) {
-
 
184914
        throw new java.io.IOException(te);
-
 
184915
      }
-
 
184916
    }
-
 
184917
 
-
 
184918
  }
-
 
184919
 
-
 
184920
  public static class addUpdateFaOrdersBulk_result implements org.apache.thrift.TBase<addUpdateFaOrdersBulk_result, addUpdateFaOrdersBulk_result._Fields>, java.io.Serializable, Cloneable   {
-
 
184921
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateFaOrdersBulk_result");
-
 
184922
 
-
 
184923
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
184924
 
-
 
184925
    private TransactionServiceException ex; // required
-
 
184926
 
-
 
184927
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
184928
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
184929
      EX((short)1, "ex");
-
 
184930
 
-
 
184931
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
184932
 
-
 
184933
      static {
-
 
184934
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
184935
          byName.put(field.getFieldName(), field);
-
 
184936
        }
-
 
184937
      }
-
 
184938
 
-
 
184939
      /**
-
 
184940
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
184941
       */
-
 
184942
      public static _Fields findByThriftId(int fieldId) {
-
 
184943
        switch(fieldId) {
-
 
184944
          case 1: // EX
-
 
184945
            return EX;
-
 
184946
          default:
-
 
184947
            return null;
-
 
184948
        }
-
 
184949
      }
-
 
184950
 
-
 
184951
      /**
-
 
184952
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
184953
       * if it is not found.
-
 
184954
       */
-
 
184955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
184956
        _Fields fields = findByThriftId(fieldId);
-
 
184957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
184958
        return fields;
-
 
184959
      }
-
 
184960
 
-
 
184961
      /**
-
 
184962
       * Find the _Fields constant that matches name, or null if its not found.
-
 
184963
       */
-
 
184964
      public static _Fields findByName(String name) {
-
 
184965
        return byName.get(name);
-
 
184966
      }
-
 
184967
 
-
 
184968
      private final short _thriftId;
-
 
184969
      private final String _fieldName;
-
 
184970
 
-
 
184971
      _Fields(short thriftId, String fieldName) {
-
 
184972
        _thriftId = thriftId;
-
 
184973
        _fieldName = fieldName;
-
 
184974
      }
-
 
184975
 
-
 
184976
      public short getThriftFieldId() {
-
 
184977
        return _thriftId;
-
 
184978
      }
-
 
184979
 
-
 
184980
      public String getFieldName() {
-
 
184981
        return _fieldName;
-
 
184982
      }
-
 
184983
    }
-
 
184984
 
-
 
184985
    // isset id assignments
-
 
184986
 
-
 
184987
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
184988
    static {
-
 
184989
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
184990
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
184991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
184992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
184993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateFaOrdersBulk_result.class, metaDataMap);
-
 
184994
    }
-
 
184995
 
-
 
184996
    public addUpdateFaOrdersBulk_result() {
-
 
184997
    }
-
 
184998
 
-
 
184999
    public addUpdateFaOrdersBulk_result(
-
 
185000
      TransactionServiceException ex)
-
 
185001
    {
-
 
185002
      this();
-
 
185003
      this.ex = ex;
-
 
185004
    }
-
 
185005
 
-
 
185006
    /**
-
 
185007
     * Performs a deep copy on <i>other</i>.
-
 
185008
     */
-
 
185009
    public addUpdateFaOrdersBulk_result(addUpdateFaOrdersBulk_result other) {
-
 
185010
      if (other.isSetEx()) {
-
 
185011
        this.ex = new TransactionServiceException(other.ex);
-
 
185012
      }
-
 
185013
    }
-
 
185014
 
-
 
185015
    public addUpdateFaOrdersBulk_result deepCopy() {
-
 
185016
      return new addUpdateFaOrdersBulk_result(this);
-
 
185017
    }
-
 
185018
 
-
 
185019
    @Override
-
 
185020
    public void clear() {
-
 
185021
      this.ex = null;
-
 
185022
    }
-
 
185023
 
-
 
185024
    public TransactionServiceException getEx() {
-
 
185025
      return this.ex;
-
 
185026
    }
-
 
185027
 
-
 
185028
    public void setEx(TransactionServiceException ex) {
-
 
185029
      this.ex = ex;
-
 
185030
    }
-
 
185031
 
-
 
185032
    public void unsetEx() {
-
 
185033
      this.ex = null;
-
 
185034
    }
-
 
185035
 
-
 
185036
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
185037
    public boolean isSetEx() {
-
 
185038
      return this.ex != null;
-
 
185039
    }
-
 
185040
 
-
 
185041
    public void setExIsSet(boolean value) {
-
 
185042
      if (!value) {
-
 
185043
        this.ex = null;
-
 
185044
      }
-
 
185045
    }
-
 
185046
 
-
 
185047
    public void setFieldValue(_Fields field, Object value) {
-
 
185048
      switch (field) {
-
 
185049
      case EX:
-
 
185050
        if (value == null) {
-
 
185051
          unsetEx();
-
 
185052
        } else {
-
 
185053
          setEx((TransactionServiceException)value);
-
 
185054
        }
-
 
185055
        break;
-
 
185056
 
-
 
185057
      }
-
 
185058
    }
-
 
185059
 
-
 
185060
    public Object getFieldValue(_Fields field) {
-
 
185061
      switch (field) {
-
 
185062
      case EX:
-
 
185063
        return getEx();
-
 
185064
 
-
 
185065
      }
-
 
185066
      throw new IllegalStateException();
-
 
185067
    }
-
 
185068
 
-
 
185069
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
185070
    public boolean isSet(_Fields field) {
-
 
185071
      if (field == null) {
-
 
185072
        throw new IllegalArgumentException();
-
 
185073
      }
-
 
185074
 
-
 
185075
      switch (field) {
-
 
185076
      case EX:
-
 
185077
        return isSetEx();
-
 
185078
      }
-
 
185079
      throw new IllegalStateException();
-
 
185080
    }
-
 
185081
 
-
 
185082
    @Override
-
 
185083
    public boolean equals(Object that) {
-
 
185084
      if (that == null)
-
 
185085
        return false;
-
 
185086
      if (that instanceof addUpdateFaOrdersBulk_result)
-
 
185087
        return this.equals((addUpdateFaOrdersBulk_result)that);
-
 
185088
      return false;
-
 
185089
    }
-
 
185090
 
-
 
185091
    public boolean equals(addUpdateFaOrdersBulk_result that) {
-
 
185092
      if (that == null)
-
 
185093
        return false;
-
 
185094
 
-
 
185095
      boolean this_present_ex = true && this.isSetEx();
-
 
185096
      boolean that_present_ex = true && that.isSetEx();
-
 
185097
      if (this_present_ex || that_present_ex) {
-
 
185098
        if (!(this_present_ex && that_present_ex))
-
 
185099
          return false;
-
 
185100
        if (!this.ex.equals(that.ex))
-
 
185101
          return false;
-
 
185102
      }
-
 
185103
 
-
 
185104
      return true;
-
 
185105
    }
-
 
185106
 
-
 
185107
    @Override
-
 
185108
    public int hashCode() {
-
 
185109
      return 0;
-
 
185110
    }
-
 
185111
 
-
 
185112
    public int compareTo(addUpdateFaOrdersBulk_result other) {
-
 
185113
      if (!getClass().equals(other.getClass())) {
-
 
185114
        return getClass().getName().compareTo(other.getClass().getName());
-
 
185115
      }
-
 
185116
 
-
 
185117
      int lastComparison = 0;
-
 
185118
      addUpdateFaOrdersBulk_result typedOther = (addUpdateFaOrdersBulk_result)other;
-
 
185119
 
-
 
185120
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
185121
      if (lastComparison != 0) {
-
 
185122
        return lastComparison;
-
 
185123
      }
-
 
185124
      if (isSetEx()) {
-
 
185125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
185126
        if (lastComparison != 0) {
-
 
185127
          return lastComparison;
-
 
185128
        }
-
 
185129
      }
-
 
185130
      return 0;
-
 
185131
    }
-
 
185132
 
-
 
185133
    public _Fields fieldForId(int fieldId) {
-
 
185134
      return _Fields.findByThriftId(fieldId);
-
 
185135
    }
-
 
185136
 
-
 
185137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
185138
      org.apache.thrift.protocol.TField field;
-
 
185139
      iprot.readStructBegin();
-
 
185140
      while (true)
-
 
185141
      {
-
 
185142
        field = iprot.readFieldBegin();
-
 
185143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
185144
          break;
-
 
185145
        }
-
 
185146
        switch (field.id) {
-
 
185147
          case 1: // EX
-
 
185148
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
185149
              this.ex = new TransactionServiceException();
-
 
185150
              this.ex.read(iprot);
-
 
185151
            } else { 
-
 
185152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185153
            }
-
 
185154
            break;
-
 
185155
          default:
-
 
185156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
185157
        }
-
 
185158
        iprot.readFieldEnd();
-
 
185159
      }
-
 
185160
      iprot.readStructEnd();
-
 
185161
      validate();
-
 
185162
    }
-
 
185163
 
-
 
185164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
185165
      oprot.writeStructBegin(STRUCT_DESC);
-
 
185166
 
-
 
185167
      if (this.isSetEx()) {
-
 
185168
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
185169
        this.ex.write(oprot);
-
 
185170
        oprot.writeFieldEnd();
-
 
185171
      }
-
 
185172
      oprot.writeFieldStop();
-
 
185173
      oprot.writeStructEnd();
-
 
185174
    }
-
 
185175
 
-
 
185176
    @Override
-
 
185177
    public String toString() {
-
 
185178
      StringBuilder sb = new StringBuilder("addUpdateFaOrdersBulk_result(");
-
 
185179
      boolean first = true;
-
 
185180
 
-
 
185181
      sb.append("ex:");
-
 
185182
      if (this.ex == null) {
-
 
185183
        sb.append("null");
-
 
185184
      } else {
-
 
185185
        sb.append(this.ex);
182913
      }
185186
      }
182914
      first = false;
185187
      first = false;
182915
      sb.append(")");
185188
      sb.append(")");
182916
      return sb.toString();
185189
      return sb.toString();
182917
    }
185190
    }