Subversion Repositories SmartDukaan

Rev

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

Rev 1245 Rev 1382
Line 42... Line 42...
42
 
42
 
43
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;
43
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;
44
 
44
 
45
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
45
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
46
 
46
 
-
 
47
    public boolean emailTransactionInfoToUser(long transactionId) throws TransactionServiceException, TException;
-
 
48
 
47
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
49
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
48
 
50
 
49
    /**
51
    /**
50
     * Returns orders within a range of their billing dates
52
     * Returns orders within a range of their billing dates
51
     * 
53
     * 
Line 54... Line 56...
54
     * @param end_billing_date
56
     * @param end_billing_date
55
     * @param warehouse_id
57
     * @param warehouse_id
56
     */
58
     */
57
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
59
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
58
 
60
 
-
 
61
    /**
-
 
62
     * Returns order ids for orders which can be returned
-
 
63
     * 
-
 
64
     * @param customer_id
-
 
65
     * @param limit
-
 
66
     */
-
 
67
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException;
-
 
68
 
-
 
69
    /**
-
 
70
     * Returns order ids for orders which can be cancelled
-
 
71
     * 
-
 
72
     * @param customer_id
-
 
73
     * @param limit
-
 
74
     */
-
 
75
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException;
-
 
76
 
59
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
77
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
60
 
78
 
61
    /**
79
    /**
62
     * Add billing details such as the bill number and the biller to the Order.
80
     * Add billing details such as the bill number and the biller to the Order.
63
     * 
81
     * 
Line 431... Line 449...
431
        throw result.ex;
449
        throw result.ex;
432
      }
450
      }
433
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
451
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
434
    }
452
    }
435
 
453
 
-
 
454
    public boolean emailTransactionInfoToUser(long transactionId) throws TransactionServiceException, TException
-
 
455
    {
-
 
456
      send_emailTransactionInfoToUser(transactionId);
-
 
457
      return recv_emailTransactionInfoToUser();
-
 
458
    }
-
 
459
 
-
 
460
    public void send_emailTransactionInfoToUser(long transactionId) throws TException
-
 
461
    {
-
 
462
      oprot_.writeMessageBegin(new TMessage("emailTransactionInfoToUser", TMessageType.CALL, seqid_));
-
 
463
      emailTransactionInfoToUser_args args = new emailTransactionInfoToUser_args();
-
 
464
      args.transactionId = transactionId;
-
 
465
      args.write(oprot_);
-
 
466
      oprot_.writeMessageEnd();
-
 
467
      oprot_.getTransport().flush();
-
 
468
    }
-
 
469
 
-
 
470
    public boolean recv_emailTransactionInfoToUser() throws TransactionServiceException, TException
-
 
471
    {
-
 
472
      TMessage msg = iprot_.readMessageBegin();
-
 
473
      if (msg.type == TMessageType.EXCEPTION) {
-
 
474
        TApplicationException x = TApplicationException.read(iprot_);
-
 
475
        iprot_.readMessageEnd();
-
 
476
        throw x;
-
 
477
      }
-
 
478
      emailTransactionInfoToUser_result result = new emailTransactionInfoToUser_result();
-
 
479
      result.read(iprot_);
-
 
480
      iprot_.readMessageEnd();
-
 
481
      if (result.isSetSuccess()) {
-
 
482
        return result.success;
-
 
483
      }
-
 
484
      if (result.ex != null) {
-
 
485
        throw result.ex;
-
 
486
      }
-
 
487
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "emailTransactionInfoToUser failed: unknown result");
-
 
488
    }
-
 
489
 
436
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException
490
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException
437
    {
491
    {
438
      send_getAllOrders(status, from_date, to_date, warehouse_id);
492
      send_getAllOrders(status, from_date, to_date, warehouse_id);
439
      return recv_getAllOrders();
493
      return recv_getAllOrders();
440
    }
494
    }
Line 509... Line 563...
509
        throw result.ex;
563
        throw result.ex;
510
      }
564
      }
511
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
565
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
512
    }
566
    }
513
 
567
 
-
 
568
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException
-
 
569
    {
-
 
570
      send_getReturnableOrdersForCustomer(customer_id, limit);
-
 
571
      return recv_getReturnableOrdersForCustomer();
-
 
572
    }
-
 
573
 
-
 
574
    public void send_getReturnableOrdersForCustomer(long customer_id, long limit) throws TException
-
 
575
    {
-
 
576
      oprot_.writeMessageBegin(new TMessage("getReturnableOrdersForCustomer", TMessageType.CALL, seqid_));
-
 
577
      getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
-
 
578
      args.customer_id = customer_id;
-
 
579
      args.limit = limit;
-
 
580
      args.write(oprot_);
-
 
581
      oprot_.writeMessageEnd();
-
 
582
      oprot_.getTransport().flush();
-
 
583
    }
-
 
584
 
-
 
585
    public List<Long> recv_getReturnableOrdersForCustomer() throws TransactionServiceException, TException
-
 
586
    {
-
 
587
      TMessage msg = iprot_.readMessageBegin();
-
 
588
      if (msg.type == TMessageType.EXCEPTION) {
-
 
589
        TApplicationException x = TApplicationException.read(iprot_);
-
 
590
        iprot_.readMessageEnd();
-
 
591
        throw x;
-
 
592
      }
-
 
593
      getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
-
 
594
      result.read(iprot_);
-
 
595
      iprot_.readMessageEnd();
-
 
596
      if (result.isSetSuccess()) {
-
 
597
        return result.success;
-
 
598
      }
-
 
599
      if (result.ex != null) {
-
 
600
        throw result.ex;
-
 
601
      }
-
 
602
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");
-
 
603
    }
-
 
604
 
-
 
605
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException
-
 
606
    {
-
 
607
      send_getCancellableOrdersForCustomer(customer_id, limit);
-
 
608
      return recv_getCancellableOrdersForCustomer();
-
 
609
    }
-
 
610
 
-
 
611
    public void send_getCancellableOrdersForCustomer(long customer_id, long limit) throws TException
-
 
612
    {
-
 
613
      oprot_.writeMessageBegin(new TMessage("getCancellableOrdersForCustomer", TMessageType.CALL, seqid_));
-
 
614
      getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
-
 
615
      args.customer_id = customer_id;
-
 
616
      args.limit = limit;
-
 
617
      args.write(oprot_);
-
 
618
      oprot_.writeMessageEnd();
-
 
619
      oprot_.getTransport().flush();
-
 
620
    }
-
 
621
 
-
 
622
    public List<Long> recv_getCancellableOrdersForCustomer() throws TransactionServiceException, TException
-
 
623
    {
-
 
624
      TMessage msg = iprot_.readMessageBegin();
-
 
625
      if (msg.type == TMessageType.EXCEPTION) {
-
 
626
        TApplicationException x = TApplicationException.read(iprot_);
-
 
627
        iprot_.readMessageEnd();
-
 
628
        throw x;
-
 
629
      }
-
 
630
      getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
-
 
631
      result.read(iprot_);
-
 
632
      iprot_.readMessageEnd();
-
 
633
      if (result.isSetSuccess()) {
-
 
634
        return result.success;
-
 
635
      }
-
 
636
      if (result.ex != null) {
-
 
637
        throw result.ex;
-
 
638
      }
-
 
639
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
-
 
640
    }
-
 
641
 
514
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException
642
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException
515
    {
643
    {
516
      send_changeOrderStatus(orderId, status, description);
644
      send_changeOrderStatus(orderId, status, description);
517
      return recv_changeOrderStatus();
645
      return recv_changeOrderStatus();
518
    }
646
    }
Line 1205... Line 1333...
1205
      processMap_.put("getTransaction", new getTransaction());
1333
      processMap_.put("getTransaction", new getTransaction());
1206
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
1334
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
1207
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
1335
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
1208
      processMap_.put("getTransactionStatus", new getTransactionStatus());
1336
      processMap_.put("getTransactionStatus", new getTransactionStatus());
1209
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
1337
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
-
 
1338
      processMap_.put("emailTransactionInfoToUser", new emailTransactionInfoToUser());
1210
      processMap_.put("getAllOrders", new getAllOrders());
1339
      processMap_.put("getAllOrders", new getAllOrders());
1211
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
1340
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
-
 
1341
      processMap_.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
-
 
1342
      processMap_.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
1212
      processMap_.put("changeOrderStatus", new changeOrderStatus());
1343
      processMap_.put("changeOrderStatus", new changeOrderStatus());
1213
      processMap_.put("addBillingDetails", new addBillingDetails());
1344
      processMap_.put("addBillingDetails", new addBillingDetails());
1214
      processMap_.put("addJacketNumber", new addJacketNumber());
1345
      processMap_.put("addJacketNumber", new addJacketNumber());
1215
      processMap_.put("acceptOrder", new acceptOrder());
1346
      processMap_.put("acceptOrder", new acceptOrder());
1216
      processMap_.put("billOrder", new billOrder());
1347
      processMap_.put("billOrder", new billOrder());
Line 1439... Line 1570...
1439
        oprot.getTransport().flush();
1570
        oprot.getTransport().flush();
1440
      }
1571
      }
1441
 
1572
 
1442
    }
1573
    }
1443
 
1574
 
-
 
1575
    private class emailTransactionInfoToUser implements ProcessFunction {
-
 
1576
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1577
      {
-
 
1578
        emailTransactionInfoToUser_args args = new emailTransactionInfoToUser_args();
-
 
1579
        args.read(iprot);
-
 
1580
        iprot.readMessageEnd();
-
 
1581
        emailTransactionInfoToUser_result result = new emailTransactionInfoToUser_result();
-
 
1582
        try {
-
 
1583
          result.success = iface_.emailTransactionInfoToUser(args.transactionId);
-
 
1584
          result.setSuccessIsSet(true);
-
 
1585
        } catch (TransactionServiceException ex) {
-
 
1586
          result.ex = ex;
-
 
1587
        } catch (Throwable th) {
-
 
1588
          LOGGER.error("Internal error processing emailTransactionInfoToUser", th);
-
 
1589
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing emailTransactionInfoToUser");
-
 
1590
          oprot.writeMessageBegin(new TMessage("emailTransactionInfoToUser", TMessageType.EXCEPTION, seqid));
-
 
1591
          x.write(oprot);
-
 
1592
          oprot.writeMessageEnd();
-
 
1593
          oprot.getTransport().flush();
-
 
1594
          return;
-
 
1595
        }
-
 
1596
        oprot.writeMessageBegin(new TMessage("emailTransactionInfoToUser", TMessageType.REPLY, seqid));
-
 
1597
        result.write(oprot);
-
 
1598
        oprot.writeMessageEnd();
-
 
1599
        oprot.getTransport().flush();
-
 
1600
      }
-
 
1601
 
-
 
1602
    }
-
 
1603
 
1444
    private class getAllOrders implements ProcessFunction {
1604
    private class getAllOrders implements ProcessFunction {
1445
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1605
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1446
      {
1606
      {
1447
        getAllOrders_args args = new getAllOrders_args();
1607
        getAllOrders_args args = new getAllOrders_args();
1448
        args.read(iprot);
1608
        args.read(iprot);
Line 1495... Line 1655...
1495
        oprot.getTransport().flush();
1655
        oprot.getTransport().flush();
1496
      }
1656
      }
1497
 
1657
 
1498
    }
1658
    }
1499
 
1659
 
-
 
1660
    private class getReturnableOrdersForCustomer implements ProcessFunction {
-
 
1661
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1662
      {
-
 
1663
        getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
-
 
1664
        args.read(iprot);
-
 
1665
        iprot.readMessageEnd();
-
 
1666
        getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();
-
 
1667
        try {
-
 
1668
          result.success = iface_.getReturnableOrdersForCustomer(args.customer_id, args.limit);
-
 
1669
        } catch (TransactionServiceException ex) {
-
 
1670
          result.ex = ex;
-
 
1671
        } catch (Throwable th) {
-
 
1672
          LOGGER.error("Internal error processing getReturnableOrdersForCustomer", th);
-
 
1673
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getReturnableOrdersForCustomer");
-
 
1674
          oprot.writeMessageBegin(new TMessage("getReturnableOrdersForCustomer", TMessageType.EXCEPTION, seqid));
-
 
1675
          x.write(oprot);
-
 
1676
          oprot.writeMessageEnd();
-
 
1677
          oprot.getTransport().flush();
-
 
1678
          return;
-
 
1679
        }
-
 
1680
        oprot.writeMessageBegin(new TMessage("getReturnableOrdersForCustomer", TMessageType.REPLY, seqid));
-
 
1681
        result.write(oprot);
-
 
1682
        oprot.writeMessageEnd();
-
 
1683
        oprot.getTransport().flush();
-
 
1684
      }
-
 
1685
 
-
 
1686
    }
-
 
1687
 
-
 
1688
    private class getCancellableOrdersForCustomer implements ProcessFunction {
-
 
1689
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1690
      {
-
 
1691
        getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();
-
 
1692
        args.read(iprot);
-
 
1693
        iprot.readMessageEnd();
-
 
1694
        getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();
-
 
1695
        try {
-
 
1696
          result.success = iface_.getCancellableOrdersForCustomer(args.customer_id, args.limit);
-
 
1697
        } catch (TransactionServiceException ex) {
-
 
1698
          result.ex = ex;
-
 
1699
        } catch (Throwable th) {
-
 
1700
          LOGGER.error("Internal error processing getCancellableOrdersForCustomer", th);
-
 
1701
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getCancellableOrdersForCustomer");
-
 
1702
          oprot.writeMessageBegin(new TMessage("getCancellableOrdersForCustomer", TMessageType.EXCEPTION, seqid));
-
 
1703
          x.write(oprot);
-
 
1704
          oprot.writeMessageEnd();
-
 
1705
          oprot.getTransport().flush();
-
 
1706
          return;
-
 
1707
        }
-
 
1708
        oprot.writeMessageBegin(new TMessage("getCancellableOrdersForCustomer", TMessageType.REPLY, seqid));
-
 
1709
        result.write(oprot);
-
 
1710
        oprot.writeMessageEnd();
-
 
1711
        oprot.getTransport().flush();
-
 
1712
      }
-
 
1713
 
-
 
1714
    }
-
 
1715
 
1500
    private class changeOrderStatus implements ProcessFunction {
1716
    private class changeOrderStatus implements ProcessFunction {
1501
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1717
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1502
      {
1718
      {
1503
        changeOrderStatus_args args = new changeOrderStatus_args();
1719
        changeOrderStatus_args args = new changeOrderStatus_args();
1504
        args.read(iprot);
1720
        args.read(iprot);
Line 6793... Line 7009...
6793
      // check for required fields
7009
      // check for required fields
6794
    }
7010
    }
6795
 
7011
 
6796
  }
7012
  }
6797
 
7013
 
-
 
7014
  public static class emailTransactionInfoToUser_args implements TBase<emailTransactionInfoToUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<emailTransactionInfoToUser_args>   {
-
 
7015
    private static final TStruct STRUCT_DESC = new TStruct("emailTransactionInfoToUser_args");
-
 
7016
 
-
 
7017
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
-
 
7018
 
-
 
7019
    private long transactionId;
-
 
7020
 
-
 
7021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7022
    public enum _Fields implements TFieldIdEnum {
-
 
7023
      TRANSACTION_ID((short)1, "transactionId");
-
 
7024
 
-
 
7025
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7026
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7027
 
-
 
7028
      static {
-
 
7029
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7030
          byId.put((int)field._thriftId, field);
-
 
7031
          byName.put(field.getFieldName(), field);
-
 
7032
        }
-
 
7033
      }
-
 
7034
 
-
 
7035
      /**
-
 
7036
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7037
       */
