Subversion Repositories SmartDukaan

Rev

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

Rev 1209 Rev 1221
Line 88... Line 88...
88
    public Order getOrder(long id) throws TransactionServiceException, TException;
88
    public Order getOrder(long id) throws TransactionServiceException, TException;
89
 
89
 
90
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, TException;
90
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, TException;
91
 
91
 
92
    /**
92
    /**
93
     * Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
93
     * Create a batch of all the pending orders for the given warehouse.
-
 
94
     * The returned list is orderd by created_timestamp.
-
 
95
     * If there are no pending orders, an empty list is returned.
-
 
96
     * *
94
     * 
97
     * 
-
 
98
     * @param warehouseId
-
 
99
     */
-
 
100
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, TException;
-
 
101
 
-
 
102
    /**
-
 
103
     * Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
-
 
104
     * *
95
     * 
105
     * 
96
     * @param orderId
106
     * @param orderId
97
     */
107
     */
98
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, TException;
108
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, TException;
99
 
109
 
Line 861... Line 871...
861
        throw result.ex;
871
        throw result.ex;
862
      }
872
      }
863
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
873
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
864
    }
874
    }
865
 
875
 
-
 
876
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, TException
-
 
877
    {
-
 
878
      send_batchOrders(warehouseId);
-
 
879
      return recv_batchOrders();
-
 
880
    }
-
 
881
 
-
 
882
    public void send_batchOrders(long warehouseId) throws TException
-
 
883
    {
-
 
884
      oprot_.writeMessageBegin(new TMessage("batchOrders", TMessageType.CALL, seqid_));
-
 
885
      batchOrders_args args = new batchOrders_args();
-
 
886
      args.warehouseId = warehouseId;
-
 
887
      args.write(oprot_);
-
 
888
      oprot_.writeMessageEnd();
-
 
889
      oprot_.getTransport().flush();
-
 
890
    }
-
 
891
 
-
 
892
    public List<Order> recv_batchOrders() throws TransactionServiceException, TException
-
 
893
    {
-
 
894
      TMessage msg = iprot_.readMessageBegin();
-
 
895
      if (msg.type == TMessageType.EXCEPTION) {
-
 
896
        TApplicationException x = TApplicationException.read(iprot_);
-
 
897
        iprot_.readMessageEnd();
-
 
898
        throw x;
-
 
899
      }
-
 
900
      batchOrders_result result = new batchOrders_result();
-
 
901
      result.read(iprot_);
-
 
902
      iprot_.readMessageEnd();
-
 
903
      if (result.isSetSuccess()) {
-
 
904
        return result.success;
-
 
905
      }
-
 
906
      if (result.ex != null) {
-
 
907
        throw result.ex;
-
 
908
      }
-
 
909
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
-
 
910
    }
-
 
911
 
866
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, TException
912
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, TException
867
    {
913
    {
868
      send_markOrderAsOutOfStock(orderId);
914
      send_markOrderAsOutOfStock(orderId);
869
      return recv_markOrderAsOutOfStock();
915
      return recv_markOrderAsOutOfStock();
870
    }
916
    }
Line 1131... Line 1177...
1131
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
1177
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
1132
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
1178
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
1133
      processMap_.put("createOrder", new createOrder());
1179
      processMap_.put("createOrder", new createOrder());
1134
      processMap_.put("getOrder", new getOrder());
1180
      processMap_.put("getOrder", new getOrder());
1135
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
1181
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
-
 
1182
      processMap_.put("batchOrders", new batchOrders());
1136
      processMap_.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
1183
      processMap_.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
1137
      processMap_.put("markOrdersAsManifested", new markOrdersAsManifested());
1184
      processMap_.put("markOrdersAsManifested", new markOrdersAsManifested());
1138
      processMap_.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
1185
      processMap_.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
1139
      processMap_.put("markOrdersAsDelivered", new markOrdersAsDelivered());
1186
      processMap_.put("markOrdersAsDelivered", new markOrdersAsDelivered());
1140
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
1187
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
Line 1693... Line 1740...
1693
        oprot.getTransport().flush();
1740
        oprot.getTransport().flush();
1694
      }
1741
      }
1695
 
1742
 
1696
    }
1743
    }
1697
 
1744
 
-
 
1745
    private class batchOrders implements ProcessFunction {
-
 
1746
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1747
      {
-
 
1748
        batchOrders_args args = new batchOrders_args();
-
 
1749
        args.read(iprot);
-
 
1750
        iprot.readMessageEnd();
-
 
1751
        batchOrders_result result = new batchOrders_result();
-
 
1752
        try {
-
 
1753
          result.success = iface_.batchOrders(args.warehouseId);
-
 
1754
        } catch (TransactionServiceException ex) {
-
 
1755
          result.ex = ex;
-
 
1756
        } catch (Throwable th) {
-
 
1757
          LOGGER.error("Internal error processing batchOrders", th);
-
 
1758
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing batchOrders");
-
 
1759
          oprot.writeMessageBegin(new TMessage("batchOrders", TMessageType.EXCEPTION, seqid));
-
 
1760
          x.write(oprot);
-
 
1761
          oprot.writeMessageEnd();
-
 
1762
          oprot.getTransport().flush();
-
 
1763
          return;
-
 
1764
        }
-
 
1765
        oprot.writeMessageBegin(new TMessage("batchOrders", TMessageType.REPLY, seqid));
-
 
1766
        result.write(oprot);
-
 
1767
        oprot.writeMessageEnd();
-
 
1768
        oprot.getTransport().flush();
-
 
1769
      }
-
 
1770
 
-
 
1771
    }