-
 
7038
      public static _Fields findByThriftId(int fieldId) {
-
 
7039
        return byId.get(fieldId);
-
 
7040
      }
-
 
7041
 
-
 
7042
      /**
-
 
7043
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7044
       * if it is not found.
-
 
7045
       */
-
 
7046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7047
        _Fields fields = findByThriftId(fieldId);
-
 
7048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7049
        return fields;
-
 
7050
      }
-
 
7051
 
-
 
7052
      /**
-
 
7053
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7054
       */
-
 
7055
      public static _Fields findByName(String name) {
-
 
7056
        return byName.get(name);
-
 
7057
      }
-
 
7058
 
-
 
7059
      private final short _thriftId;
-
 
7060
      private final String _fieldName;
-
 
7061
 
-
 
7062
      _Fields(short thriftId, String fieldName) {
-
 
7063
        _thriftId = thriftId;
-
 
7064
        _fieldName = fieldName;
-
 
7065
      }
-
 
7066
 
-
 
7067
      public short getThriftFieldId() {
-
 
7068
        return _thriftId;
-
 
7069
      }
-
 
7070
 
-
 
7071
      public String getFieldName() {
-
 
7072
        return _fieldName;
-
 
7073
      }
-
 
7074
    }
-
 
7075
 
-
 
7076
    // isset id assignments
-
 
7077
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
7078
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7079
 
-
 
7080
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7081
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
-
 
7082
          new FieldValueMetaData(TType.I64)));
-
 
7083
    }});
-
 
7084
 
-
 
7085
    static {
-
 
7086
      FieldMetaData.addStructMetaDataMap(emailTransactionInfoToUser_args.class, metaDataMap);
-
 
7087
    }
-
 
7088
 
-
 
7089
    public emailTransactionInfoToUser_args() {
-
 
7090
    }
-
 
7091
 
-
 
7092
    public emailTransactionInfoToUser_args(
-
 
7093
      long transactionId)
-
 
7094
    {
-
 
7095
      this();
-
 
7096
      this.transactionId = transactionId;
-
 
7097
      setTransactionIdIsSet(true);
-
 
7098
    }
-
 
7099
 
-
 
7100
    /**
-
 
7101
     * Performs a deep copy on <i>other</i>.
-
 
7102
     */
-
 
7103
    public emailTransactionInfoToUser_args(emailTransactionInfoToUser_args other) {
-
 
7104
      __isset_bit_vector.clear();
-
 
7105
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7106
      this.transactionId = other.transactionId;
-
 
7107
    }
-
 
7108
 
-
 
7109
    public emailTransactionInfoToUser_args deepCopy() {
-
 
7110
      return new emailTransactionInfoToUser_args(this);
-
 
7111
    }
-
 
7112
 
-
 
7113
    @Deprecated
-
 
7114
    public emailTransactionInfoToUser_args clone() {
-
 
7115
      return new emailTransactionInfoToUser_args(this);
-
 
7116
    }
-
 
7117
 
-
 
7118
    public long getTransactionId() {
-
 
7119
      return this.transactionId;
-
 
7120
    }
-
 
7121
 
-
 
7122
    public emailTransactionInfoToUser_args setTransactionId(long transactionId) {
-
 
7123
      this.transactionId = transactionId;
-
 
7124
      setTransactionIdIsSet(true);
-
 
7125
      return this;
-
 
7126
    }
-
 
7127
 
-
 
7128
    public void unsetTransactionId() {
-
 
7129
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
7130
    }
-
 
7131
 
-
 
7132
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
-
 
7133
    public boolean isSetTransactionId() {
-
 
7134
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
7135
    }
-
 
7136
 
-
 
7137
    public void setTransactionIdIsSet(boolean value) {
-
 
7138
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
7139
    }
-
 
7140
 
-
 
7141
    public void setFieldValue(_Fields field, Object value) {
-
 
7142
      switch (field) {
-
 
7143
      case TRANSACTION_ID:
-
 
7144
        if (value == null) {
-
 
7145
          unsetTransactionId();
-
 
7146
        } else {
-
 
7147
          setTransactionId((Long)value);
-
 
7148
        }
-
 
7149
        break;
-
 
7150
 
-
 
7151
      }
-
 
7152
    }
-
 
7153
 
-
 
7154
    public void setFieldValue(int fieldID, Object value) {
-
 
7155
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7156
    }
-
 
7157
 
-
 
7158
    public Object getFieldValue(_Fields field) {
-
 
7159
      switch (field) {
-
 
7160
      case TRANSACTION_ID:
-
 
7161
        return new Long(getTransactionId());
-
 
7162
 
-
 
7163
      }
-
 
7164
      throw new IllegalStateException();
-
 
7165
    }
-
 
7166
 
-
 
7167
    public Object getFieldValue(int fieldId) {
-
 
7168
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7169
    }
-
 
7170
 
-
 
7171
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7172
    public boolean isSet(_Fields field) {
-
 
7173
      switch (field) {
-
 
7174
      case TRANSACTION_ID:
-
 
7175
        return isSetTransactionId();
-
 
7176
      }
-
 
7177
      throw new IllegalStateException();
-
 
7178
    }
-
 
7179
 
-
 
7180
    public boolean isSet(int fieldID) {
-
 
7181
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7182
    }
-
 
7183
 
-
 
7184
    @Override
-
 
7185
    public boolean equals(Object that) {
-
 
7186
      if (that == null)
-
 
7187
        return false;
-
 
7188
      if (that instanceof emailTransactionInfoToUser_args)
-
 
7189
        return this.equals((emailTransactionInfoToUser_args)that);
-
 
7190
      return false;
-
 
7191
    }
-
 
7192
 
-
 
7193
    public boolean equals(emailTransactionInfoToUser_args that) {
-
 
7194
      if (that == null)
-
 
7195
        return false;
-
 
7196
 
-
 
7197
      boolean this_present_transactionId = true;
-
 
7198
      boolean that_present_transactionId = true;
-
 
7199
      if (this_present_transactionId || that_present_transactionId) {
-
 
7200
        if (!(this_present_transactionId && that_present_transactionId))
-
 
7201
          return false;
-
 
7202
        if (this.transactionId != that.transactionId)
-
 
7203
          return false;
-
 
7204
      }
-
 
7205
 
-
 
7206
      return true;
-
 
7207
    }
-
 
7208
 
-
 
7209
    @Override
-
 
7210
    public int hashCode() {
-
 
7211
      return 0;
-
 
7212
    }
-
 
7213
 
-
 
7214
    public int compareTo(emailTransactionInfoToUser_args other) {
-
 
7215
      if (!getClass().equals(other.getClass())) {
-
 
7216
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7217
      }
-
 
7218
 
-
 
7219
      int lastComparison = 0;
-
 
7220
      emailTransactionInfoToUser_args typedOther = (emailTransactionInfoToUser_args)other;
-
 
7221
 
-
 
7222
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
-
 
7223
      if (lastComparison != 0) {
-
 
7224
        return lastComparison;
-
 
7225
      }
-
 
7226
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
7227
      if (lastComparison != 0) {
-
 
7228
        return lastComparison;
-
 
7229
      }
-
 
7230
      return 0;
-
 
7231
    }
-
 
7232
 
-
 
7233
    public void read(TProtocol iprot) throws TException {
-
 
7234
      TField field;
-
 
7235
      iprot.readStructBegin();
-
 
7236
      while (true)
-
 
7237
      {
-
 
7238
        field = iprot.readFieldBegin();
-
 
7239
        if (field.type == TType.STOP) { 
-
 
7240
          break;
-
 
7241
        }
-
 
7242
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7243
        if (fieldId == null) {
-
 
7244
          TProtocolUtil.skip(iprot, field.type);
-
 
7245
        } else {
-
 
7246
          switch (fieldId) {
-
 
7247
            case TRANSACTION_ID:
-
 
7248
              if (field.type == TType.I64) {
-
 
7249
                this.transactionId = iprot.readI64();
-
 
7250
                setTransactionIdIsSet(true);
-
 
7251
              } else { 
-
 
7252
                TProtocolUtil.skip(iprot, field.type);
-
 
7253
              }
-
 
7254
              break;
-
 
7255
          }
-
 
7256
          iprot.readFieldEnd();
-
 
7257
        }
-
 
7258
      }
-
 
7259
      iprot.readStructEnd();
-
 
7260
      validate();
-
 
7261
    }
-
 
7262
 
-
 
7263
    public void write(TProtocol oprot) throws TException {
-
 
7264
      validate();
-
 
7265
 
-
 
7266
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7267
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
7268
      oprot.writeI64(this.transactionId);
-
 
7269
      oprot.writeFieldEnd();
-
 
7270
      oprot.writeFieldStop();
-
 
7271
      oprot.writeStructEnd();
-
 
7272
    }
-
 
7273
 
-
 
7274
    @Override
-
 
7275
    public String toString() {
-
 
7276
      StringBuilder sb = new StringBuilder("emailTransactionInfoToUser_args(");
-
 
7277
      boolean first = true;
-
 
7278
 
-
 
7279
      sb.append("transactionId:");
-
 
7280
      sb.append(this.transactionId);
-
 
7281
      first = false;
-
 
7282
      sb.append(")");
-
 
7283
      return sb.toString();
-
 
7284
    }
-
 
7285
 
-
 
7286
    public void validate() throws TException {
-
 
7287
      // check for required fields
-
 
7288
    }
-
 
7289
 
-
 
7290
  }
-
 
7291
 
-
 
7292
  public static class emailTransactionInfoToUser_result implements TBase<emailTransactionInfoToUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<emailTransactionInfoToUser_result>   {
-
 
7293
    private static final TStruct STRUCT_DESC = new TStruct("emailTransactionInfoToUser_result");
-
 
7294
 
-
 
7295
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
7296
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
7297
 
-
 
7298
    private boolean success;
-
 
7299
    private TransactionServiceException ex;
-
 
7300
 
-
 
7301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7302
    public enum _Fields implements TFieldIdEnum {
-
 
7303
      SUCCESS((short)0, "success"),
-
 
7304
      EX((short)1, "ex");
-
 
7305
 
-
 
7306
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7308
 
-
 
7309
      static {
-
 
7310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7311
          byId.put((int)field._thriftId, field);
-
 
7312
          byName.put(field.getFieldName(), field);
-
 
7313
        }
-
 
7314
      }
-
 
7315
 
-
 
7316
      /**
-
 
7317
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7318
       */
-
 
7319
      public static _Fields findByThriftId(int fieldId) {
-
 
7320
        return byId.get(fieldId);
-
 
7321
      }
-
 
7322
 
-
 
7323
      /**
-
 
7324
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7325
       * if it is not found.
-
 
7326
       */
-
 
7327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7328
        _Fields fields = findByThriftId(fieldId);
-
 
7329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7330
        return fields;
-
 
7331
      }
-
 
7332
 
-
 
7333
      /**
-
 
7334
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7335
       */
-
 
7336
      public static _Fields findByName(String name) {
-
 
7337
        return byName.get(name);
-
 
7338
      }
-
 
7339
 
-
 
7340
      private final short _thriftId;
-
 
7341
      private final String _fieldName;
-
 
7342
 
-
 
7343
      _Fields(short thriftId, String fieldName) {
-
 
7344
        _thriftId = thriftId;
-
 
7345
        _fieldName = fieldName;
-
 
7346
      }
-
 
7347
 
-
 
7348
      public short getThriftFieldId() {
-
 
7349
        return _thriftId;
-
 
7350
      }
-
 
7351
 
-
 
7352
      public String getFieldName() {
-
 
7353
        return _fieldName;
-
 
7354
      }
-
 
7355
    }
-
 
7356
 
-
 
7357
    // isset id assignments
-
 
7358
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
7359
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7360
 
-
 
7361
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7362
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7363
          new FieldValueMetaData(TType.BOOL)));
-
 
7364
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
7365
          new FieldValueMetaData(TType.STRUCT)));
-
 
7366
    }});
-
 
7367
 
-
 
7368
    static {
-
 
7369
      FieldMetaData.addStructMetaDataMap(emailTransactionInfoToUser_result.class, metaDataMap);
-
 
7370
    }
-
 
7371
 
-
 
7372
    public emailTransactionInfoToUser_result() {
-
 
7373
    }
-
 
7374
 
-
 
7375
    public emailTransactionInfoToUser_result(
-
 
7376
      boolean success,
-
 
7377
      TransactionServiceException ex)
-
 
7378
    {
-
 
7379
      this();
-
 
7380
      this.success = success;
-
 
7381
      setSuccessIsSet(true);
-
 
7382
      this.ex = ex;
-
 
7383
    }
-
 
7384
 
-
 
7385
    /**
-
 
7386
     * Performs a deep copy on <i>other</i>.
-
 
7387
     */
-
 
7388
    public emailTransactionInfoToUser_result(emailTransactionInfoToUser_result other) {
-
 
7389
      __isset_bit_vector.clear();
-
 
7390
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7391
      this.success = other.success;
-
 
7392
      if (other.isSetEx()) {
-
 
7393
        this.ex = new TransactionServiceException(other.ex);
-
 
7394
      }
-
 
7395
    }
-
 
7396
 
-
 
7397
    public emailTransactionInfoToUser_result deepCopy() {
-
 
7398
      return new emailTransactionInfoToUser_result(this);
-
 
7399
    }
-
 
7400
 
-
 
7401
    @Deprecated
-
 
7402
    public emailTransactionInfoToUser_result clone() {
-
 
7403
      return new emailTransactionInfoToUser_result(this);
-
 
7404
    }
-
 
7405
 
-
 
7406
    public boolean isSuccess() {
-
 
7407
      return this.success;
-
 
7408
    }
-
 
7409
 
-
 
7410
    public emailTransactionInfoToUser_result setSuccess(boolean success) {
-
 
7411
      this.success = success;
-
 
7412
      setSuccessIsSet(true);
-
 
7413
      return this;
-
 
7414
    }
-
 
7415
 
-
 
7416
    public void unsetSuccess() {
-
 
7417
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
7418
    }
-
 
7419
 
-
 