-
 
1772
 
1698
    private class markOrderAsOutOfStock implements ProcessFunction {
1773
    private class markOrderAsOutOfStock implements ProcessFunction {
1699
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1774
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1700
      {
1775
      {
1701
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
1776
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
1702
        args.read(iprot);
1777
        args.read(iprot);
Line 15756... Line 15831...
15756
      // check for required fields
15831
      // check for required fields
15757
    }
15832
    }
15758
 
15833
 
15759
  }
15834
  }
15760
 
15835
 
-
 
15836
  public static class batchOrders_args implements TBase<batchOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<batchOrders_args>   {
-
 
15837
    private static final TStruct STRUCT_DESC = new TStruct("batchOrders_args");
-
 
15838
 
-
 
15839
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)1);
-
 
15840
 
-
 
15841
    private long warehouseId;
-
 
15842
 
-
 
15843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15844
    public enum _Fields implements TFieldIdEnum {
-
 
15845
      WAREHOUSE_ID((short)1, "warehouseId");
-
 
15846
 
-
 
15847
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
15848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15849
 
-
 
15850
      static {
-
 
15851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15852
          byId.put((int)field._thriftId, field);
-
 
15853
          byName.put(field.getFieldName(), field);
-
 
15854
        }
-
 
15855
      }
-
 
15856
 
-
 
15857
      /**
-
 
15858
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15859
       */
-
 
15860
      public static _Fields findByThriftId(int fieldId) {
-
 
15861
        return byId.get(fieldId);
-
 
15862
      }
-
 
15863
 
-
 
15864
      /**
-
 
15865
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15866
       * if it is not found.
-
 
15867
       */
-
 
15868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15869
        _Fields fields = findByThriftId(fieldId);
-
 
15870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15871
        return fields;
-
 
15872
      }
-
 
15873
 
-
 
15874
      /**
-
 
15875
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15876
       */
-
 
15877
      public static _Fields findByName(String name) {
-
 
15878
        return byName.get(name);
-
 
15879
      }
-
 
15880
 
-
 
15881
      private final short _thriftId;
-
 
15882
      private final String _fieldName;
-
 
15883
 
-
 
15884
      _Fields(short thriftId, String fieldName) {
-
 
15885
        _thriftId = thriftId;
-
 
15886
        _fieldName = fieldName;
-
 
15887
      }
-
 
15888
 
-
 
15889
      public short getThriftFieldId() {
-
 
15890
        return _thriftId;
-
 
15891
      }
-
 
15892
 
-
 
15893
      public String getFieldName() {
-
 
15894
        return _fieldName;
-
 
15895
      }
-
 
15896
    }
-
 
15897
 
-
 
15898
    // isset id assignments
-
 
15899
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
15900
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
15901
 
-
 
15902
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
15903
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
15904
          new FieldValueMetaData(TType.I64)));
-
 
15905
    }});
-
 
15906
 
-
 
15907
    static {
-
 
15908
      FieldMetaData.addStructMetaDataMap(batchOrders_args.class, metaDataMap);
-
 
15909
    }
-
 
15910
 
-
 
15911
    public batchOrders_args() {
-
 
15912
    }
-
 
15913
 
-
 
15914
    public batchOrders_args(
-
 
15915
      long warehouseId)
-
 
15916
    {
-
 
15917
      this();
-
 
15918
      this.warehouseId = warehouseId;
-
 
15919
      setWarehouseIdIsSet(true);
-
 
15920
    }
-
 
15921
 
-
 
15922
    /**
-
 
15923
     * Performs a deep copy on <i>other</i>.
-
 
15924
     */
-
 
15925
    public batchOrders_args(batchOrders_args other) {
-
 
15926
      __isset_bit_vector.clear();
-
 
15927
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
15928
      this.warehouseId = other.warehouseId;
-
 
15929
    }
-
 
15930
 
-
 
15931
    public batchOrders_args deepCopy() {
-
 
15932
      return new batchOrders_args(this);
-
 
15933
    }
-
 
15934
 
-
 
15935
    @Deprecated
-
 
15936
    public batchOrders_args clone() {
-
 
15937
      return new batchOrders_args(this);
-
 
15938
    }
-
 
15939
 
-
 
15940
    public long getWarehouseId() {
-
 
15941
      return this.warehouseId;
-
 
15942
    }
-
 
15943
 
-
 
15944
    public batchOrders_args setWarehouseId(long warehouseId) {
-
 
15945
      this.warehouseId = warehouseId;
-
 
15946
      setWarehouseIdIsSet(true);
-
 
15947
      return this;
-
 
15948
    }
-
 
15949
 
-
 
15950
    public void unsetWarehouseId() {
-
 
15951
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
15952
    }
-
 
15953
 
-
 
15954
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
-
 
15955
    public boolean isSetWarehouseId() {
-
 
15956
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
15957
    }
-
 
15958
 
-
 
15959
    public void setWarehouseIdIsSet(boolean value) {
-
 
15960
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
15961
    }
-
 
15962
 
-
 
15963
    public void setFieldValue(_Fields field, Object value) {
-
 
15964
      switch (field) {
-
 
15965
      case WAREHOUSE_ID:
-
 
15966
        if (value == null) {
-
 
15967
          unsetWarehouseId();
-
 
15968
        } else {
-
 
15969
          setWarehouseId((Long)value);
-
 
15970
        }
-
 
15971
        break;
-
 
15972
 
-
 
15973
      }
-
 
15974
    }
-
 
15975
 
-
 
15976
    public void setFieldValue(int fieldID, Object value) {
-
 
15977
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
15978
    }
-
 
15979
 
-
 
15980
    public Object getFieldValue(_Fields field) {
-
 
15981
      switch (field) {
-
 
15982
      case WAREHOUSE_ID:
-
 
15983
        return new Long(getWarehouseId());
-
 
15984
 
-
 
15985
      }
-
 
15986
      throw new IllegalStateException();
-
 
15987
    }
-
 
15988
 
-
 
15989
    public Object getFieldValue(int fieldId) {
-
 
15990
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
15991
    }
-
 
15992
 
-
 
15993
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
15994
    public boolean isSet(_Fields field) {
-
 
15995
      switch (field) {
-
 
15996
      case WAREHOUSE_ID:
-
 
15997
        return isSetWarehouseId();
-
 
15998
      }
-
 
15999
      throw new IllegalStateException();
-
 
16000
    }
-
 
16001
 
-
 
16002
    public boolean isSet(int fieldID) {
-
 
16003
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
16004
    }
-
 
16005
 
-
 
16006
    @Override
-
 
16007
    public boolean equals(Object that) {
-
 
16008
      if (that == null)
-
 
16009
        return false;
-
 
16010
      if (that instanceof batchOrders_args)
-
 
16011
        return this.equals((batchOrders_args)that);
-
 
16012
      return false;
-
 
16013
    }
-
 
16014
 
-
 
16015
    public boolean equals(batchOrders_args that) {
-
 
16016
      if (that == null)
-
 
16017
        return false;
-
 
16018
 
-
 
16019
      boolean this_present_warehouseId = true;
-
 
16020
      boolean that_present_warehouseId = true;
-
 
16021
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
16022
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
16023
          return false;
-
 
16024
        if (this.warehouseId != that.warehouseId)
-
 
16025
          return false;
-
 
16026
      }
-
 
16027
 
-
 
16028
      return true;
-
 
16029
    }
-
 
16030
 
-
 
16031
    @Override
-
 
16032
    public int hashCode() {
-
 
16033
      return 0;
-
 
16034
    }
-
 
16035
 
-
 
16036
    public int compareTo(batchOrders_args other) {
-
 
16037
      if (!getClass().equals(other.getClass())) {
-
 
16038
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16039
      }
-
 
16040
 
-
 
16041
      int lastComparison = 0;
-
 
16042
      batchOrders_args typedOther = (batchOrders_args)other;
-
 
16043
 
-
 
16044
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
-
 
16045
      if (lastComparison != 0) {
-
 
16046
        return lastComparison;
-
 
16047
      }
-
 
16048
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
-
 
16049
      if (lastComparison != 0) {
-
 
16050
        return lastComparison;
-
 
16051
      }
-
 
16052
      return 0;
-
 
16053
    }
-
 
16054
 
-
 
16055
    public void read(TProtocol iprot) throws TException {
-
 
16056
      TField field;
-
 
16057
      iprot.readStructBegin();
-
 
16058
      while (true)
-
 
16059
      {
-
 
16060
        field = iprot.readFieldBegin();
-
 
16061
        if (field.type == TType.STOP) { 
-
 
16062
          break;
-
 
16063
        }
-
 
16064
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
16065
        if (fieldId == null) {
-
 
16066
          TProtocolUtil.skip(iprot, field.type);
-
 
16067
        } else {
-
 
16068
          switch (fieldId) {
-
 
16069
            case WAREHOUSE_ID:
-
 
16070
              if (field.type == TType.I64) {
-
 
16071
                this.warehouseId = iprot.readI64();
-
 
16072
                setWarehouseIdIsSet(true);
-
 
16073
              } else { 
-
 
16074
                TProtocolUtil.skip(iprot, field.type);
-
 
16075
              }
-
 
16076
              break;
-
 
16077
          }
-
 
16078
          iprot.readFieldEnd();
-
 
16079
        }
-
 
16080
      }
-
 
16081
      iprot.readStructEnd();
-
 
16082
      validate();
-
 
16083
    }
-
 
16084
 
-
 
16085
    public void write(TProtocol oprot) throws TException {
-
 
16086
      validate();
-
 
16087
 
-
 
16088
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16089
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
16090
      oprot.writeI64(this.warehouseId);
-
 
16091
      oprot.writeFieldEnd();
-
 
16092
      oprot.writeFieldStop();
-
 
16093
      oprot.writeStructEnd();
-
 
16094
    }
-
 
16095
 
-
 
16096
    @Override
-
 
16097
    public String toString() {
-
 
16098
      StringBuilder sb = new StringBuilder("batchOrders_args(");
-
 
16099
      boolean first = true;
-
 
16100
 
-
 
16101
      sb.append("warehouseId:");
-
 
16102
      sb.append(this.warehouseId);
-
 
16103
      first = false;
-
 
16104
      sb.append(")");
-
 
16105
      return sb.toString();
-
 
16106
    }
-
 
16107
 
-
 
16108
    public void validate() throws TException {
-
 
16109
      // check for required fields
-
 
16110
    }
-
 
16111
 
-
 
16112
  }
-
 
16113
 
-
 