7420
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7421
    public boolean isSetSuccess() {
-
 
7422
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
7423
    }
-
 
7424
 
-
 
7425
    public void setSuccessIsSet(boolean value) {
-
 
7426
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
7427
    }
-
 
7428
 
-
 
7429
    public TransactionServiceException getEx() {
-
 
7430
      return this.ex;
-
 
7431
    }
-
 
7432
 
-
 
7433
    public emailTransactionInfoToUser_result setEx(TransactionServiceException ex) {
-
 
7434
      this.ex = ex;
-
 
7435
      return this;
-
 
7436
    }
-
 
7437
 
-
 
7438
    public void unsetEx() {
-
 
7439
      this.ex = null;
-
 
7440
    }
-
 
7441
 
-
 
7442
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
7443
    public boolean isSetEx() {
-
 
7444
      return this.ex != null;
-
 
7445
    }
-
 
7446
 
-
 
7447
    public void setExIsSet(boolean value) {
-
 
7448
      if (!value) {
-
 
7449
        this.ex = null;
-
 
7450
      }
-
 
7451
    }
-
 
7452
 
-
 
7453
    public void setFieldValue(_Fields field, Object value) {
-
 
7454
      switch (field) {
-
 
7455
      case SUCCESS:
-
 
7456
        if (value == null) {
-
 
7457
          unsetSuccess();
-
 
7458
        } else {
-
 
7459
          setSuccess((Boolean)value);
-
 
7460
        }
-
 
7461
        break;
-
 
7462
 
-
 
7463
      case EX:
-
 
7464
        if (value == null) {
-
 
7465
          unsetEx();
-
 
7466
        } else {
-
 
7467
          setEx((TransactionServiceException)value);
-
 
7468
        }
-
 
7469
        break;
-
 
7470
 
-
 
7471
      }
-
 
7472
    }
-
 
7473
 
-
 
7474
    public void setFieldValue(int fieldID, Object value) {
-
 
7475
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7476
    }
-
 
7477
 
-
 
7478
    public Object getFieldValue(_Fields field) {
-
 
7479
      switch (field) {
-
 
7480
      case SUCCESS:
-
 
7481
        return new Boolean(isSuccess());
-
 
7482
 
-
 
7483
      case EX:
-
 
7484
        return getEx();
-
 
7485
 
-
 
7486
      }
-
 
7487
      throw new IllegalStateException();
-
 
7488
    }
-
 
7489
 
-
 
7490
    public Object getFieldValue(int fieldId) {
-
 
7491
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7492
    }
-
 
7493
 
-
 
7494
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7495
    public boolean isSet(_Fields field) {
-
 
7496
      switch (field) {
-
 
7497
      case SUCCESS:
-
 
7498
        return isSetSuccess();
-
 
7499
      case EX:
-
 
7500
        return isSetEx();
-
 
7501
      }
-
 
7502
      throw new IllegalStateException();
-
 
7503
    }
-
 
7504
 
-
 
7505
    public boolean isSet(int fieldID) {
-
 
7506
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7507
    }
-
 
7508
 
-
 
7509
    @Override
-
 
7510
    public boolean equals(Object that) {
-
 
7511
      if (that == null)
-
 
7512
        return false;
-
 
7513
      if (that instanceof emailTransactionInfoToUser_result)
-
 
7514
        return this.equals((emailTransactionInfoToUser_result)that);
-
 
7515
      return false;
-
 
7516
    }
-
 
7517
 
-
 
7518
    public boolean equals(emailTransactionInfoToUser_result that) {
-
 
7519
      if (that == null)
-
 
7520
        return false;
-
 
7521
 
-
 
7522
      boolean this_present_success = true;
-
 
7523
      boolean that_present_success = true;
-
 
7524
      if (this_present_success || that_present_success) {
-
 
7525
        if (!(this_present_success && that_present_success))
-
 
7526
          return false;
-
 
7527
        if (this.success != that.success)
-
 
7528
          return false;
-
 
7529
      }
-
 
7530
 
-
 
7531
      boolean this_present_ex = true && this.isSetEx();
-
 
7532
      boolean that_present_ex = true && that.isSetEx();
-
 
7533
      if (this_present_ex || that_present_ex) {
-
 
7534
        if (!(this_present_ex && that_present_ex))
-
 
7535
          return false;
-
 
7536
        if (!this.ex.equals(that.ex))
-
 
7537
          return false;
-
 
7538
      }
-
 
7539
 
-
 
7540
      return true;
-
 
7541
    }
-
 
7542
 
-
 
7543
    @Override
-
 
7544
    public int hashCode() {
-
 
7545
      return 0;
-
 
7546
    }
-
 
7547
 
-
 
7548
    public int compareTo(emailTransactionInfoToUser_result other) {
-
 
7549
      if (!getClass().equals(other.getClass())) {
-
 
7550
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7551
      }
-
 
7552
 
-
 
7553
      int lastComparison = 0;
-
 
7554
      emailTransactionInfoToUser_result typedOther = (emailTransactionInfoToUser_result)other;
-
 
7555
 
-
 
7556
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
7557
      if (lastComparison != 0) {
-
 
7558
        return lastComparison;
-
 
7559
      }
-
 
7560
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
7561
      if (lastComparison != 0) {
-
 
7562
        return lastComparison;
-
 
7563
      }
-
 
7564
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
7565
      if (lastComparison != 0) {
-
 
7566
        return lastComparison;
-
 
7567
      }
-
 
7568
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
7569
      if (lastComparison != 0) {
-
 
7570
        return lastComparison;
-
 
7571
      }
-
 
7572
      return 0;
-
 
7573
    }
-
 
7574
 
-
 
7575
    public void read(TProtocol iprot) throws TException {
-
 
7576
      TField field;
-
 
7577
      iprot.readStructBegin();
-
 
7578
      while (true)
-
 
7579
      {
-
 
7580
        field = iprot.readFieldBegin();
-
 
7581
        if (field.type == TType.STOP) { 
-
 
7582
          break;
-
 
7583
        }
-
 
7584
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7585
        if (fieldId == null) {
-
 
7586
          TProtocolUtil.skip(iprot, field.type);
-
 
7587
        } else {
-
 
7588
          switch (fieldId) {
-
 
7589
            case SUCCESS:
-
 
7590
              if (field.type == TType.BOOL) {
-
 
7591
                this.success = iprot.readBool();
-
 
7592
                setSuccessIsSet(true);
-
 
7593
              } else { 
-
 
7594
                TProtocolUtil.skip(iprot, field.type);
-
 
7595
              }
-
 
7596
              break;
-
 
7597
            case EX:
-
 
7598
              if (field.type == TType.STRUCT) {
-
 
7599
                this.ex = new TransactionServiceException();
-
 
7600
                this.ex.read(iprot);
-
 
7601
              } else { 
-
 
7602
                TProtocolUtil.skip(iprot, field.type);
-
 
7603
              }
-
 
7604
              break;
-
 
7605
          }
-
 
7606
          iprot.readFieldEnd();
-
 
7607
        }
-
 
7608
      }
-
 
7609
      iprot.readStructEnd();
-
 
7610
      validate();
-
 
7611
    }
-
 
7612
 
-
 
7613
    public void write(TProtocol oprot) throws TException {
-
 
7614
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7615
 
-
 
7616
      if (this.isSetSuccess()) {
-
 
7617
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7618
        oprot.writeBool(this.success);
-
 
7619
        oprot.writeFieldEnd();
-
 
7620
      } else if (this.isSetEx()) {
-
 
7621
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
7622
        this.ex.write(oprot);
-
 
7623
        oprot.writeFieldEnd();
-
 
7624
      }
-
 
7625
      oprot.writeFieldStop();
-
 
7626
      oprot.writeStructEnd();
-
 
7627
    }
-
 
7628
 
-
 
7629
    @Override
-
 
7630
    public String toString() {
-
 
7631
      StringBuilder sb = new StringBuilder("emailTransactionInfoToUser_result(");
-
 
7632
      boolean first = true;
-
 
7633
 
-
 
7634
      sb.append("success:");
-
 
7635
      sb.append(this.success);
-
 
7636
      first = false;
-
 
7637
      if (!first) sb.append(", ");
-
 
7638
      sb.append("ex:");
-
 
7639
      if (this.ex == null) {
-
 
7640
        sb.append("null");
-
 
7641
      } else {
-
 
7642
        sb.append(this.ex);
-
 
7643
      }
-
 
7644
      first = false;
-
 
7645
      sb.append(")");
-
 
7646
      return sb.toString();
-
 
7647
    }
-
 
7648
 
-
 
7649
    public void validate() throws TException {
-
 
7650
      // check for required fields
-
 
7651
    }
-
 
7652
 
-
 
7653
  }
-
 
7654
 
6798
  public static class getAllOrders_args implements TBase<getAllOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOrders_args>   {
7655
  public static class getAllOrders_args implements TBase<getAllOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOrders_args>   {
6799
    private static final TStruct STRUCT_DESC = new TStruct("getAllOrders_args");
7656
    private static final TStruct STRUCT_DESC = new TStruct("getAllOrders_args");
6800
 
7657
 
6801
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
7658
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
6802
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
7659
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
Line 8673... Line 9530...
8673
      // check for required fields
9530
      // check for required fields
8674
    }
9531
    }
8675
 
9532
 
8676
  }
9533
  }
8677
 
9534
 
-
 
9535
  public static class getReturnableOrdersForCustomer_args implements TBase<getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getReturnableOrdersForCustomer_args>   {
-
 
9536
    private static final TStruct STRUCT_DESC = new TStruct("getReturnableOrdersForCustomer_args");
-
 
9537
 
-
 
9538
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)1);
-
 
9539
    private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)2);
-
 
9540
 
-
 
9541
    private long customer_id;
-
 
9542
    private long limit;
-
 
9543
 
-
 
9544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9545
    public enum _Fields implements TFieldIdEnum {
-
 
9546
      CUSTOMER_ID((short)1, "customer_id"),
-
 
9547
      LIMIT((short)2, "limit");
-
 
9548
 
-
 
9549
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9550
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9551
 
-
 
9552
      static {
-
 
9553
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9554
          byId.put((int)field._thriftId, field);
-
 
9555
          byName.put(field.getFieldName(), field);
-
 
9556
        }
-
 
9557
      }
-
 
9558
 
-
 
9559
      /**
-
 
9560
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9561
       */
-
 
9562
      public static _Fields findByThriftId(int fieldId) {
-
 
9563
        return byId.get(fieldId);
-
 
9564
      }
-
 
9565
 
-
 
9566
      /**
-
 
9567
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9568
       * if it is not found.
-
 
9569
       */
-
 
9570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9571
        _Fields fields = findByThriftId(fieldId);
-
 
9572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9573
        return fields;
-
 
9574
      }
-
 
9575
 
-
 
9576
      /**
-
 
9577
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9578
       */
-
 
9579
      public static _Fields findByName(String name) {
-
 
9580
        return byName.get(name);
-
 
9581
      }
-
 
9582
 
-
 
9583
      private final short _thriftId;
-
 
9584
      private final String _fieldName;
-
 
9585
 
-
 
9586
      _Fields(short thriftId, String fieldName) {
-
 
9587
        _thriftId = thriftId;
-
 
9588
        _fieldName = fieldName;
-
 
9589
      }
-
 
9590
 
-
 
9591
      public short getThriftFieldId() {
-
 
9592
        return _thriftId;
-
 
9593
      }
-
 
9594
 
-
 
9595
      public String getFieldName() {
-
 
9596
        return _fieldName;
-
 
9597
      }
-
 
9598
    }
-
 
9599
 
-
 
9600
    // isset id assignments
-
 
9601
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
-
 
9602
    private static final int __LIMIT_ISSET_ID = 1;
-
 
9603
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
9604
 
-
 
9605
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9606
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
-
 
9607
          new FieldValueMetaData(TType.I64)));
-
 
9608
      put(_Fields.LIMIT, new FieldMetaData("limit", TFieldRequirementType.DEFAULT, 
-
 
9609
          new FieldValueMetaData(TType.I64)));
-
 
9610
    }});
-
 
9611
 
-
 
9612
    static {
-
 
9613
      FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_args.class, metaDataMap);
-
 
9614
    }
-
 
9615
 
-
 
9616
    public getReturnableOrdersForCustomer_args() {
-
 
9617
    }
-
 
9618
 
-
 
9619
    public getReturnableOrdersForCustomer_args(
-
 
9620
      long customer_id,
-
 
9621
      long limit)
-
 
9622
    {
-
 
9623
      this();
-
 
9624
      this.customer_id = customer_id;
-
 
9625
      setCustomer_idIsSet(true);
-
 
9626
      this.limit = limit;
-
 
9627
      setLimitIsSet(true);
-
 
9628
    }
-
 
9629
 
-
 
9630
    /**
-
 
9631
     * Performs a deep copy on <i>other</i>.
-
 
9632
     */
-
 
9633
    public getReturnableOrdersForCustomer_args(getReturnableOrdersForCustomer_args other) {
-
 
9634
      __isset_bit_vector.clear();
-
 
9635
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9636
      this.customer_id = other.customer_id;
-
 
9637
      this.limit = other.limit;
-
 
9638
    }
-
 
9639
 
-
 
9640
    public getReturnableOrdersForCustomer_args deepCopy() {
-
 
9641
      return new getReturnableOrdersForCustomer_args(this);
-
 
9642
    }
-
 
9643
 
-
 
9644
    @Deprecated
-
 
9645
    public getReturnableOrdersForCustomer_args clone() {
-
 
9646
      return new getReturnableOrdersForCustomer_args(this);
-
 
9647
    }
-
 
9648
 
-
 
9649
    public long getCustomer_id() {
-
 
9650
      return this.customer_id;
-
 
9651
    }
-
 
9652
 
-
 
9653
    public getReturnableOrdersForCustomer_args setCustomer_id(long customer_id) {
-
 
9654
      this.customer_id = customer_id;
-
 
9655
      setCustomer_idIsSet(true);
-
 
9656
      return this;
-
 
9657
    }
-
 
9658
 
-
 
9659
    public void unsetCustomer_id() {
-
 
9660
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
-
 
9661
    }
-
 
9662
 
-
 
9663
    /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
-
 
9664
    public boolean isSetCustomer_id() {
-
 
9665
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
-
 
9666
    }
-
 
9667
 
-
 
9668
    public void setCustomer_idIsSet(boolean value) {
-
 
9669
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
-
 
9670
    }
-
 
9671
 
-
 
9672
    public long getLimit() {
-
 
9673
      return this.limit;
-
 
9674
    }
-
 
9675
 
-
 
9676
    public getReturnableOrdersForCustomer_args setLimit(long limit) {
-
 
9677
      this.limit = limit;
-
 
9678
      setLimitIsSet(true);
-
 
9679
      return this;
-
 
9680
    }
-
 
9681
 
-
 
9682
    public void unsetLimit() {
-
 
9683
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
9684
    }