16114
  public static class batchOrders_result implements TBase<batchOrders_result._Fields>, java.io.Serializable, Cloneable, Comparable<batchOrders_result>   {
-
 
16115
    private static final TStruct STRUCT_DESC = new TStruct("batchOrders_result");
-
 
16116
 
-
 
16117
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
16118
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
16119
 
-
 
16120
    private List<Order> success;
-
 
16121
    private TransactionServiceException ex;
-
 
16122
 
-
 
16123
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16124
    public enum _Fields implements TFieldIdEnum {
-
 
16125
      SUCCESS((short)0, "success"),
-
 
16126
      EX((short)1, "ex");
-
 
16127
 
-
 
16128
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16129
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16130
 
-
 
16131
      static {
-
 
16132
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16133
          byId.put((int)field._thriftId, field);
-
 
16134
          byName.put(field.getFieldName(), field);
-
 
16135
        }
-
 
16136
      }
-
 
16137
 
-
 
16138
      /**
-
 
16139
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16140
       */
-
 
16141
      public static _Fields findByThriftId(int fieldId) {
-
 
16142
        return byId.get(fieldId);
-
 
16143
      }
-
 
16144
 
-
 
16145
      /**
-
 
16146
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16147
       * if it is not found.
-
 
16148
       */
-
 
16149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16150
        _Fields fields = findByThriftId(fieldId);
-
 
16151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16152
        return fields;
-
 
16153
      }
-
 
16154
 
-
 
16155
      /**
-
 
16156
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16157
       */
-
 
16158
      public static _Fields findByName(String name) {
-
 
16159
        return byName.get(name);
-
 
16160
      }
-
 
16161
 
-
 
16162
      private final short _thriftId;
-
 
16163
      private final String _fieldName;
-
 
16164
 
-
 
16165
      _Fields(short thriftId, String fieldName) {
-
 
16166
        _thriftId = thriftId;
-
 
16167
        _fieldName = fieldName;
-
 
16168
      }
-
 
16169
 
-
 
16170
      public short getThriftFieldId() {
-
 
16171
        return _thriftId;
-
 
16172
      }
-
 
16173
 
-
 
16174
      public String getFieldName() {
-
 
16175
        return _fieldName;
-
 
16176
      }
-
 
16177
    }
-
 
16178
 
-
 
16179
    // isset id assignments
-
 
16180
 
-
 
16181
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16182
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
16183
          new ListMetaData(TType.LIST, 
-
 
16184
              new StructMetaData(TType.STRUCT, Order.class))));
-
 
16185
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
16186
          new FieldValueMetaData(TType.STRUCT)));
-
 
16187
    }});
-
 
16188
 
-
 
16189
    static {
-
 
16190
      FieldMetaData.addStructMetaDataMap(batchOrders_result.class, metaDataMap);
-
 
16191
    }
-
 
16192
 
-
 
16193
    public batchOrders_result() {
-
 
16194
    }
-
 
16195
 
-
 
16196
    public batchOrders_result(
-
 
16197
      List<Order> success,
-
 
16198
      TransactionServiceException ex)
-
 
16199
    {
-
 
16200
      this();
-
 
16201
      this.success = success;
-
 
16202
      this.ex = ex;
-
 
16203
    }
-
 
16204
 
-
 
16205
    /**
-
 
16206
     * Performs a deep copy on <i>other</i>.
-
 
16207
     */
-
 
16208
    public batchOrders_result(batchOrders_result other) {
-
 
16209
      if (other.isSetSuccess()) {
-
 
16210
        List<Order> __this__success = new ArrayList<Order>();
-
 
16211
        for (Order other_element : other.success) {
-
 
16212
          __this__success.add(new Order(other_element));
-
 
16213
        }
-
 
16214
        this.success = __this__success;
-
 
16215
      }
-
 
16216
      if (other.isSetEx()) {
-
 
16217
        this.ex = new TransactionServiceException(other.ex);
-
 
16218
      }
-
 
16219
    }
-
 
16220
 
-
 
16221
    public batchOrders_result deepCopy() {
-
 
16222
      return new batchOrders_result(this);
-
 
16223
    }
-
 
16224
 
-
 
16225
    @Deprecated
-
 
16226
    public batchOrders_result clone() {
-
 
16227
      return new batchOrders_result(this);
-
 
16228
    }
-
 
16229
 
-
 
16230
    public int getSuccessSize() {
-
 
16231
      return (this.success == null) ? 0 : this.success.size();
-
 
16232
    }
-
 
16233
 
-
 
16234
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
16235
      return (this.success == null) ? null : this.success.iterator();
-
 
16236
    }
-
 
16237
 
-
 
16238
    public void addToSuccess(Order elem) {
-
 
16239
      if (this.success == null) {
-
 
16240
        this.success = new ArrayList<Order>();
-
 
16241
      }
-
 
16242
      this.success.add(elem);
-
 
16243
    }
-
 
16244
 
-
 
16245
    public List<Order> getSuccess() {
-
 
16246
      return this.success;
-
 
16247
    }
-
 
16248
 
-
 
16249
    public batchOrders_result setSuccess(List<Order> success) {
-
 
16250
      this.success = success;
-
 
16251
      return this;
-
 
16252
    }
-
 
16253
 
-
 
16254
    public void unsetSuccess() {
-
 
16255
      this.success = null;
-
 
16256
    }
-
 
16257
 
-
 
16258
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
16259
    public boolean isSetSuccess() {
-
 
16260
      return this.success != null;
-
 
16261
    }
-
 
16262
 
-
 
16263
    public void setSuccessIsSet(boolean value) {
-
 
16264
      if (!value) {
-
 
16265
        this.success = null;
-
 
16266
      }
-
 
16267
    }
-
 
16268
 
-
 
16269
    public TransactionServiceException getEx() {
-
 
16270
      return this.ex;
-
 
16271
    }
-
 
16272
 
-
 
16273
    public batchOrders_result setEx(TransactionServiceException ex) {
-
 
16274
      this.ex = ex;
-
 
16275
      return this;
-
 
16276
    }
-
 
16277
 
-
 
16278
    public void unsetEx() {
-
 
16279
      this.ex = null;
-
 
16280
    }
-
 
16281
 
-
 
16282
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
16283
    public boolean isSetEx() {
-
 
16284
      return this.ex != null;
-
 
16285
    }
-
 
16286
 
-
 
16287
    public void setExIsSet(boolean value) {
-
 
16288
      if (!value) {
-
 
16289
        this.ex = null;
-
 
16290
      }
-
 
16291
    }
-
 
16292
 
-
 
16293
    public void setFieldValue(_Fields field, Object value) {
-
 
16294
      switch (field) {
-
 
16295
      case SUCCESS:
-
 
16296
        if (value == null) {
-
 
16297
          unsetSuccess();
-
 
16298
        } else {
-
 
16299
          setSuccess((List<Order>)value);
-
 
16300
        }
-
 
16301
        break;
-
 
16302
 
-
 
16303
      case EX:
-
 
16304
        if (value == null) {
-
 
16305
          unsetEx();
-
 
16306
        } else {
-
 
16307
          setEx((TransactionServiceException)value);
-
 
16308
        }
-
 
16309
        break;
-
 
16310
 
-
 
16311
      }
-
 
16312
    }
-
 
16313
 
-
 
16314
    public void setFieldValue(int fieldID, Object value) {
-
 
16315
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
16316
    }
-
 
16317
 
-
 
16318
    public Object getFieldValue(_Fields field) {
-
 
16319
      switch (field) {
-
 
16320
      case SUCCESS:
-
 
16321
        return getSuccess();
-
 
16322
 
-
 
16323
      case EX:
-
 
16324
        return getEx();
-
 
16325
 
-
 
16326
      }
-
 
16327
      throw new IllegalStateException();
-
 
16328
    }
-
 
16329
 
-
 
16330
    public Object getFieldValue(int fieldId) {
-
 
16331
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
16332
    }
-
 
16333
 
-
 
16334
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
16335
    public boolean isSet(_Fields field) {
-
 
16336
      switch (field) {
-
 
16337
      case SUCCESS:
-
 
16338
        return isSetSuccess();
-
 
16339
      case EX:
-
 
16340
        return isSetEx();
-
 
16341
      }
-
 
16342
      throw new IllegalStateException();
-
 
16343
    }
-
 
16344
 
-
 
16345
    public boolean isSet(int fieldID) {
-
 
16346
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
16347
    }
-
 
16348
 
-
 
16349
    @Override
-
 
16350
    public boolean equals(Object that) {
-
 
16351
      if (that == null)
-
 
16352
        return false;
-
 
16353
      if (that instanceof batchOrders_result)
-
 
16354
        return this.equals((batchOrders_result)that);
-
 
16355
      return false;
-
 
16356
    }
-
 
16357
 
-
 
16358
    public boolean equals(batchOrders_result that) {
-
 
16359
      if (that == null)
-
 
16360
        return false;
-
 
16361
 
-
 
16362
      boolean this_present_success = true && this.isSetSuccess();
-
 
16363
      boolean that_present_success = true && that.isSetSuccess();
-
 
16364
      if (this_present_success || that_present_success) {
-
 
16365
        if (!(this_present_success && that_present_success))
-
 
16366
          return false;
-
 
16367
        if (!this.success.equals(that.success))
-
 
16368
          return false;
-
 
16369
      }
-
 
16370
 
-
 
16371
      boolean this_present_ex = true && this.isSetEx();
-
 
16372
      boolean that_present_ex = true && that.isSetEx();
-
 
16373
      if (this_present_ex || that_present_ex) {
-
 
16374
        if (!(this_present_ex && that_present_ex))
-
 
16375
          return false;
-
 
16376
        if (!this.ex.equals(that.ex))
-
 
16377
          return false;
-
 
16378
      }
-
 
16379
 
-
 
16380
      return true;
-
 
16381
    }
-
 
16382
 
-
 
16383
    @Override
-
 
16384
    public int hashCode() {
-
 
16385
      return 0;
-
 
16386
    }
-
 
16387
 
-
 
16388
    public int compareTo(batchOrders_result other) {
-
 
16389
      if (!getClass().equals(other.getClass())) {
-
 
16390
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16391
      }
-
 
16392
 
-
 
16393
      int lastComparison = 0;
-
 
16394
      batchOrders_result typedOther = (batchOrders_result)other;
-
 
16395
 
-
 
16396
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
16397
      if (lastComparison != 0) {
-
 
16398
        return lastComparison;
-
 
16399
      }
-
 
16400
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
16401
      if (lastComparison != 0) {
-
 
16402
        return lastComparison;
-
 
16403
      }
-
 
16404
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
16405
      if (lastComparison != 0) {
-
 
16406
        return lastComparison;
-
 
16407
      }
-
 
16408
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
16409
      if (lastComparison != 0) {
-
 
16410
        return lastComparison;
-
 
16411
      }
-
 
16412
      return 0;
-
 
16413
    }
-
 
16414
 
-
 