-
 
9685
 
-
 
9686
    /** Returns true if field limit is set (has been asigned a value) and false otherwise */
-
 
9687
    public boolean isSetLimit() {
-
 
9688
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
9689
    }
-
 
9690
 
-
 
9691
    public void setLimitIsSet(boolean value) {
-
 
9692
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
9693
    }
-
 
9694
 
-
 
9695
    public void setFieldValue(_Fields field, Object value) {
-
 
9696
      switch (field) {
-
 
9697
      case CUSTOMER_ID:
-
 
9698
        if (value == null) {
-
 
9699
          unsetCustomer_id();
-
 
9700
        } else {
-
 
9701
          setCustomer_id((Long)value);
-
 
9702
        }
-
 
9703
        break;
-
 
9704
 
-
 
9705
      case LIMIT:
-
 
9706
        if (value == null) {
-
 
9707
          unsetLimit();
-
 
9708
        } else {
-
 
9709
          setLimit((Long)value);
-
 
9710
        }
-
 
9711
        break;
-
 
9712
 
-
 
9713
      }
-
 
9714
    }
-
 
9715
 
-
 
9716
    public void setFieldValue(int fieldID, Object value) {
-
 
9717
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9718
    }
-
 
9719
 
-
 
9720
    public Object getFieldValue(_Fields field) {
-
 
9721
      switch (field) {
-
 
9722
      case CUSTOMER_ID:
-
 
9723
        return new Long(getCustomer_id());
-
 
9724
 
-
 
9725
      case LIMIT:
-
 
9726
        return new Long(getLimit());
-
 
9727
 
-
 
9728
      }
-
 
9729
      throw new IllegalStateException();
-
 
9730
    }
-
 
9731
 
-
 
9732
    public Object getFieldValue(int fieldId) {
-
 
9733
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9734
    }
-
 
9735
 
-
 
9736
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9737
    public boolean isSet(_Fields field) {
-
 
9738
      switch (field) {
-
 
9739
      case CUSTOMER_ID:
-
 
9740
        return isSetCustomer_id();
-
 
9741
      case LIMIT:
-
 
9742
        return isSetLimit();
-
 
9743
      }
-
 
9744
      throw new IllegalStateException();
-
 
9745
    }
-
 
9746
 
-
 
9747
    public boolean isSet(int fieldID) {
-
 
9748
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9749
    }
-
 
9750
 
-
 
9751
    @Override
-
 
9752
    public boolean equals(Object that) {
-
 
9753
      if (that == null)
-
 
9754
        return false;
-
 
9755
      if (that instanceof getReturnableOrdersForCustomer_args)
-
 
9756
        return this.equals((getReturnableOrdersForCustomer_args)that);
-
 
9757
      return false;
-
 
9758
    }
-
 
9759
 
-
 
9760
    public boolean equals(getReturnableOrdersForCustomer_args that) {
-
 
9761
      if (that == null)
-
 
9762
        return false;
-
 
9763
 
-
 
9764
      boolean this_present_customer_id = true;
-
 
9765
      boolean that_present_customer_id = true;
-
 
9766
      if (this_present_customer_id || that_present_customer_id) {
-
 
9767
        if (!(this_present_customer_id && that_present_customer_id))
-
 
9768
          return false;
-
 
9769
        if (this.customer_id != that.customer_id)
-
 
9770
          return false;
-
 
9771
      }
-
 
9772
 
-
 
9773
      boolean this_present_limit = true;
-
 
9774
      boolean that_present_limit = true;
-
 
9775
      if (this_present_limit || that_present_limit) {
-
 
9776
        if (!(this_present_limit && that_present_limit))
-
 
9777
          return false;
-
 
9778
        if (this.limit != that.limit)
-
 
9779
          return false;
-
 
9780
      }
-
 
9781
 
-
 
9782
      return true;
-
 
9783
    }
-
 
9784
 
-
 
9785
    @Override
-
 
9786
    public int hashCode() {
-
 
9787
      return 0;
-
 
9788
    }
-
 
9789
 
-
 
9790
    public int compareTo(getReturnableOrdersForCustomer_args other) {
-
 
9791
      if (!getClass().equals(other.getClass())) {
-
 
9792
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9793
      }
-
 
9794
 
-
 
9795
      int lastComparison = 0;
-
 
9796
      getReturnableOrdersForCustomer_args typedOther = (getReturnableOrdersForCustomer_args)other;
-
 
9797
 
-
 
9798
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(isSetCustomer_id());
-
 
9799
      if (lastComparison != 0) {
-
 
9800
        return lastComparison;
-
 
9801
      }
-
 
9802
      lastComparison = TBaseHelper.compareTo(customer_id, typedOther.customer_id);
-
 
9803
      if (lastComparison != 0) {
-
 
9804
        return lastComparison;
-
 
9805
      }
-
 
9806
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(isSetLimit());
-
 
9807
      if (lastComparison != 0) {
-
 
9808
        return lastComparison;
-
 
9809
      }
-
 
9810
      lastComparison = TBaseHelper.compareTo(limit, typedOther.limit);
-
 
9811
      if (lastComparison != 0) {
-
 
9812
        return lastComparison;
-
 
9813
      }
-
 
9814
      return 0;
-
 
9815
    }
-
 
9816
 
-
 
9817
    public void read(TProtocol iprot) throws TException {
-
 
9818
      TField field;
-
 
9819
      iprot.readStructBegin();
-
 
9820
      while (true)
-
 
9821
      {
-
 
9822
        field = iprot.readFieldBegin();
-
 
9823
        if (field.type == TType.STOP) { 
-
 
9824
          break;
-
 
9825
        }
-
 
9826
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9827
        if (fieldId == null) {
-
 
9828
          TProtocolUtil.skip(iprot, field.type);
-
 
9829
        } else {
-
 
9830
          switch (fieldId) {
-
 
9831
            case CUSTOMER_ID:
-
 
9832
              if (field.type == TType.I64) {
-
 
9833
                this.customer_id = iprot.readI64();
-
 
9834
                setCustomer_idIsSet(true);
-
 
9835
              } else { 
-
 
9836
                TProtocolUtil.skip(iprot, field.type);
-
 
9837
              }
-
 
9838
              break;
-
 
9839
            case LIMIT:
-
 
9840
              if (field.type == TType.I64) {
-
 
9841
                this.limit = iprot.readI64();
-
 
9842
                setLimitIsSet(true);
-
 
9843
              } else { 
-
 
9844
                TProtocolUtil.skip(iprot, field.type);
-
 
9845
              }
-
 
9846
              break;
-
 
9847
          }
-
 
9848
          iprot.readFieldEnd();
-
 
9849
        }
-
 
9850
      }
-
 
9851
      iprot.readStructEnd();
-
 
9852
      validate();
-
 
9853
    }
-
 
9854
 
-
 
9855
    public void write(TProtocol oprot) throws TException {
-
 
9856
      validate();
-
 
9857
 
-
 
9858
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9859
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
9860
      oprot.writeI64(this.customer_id);
-
 
9861
      oprot.writeFieldEnd();
-
 
9862
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
9863
      oprot.writeI64(this.limit);
-
 
9864
      oprot.writeFieldEnd();
-
 
9865
      oprot.writeFieldStop();
-
 
9866
      oprot.writeStructEnd();
-
 
9867
    }
-
 
9868
 
-
 
9869
    @Override
-
 
9870
    public String toString() {
-
 
9871
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_args(");
-
 
9872
      boolean first = true;
-
 
9873
 
-
 
9874
      sb.append("customer_id:");
-
 
9875
      sb.append(this.customer_id);
-
 
9876
      first = false;
-
 
9877
      if (!first) sb.append(", ");
-
 
9878
      sb.append("limit:");
-
 
9879
      sb.append(this.limit);
-
 
9880
      first = false;
-
 
9881
      sb.append(")");
-
 
9882
      return sb.toString();
-
 
9883
    }
-
 
9884
 
-
 
9885
    public void validate() throws TException {
-
 
9886
      // check for required fields
-
 
9887
    }
-
 
9888
 
-
 
9889
  }
-
 
9890
 
-
 
9891
  public static class getReturnableOrdersForCustomer_result implements TBase<getReturnableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getReturnableOrdersForCustomer_result>   {
-
 
9892
    private static final TStruct STRUCT_DESC = new TStruct("getReturnableOrdersForCustomer_result");
-
 
9893
 
-
 
9894
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
9895
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
9896
 
-
 
9897
    private List<Long> success;
-
 
9898
    private TransactionServiceException ex;
-
 
9899
 
-
 
9900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9901
    public enum _Fields implements TFieldIdEnum {
-
 
9902
      SUCCESS((short)0, "success"),
-
 
9903
      EX((short)1, "ex");
-
 
9904
 
-
 
9905
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9907
 
-
 
9908
      static {
-
 
9909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9910
          byId.put((int)field._thriftId, field);
-
 
9911
          byName.put(field.getFieldName(), field);
-
 
9912
        }
-
 
9913
      }
-
 
9914
 
-
 
9915
      /**
-
 
9916
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9917
       */
-
 
9918
      public static _Fields findByThriftId(int fieldId) {
-
 
9919
        return byId.get(fieldId);
-
 
9920
      }
-
 
9921
 
-
 
9922
      /**
-
 
9923
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9924
       * if it is not found.
-
 
9925
       */
-
 
9926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9927
        _Fields fields = findByThriftId(fieldId);
-
 
9928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9929
        return fields;
-
 
9930
      }
-
 
9931
 
-
 
9932
      /**
-
 
9933
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9934
       */
-
 
9935
      public static _Fields findByName(String name) {
-
 
9936
        return byName.get(name);
-
 
9937
      }
-
 
9938
 
-
 
9939
      private final short _thriftId;
-
 
9940
      private final String _fieldName;
-
 
9941
 
-
 
9942
      _Fields(short thriftId, String fieldName) {
-
 
9943
        _thriftId = thriftId;
-
 
9944
        _fieldName = fieldName;
-
 
9945
      }
-
 
9946
 
-
 
9947
      public short getThriftFieldId() {
-
 
9948
        return _thriftId;
-
 
9949
      }
-
 
9950
 
-
 
9951
      public String getFieldName() {
-
 
9952
        return _fieldName;
-
 
9953
      }
-
 
9954
    }
-
 
9955
 
-
 
9956
    // isset id assignments
-
 
9957
 
-
 
9958
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9959
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9960
          new ListMetaData(TType.LIST, 
-
 
9961
              new FieldValueMetaData(TType.I64))));
-
 
9962
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
9963
          new FieldValueMetaData(TType.STRUCT)));
-
 
9964
    }});
-
 
9965
 
-
 
9966
    static {
-
 
9967
      FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_result.class, metaDataMap);
-
 
9968
    }
-
 
9969
 
-
 
9970
    public getReturnableOrdersForCustomer_result() {
-
 
9971
    }
-
 
9972
 
-
 
9973
    public getReturnableOrdersForCustomer_result(
-
 
9974
      List<Long> success,
-
 
9975
      TransactionServiceException ex)
-
 
9976
    {
-
 
9977
      this();
-
 
9978
      this.success = success;
-
 
9979
      this.ex = ex;
-
 
9980
    }
-
 
9981
 
-
 
9982
    /**
-
 
9983
     * Performs a deep copy on <i>other</i>.
-
 
9984
     */
-
 
9985
    public getReturnableOrdersForCustomer_result(getReturnableOrdersForCustomer_result other) {
-
 
9986
      if (other.isSetSuccess()) {
-
 
9987
        List<Long> __this__success = new ArrayList<Long>();
-
 
9988
        for (Long other_element : other.success) {
-
 
9989
          __this__success.add(other_element);
-
 
9990
        }
-
 
9991
        this.success = __this__success;
-
 
9992
      }
-
 
9993
      if (other.isSetEx()) {
-
 
9994
        this.ex = new TransactionServiceException(other.ex);
-
 
9995
      }
-
 
9996
    }
-
 
9997
 
-
 
9998
    public getReturnableOrdersForCustomer_result deepCopy() {
-
 
9999
      return new getReturnableOrdersForCustomer_result(this);
-
 
10000
    }
-
 
10001
 
-
 
10002
    @Deprecated
-
 
10003
    public getReturnableOrdersForCustomer_result clone() {
-
 
10004
      return new getReturnableOrdersForCustomer_result(this);
-
 
10005
    }
-
 
10006
 
-
 
10007
    public int getSuccessSize() {
-
 
10008
      return (this.success == null) ? 0 : this.success.size();
-
 
10009
    }
-
 
10010
 
-
 
10011
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
10012
      return (this.success == null) ? null : this.success.iterator();
-
 
10013
    }
-
 
10014
 
-
 
10015
    public void addToSuccess(long elem) {
-
 
10016
      if (this.success == null) {
-
 
10017
        this.success = new ArrayList<Long>();
-
 
10018
      }
-
 
10019
      this.success.add(elem);
-
 
10020
    }
-
 
10021
 
-
 
10022
    public List<Long> getSuccess() {
-
 
10023
      return this.success;
-
 
10024
    }
-
 
10025
 
-
 
10026
    public getReturnableOrdersForCustomer_result setSuccess(List<Long> success) {
-
 
10027
      this.success = success;
-
 
10028
      return this;
-
 
10029
    }
-
 
10030
 
-
 
10031
    public void unsetSuccess() {
-
 
10032
      this.success = null;
-
 
10033
    }
-
 
10034
 
-
 
10035
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
10036
    public boolean isSetSuccess() {
-
 
10037
      return this.success != null;
-
 
10038
    }
-
 
10039
 
-
 
10040
    public void setSuccessIsSet(boolean value) {
-
 
10041
      if (!value) {
-
 
10042
        this.success = null;
-
 
10043
      }
-
 
10044
    }
-
 
10045
 
-
 
10046
    public TransactionServiceException getEx() {
-
 
10047
      return this.ex;
-
 
10048
    }
-
 
10049
 
-
 
10050
    public getReturnableOrdersForCustomer_result setEx(TransactionServiceException ex) {
-
 
10051
      this.ex = ex;
-
 
10052
      return this;
-
 
10053
    }
-
 
10054
 
-
 
10055
    public void unsetEx() {
-
 
10056
      this.ex = null;
-
 
10057
    }
-
 
10058
 
-
 
10059
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
10060
    public boolean isSetEx() {
-
 
10061
      return this.ex != null;
-
 
10062
    }
-
 
10063
 
-
 
10064
    public void setExIsSet(boolean value) {
-
 
10065
      if (!value) {
-
 
10066
        this.ex = null;
-
 
10067
      }
-
 
10068
    }
-
 
10069
 
-
 