16415
    public void read(TProtocol iprot) throws TException {
-
 
16416
      TField field;
-
 
16417
      iprot.readStructBegin();
-
 
16418
      while (true)
-
 
16419
      {
-
 
16420
        field = iprot.readFieldBegin();
-
 
16421
        if (field.type == TType.STOP) { 
-
 
16422
          break;
-
 
16423
        }
-
 
16424
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
16425
        if (fieldId == null) {
-
 
16426
          TProtocolUtil.skip(iprot, field.type);
-
 
16427
        } else {
-
 
16428
          switch (fieldId) {
-
 
16429
            case SUCCESS:
-
 
16430
              if (field.type == TType.LIST) {
-
 
16431
                {
-
 
16432
                  TList _list36 = iprot.readListBegin();
-
 
16433
                  this.success = new ArrayList<Order>(_list36.size);
-
 
16434
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
-
 
16435
                  {
-
 
16436
                    Order _elem38;
-
 
16437
                    _elem38 = new Order();
-
 
16438
                    _elem38.read(iprot);
-
 
16439
                    this.success.add(_elem38);
-
 
16440
                  }
-
 
16441
                  iprot.readListEnd();
-
 
16442
                }
-
 
16443
              } else { 
-
 
16444
                TProtocolUtil.skip(iprot, field.type);
-
 
16445
              }
-
 
16446
              break;
-
 
16447
            case EX:
-
 
16448
              if (field.type == TType.STRUCT) {
-
 
16449
                this.ex = new TransactionServiceException();
-
 
16450
                this.ex.read(iprot);
-
 
16451
              } else { 
-
 
16452
                TProtocolUtil.skip(iprot, field.type);
-
 
16453
              }
-
 
16454
              break;
-
 
16455
          }
-
 
16456
          iprot.readFieldEnd();
-
 
16457
        }
-
 
16458
      }
-
 
16459
      iprot.readStructEnd();
-
 
16460
      validate();
-
 
16461
    }
-
 
16462
 
-
 
16463
    public void write(TProtocol oprot) throws TException {
-
 
16464
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16465
 
-
 
16466
      if (this.isSetSuccess()) {
-
 
16467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
16468
        {
-
 
16469
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
16470
          for (Order _iter39 : this.success)
-
 
16471
          {
-
 
16472
            _iter39.write(oprot);
-
 
16473
          }
-
 
16474
          oprot.writeListEnd();
-
 
16475
        }
-
 
16476
        oprot.writeFieldEnd();
-
 
16477
      } else if (this.isSetEx()) {
-
 
16478
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
16479
        this.ex.write(oprot);
-
 
16480
        oprot.writeFieldEnd();
-
 
16481
      }
-
 
16482
      oprot.writeFieldStop();
-
 
16483
      oprot.writeStructEnd();
-
 
16484
    }
-
 
16485
 
-
 
16486
    @Override
-
 
16487
    public String toString() {
-
 
16488
      StringBuilder sb = new StringBuilder("batchOrders_result(");
-
 
16489
      boolean first = true;
-
 
16490
 
-
 
16491
      sb.append("success:");
-
 
16492
      if (this.success == null) {
-
 
16493
        sb.append("null");
-
 
16494
      } else {
-
 
16495
        sb.append(this.success);
-
 
16496
      }
-
 
16497
      first = false;
-
 
16498
      if (!first) sb.append(", ");
-
 
16499
      sb.append("ex:");
-
 
16500
      if (this.ex == null) {
-
 
16501
        sb.append("null");
-
 
16502
      } else {
-
 
16503
        sb.append(this.ex);
-
 
16504
      }
-
 
16505
      first = false;
-
 
16506
      sb.append(")");
-
 
16507
      return sb.toString();
-
 
16508
    }
-
 
16509
 
-
 
16510
    public void validate() throws TException {
-
 
16511
      // check for required fields
-
 
16512
    }
-
 
16513
 
-
 
16514
  }
-
 
16515
 
15761
  public static class markOrderAsOutOfStock_args implements TBase<markOrderAsOutOfStock_args._Fields>, java.io.Serializable, Cloneable, Comparable<markOrderAsOutOfStock_args>   {
16516
  public static class markOrderAsOutOfStock_args implements TBase<markOrderAsOutOfStock_args._Fields>, java.io.Serializable, Cloneable, Comparable<markOrderAsOutOfStock_args>   {
15762
    private static final TStruct STRUCT_DESC = new TStruct("markOrderAsOutOfStock_args");
16517
    private static final TStruct STRUCT_DESC = new TStruct("markOrderAsOutOfStock_args");
15763
 
16518
 
15764
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
16519
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
15765
 
16520
 
Line 17422... Line 18177...
17422
              }
18177
              }
17423
              break;
18178
              break;
17424
            case PICKUP_DETAILS:
18179
            case PICKUP_DETAILS:
17425
              if (field.type == TType.MAP) {
18180
              if (field.type == TType.MAP) {
17426
                {
18181
                {
17427
                  TMap _map36 = iprot.readMapBegin();
18182
                  TMap _map40 = iprot.readMapBegin();
17428
                  this.pickupDetails = new HashMap<String,Long>(2*_map36.size);
18183
                  this.pickupDetails = new HashMap<String,Long>(2*_map40.size);
17429
                  for (int _i37 = 0; _i37 < _map36.size; ++_i37)
18184
                  for (int _i41 = 0; _i41 < _map40.size; ++_i41)
17430
                  {
18185
                  {
17431
                    String _key38;
18186
                    String _key42;
17432
                    long _val39;
18187
                    long _val43;
17433
                    _key38 = iprot.readString();
18188
                    _key42 = iprot.readString();
17434
                    _val39 = iprot.readI64();
18189
                    _val43 = iprot.readI64();
17435
                    this.pickupDetails.put(_key38, _val39);
18190
                    this.pickupDetails.put(_key42, _val43);
17436
                  }
18191
                  }
17437
                  iprot.readMapEnd();
18192
                  iprot.readMapEnd();
17438
                }
18193
                }
17439
              } else { 
18194
              } else { 
17440
                TProtocolUtil.skip(iprot, field.type);
18195
                TProtocolUtil.skip(iprot, field.type);
Line 17457... Line 18212...
17457
      oprot.writeFieldEnd();
18212
      oprot.writeFieldEnd();
17458
      if (this.pickupDetails != null) {
18213
      if (this.pickupDetails != null) {
17459
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
18214
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
17460
        {
18215
        {
17461
          oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.pickupDetails.size()));
18216
          oprot.writeMapBegin(new TMap(TType.STRING, TType.I64, this.pickupDetails.size()));
17462
          for (Map.Entry<String, Long> _iter40 : this.pickupDetails.entrySet())
18217
          for (Map.Entry<String, Long> _iter44 : this.pickupDetails.entrySet())
17463
          {
18218
          {
17464
            oprot.writeString(_iter40.getKey());
18219
            oprot.writeString(_iter44.getKey());
17465
            oprot.writeI64(_iter40.getValue());
18220
            oprot.writeI64(_iter44.getValue());
17466
          }
18221
          }
17467
          oprot.writeMapEnd();
18222
          oprot.writeMapEnd();
17468
        }
18223
        }
17469
        oprot.writeFieldEnd();
18224
        oprot.writeFieldEnd();
17470
      }
18225
      }