10070
    public void setFieldValue(_Fields field, Object value) {
-
 
10071
      switch (field) {
-
 
10072
      case SUCCESS:
-
 
10073
        if (value == null) {
-
 
10074
          unsetSuccess();
-
 
10075
        } else {
-
 
10076
          setSuccess((List<Long>)value);
-
 
10077
        }
-
 
10078
        break;
-
 
10079
 
-
 
10080
      case EX:
-
 
10081
        if (value == null) {
-
 
10082
          unsetEx();
-
 
10083
        } else {
-
 
10084
          setEx((TransactionServiceException)value);
-
 
10085
        }
-
 
10086
        break;
-
 
10087
 
-
 
10088
      }
-
 
10089
    }
-
 
10090
 
-
 
10091
    public void setFieldValue(int fieldID, Object value) {
-
 
10092
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10093
    }
-
 
10094
 
-
 
10095
    public Object getFieldValue(_Fields field) {
-
 
10096
      switch (field) {
-
 
10097
      case SUCCESS:
-
 
10098
        return getSuccess();
-
 
10099
 
-
 
10100
      case EX:
-
 
10101
        return getEx();
-
 
10102
 
-
 
10103
      }
-
 
10104
      throw new IllegalStateException();
-
 
10105
    }
-
 
10106
 
-
 
10107
    public Object getFieldValue(int fieldId) {
-
 
10108
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10109
    }
-
 
10110
 
-
 
10111
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10112
    public boolean isSet(_Fields field) {
-
 
10113
      switch (field) {
-
 
10114
      case SUCCESS:
-
 
10115
        return isSetSuccess();
-
 
10116
      case EX:
-
 
10117
        return isSetEx();
-
 
10118
      }
-
 
10119
      throw new IllegalStateException();
-
 
10120
    }
-
 
10121
 
-
 
10122
    public boolean isSet(int fieldID) {
-
 
10123
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10124
    }
-
 
10125
 
-
 
10126
    @Override
-
 
10127
    public boolean equals(Object that) {
-
 
10128
      if (that == null)
-
 
10129
        return false;
-
 
10130
      if (that instanceof getReturnableOrdersForCustomer_result)
-
 
10131
        return this.equals((getReturnableOrdersForCustomer_result)that);
-
 
10132
      return false;
-
 
10133
    }
-
 
10134
 
-
 
10135
    public boolean equals(getReturnableOrdersForCustomer_result that) {
-
 
10136
      if (that == null)
-
 
10137
        return false;
-
 
10138
 
-
 
10139
      boolean this_present_success = true && this.isSetSuccess();
-
 
10140
      boolean that_present_success = true && that.isSetSuccess();
-
 
10141
      if (this_present_success || that_present_success) {
-
 
10142
        if (!(this_present_success && that_present_success))
-
 
10143
          return false;
-
 
10144
        if (!this.success.equals(that.success))
-
 
10145
          return false;
-
 
10146
      }
-
 
10147
 
-
 
10148
      boolean this_present_ex = true && this.isSetEx();
-
 
10149
      boolean that_present_ex = true && that.isSetEx();
-
 
10150
      if (this_present_ex || that_present_ex) {
-
 
10151
        if (!(this_present_ex && that_present_ex))
-
 
10152
          return false;
-
 
10153
        if (!this.ex.equals(that.ex))
-
 
10154
          return false;
-
 
10155
      }
-
 
10156
 
-
 
10157
      return true;
-
 
10158
    }
-
 
10159
 
-
 
10160
    @Override
-
 
10161
    public int hashCode() {
-
 
10162
      return 0;
-
 
10163
    }
-
 
10164
 
-
 
10165
    public int compareTo(getReturnableOrdersForCustomer_result other) {
-
 
10166
      if (!getClass().equals(other.getClass())) {
-
 
10167
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10168
      }
-
 
10169
 
-
 
10170
      int lastComparison = 0;
-
 
10171
      getReturnableOrdersForCustomer_result typedOther = (getReturnableOrdersForCustomer_result)other;
-
 
10172
 
-
 
10173
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
10174
      if (lastComparison != 0) {
-
 
10175
        return lastComparison;
-
 
10176
      }
-
 
10177
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
10178
      if (lastComparison != 0) {
-
 
10179
        return lastComparison;
-
 
10180
      }
-
 
10181
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
10182
      if (lastComparison != 0) {
-
 
10183
        return lastComparison;
-
 
10184
      }
-
 
10185
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
10186
      if (lastComparison != 0) {
-
 
10187
        return lastComparison;
-
 
10188
      }
-
 
10189
      return 0;
-
 
10190
    }
-
 
10191
 
-
 
10192
    public void read(TProtocol iprot) throws TException {
-
 
10193
      TField field;
-
 
10194
      iprot.readStructBegin();
-
 
10195
      while (true)
-
 
10196
      {
-
 
10197
        field = iprot.readFieldBegin();
-
 
10198
        if (field.type == TType.STOP) { 
-
 
10199
          break;
-
 
10200
        }
-
 
10201
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10202
        if (fieldId == null) {
-
 
10203
          TProtocolUtil.skip(iprot, field.type);
-
 
10204
        } else {
-
 
10205
          switch (fieldId) {
-
 
10206
            case SUCCESS:
-
 
10207
              if (field.type == TType.LIST) {
-
 
10208
                {
-
 
10209
                  TList _list24 = iprot.readListBegin();
-
 
10210
                  this.success = new ArrayList<Long>(_list24.size);
-
 
10211
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
10212
                  {
-
 
10213
                    long _elem26;
-
 
10214
                    _elem26 = iprot.readI64();
-
 
10215
                    this.success.add(_elem26);
-
 
10216
                  }
-
 
10217
                  iprot.readListEnd();
-
 
10218
                }
-
 
10219
              } else { 
-
 
10220
                TProtocolUtil.skip(iprot, field.type);
-
 
10221
              }
-
 
10222
              break;
-
 
10223
            case EX:
-
 
10224
              if (field.type == TType.STRUCT) {
-
 
10225
                this.ex = new TransactionServiceException();
-
 
10226
                this.ex.read(iprot);
-
 
10227
              } else { 
-
 
10228
                TProtocolUtil.skip(iprot, field.type);
-
 
10229
              }
-
 
10230
              break;
-
 
10231
          }
-
 
10232
          iprot.readFieldEnd();
-
 
10233
        }
-
 
10234
      }
-
 
10235
      iprot.readStructEnd();
-
 
10236
      validate();
-
 
10237
    }
-
 
10238
 
-
 
10239
    public void write(TProtocol oprot) throws TException {
-
 
10240
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10241
 
-
 
10242
      if (this.isSetSuccess()) {
-
 
10243
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10244
        {
-
 
10245
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
-
 
10246
          for (long _iter27 : this.success)
-
 
10247
          {
-
 
10248
            oprot.writeI64(_iter27);
-
 
10249
          }
-
 
10250
          oprot.writeListEnd();
-
 
10251
        }
-
 
10252
        oprot.writeFieldEnd();
-
 
10253
      } else if (this.isSetEx()) {
-
 
10254
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
10255
        this.ex.write(oprot);
-
 
10256
        oprot.writeFieldEnd();
-
 
10257
      }
-
 
10258
      oprot.writeFieldStop();
-
 
10259
      oprot.writeStructEnd();
-
 
10260
    }
-
 
10261
 
-
 
10262
    @Override
-
 
10263
    public String toString() {
-
 
10264
      StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_result(");
-
 
10265
      boolean first = true;
-
 
10266
 
-
 
10267
      sb.append("success:");
-
 
10268
      if (this.success == null) {
-
 
10269
        sb.append("null");
-
 
10270
      } else {
-
 
10271
        sb.append(this.success);
-
 
10272
      }
-
 
10273
      first = false;
-
 
10274
      if (!first) sb.append(", ");
-
 
10275
      sb.append("ex:");
-
 
10276
      if (this.ex == null) {
-
 
10277
        sb.append("null");
-
 
10278
      } else {
-
 
10279
        sb.append(this.ex);
-
 
10280
      }
-
 
10281
      first = false;
-
 
10282
      sb.append(")");
-
 
10283
      return sb.toString();
-
 
10284
    }
-
 
10285
 
-
 
10286
    public void validate() throws TException {
-
 
10287
      // check for required fields
-
 
10288
    }
-
 
10289
 
-
 
10290
  }
-
 
10291
 
-
 
10292
  public static class getCancellableOrdersForCustomer_args implements TBase<getCancellableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCancellableOrdersForCustomer_args>   {
-
 
10293
    private static final TStruct STRUCT_DESC = new TStruct("getCancellableOrdersForCustomer_args");
-
 
10294
 
-
 
10295
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)1);
-
 
10296
    private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)2);
-
 
10297
 
-
 
10298
    private long customer_id;
-
 
10299
    private long limit;
-
 
10300
 
-
 
10301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10302
    public enum _Fields implements TFieldIdEnum {
-
 
10303
      CUSTOMER_ID((short)1, "customer_id"),
-
 
10304
      LIMIT((short)2, "limit");
-
 
10305
 
-
 
10306
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10308
 
-
 
10309
      static {
-
 
10310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10311
          byId.put((int)field._thriftId, field);
-
 
10312
          byName.put(field.getFieldName(), field);
-
 
10313
        }
-
 
10314
      }
-
 
10315
 
-
 
10316
      /**
-
 
10317
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10318
       */
-
 
10319
      public static _Fields findByThriftId(int fieldId) {
-
 
10320
        return byId.get(fieldId);
-
 
10321
      }
-
 
10322
 
-
 
10323
      /**
-
 
10324
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10325
       * if it is not found.
-
 
10326
       */
-
 
10327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10328
        _Fields fields = findByThriftId(fieldId);
-
 
10329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10330
        return fields;
-
 
10331
      }
-
 
10332
 
-
 
10333
      /**
-
 
10334
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10335
       */
-
 
10336
      public static _Fields findByName(String name) {
-
 
10337
        return byName.get(name);
-
 
10338
      }
-
 
10339
 
-
 
10340
      private final short _thriftId;
-
 
10341
      private final String _fieldName;
-
 
10342
 
-
 
10343
      _Fields(short thriftId, String fieldName) {
-
 
10344
        _thriftId = thriftId;
-
 
10345
        _fieldName = fieldName;
-
 
10346
      }
-
 
10347
 
-
 
10348
      public short getThriftFieldId() {
-
 
10349
        return _thriftId;
-
 
10350
      }
-
 
10351
 
-
 
10352
      public String getFieldName() {
-
 
10353
        return _fieldName;
-
 
10354
      }
-
 
10355
    }
-
 
10356
 
-
 
10357
    // isset id assignments
-
 
10358
    private static final int __CUSTOMER_ID_ISSET_ID = 0;
-
 
10359
    private static final int __LIMIT_ISSET_ID = 1;
-
 
10360
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
10361
 
-
 
10362
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10363
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customer_id", TFieldRequirementType.DEFAULT, 
-
 
10364
          new FieldValueMetaData(TType.I64)));
-
 
10365
      put(_Fields.LIMIT, new FieldMetaData("limit", TFieldRequirementType.DEFAULT, 
-
 
10366
          new FieldValueMetaData(TType.I64)));
-
 
10367
    }});
-
 
10368
 
-
 
10369
    static {
-
 
10370
      FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_args.class, metaDataMap);
-
 
10371
    }
-
 
10372
 
-
 
10373
    public getCancellableOrdersForCustomer_args() {
-
 
10374
    }
-
 
10375
 
-
 
10376
    public getCancellableOrdersForCustomer_args(
-
 
10377
      long customer_id,
-
 
10378
      long limit)
-
 
10379
    {
-
 
10380
      this();
-
 
10381
      this.customer_id = customer_id;
-
 
10382
      setCustomer_idIsSet(true);
-
 
10383
      this.limit = limit;
-
 
10384
      setLimitIsSet(true);
-
 
10385
    }
-
 
10386
 
-
 
10387
    /**
-
 
10388
     * Performs a deep copy on <i>other</i>.
-
 
10389
     */
-
 
10390
    public getCancellableOrdersForCustomer_args(getCancellableOrdersForCustomer_args other) {
-
 
10391
      __isset_bit_vector.clear();
-
 
10392
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10393
      this.customer_id = other.customer_id;
-
 
10394
      this.limit = other.limit;
-
 
10395
    }
-
 
10396
 
-
 
10397
    public getCancellableOrdersForCustomer_args deepCopy() {
-
 
10398
      return new getCancellableOrdersForCustomer_args(this);
-
 
10399
    }
-
 
10400
 
-
 
10401
    @Deprecated
-
 
10402
    public getCancellableOrdersForCustomer_args clone() {
-
 
10403
      return new getCancellableOrdersForCustomer_args(this);
-
 
10404
    }
-
 
10405
 
-
 
10406
    public long getCustomer_id() {
-
 
10407
      return this.customer_id;
-
 
10408
    }
-
 
10409
 
-
 
10410
    public getCancellableOrdersForCustomer_args setCustomer_id(long customer_id) {
-
 
10411
      this.customer_id = customer_id;
-
 
10412
      setCustomer_idIsSet(true);
-
 
10413
      return this;
-
 
10414
    }
-
 
10415
 
-
 
10416
    public void unsetCustomer_id() {
-
 
10417
      __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
-
 
10418
    }
-
 
10419
 
-
 
10420
    /** Returns true if field customer_id is set (has been asigned a value) and false otherwise */
-
 
10421
    public boolean isSetCustomer_id() {
-
 
10422
      return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
-
 
10423
    }
-
 
10424
 
-
 
10425
    public void setCustomer_idIsSet(boolean value) {
-
 
10426
      __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
-
 
10427
    }
-
 
10428
 
-
 
10429
    public long getLimit() {
-
 
10430
      return this.limit;
-
 
10431
    }
-
 
10432
 
-
 
10433
    public getCancellableOrdersForCustomer_args setLimit(long limit) {
-
 
10434
      this.limit = limit;
-
 
10435
      setLimitIsSet(true);
-
 
10436
      return this;
-
 
10437
    }
-
 
10438
 
-
 
10439
    public void unsetLimit() {
-
 
10440
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
10441
    }
-
 
10442
 
-
 
10443
    /** Returns true if field limit is set (has been asigned a value) and false otherwise */
-
 
10444
    public boolean isSetLimit() {
-
 
10445
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
10446
    }
-
 
10447
 
-
 
10448
    public void setLimitIsSet(boolean value) {
-
 
10449
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
10450
    }
-
 
10451
 
-
 
10452
    public void setFieldValue(_Fields field, Object value) {
-
 
10453
      switch (field) {
-
 
10454
      case CUSTOMER_ID:
-
 
10455
        if (value == null) {
-
 
10456
          unsetCustomer_id();
-
 
10457
        } else {
-
 
10458
          setCustomer_id((Long)value);
-
 
10459
        }
-
 
10460
        break;
-
 
10461
 
-
 
10462
      case LIMIT:
-
 
10463
        if (value == null) {
-
 
10464
          unsetLimit();
-
 
10465
        } else {
-
 
10466
          setLimit((Long)value);
-
 
10467
        }
-
 
10468
        break;
-
 
10469
 
-
 
10470
      }
-
 
10471
    }
-
 
10472
 
-
 
10473
    public void setFieldValue(int fieldID, Object value) {
-
 
10474
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10475
    }
-
 
10476
 
-
 
10477
    public Object getFieldValue(_Fields field) {
-
 
10478
      switch (field) {
-
 
10479
      case CUSTOMER_ID:
-
 
10480
        return new Long(getCustomer_id());
-
 
10481
 
-
 
10482
      case LIMIT:
-
 
10483
        return new Long(getLimit());
-
 
10484
 
-
 
10485
      }
-
 
10486
      throw new IllegalStateException();
-
 
10487
    }
-
 
10488
 
-
 
10489
    public Object getFieldValue(int fieldId) {
-
 
10490
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10491
    }
-
 
10492
 
-
 
10493
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10494
    public boolean isSet(_Fields field) {
-
 
10495
      switch (field) {
-
 
10496
      case CUSTOMER_ID:
-
 
10497
        return isSetCustomer_id();
-
 
10498
      case LIMIT:
-
 
10499
        return isSetLimit();
-
 
10500
      }
-
 
10501
      throw new IllegalStateException();
-
 
10502
    }
-
 
10503
 
-
 
10504
    public boolean isSet(int fieldID) {
-
 
10505
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10506
    }
-
 
10507
 
-
 
10508
    @Override
-
 
10509
    public boolean equals(Object that) {
-
 
10510
      if (that == null)
-
 
10511
        return false;
-
 
10512
      if (that instanceof getCancellableOrdersForCustomer_args)
-
 
10513
        return this.equals((getCancellableOrdersForCustomer_args)that);
-
 
10514
      return false;
-
 
10515
    }
-
 
10516
 
-
 
10517
    public boolean equals(getCancellableOrdersForCustomer_args that) {
-
 
10518
      if (that == null)
-
 
10519
        return false;
-
 
10520
 
-
 
10521
      boolean this_present_customer_id = true;
-
 
10522
      boolean that_present_customer_id = true;
-
 
10523
      if (this_present_customer_id || that_present_customer_id) {
-
 
10524
        if (!(this_present_customer_id && that_present_customer_id))
-
 
10525
          return false;
-
 
10526
        if (this.customer_id != that.customer_id)
-
 
10527
          return false;
-
 
10528
      }
-
 
10529
 
-
 
10530
      boolean this_present_limit = true;
-
 
10531
      boolean that_present_limit = true;
-
 
10532
      if (this_present_limit || that_present_limit) {
-
 
10533
        if (!(this_present_limit && that_present_limit))
-
 
10534
          return false;
-
 
10535
        if (this.limit != that.limit)
-
 
10536
          return false;
-
 
10537
      }
-
 
10538
 
-
 
10539
      return true;
-
 
10540
    }
-
 
10541
 
-
 
10542
    @Override
-
 
10543
    public int hashCode() {
-
 
10544
      return 0;
-
 
10545
    }
-
 
10546
 
-
 
10547
    public int compareTo(getCancellableOrdersForCustomer_args other) {
-
 
10548
      if (!getClass().equals(other.getClass())) {
-
 
10549
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10550
      }
-
 
10551
 
-
 
10552
      int lastComparison = 0;
-
 
10553
      getCancellableOrdersForCustomer_args typedOther = (getCancellableOrdersForCustomer_args)other;
-
 
10554
 
-
 
10555
      lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(isSetCustomer_id());
-
 
10556
      if (lastComparison != 0) {
-
 
10557
        return lastComparison;
-
 
10558
      }
-
 
10559
      lastComparison = TBaseHelper.compareTo(customer_id, typedOther.customer_id);
-
 
10560
      if (lastComparison != 0) {
-
 
10561
        return lastComparison;
-
 
10562
      }
-
 
10563
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(isSetLimit());
-
 
10564
      if (lastComparison != 0) {
-
 
10565
        return lastComparison;
-
 
10566
      }
-
 
10567
      lastComparison = TBaseHelper.compareTo(limit, typedOther.limit);
-
 
10568
      if (lastComparison != 0) {
-
 
10569
        return lastComparison;
-
 
10570
      }
-
 
10571
      return 0;
-
 
10572
    }
-
 
10573
 
-
 
10574
    public void read(TProtocol iprot) throws TException {
-
 
10575
      TField field;
-
 
10576
      iprot.readStructBegin();
-
 
10577
      while (true)
-
 
10578
      {
-
 
10579
        field = iprot.readFieldBegin();
-
 
10580
        if (field.type == TType.STOP) { 
-
 
10581
          break;
-
 
10582
        }
-
 
10583
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10584
        if (fieldId == null) {
-
 
10585
          TProtocolUtil.skip(iprot, field.type);
-
 
10586
        } else {
-
 
10587
          switch (fieldId) {
-
 
10588
            case CUSTOMER_ID:
-
 
10589
              if (field.type == TType.I64) {
-
 
10590
                this.customer_id = iprot.readI64();
-
 
10591
                setCustomer_idIsSet(true);
-
 
10592
              } else { 
-
 
10593
                TProtocolUtil.skip(iprot, field.type);
-
 
10594
              }
-
 
10595
              break;
-
 
10596
            case LIMIT:
-
 
10597
              if (field.type == TType.I64) {
-
 
10598
                this.limit = iprot.readI64();
-
 
10599
                setLimitIsSet(true);
-
 
10600
              } else { 
-
 
10601
                TProtocolUtil.skip(iprot, field.type);
-
 
10602
              }
-
 
10603
              break;
-
 
10604
          }
-
 
10605
          iprot.readFieldEnd();
-
 
10606
        }
-
 
10607
      }
-
 
10608
      iprot.readStructEnd();
-
 
10609
      validate();
-
 
10610
    }
-
 
10611
 
-
 
10612
    public void write(TProtocol oprot) throws TException {
-
 
10613
      validate();
-
 
10614
 
-
 
10615
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10616
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
10617
      oprot.writeI64(this.customer_id);
-
 
10618
      oprot.writeFieldEnd();
-
 
10619
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
10620
      oprot.writeI64(this.limit);
-
 
10621
      oprot.writeFieldEnd();
-
 
10622
      oprot.writeFieldStop();
-
 
10623
      oprot.writeStructEnd();
-
 
10624
    }
-
 
10625
 
-
 
10626
    @Override
-
 
10627
    public String toString() {
-
 
10628
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_args(");
-
 
10629
      boolean first = true;
-
 
10630
 
-
 
10631
      sb.append("customer_id:");
-
 
10632
      sb.append(this.customer_id);
-
 
10633
      first = false;
-
 
10634
      if (!first) sb.append(", ");
-
 
10635
      sb.append("limit:");
-
 
10636
      sb.append(this.limit);
-
 
10637
      first = false;
-
 
10638
      sb.append(")");
-
 
10639
      return sb.toString();
-
 
10640
    }
-
 
10641
 
-
 
10642
    public void validate() throws TException {
-
 
10643
      // check for required fields
-
 
10644
    }
-
 
10645
 
-
 
10646
  }
-
 
10647
 
-
 
10648
  public static class getCancellableOrdersForCustomer_result implements TBase<getCancellableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCancellableOrdersForCustomer_result>   {
-
 
10649
    private static final TStruct STRUCT_DESC = new TStruct("getCancellableOrdersForCustomer_result");
-
 
10650
 
-
 
10651
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
10652
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
10653
 
-
 
10654
    private List<Long> success;
-
 
10655
    private TransactionServiceException ex;
-
 
10656
 
-
 
10657
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10658
    public enum _Fields implements TFieldIdEnum {
-
 
10659
      SUCCESS((short)0, "success"),
-
 
10660
      EX((short)1, "ex");
-
 
10661
 
-
 
10662
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10664
 
-
 
10665
      static {
-
 
10666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10667
          byId.put((int)field._thriftId, field);
-
 
10668
          byName.put(field.getFieldName(), field);
-
 
10669
        }
-
 
10670
      }
-
 
10671
 
-
 
10672
      /**
-
 
10673
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10674
       */
-
 
10675
      public static _Fields findByThriftId(int fieldId) {
-
 
10676
        return byId.get(fieldId);
-
 
10677
      }
-
 
10678
 
-
 
10679
      /**
-
 
10680
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10681
       * if it is not found.
-
 
10682
       */
-
 
10683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10684
        _Fields fields = findByThriftId(fieldId);
-
 
10685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10686
        return fields;
-
 
10687
      }
-
 
10688
 
-
 
10689
      /**
-
 
10690
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10691
       */
-
 
10692
      public static _Fields findByName(String name) {
-
 
10693
        return byName.get(name);
-
 
10694
      }
-
 
10695
 
-
 
10696
      private final short _thriftId;
-
 
10697
      private final String _fieldName;
-
 
10698
 
-
 
10699
      _Fields(short thriftId, String fieldName) {
-
 
10700
        _thriftId = thriftId;
-
 
10701
        _fieldName = fieldName;
-
 
10702
      }
-
 
10703
 
-
 
10704
      public short getThriftFieldId() {
-
 
10705
        return _thriftId;
-
 
10706
      }
-
 
10707
 
-
 
10708
      public String getFieldName() {
-
 
10709
        return _fieldName;
-
 
10710
      }
-
 
10711
    }
-
 
10712
 
-
 
10713
    // isset id assignments
-
 
10714
 
-
 
10715
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10716
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
10717
          new ListMetaData(TType.LIST, 
-
 
10718
              new FieldValueMetaData(TType.I64))));
-
 
10719
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
10720
          new FieldValueMetaData(TType.STRUCT)));
-
 
10721
    }});
-
 
10722
 
-
 
10723
    static {
-
 
10724
      FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_result.class, metaDataMap);
-
 
10725
    }
-
 
10726
 
-
 
10727
    public getCancellableOrdersForCustomer_result() {
-
 
10728
    }
-
 
10729
 
-
 
10730
    public getCancellableOrdersForCustomer_result(
-
 
10731
      List<Long> success,
-
 
10732
      TransactionServiceException ex)
-
 
10733
    {
-
 
10734
      this();
-
 
10735
      this.success = success;
-
 
10736
      this.ex = ex;
-
 
10737
    }
-
 
10738
 
-
 
10739
    /**
-
 
10740
     * Performs a deep copy on <i>other</i>.
-
 
10741
     */
-
 
10742
    public getCancellableOrdersForCustomer_result(getCancellableOrdersForCustomer_result other) {
-
 
10743
      if (other.isSetSuccess()) {
-
 
10744
        List<Long> __this__success = new ArrayList<Long>();
-
 
10745
        for (Long other_element : other.success) {
-
 
10746
          __this__success.add(other_element);
-
 
10747
        }
-
 
10748
        this.success = __this__success;
-
 
10749
      }
-
 
10750
      if (other.isSetEx()) {
-
 
10751
        this.ex = new TransactionServiceException(other.ex);
-
 
10752
      }
-
 
10753
    }
-
 
10754
 
-
 
10755
    public getCancellableOrdersForCustomer_result deepCopy() {
-
 
10756
      return new getCancellableOrdersForCustomer_result(this);
-
 
10757
    }
-
 
10758
 
-
 
10759
    @Deprecated
-
 
10760
    public getCancellableOrdersForCustomer_result clone() {
-
 
10761
      return new getCancellableOrdersForCustomer_result(this);
-
 
10762
    }
-
 
10763
 
-
 
10764
    public int getSuccessSize() {
-
 
10765
      return (this.success == null) ? 0 : this.success.size();
-
 
10766
    }
-
 
10767
 
-
 
10768
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
10769
      return (this.success == null) ? null : this.success.iterator();
-
 
10770
    }
-
 
10771
 
-
 
10772
    public void addToSuccess(long elem) {
-
 
10773
      if (this.success == null) {
-
 
10774
        this.success = new ArrayList<Long>();
-
 
10775
      }
-
 
10776
      this.success.add(elem);
-
 
10777
    }
-
 
10778
 
-
 
10779
    public List<Long> getSuccess() {
-
 
10780
      return this.success;
-
 
10781
    }
-
 
10782
 
-
 
10783
    public getCancellableOrdersForCustomer_result setSuccess(List<Long> success) {
-
 
10784
      this.success = success;
-
 
10785
      return this;
-
 
10786
    }
-
 
10787
 
-
 
10788
    public void unsetSuccess() {
-
 
10789
      this.success = null;
-
 
10790
    }
-
 
10791
 
-
 
10792
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
10793
    public boolean isSetSuccess() {
-
 
10794
      return this.success != null;
-
 
10795
    }
-
 
10796
 
-
 
10797
    public void setSuccessIsSet(boolean value) {
-
 
10798
      if (!value) {
-
 
10799
        this.success = null;
-
 
10800
      }
-
 
10801
    }
-
 
10802
 
-
 
10803
    public TransactionServiceException getEx() {
-
 
10804
      return this.ex;
-
 
10805
    }
-
 
10806
 
-
 
10807
    public getCancellableOrdersForCustomer_result setEx(TransactionServiceException ex) {
-
 
10808
      this.ex = ex;
-
 
10809
      return this;
-
 
10810
    }
-
 
10811
 
-
 
10812
    public void unsetEx() {
-
 
10813
      this.ex = null;
-
 
10814
    }
-
 
10815
 
-
 
10816
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
10817
    public boolean isSetEx() {
-
 
10818
      return this.ex != null;
-
 
10819
    }
-
 
10820
 
-
 
10821
    public void setExIsSet(boolean value) {
-
 
10822
      if (!value) {
-
 
10823
        this.ex = null;
-
 
10824
      }
-
 
10825
    }
-
 
10826
 
-
 
10827
    public void setFieldValue(_Fields field, Object value) {
-
 
10828
      switch (field) {
-
 
10829
      case SUCCESS:
-
 
10830
        if (value == null) {
-
 
10831
          unsetSuccess();
-
 
10832
        } else {
-
 
10833
          setSuccess((List<Long>)value);
-
 
10834
        }
-
 
10835
        break;
-
 
10836
 
-
 
10837
      case EX:
-
 
10838
        if (value == null) {
-
 
10839
          unsetEx();
-
 
10840
        } else {
-
 
10841
          setEx((TransactionServiceException)value);
-
 
10842
        }
-
 
10843
        break;
-
 
10844
 
-
 
10845
      }
-
 
10846
    }
-
 
10847
 
-
 
10848
    public void setFieldValue(int fieldID, Object value) {
-
 
10849
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10850
    }
-
 
10851
 
-
 
10852
    public Object getFieldValue(_Fields field) {
-
 
10853
      switch (field) {
-
 
10854
      case SUCCESS:
-
 
10855
        return getSuccess();
-
 
10856
 
-
 
10857
      case EX:
-
 
10858
        return getEx();
-
 
10859
 
-
 
10860
      }
-
 
10861
      throw new IllegalStateException();
-
 
10862
    }
-
 
10863
 
-
 
10864
    public Object getFieldValue(int fieldId) {
-
 
10865
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10866
    }