Line 17814... Line 18569...
17814
        } else {
18569
        } else {
17815
          switch (fieldId) {
18570
          switch (fieldId) {
17816
            case SUCCESS:
18571
            case SUCCESS:
17817
              if (field.type == TType.LIST) {
18572
              if (field.type == TType.LIST) {
17818
                {
18573
                {
17819
                  TList _list41 = iprot.readListBegin();
18574
                  TList _list45 = iprot.readListBegin();
17820
                  this.success = new ArrayList<Order>(_list41.size);
18575
                  this.success = new ArrayList<Order>(_list45.size);
17821
                  for (int _i42 = 0; _i42 < _list41.size; ++_i42)
18576
                  for (int _i46 = 0; _i46 < _list45.size; ++_i46)
17822
                  {
18577
                  {
17823
                    Order _elem43;
18578
                    Order _elem47;
17824
                    _elem43 = new Order();
18579
                    _elem47 = new Order();
17825
                    _elem43.read(iprot);
18580
                    _elem47.read(iprot);
17826
                    this.success.add(_elem43);
18581
                    this.success.add(_elem47);
17827
                  }
18582
                  }
17828
                  iprot.readListEnd();
18583
                  iprot.readListEnd();
17829
                }
18584
                }
17830
              } else { 
18585
              } else { 
17831
                TProtocolUtil.skip(iprot, field.type);
18586
                TProtocolUtil.skip(iprot, field.type);
Line 17852... Line 18607...
17852
 
18607
 
17853
      if (this.isSetSuccess()) {
18608
      if (this.isSetSuccess()) {
17854
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17855
        {
18610
        {
17856
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18611
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17857
          for (Order _iter44 : this.success)
18612
          for (Order _iter48 : this.success)
17858
          {
18613
          {
17859
            _iter44.write(oprot);
18614
            _iter48.write(oprot);
17860
          }
18615
          }
17861
          oprot.writeListEnd();
18616
          oprot.writeListEnd();
17862
        }
18617
        }
17863
        oprot.writeFieldEnd();
18618
        oprot.writeFieldEnd();
17864
      } else if (this.isSetEx()) {
18619
      } else if (this.isSetEx()) {
Line 18204... Line 18959...
18204
              }
18959
              }
18205
              break;
18960
              break;
18206
            case DELIVERED_ORDERS:
18961
            case DELIVERED_ORDERS:
18207
              if (field.type == TType.MAP) {
18962
              if (field.type == TType.MAP) {
18208
                {
18963
                {
18209
                  TMap _map45 = iprot.readMapBegin();
18964
                  TMap _map49 = iprot.readMapBegin();
18210
                  this.deliveredOrders = new HashMap<String,String>(2*_map45.size);
18965
                  this.deliveredOrders = new HashMap<String,String>(2*_map49.size);
18211
                  for (int _i46 = 0; _i46 < _map45.size; ++_i46)
18966
                  for (int _i50 = 0; _i50 < _map49.size; ++_i50)
18212
                  {
18967
                  {
18213
                    String _key47;
18968
                    String _key51;
18214
                    String _val48;
18969
                    String _val52;
18215
                    _key47 = iprot.readString();
18970
                    _key51 = iprot.readString();
18216
                    _val48 = iprot.readString();
18971
                    _val52 = iprot.readString();
18217
                    this.deliveredOrders.put(_key47, _val48);
18972
                    this.deliveredOrders.put(_key51, _val52);
18218
                  }
18973
                  }
18219
                  iprot.readMapEnd();
18974
                  iprot.readMapEnd();
18220
                }
18975
                }
18221
              } else { 
18976
              } else { 
18222
                TProtocolUtil.skip(iprot, field.type);
18977
                TProtocolUtil.skip(iprot, field.type);
Line 18239... Line 18994...
18239
      oprot.writeFieldEnd();
18994
      oprot.writeFieldEnd();
18240
      if (this.deliveredOrders != null) {
18995
      if (this.deliveredOrders != null) {
18241
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
18996
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
18242
        {
18997
        {
18243
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
18998
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
18244
          for (Map.Entry<String, String> _iter49 : this.deliveredOrders.entrySet())
18999
          for (Map.Entry<String, String> _iter53 : this.deliveredOrders.entrySet())
18245
          {
19000
          {
18246
            oprot.writeString(_iter49.getKey());
19001
            oprot.writeString(_iter53.getKey());
18247
            oprot.writeString(_iter49.getValue());
19002
            oprot.writeString(_iter53.getValue());
18248
          }
19003
          }
18249
          oprot.writeMapEnd();
19004
          oprot.writeMapEnd();
18250
        }
19005
        }
18251
        oprot.writeFieldEnd();
19006
        oprot.writeFieldEnd();
18252
      }
19007
      }
Line 18865... Line 19620...
18865
              }
19620
              }
18866
              break;
19621
              break;
18867
            case RETURNED_ORDERS:
19622
            case RETURNED_ORDERS:
18868
              if (field.type == TType.MAP) {
19623
              if (field.type == TType.MAP) {
18869
                {
19624
                {
18870
                  TMap _map50 = iprot.readMapBegin();
19625
                  TMap _map54 = iprot.readMapBegin();
18871
                  this.returnedOrders = new HashMap<String,String>(2*_map50.size);
19626
                  this.returnedOrders = new HashMap<String,String>(2*_map54.size);
18872
                  for (int _i51 = 0; _i51 < _map50.size; ++_i51)
19627
                  for (int _i55 = 0; _i55 < _map54.size; ++_i55)
18873
                  {
19628
                  {
18874
                    String _key52;
19629
                    String _key56;
18875
                    String _val53;
19630
                    String _val57;
18876
                    _key52 = iprot.readString();
19631
                    _key56 = iprot.readString();
18877
                    _val53 = iprot.readString();
19632
                    _val57 = iprot.readString();
18878
                    this.returnedOrders.put(_key52, _val53);
19633
                    this.returnedOrders.put(_key56, _val57);
18879
                  }
19634
                  }
18880
                  iprot.readMapEnd();
19635
                  iprot.readMapEnd();
18881
                }
19636
                }
18882
              } else { 
19637
              } else { 
18883
                TProtocolUtil.skip(iprot, field.type);
19638
                TProtocolUtil.skip(iprot, field.type);
Line 18900... Line 19655...
18900
      oprot.writeFieldEnd();
19655
      oprot.writeFieldEnd();
18901
      if (this.returnedOrders != null) {
19656
      if (this.returnedOrders != null) {
18902
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
19657
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
18903
        {
19658
        {
18904
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
19659
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
18905
          for (Map.Entry<String, String> _iter54 : this.returnedOrders.entrySet())
19660
          for (Map.Entry<String, String> _iter58 : this.returnedOrders.entrySet())
18906
          {
19661
          {
18907
            oprot.writeString(_iter54.getKey());
19662
            oprot.writeString(_iter58.getKey());
18908
            oprot.writeString(_iter54.getValue());
19663
            oprot.writeString(_iter58.getValue());
18909
          }
19664
          }
18910
          oprot.writeMapEnd();
19665
          oprot.writeMapEnd();
18911
        }
19666
        }
18912
        oprot.writeFieldEnd();
19667
        oprot.writeFieldEnd();
18913
      }
19668
      }
Line 19830... Line 20585...
19830
        } else {
20585
        } else {
19831
          switch (fieldId) {
20586
          switch (fieldId) {
19832
            case SUCCESS:
20587
            case SUCCESS:
19833
              if (field.type == TType.LIST) {
20588
              if (field.type == TType.LIST) {
19834
                {
20589
                {
19835
                  TList _list55 = iprot.readListBegin();
20590
                  TList _list59 = iprot.readListBegin();
19836
                  this.success = new ArrayList<Alert>(_list55.size);
20591
                  this.success = new ArrayList<Alert>(_list59.size);
19837
                  for (int _i56 = 0; _i56 < _list55.size; ++_i56)
20592
                  for (int _i60 = 0; _i60 < _list59.size; ++_i60)
19838
                  {
20593
                  {
19839
                    Alert _elem57;
20594
                    Alert _elem61;
19840
                    _elem57 = new Alert();
20595
                    _elem61 = new Alert();
19841
                    _elem57.read(iprot);
20596
                    _elem61.read(iprot);
19842
                    this.success.add(_elem57);
20597
                    this.success.add(_elem61);
19843
                  }
20598
                  }
19844
                  iprot.readListEnd();
20599
                  iprot.readListEnd();
19845
                }
20600
                }
19846
              } else { 
20601
              } else { 
19847
                TProtocolUtil.skip(iprot, field.type);
20602
                TProtocolUtil.skip(iprot, field.type);
Line 19860... Line 20615...
19860
 
20615
 
19861
      if (this.isSetSuccess()) {
20616
      if (this.isSetSuccess()) {
19862
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20617
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19863
        {
20618
        {
19864
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
20619
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
19865
          for (Alert _iter58 : this.success)
20620
          for (Alert _iter62 : this.success)
19866
          {
20621
          {
19867
            _iter58.write(oprot);
20622
            _iter62.write(oprot);
19868
          }
20623
          }
19869
          oprot.writeListEnd();
20624
          oprot.writeListEnd();
19870
        }
20625
        }
19871
        oprot.writeFieldEnd();
20626
        oprot.writeFieldEnd();
19872
      }
20627
      }