-
 
10867
 
-
 
10868
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10869
    public boolean isSet(_Fields field) {
-
 
10870
      switch (field) {
-
 
10871
      case SUCCESS:
-
 
10872
        return isSetSuccess();
-
 
10873
      case EX:
-
 
10874
        return isSetEx();
-
 
10875
      }
-
 
10876
      throw new IllegalStateException();
-
 
10877
    }
-
 
10878
 
-
 
10879
    public boolean isSet(int fieldID) {
-
 
10880
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10881
    }
-
 
10882
 
-
 
10883
    @Override
-
 
10884
    public boolean equals(Object that) {
-
 
10885
      if (that == null)
-
 
10886
        return false;
-
 
10887
      if (that instanceof getCancellableOrdersForCustomer_result)
-
 
10888
        return this.equals((getCancellableOrdersForCustomer_result)that);
-
 
10889
      return false;
-
 
10890
    }
-
 
10891
 
-
 
10892
    public boolean equals(getCancellableOrdersForCustomer_result that) {
-
 
10893
      if (that == null)
-
 
10894
        return false;
-
 
10895
 
-
 
10896
      boolean this_present_success = true && this.isSetSuccess();
-
 
10897
      boolean that_present_success = true && that.isSetSuccess();
-
 
10898
      if (this_present_success || that_present_success) {
-
 
10899
        if (!(this_present_success && that_present_success))
-
 
10900
          return false;
-
 
10901
        if (!this.success.equals(that.success))
-
 
10902
          return false;
-
 
10903
      }
-
 
10904
 
-
 
10905
      boolean this_present_ex = true && this.isSetEx();
-
 
10906
      boolean that_present_ex = true && that.isSetEx();
-
 
10907
      if (this_present_ex || that_present_ex) {
-
 
10908
        if (!(this_present_ex && that_present_ex))
-
 
10909
          return false;
-
 
10910
        if (!this.ex.equals(that.ex))
-
 
10911
          return false;
-
 
10912
      }
-
 
10913
 
-
 
10914
      return true;
-
 
10915
    }
-
 
10916
 
-
 
10917
    @Override
-
 
10918
    public int hashCode() {
-
 
10919
      return 0;
-
 
10920
    }
-
 
10921
 
-
 
10922
    public int compareTo(getCancellableOrdersForCustomer_result other) {
-
 
10923
      if (!getClass().equals(other.getClass())) {
-
 
10924
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10925
      }
-
 
10926
 
-
 
10927
      int lastComparison = 0;
-
 
10928
      getCancellableOrdersForCustomer_result typedOther = (getCancellableOrdersForCustomer_result)other;
-
 
10929
 
-
 
10930
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
10931
      if (lastComparison != 0) {
-
 
10932
        return lastComparison;
-
 
10933
      }
-
 
10934
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
10935
      if (lastComparison != 0) {
-
 
10936
        return lastComparison;
-
 
10937
      }
-
 
10938
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
10939
      if (lastComparison != 0) {
-
 
10940
        return lastComparison;
-
 
10941
      }
-
 
10942
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
10943
      if (lastComparison != 0) {
-
 
10944
        return lastComparison;
-
 
10945
      }
-
 
10946
      return 0;
-
 
10947
    }
-
 
10948
 
-
 
10949
    public void read(TProtocol iprot) throws TException {
-
 
10950
      TField field;
-
 
10951
      iprot.readStructBegin();
-
 
10952
      while (true)
-
 
10953
      {
-
 
10954
        field = iprot.readFieldBegin();
-
 
10955
        if (field.type == TType.STOP) { 
-
 
10956
          break;
-
 
10957
        }
-
 
10958
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10959
        if (fieldId == null) {
-
 
10960
          TProtocolUtil.skip(iprot, field.type);
-
 
10961
        } else {
-
 
10962
          switch (fieldId) {
-
 
10963
            case SUCCESS:
-
 
10964
              if (field.type == TType.LIST) {
-
 
10965
                {
-
 
10966
                  TList _list28 = iprot.readListBegin();
-
 
10967
                  this.success = new ArrayList<Long>(_list28.size);
-
 
10968
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
10969
                  {
-
 
10970
                    long _elem30;
-
 
10971
                    _elem30 = iprot.readI64();
-
 
10972
                    this.success.add(_elem30);
-
 
10973
                  }
-
 
10974
                  iprot.readListEnd();
-
 
10975
                }
-
 
10976
              } else { 
-
 
10977
                TProtocolUtil.skip(iprot, field.type);
-
 
10978
              }
-
 
10979
              break;
-
 
10980
            case EX:
-
 
10981
              if (field.type == TType.STRUCT) {
-
 
10982
                this.ex = new TransactionServiceException();
-
 
10983
                this.ex.read(iprot);
-
 
10984
              } else { 
-
 
10985
                TProtocolUtil.skip(iprot, field.type);
-
 
10986
              }
-
 
10987
              break;
-
 
10988
          }
-
 
10989
          iprot.readFieldEnd();
-
 
10990
        }
-
 
10991
      }
-
 
10992
      iprot.readStructEnd();
-
 
10993
      validate();
-
 
10994
    }
-
 
10995
 
-
 
10996
    public void write(TProtocol oprot) throws TException {
-
 
10997
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10998
 
-
 
10999
      if (this.isSetSuccess()) {
-
 
11000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11001
        {
-
 
11002
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
-
 
11003
          for (long _iter31 : this.success)
-
 
11004
          {
-
 
11005
            oprot.writeI64(_iter31);
-
 
11006
          }
-
 
11007
          oprot.writeListEnd();
-
 
11008
        }
-
 
11009
        oprot.writeFieldEnd();
-
 
11010
      } else if (this.isSetEx()) {
-
 
11011
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
11012
        this.ex.write(oprot);
-
 
11013
        oprot.writeFieldEnd();
-
 
11014
      }
-
 
11015
      oprot.writeFieldStop();
-
 
11016
      oprot.writeStructEnd();
-
 
11017
    }
-
 
11018
 
-
 
11019
    @Override
-
 
11020
    public String toString() {
-
 
11021
      StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_result(");
-
 
11022
      boolean first = true;
-
 
11023
 
-
 
11024
      sb.append("success:");
-
 
11025
      if (this.success == null) {
-
 
11026
        sb.append("null");
-
 
11027
      } else {
-
 
11028
        sb.append(this.success);
-
 
11029
      }
-
 
11030
      first = false;
-
 
11031
      if (!first) sb.append(", ");
-
 
11032
      sb.append("ex:");
-
 
11033
      if (this.ex == null) {
-
 
11034
        sb.append("null");
-
 
11035
      } else {
-
 
11036
        sb.append(this.ex);
-
 
11037
      }
-
 
11038
      first = false;
-
 
11039
      sb.append(")");
-
 
11040
      return sb.toString();
-
 
11041
    }
-
 
11042
 
-
 
11043
    public void validate() throws TException {
-
 
11044
      // check for required fields
-
 
11045
    }
-
 
11046
 
-
 
11047
  }
-
 
11048
 
8678
  public static class changeOrderStatus_args implements TBase<changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeOrderStatus_args>   {
11049
  public static class changeOrderStatus_args implements TBase<changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeOrderStatus_args>   {
8679
    private static final TStruct STRUCT_DESC = new TStruct("changeOrderStatus_args");
11050
    private static final TStruct STRUCT_DESC = new TStruct("changeOrderStatus_args");
8680
 
11051
 
8681
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
11052
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
8682
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
11053
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
Line 12908... Line 15279...
12908
        } else {
15279
        } else {
12909
          switch (fieldId) {
15280
          switch (fieldId) {
12910
            case SUCCESS:
15281
            case SUCCESS:
12911
              if (field.type == TType.LIST) {
15282
              if (field.type == TType.LIST) {
12912
                {
15283
                {
12913
                  TList _list24 = iprot.readListBegin();
15284
                  TList _list32 = iprot.readListBegin();
12914
                  this.success = new ArrayList<Order>(_list24.size);
15285
                  this.success = new ArrayList<Order>(_list32.size);
12915
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
15286
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
12916
                  {
15287
                  {
12917
                    Order _elem26;
15288
                    Order _elem34;
12918
                    _elem26 = new Order();
15289
                    _elem34 = new Order();
12919
                    _elem26.read(iprot);
15290
                    _elem34.read(iprot);
12920
                    this.success.add(_elem26);
15291
                    this.success.add(_elem34);
12921
                  }
15292
                  }
12922
                  iprot.readListEnd();
15293
                  iprot.readListEnd();
12923
                }
15294
                }
12924
              } else { 
15295
              } else { 
12925
                TProtocolUtil.skip(iprot, field.type);
15296
                TProtocolUtil.skip(iprot, field.type);
Line 12946... Line 15317...
12946
 
15317
 
12947
      if (this.isSetSuccess()) {
15318
      if (this.isSetSuccess()) {
12948
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15319
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12949
        {
15320
        {
12950
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15321
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
12951
          for (Order _iter27 : this.success)
15322
          for (Order _iter35 : this.success)
12952
          {
15323
          {
12953
            _iter27.write(oprot);
15324
            _iter35.write(oprot);
12954
          }
15325
          }
12955
          oprot.writeListEnd();
15326
          oprot.writeListEnd();
12956
        }
15327
        }
12957
        oprot.writeFieldEnd();
15328
        oprot.writeFieldEnd();
12958
      } else if (this.isSetEx()) {
15329
      } else if (this.isSetEx()) {
Line 13848... Line 16219...
13848
        } else {
16219
        } else {
13849
          switch (fieldId) {
16220
          switch (fieldId) {
13850
            case SUCCESS:
16221
            case SUCCESS:
13851
              if (field.type == TType.LIST) {
16222
              if (field.type == TType.LIST) {
13852
                {
16223
                {
13853
                  TList _list28 = iprot.readListBegin();
16224
                  TList _list36 = iprot.readListBegin();
13854
                  this.success = new ArrayList<Order>(_list28.size);
16225
                  this.success = new ArrayList<Order>(_list36.size);
13855
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
16226
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
13856
                  {
16227
                  {
13857
                    Order _elem30;
16228
                    Order _elem38;
13858
                    _elem30 = new Order();
16229
                    _elem38 = new Order();
13859
                    _elem30.read(iprot);
16230
                    _elem38.read(iprot);
13860
                    this.success.add(_elem30);
16231
                    this.success.add(_elem38);
13861
                  }
16232
                  }
13862
                  iprot.readListEnd();
16233
                  iprot.readListEnd();
13863
                }
16234
                }
13864
              } else { 
16235
              } else { 
13865
                TProtocolUtil.skip(iprot, field.type);
16236
                TProtocolUtil.skip(iprot, field.type);
Line 13886... Line 16257...
13886
 
16257
 
13887
      if (this.isSetSuccess()) {
16258
      if (this.isSetSuccess()) {
13888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16259
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13889
        {
16260
        {
13890
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16261
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
13891
          for (Order _iter31 : this.success)
16262
          for (Order _iter39 : this.success)
13892
          {
16263
          {
13893
            _iter31.write(oprot);
16264
            _iter39.write(oprot);
13894
          }
16265
          }
13895
          oprot.writeListEnd();
16266
          oprot.writeListEnd();
13896
        }
16267
        }
13897
        oprot.writeFieldEnd();
16268
        oprot.writeFieldEnd();
13898
      } else if (this.isSetEx()) {
16269
      } else if (this.isSetEx()) {
Line 15816... Line 18187...
15816
        } else {
18187
        } else {
15817
          switch (fieldId) {
18188
          switch (fieldId) {
15818
            case SUCCESS:
18189
            case SUCCESS:
15819
              if (field.type == TType.LIST) {
18190
              if (field.type == TType.LIST) {
15820
                {
18191
                {
15821
                  TList _list32 = iprot.readListBegin();
18192
                  TList _list40 = iprot.readListBegin();
15822
                  this.success = new ArrayList<LineItem>(_list32.size);
18193
                  this.success = new ArrayList<LineItem>(_list40.size);
15823
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
18194
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
15824
                  {
18195
                  {
15825
                    LineItem _elem34;
18196
                    LineItem _elem42;
15826
                    _elem34 = new LineItem();
18197
                    _elem42 = new LineItem();
15827
                    _elem34.read(iprot);
18198
                    _elem42.read(iprot);
15828
                    this.success.add(_elem34);
18199
                    this.success.add(_elem42);
15829
                  }
18200
                  }
15830
                  iprot.readListEnd();
18201
                  iprot.readListEnd();
15831
                }
18202
                }
15832
              } else { 
18203
              } else { 
15833
                TProtocolUtil.skip(iprot, field.type);
18204
                TProtocolUtil.skip(iprot, field.type);
Line 15854... Line 18225...
15854
 
18225
 
15855
      if (this.isSetSuccess()) {
18226
      if (this.isSetSuccess()) {
15856
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15857
        {
18228
        {
15858
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18229
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15859
          for (LineItem _iter35 : this.success)
18230
          for (LineItem _iter43 : this.success)
15860
          {
18231
          {
15861
            _iter35.write(oprot);
18232
            _iter43.write(oprot);
15862
          }
18233
          }
15863
          oprot.writeListEnd();
18234
          oprot.writeListEnd();
15864
        }
18235
        }
15865
        oprot.writeFieldEnd();
18236
        oprot.writeFieldEnd();
15866
      } else if (this.isSetEx()) {
18237
      } else if (this.isSetEx()) {
Line 16496... Line 18867...
16496
        } else {
18867
        } else {
16497
          switch (fieldId) {
18868
          switch (fieldId) {
16498
            case SUCCESS:
18869
            case SUCCESS:
16499
              if (field.type == TType.LIST) {
18870
              if (field.type == TType.LIST) {
16500
                {
18871
                {
16501
                  TList _list36 = iprot.readListBegin();
18872
                  TList _list44 = iprot.readListBegin();
16502
                  this.success = new ArrayList<Order>(_list36.size);
18873
                  this.success = new ArrayList<Order>(_list44.size);
16503
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
18874
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
16504
                  {
18875
                  {
16505
                    Order _elem38;
18876
                    Order _elem46;
16506
                    _elem38 = new Order();
18877
                    _elem46 = new Order();
16507
                    _elem38.read(iprot);
18878
                    _elem46.read(iprot);
16508
                    this.success.add(_elem38);
18879
                    this.success.add(_elem46);
16509
                  }
18880
                  }
16510
                  iprot.readListEnd();
18881
                  iprot.readListEnd();
16511
                }
18882
                }
16512
              } else { 
18883
              } else { 
16513
                TProtocolUtil.skip(iprot, field.type);
18884
                TProtocolUtil.skip(iprot, field.type);
Line 16534... Line 18905...
16534
 
18905
 
16535
      if (this.isSetSuccess()) {
18906
      if (this.isSetSuccess()) {
16536
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18907
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16537
        {
18908
        {
16538
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18909
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16539
          for (Order _iter39 : this.success)
18910
          for (Order _iter47 : this.success)
16540
          {
18911
          {
16541
            _iter39.write(oprot);
18912
            _iter47.write(oprot);
16542
          }
18913
          }
16543
          oprot.writeListEnd();
18914
          oprot.writeListEnd();
16544
        }
18915
        }
16545
        oprot.writeFieldEnd();
18916
        oprot.writeFieldEnd();
16546
      } else if (this.isSetEx()) {
18917
      } else if (this.isSetEx()) {
Line 18246... Line 20617...
18246
              }
20617
              }
18247
              break;
20618
              break;
18248
            case PICKUP_DETAILS:
20619
            case PICKUP_DETAILS:
18249
              if (field.type == TType.MAP) {
20620
              if (field.type == TType.MAP) {
18250
                {
20621
                {
18251
                  TMap _map40 = iprot.readMapBegin();
20622
                  TMap _map48 = iprot.readMapBegin();
18252
                  this.pickupDetails = new HashMap<String,String>(2*_map40.size);
20623
                  this.pickupDetails = new HashMap<String,String>(2*_map48.size);
18253
                  for (int _i41 = 0; _i41 < _map40.size; ++_i41)
20624
                  for (int _i49 = 0; _i49 < _map48.size; ++_i49)
18254
                  {
20625
                  {
18255
                    String _key42;
20626
                    String _key50;
18256
                    String _val43;
20627
                    String _val51;
18257
                    _key42 = iprot.readString();
20628
                    _key50 = iprot.readString();
18258
                    _val43 = iprot.readString();
20629
                    _val51 = iprot.readString();
18259
                    this.pickupDetails.put(_key42, _val43);
20630
                    this.pickupDetails.put(_key50, _val51);
18260
                  }
20631
                  }
18261
                  iprot.readMapEnd();
20632
                  iprot.readMapEnd();
18262
                }
20633
                }
18263
              } else { 
20634
              } else { 
18264
                TProtocolUtil.skip(iprot, field.type);
20635
                TProtocolUtil.skip(iprot, field.type);
Line 18281... Line 20652...
18281
      oprot.writeFieldEnd();
20652
      oprot.writeFieldEnd();
18282
      if (this.pickupDetails != null) {
20653
      if (this.pickupDetails != null) {
18283
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
20654
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
18284
        {
20655
        {
18285
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
20656
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
18286
          for (Map.Entry<String, String> _iter44 : this.pickupDetails.entrySet())
20657
          for (Map.Entry<String, String> _iter52 : this.pickupDetails.entrySet())
18287
          {
20658
          {
18288
            oprot.writeString(_iter44.getKey());
20659
            oprot.writeString(_iter52.getKey());
18289
            oprot.writeString(_iter44.getValue());
20660
            oprot.writeString(_iter52.getValue());
18290
          }
20661
          }
18291
          oprot.writeMapEnd();
20662
          oprot.writeMapEnd();
18292
        }
20663
        }
18293
        oprot.writeFieldEnd();
20664
        oprot.writeFieldEnd();
18294
      }
20665
      }
Line 18638... Line 21009...
18638
        } else {
21009
        } else {
18639
          switch (fieldId) {
21010
          switch (fieldId) {
18640
            case SUCCESS:
21011
            case SUCCESS:
18641
              if (field.type == TType.LIST) {
21012
              if (field.type == TType.LIST) {
18642
                {
21013
                {
18643
                  TList _list45 = iprot.readListBegin();
21014
                  TList _list53 = iprot.readListBegin();
18644
                  this.success = new ArrayList<Order>(_list45.size);
21015
                  this.success = new ArrayList<Order>(_list53.size);
18645
                  for (int _i46 = 0; _i46 < _list45.size; ++_i46)
21016
                  for (int _i54 = 0; _i54 < _list53.size; ++_i54)
18646
                  {
21017
                  {
18647
                    Order _elem47;
21018
                    Order _elem55;
18648
                    _elem47 = new Order();
21019
                    _elem55 = new Order();
18649
                    _elem47.read(iprot);
21020
                    _elem55.read(iprot);
18650
                    this.success.add(_elem47);
21021
                    this.success.add(_elem55);
18651
                  }
21022
                  }
18652
                  iprot.readListEnd();
21023
                  iprot.readListEnd();
18653
                }
21024
                }
18654
              } else { 
21025
              } else { 
18655
                TProtocolUtil.skip(iprot, field.type);
21026
                TProtocolUtil.skip(iprot, field.type);
Line 18676... Line 21047...
18676
 
21047
 
18677
      if (this.isSetSuccess()) {
21048
      if (this.isSetSuccess()) {
18678
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21049
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18679
        {
21050
        {
18680
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21051
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18681
          for (Order _iter48 : this.success)
21052
          for (Order _iter56 : this.success)
18682
          {
21053
          {
18683
            _iter48.write(oprot);
21054
            _iter56.write(oprot);
18684
          }
21055
          }
18685
          oprot.writeListEnd();
21056
          oprot.writeListEnd();
18686
        }
21057
        }
18687
        oprot.writeFieldEnd();
21058
        oprot.writeFieldEnd();
18688
      } else if (this.isSetEx()) {
21059
      } else if (this.isSetEx()) {
Line 19028... Line 21399...
19028
              }
21399
              }
19029
              break;
21400
              break;
19030
            case DELIVERED_ORDERS:
21401
            case DELIVERED_ORDERS:
19031
              if (field.type == TType.MAP) {
21402
              if (field.type == TType.MAP) {
19032
                {
21403
                {
19033
                  TMap _map49 = iprot.readMapBegin();
21404
                  TMap _map57 = iprot.readMapBegin();
19034
                  this.deliveredOrders = new HashMap<String,String>(2*_map49.size);
21405
                  this.deliveredOrders = new HashMap<String,String>(2*_map57.size);
19035
                  for (int _i50 = 0; _i50 < _map49.size; ++_i50)
21406
                  for (int _i58 = 0; _i58 < _map57.size; ++_i58)
19036
                  {
21407
                  {
19037
                    String _key51;
21408
                    String _key59;
19038
                    String _val52;
21409
                    String _val60;
19039
                    _key51 = iprot.readString();
21410
                    _key59 = iprot.readString();
19040
                    _val52 = iprot.readString();
21411
                    _val60 = iprot.readString();
19041
                    this.deliveredOrders.put(_key51, _val52);
21412
                    this.deliveredOrders.put(_key59, _val60);
19042
                  }
21413
                  }
19043
                  iprot.readMapEnd();
21414
                  iprot.readMapEnd();
19044
                }
21415
                }
19045
              } else { 
21416
              } else { 
19046
                TProtocolUtil.skip(iprot, field.type);
21417
                TProtocolUtil.skip(iprot, field.type);
Line 19063... Line 21434...
19063
      oprot.writeFieldEnd();
21434
      oprot.writeFieldEnd();
19064
      if (this.deliveredOrders != null) {
21435
      if (this.deliveredOrders != null) {
19065
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
21436
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
19066
        {
21437
        {
19067
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
21438
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
19068
          for (Map.Entry<String, String> _iter53 : this.deliveredOrders.entrySet())
21439
          for (Map.Entry<String, String> _iter61 : this.deliveredOrders.entrySet())
19069
          {
21440
          {
19070
            oprot.writeString(_iter53.getKey());
21441
            oprot.writeString(_iter61.getKey());
19071
            oprot.writeString(_iter53.getValue());
21442
            oprot.writeString(_iter61.getValue());
19072
          }
21443
          }
19073
          oprot.writeMapEnd();
21444
          oprot.writeMapEnd();
19074
        }
21445
        }
19075
        oprot.writeFieldEnd();
21446
        oprot.writeFieldEnd();
19076
      }
21447
      }
Line 19689... Line 22060...
19689
              }
22060
              }
19690
              break;
22061
              break;
19691
            case RETURNED_ORDERS:
22062
            case RETURNED_ORDERS:
19692
              if (field.type == TType.MAP) {
22063
              if (field.type == TType.MAP) {
19693
                {
22064
                {
19694
                  TMap _map54 = iprot.readMapBegin();
22065
                  TMap _map62 = iprot.readMapBegin();
19695
                  this.returnedOrders = new HashMap<String,String>(2*_map54.size);
22066
                  this.returnedOrders = new HashMap<String,String>(2*_map62.size);
19696
                  for (int _i55 = 0; _i55 < _map54.size; ++_i55)
22067
                  for (int _i63 = 0; _i63 < _map62.size; ++_i63)
19697
                  {
22068
                  {
19698
                    String _key56;
22069
                    String _key64;
19699
                    String _val57;
22070
                    String _val65;
19700
                    _key56 = iprot.readString();
22071
                    _key64 = iprot.readString();
19701
                    _val57 = iprot.readString();
22072
                    _val65 = iprot.readString();
19702
                    this.returnedOrders.put(_key56, _val57);
22073
                    this.returnedOrders.put(_key64, _val65);
19703
                  }
22074
                  }
19704
                  iprot.readMapEnd();
22075
                  iprot.readMapEnd();
19705
                }
22076
                }
19706
              } else { 
22077
              } else { 
19707
                TProtocolUtil.skip(iprot, field.type);
22078
                TProtocolUtil.skip(iprot, field.type);
Line 19724... Line 22095...
19724
      oprot.writeFieldEnd();
22095
      oprot.writeFieldEnd();
19725
      if (this.returnedOrders != null) {
22096
      if (this.returnedOrders != null) {
19726
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
22097
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
19727
        {
22098
        {
19728
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
22099
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
19729
          for (Map.Entry<String, String> _iter58 : this.returnedOrders.entrySet())
22100
          for (Map.Entry<String, String> _iter66 : this.returnedOrders.entrySet())
19730
          {
22101
          {
19731
            oprot.writeString(_iter58.getKey());
22102
            oprot.writeString(_iter66.getKey());
19732
            oprot.writeString(_iter58.getValue());
22103
            oprot.writeString(_iter66.getValue());
19733
          }
22104
          }
19734
          oprot.writeMapEnd();
22105
          oprot.writeMapEnd();
19735
        }
22106
        }
19736
        oprot.writeFieldEnd();
22107
        oprot.writeFieldEnd();
19737
      }
22108
      }
Line 20350... Line 22721...
20350
              }
22721
              }
20351
              break;
22722
              break;
20352
            case UNDELIVERED_ORDERS:
22723
            case UNDELIVERED_ORDERS:
20353
              if (field.type == TType.MAP) {
22724
              if (field.type == TType.MAP) {
20354
                {
22725
                {
20355
                  TMap _map59 = iprot.readMapBegin();
22726
                  TMap _map67 = iprot.readMapBegin();
20356
                  this.undeliveredOrders = new HashMap<String,String>(2*_map59.size);
22727
                  this.undeliveredOrders = new HashMap<String,String>(2*_map67.size);
20357
                  for (int _i60 = 0; _i60 < _map59.size; ++_i60)
22728
                  for (int _i68 = 0; _i68 < _map67.size; ++_i68)
20358
                  {
22729
                  {
20359
                    String _key61;
22730
                    String _key69;
20360
                    String _val62;
22731
                    String _val70;
20361
                    _key61 = iprot.readString();
22732
                    _key69 = iprot.readString();
20362
                    _val62 = iprot.readString();
22733
                    _val70 = iprot.readString();
20363
                    this.undeliveredOrders.put(_key61, _val62);
22734
                    this.undeliveredOrders.put(_key69, _val70);
20364
                  }
22735
                  }
20365
                  iprot.readMapEnd();
22736
                  iprot.readMapEnd();
20366
                }
22737
                }
20367
              } else { 
22738
              } else { 
20368
                TProtocolUtil.skip(iprot, field.type);
22739
                TProtocolUtil.skip(iprot, field.type);
Line 20385... Line 22756...
20385
      oprot.writeFieldEnd();
22756
      oprot.writeFieldEnd();
20386
      if (this.undeliveredOrders != null) {
22757
      if (this.undeliveredOrders != null) {
20387
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
22758
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
20388
        {
22759
        {
20389
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.undeliveredOrders.size()));
22760
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.undeliveredOrders.size()));
20390
          for (Map.Entry<String, String> _iter63 : this.undeliveredOrders.entrySet())
22761
          for (Map.Entry<String, String> _iter71 : this.undeliveredOrders.entrySet())
20391
          {
22762
          {
20392
            oprot.writeString(_iter63.getKey());
22763
            oprot.writeString(_iter71.getKey());
20393
            oprot.writeString(_iter63.getValue());
22764
            oprot.writeString(_iter71.getValue());
20394
          }
22765
          }
20395
          oprot.writeMapEnd();
22766
          oprot.writeMapEnd();
20396
        }
22767
        }
20397
        oprot.writeFieldEnd();
22768
        oprot.writeFieldEnd();
20398
      }
22769
      }
Line 21315... Line 23686...
21315
        } else {
23686
        } else {
21316
          switch (fieldId) {
23687
          switch (fieldId) {
21317
            case SUCCESS:
23688
            case SUCCESS:
21318
              if (field.type == TType.LIST) {
23689
              if (field.type == TType.LIST) {
21319
                {
23690
                {
21320
                  TList _list64 = iprot.readListBegin();
23691
                  TList _list72 = iprot.readListBegin();
21321
                  this.success = new ArrayList<Alert>(_list64.size);
23692
                  this.success = new ArrayList<Alert>(_list72.size);
21322
                  for (int _i65 = 0; _i65 < _list64.size; ++_i65)
23693
                  for (int _i73 = 0; _i73 < _list72.size; ++_i73)
21323
                  {
23694
                  {
21324
                    Alert _elem66;
23695
                    Alert _elem74;
21325
                    _elem66 = new Alert();
23696
                    _elem74 = new Alert();
21326
                    _elem66.read(iprot);
23697
                    _elem74.read(iprot);
21327
                    this.success.add(_elem66);
23698
                    this.success.add(_elem74);
21328
                  }
23699
                  }
21329
                  iprot.readListEnd();
23700
                  iprot.readListEnd();
21330
                }
23701
                }
21331
              } else { 
23702
              } else { 
21332
                TProtocolUtil.skip(iprot, field.type);
23703
                TProtocolUtil.skip(iprot, field.type);
Line 21345... Line 23716...
21345
 
23716
 
21346
      if (this.isSetSuccess()) {
23717
      if (this.isSetSuccess()) {
21347
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23718
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21348
        {
23719
        {
21349
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
23720
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21350
          for (Alert _iter67 : this.success)
23721
          for (Alert _iter75 : this.success)
21351
          {
23722
          {
21352
            _iter67.write(oprot);
23723
            _iter75.write(oprot);
21353
          }
23724
          }
21354
          oprot.writeListEnd();
23725
          oprot.writeListEnd();
21355
        }
23726
        }
21356
        oprot.writeFieldEnd();
23727
        oprot.writeFieldEnd();
21357
      }
23728
      }