Subversion Repositories SmartDukaan

Rev

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

Rev 3014 Rev 3061
Line 75... Line 75...
75
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException;
75
    public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException;
76
 
76
 
77
    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;
78
 
78
 
79
    /**
79
    /**
80
     * Add billing details such as the bill number and the biller to the Order.
-
 
81
     * 
-
 
82
     * @param orderId
-
 
83
     * @param invoice_number
-
 
84
     * @param billed_by
-
 
85
     */
-
 
86
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, TException;
-
 
87
 
-
 
88
    /**
-
 
89
     * Adds jacket number and IMEI no. to the order. Doesn't update the IMEI no. if a -1 is supplied.
-
 
90
     * Also marks the order as billed and sets the billing timestamp.
-
 
91
     * Return false if it doesn't find the order with the given ID.
-
 
92
     * 
-
 
93
     * @param orderId
-
 
94
     * @param jacketNumber
-
 
95
     * @param imeiNumber
-
 
96
     * @param itemNumber
-
 
97
     * @param billedBy
-
 
98
     * @param billingType
-
 
99
     */
-
 
100
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, TException;
-
 
101
 
-
 
102
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException;
-
 
103
 
-
 
104
    public boolean billOrder(long orderId) throws TransactionServiceException, TException;
-
 
105
 
-
 
106
    /**
-
 
107
     * Returns list of orders for given transaction Id. Also filters based on customer Id so that
80
     * Returns list of orders for given transaction Id. Also filters based on customer Id so that
108
     * only user who owns the transaction can view its order details.
81
     * only user who owns the transaction can view its order details.
109
     * 
82
     * 
110
     * @param transactionId
83
     * @param transactionId
111
     * @param customerId
84
     * @param customerId
Line 136... Line 109...
136
     * @param orderId
109
     * @param orderId
137
     * @param customerId
110
     * @param customerId
138
     */
111
     */
139
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, TException;
112
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, TException;
140
 
113
 
-
 
114
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
-
 
115
 
-
 
116
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
-
 
117
 
-
 
118
    /**
-
 
119
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
120
     */
-
 
121
    public long getValidOrderCount() throws TException;
-
 
122
 
-
 
123
    /**
-
 
124
     * Returns the number of distinct customers who have done successful transactions
-
 
125
     */
-
 
126
    public long getNoOfCustomersWithSuccessfulTransaction() throws TException;
-
 
127
 
-
 
128
    /**
-
 
129
     * Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
130
     * List contains two values, first minimum amount and second maximum amount.
-
 
131
     */
-
 
132
    public List<Double> getValidOrdersAmountRange() throws TException;
-
 
133
 
-
 
134
    /**
-
 
135
     * Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
-
 
136
     * If limit is passed as 0, then all valid Orders are returned.
-
 
137
     * 
-
 
138
     * @param limit
-
 
139
     */
-
 
140
    public List<Order> getValidOrders(long limit) throws TException;
-
 
141
 
141
    /**
142
    /**
142
     * Create a batch of all the pending orders for the given warehouse.
143
     * Create a batch of all the pending orders for the given warehouse.
143
     * The returned list is orderd by created_timestamp.
144
     * The returned list is orderd by created_timestamp.
144
     * If there are no pending orders, an empty list is returned.
145
     * If there are no pending orders, an empty list is returned.
145
     * 
146
     * 
Line 153... Line 154...
153
     * @param orderId
154
     * @param orderId
154
     */
155
     */
155
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, TException;
156
    public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, TException;
156
 
157
 
157
    /**
158
    /**
-
 
159
     * Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
-
 
160
     * timestamp. It is intended to be used for COD orders but can be harmlessly
-
 
161
     * used for all other orders as well.
-
 
162
     * Throws an exception if no such order exists.
-
 
163
     * 
-
 
164
     * @param orderId
-
 
165
     */
-
 
166
    public boolean verifyOrder(long orderId) throws TransactionServiceException, TException;
-
 
167
 
-
 
168
    /**
-
 
169
     * Marks the given order as ACCEPTED and updates the accepted timestamp. If the
-
 
170
     * given order is not a COD order, it also captures the payment if the same has
-
 
171
     * not been captured.
-
 
172
     * Throws an exception if no such order exists.
-
 
173
     * 
-
 
174
     * @param orderId
-
 
175
     */
-
 
176
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException;
-
 
177
 
-
 
178
    public boolean billOrder(long orderId) throws TransactionServiceException, TException;
-
 
179
 
-
 
180
    /**
-
 
181
     * Add billing details such as the bill number and the biller to the Order.
-
 
182
     * Should be used when the bill is issued by a 3rd party and we've to feed
-
 
183
     * the information into our system.
-
 
184
     * 
-
 
185
     * @param orderId
-
 
186
     * @param invoice_number
-
 
187
     * @param billed_by
-
 
188
     */
-
 
189
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, TException;
-
 
190
 
-
 
191
    /**
-
 
192
     * Adds jacket number, item number and IMEI no. to the order. Doesn't update
-
 
193
     * the IMEI no. if a -1 is supplied.
-
 
194
     * Also, it generates an invoice number for the order, marks the order as
-
 
195
     * BILLED and sets the billing timestamp.
-
 
196
     * It should be used when we are billing the orders ourselves.
-
 
197
     * 
-
 
198
     * Returns false if it doesn't find the order with the given ID.
-
 
199
     * 
-
 
200
     * @param orderId
-
 
201
     * @param jacketNumber
-
 
202
     * @param imeiNumber
-
 
203
     * @param itemNumber
-
 
204
     * @param billedBy
-
 
205
     * @param billingType
-
 
206
     */
-
 
207
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, TException;
-
 
208
 
-
 
209
    /**
-
 
210
     * Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
158
     * Marks all BILLED orders for a warehouse and a provider as SHIPPED_FROM_WH
211
     * given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
159
     * 
212
     * 
160
     * @param warehouseId
213
     * @param warehouseId
161
     * @param providerId
214
     * @param providerId
-
 
215
     * @param cod
162
     */
216
     */
163
    public boolean markOrdersAsManifested(long warehouseId, long providerId) throws TransactionServiceException, TException;
217
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, TException;
164
 
218
 
165
    /**
219
    /**
166
     * Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
220
     * Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
167
     * Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
221
     * Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
168
     * Raises an exception if we encounter report for an AWB number that we did not ship.
222
     * Raises an exception if we encounter report for an AWB number that we did not ship.
Line 208... Line 262...
208
     * @param providerId
262
     * @param providerId
209
     * @param warehouseId
263
     * @param warehouseId
210
     */
264
     */
211
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws TException;
265
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws TException;
212
 
266
 
213
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
-
 
214
 
-
 
215
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
-
 
216
 
-
 
217
    /**
-
 
218
     * Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
219
     */
-
 
220
    public long getValidOrderCount() throws TException;
-
 
221
 
-
 
222
    /**
-
 
223
     * Returns the number of distinct customers who have done successful transactions
-
 
224
     */
-
 
225
    public long getNoOfCustomersWithSuccessfulTransaction() throws TException;
-
 
226
 
-
 
227
    /**
-
 
228
     * Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
229
     * List contains two values, first minimum amount and second maximum amount.
-
 
230
     */
-
 
231
    public List<Double> getValidOrdersAmountRange() throws TException;
-
 
232
 
-
 
233
    /**
-
 
234
     * Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
-
 
235
     * If limit is passed as 0, then all valid Orders are returned.
-
 
236
     * 
-
 
237
     * @param limit
-
 
238
     */
-
 
239
    public List<Order> getValidOrders(long limit) throws TException;
-
 
240
 
-
 
241
    /**
267
    /**
242
     * Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
268
     * Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
243
     * Returns the final flag status.
269
     * Returns the final flag status.
244
     * Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
270
     * Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
245
     * 
271
     * 
Line 873... Line 899...
873
        throw result.ex;
899
        throw result.ex;
874
      }
900
      }
875
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
901
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
876
    }
902
    }
877
 
903
 
878
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, TException
904
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, TException
879
    {
905
    {
880
      send_addBillingDetails(orderId, invoice_number, billed_by);
906
      send_getOrdersForTransaction(transactionId, customerId);
881
      return recv_addBillingDetails();
907
      return recv_getOrdersForTransaction();
882
    }
908
    }
883
 
909
 
884
    public void send_addBillingDetails(long orderId, String invoice_number, String billed_by) throws TException
910
    public void send_getOrdersForTransaction(long transactionId, long customerId) throws TException
885
    {
911
    {
886
      oprot_.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.CALL, seqid_));
912
      oprot_.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.CALL, seqid_));
887
      addBillingDetails_args args = new addBillingDetails_args();
913
      getOrdersForTransaction_args args = new getOrdersForTransaction_args();
888
      args.orderId = orderId;
914
      args.transactionId = transactionId;
889
      args.invoice_number = invoice_number;
-
 
890
      args.billed_by = billed_by;
915
      args.customerId = customerId;
891
      args.write(oprot_);
916
      args.write(oprot_);
892
      oprot_.writeMessageEnd();
917
      oprot_.writeMessageEnd();
893
      oprot_.getTransport().flush();
918
      oprot_.getTransport().flush();
894
    }
919
    }
895
 
920
 
896
    public boolean recv_addBillingDetails() throws TransactionServiceException, TException
921
    public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, TException
897
    {
922
    {
898
      TMessage msg = iprot_.readMessageBegin();
923
      TMessage msg = iprot_.readMessageBegin();
899
      if (msg.type == TMessageType.EXCEPTION) {
924
      if (msg.type == TMessageType.EXCEPTION) {
900
        TApplicationException x = TApplicationException.read(iprot_);
925
        TApplicationException x = TApplicationException.read(iprot_);
901
        iprot_.readMessageEnd();
926
        iprot_.readMessageEnd();
902
        throw x;
927
        throw x;
903
      }
928
      }
904
      addBillingDetails_result result = new addBillingDetails_result();
929
      getOrdersForTransaction_result result = new getOrdersForTransaction_result();
905
      result.read(iprot_);
930
      result.read(iprot_);
906
      iprot_.readMessageEnd();
931
      iprot_.readMessageEnd();
907
      if (result.isSetSuccess()) {
932
      if (result.isSetSuccess()) {
908
        return result.success;
933
        return result.success;
909
      }
934
      }
910
      if (result.ex != null) {
935
      if (result.ex != null) {
911
        throw result.ex;
936
        throw result.ex;
912
      }
937
      }
913
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
938
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
914
    }
939
    }
915
 
940
 
916
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, TException
941
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, TException
917
    {
942
    {
918
      send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType);
943
      send_getOrdersForCustomer(customerId, from_date, to_date, statuses);
919
      return recv_addJacketNumber();
944
      return recv_getOrdersForCustomer();
920
    }
945
    }
921
 
946
 
922
    public void send_addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TException
947
    public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TException
923
    {
948
    {
924
      oprot_.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.CALL, seqid_));
949
      oprot_.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.CALL, seqid_));
925
      addJacketNumber_args args = new addJacketNumber_args();
950
      getOrdersForCustomer_args args = new getOrdersForCustomer_args();
926
      args.orderId = orderId;
951
      args.customerId = customerId;
927
      args.jacketNumber = jacketNumber;
-
 
928
      args.imeiNumber = imeiNumber;
952
      args.from_date = from_date;
929
      args.itemNumber = itemNumber;
953
      args.to_date = to_date;
930
      args.billedBy = billedBy;
954
      args.statuses = statuses;
931
      args.billingType = billingType;
-
 
932
      args.write(oprot_);
955
      args.write(oprot_);
933
      oprot_.writeMessageEnd();
956
      oprot_.writeMessageEnd();
934
      oprot_.getTransport().flush();
957
      oprot_.getTransport().flush();
935
    }
958
    }
936
 
959
 
937
    public boolean recv_addJacketNumber() throws TransactionServiceException, TException
960
    public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, TException
938
    {
961
    {
939
      TMessage msg = iprot_.readMessageBegin();
962
      TMessage msg = iprot_.readMessageBegin();
940
      if (msg.type == TMessageType.EXCEPTION) {
963
      if (msg.type == TMessageType.EXCEPTION) {
941
        TApplicationException x = TApplicationException.read(iprot_);
964
        TApplicationException x = TApplicationException.read(iprot_);
942
        iprot_.readMessageEnd();
965
        iprot_.readMessageEnd();
943
        throw x;
966
        throw x;
944
      }
967
      }
945
      addJacketNumber_result result = new addJacketNumber_result();
968
      getOrdersForCustomer_result result = new getOrdersForCustomer_result();
946
      result.read(iprot_);
969
      result.read(iprot_);
947
      iprot_.readMessageEnd();
970
      iprot_.readMessageEnd();
948
      if (result.isSetSuccess()) {
971
      if (result.isSetSuccess()) {
949
        return result.success;
972
        return result.success;
950
      }
973
      }
951
      if (result.ex != null) {
974
      if (result.ex != null) {
952
        throw result.ex;
975
        throw result.ex;
953
      }
976
      }
954
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
977
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
955
    }
978
    }
956
 
979
 
957
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException
980
    public long createOrder(Order order) throws TransactionServiceException, TException
958
    {
981
    {
959
      send_acceptOrder(orderId);
982
      send_createOrder(order);
960
      return recv_acceptOrder();
983
      return recv_createOrder();
961
    }
984
    }
962
 
985
 
963
    public void send_acceptOrder(long orderId) throws TException
986
    public void send_createOrder(Order order) throws TException
964
    {
987
    {
965
      oprot_.writeMessageBegin(new TMessage("acceptOrder", TMessageType.CALL, seqid_));
988
      oprot_.writeMessageBegin(new TMessage("createOrder", TMessageType.CALL, seqid_));
966
      acceptOrder_args args = new acceptOrder_args();
989
      createOrder_args args = new createOrder_args();
967
      args.orderId = orderId;
990
      args.order = order;
968
      args.write(oprot_);
991
      args.write(oprot_);
969
      oprot_.writeMessageEnd();
992
      oprot_.writeMessageEnd();
970
      oprot_.getTransport().flush();
993
      oprot_.getTransport().flush();
971
    }
994
    }
972
 
995
 
973
    public boolean recv_acceptOrder() throws TransactionServiceException, TException
996
    public long recv_createOrder() throws TransactionServiceException, TException
974
    {
997
    {
975
      TMessage msg = iprot_.readMessageBegin();
998
      TMessage msg = iprot_.readMessageBegin();
976
      if (msg.type == TMessageType.EXCEPTION) {
999
      if (msg.type == TMessageType.EXCEPTION) {
977
        TApplicationException x = TApplicationException.read(iprot_);
1000
        TApplicationException x = TApplicationException.read(iprot_);
978
        iprot_.readMessageEnd();
1001
        iprot_.readMessageEnd();
979
        throw x;
1002
        throw x;
980
      }
1003
      }
981
      acceptOrder_result result = new acceptOrder_result();
1004
      createOrder_result result = new createOrder_result();
982
      result.read(iprot_);
1005
      result.read(iprot_);
983
      iprot_.readMessageEnd();
1006
      iprot_.readMessageEnd();
984
      if (result.isSetSuccess()) {
1007
      if (result.isSetSuccess()) {
985
        return result.success;
1008
        return result.success;
986
      }
1009
      }
987
      if (result.ex != null) {
1010
      if (result.ex != null) {
988
        throw result.ex;
1011
        throw result.ex;
989
      }
1012
      }
990
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1013
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
991
    }
1014
    }
992
 
1015
 
993
    public boolean billOrder(long orderId) throws TransactionServiceException, TException
1016
    public Order getOrder(long id) throws TransactionServiceException, TException
994
    {
1017
    {
995
      send_billOrder(orderId);
1018
      send_getOrder(id);
996
      return recv_billOrder();
1019
      return recv_getOrder();
997
    }
1020
    }
998
 
1021
 
999
    public void send_billOrder(long orderId) throws TException
1022
    public void send_getOrder(long id) throws TException
1000
    {
1023
    {
1001
      oprot_.writeMessageBegin(new TMessage("billOrder", TMessageType.CALL, seqid_));
1024
      oprot_.writeMessageBegin(new TMessage("getOrder", TMessageType.CALL, seqid_));
1002
      billOrder_args args = new billOrder_args();
1025
      getOrder_args args = new getOrder_args();
1003
      args.orderId = orderId;
1026
      args.id = id;
1004
      args.write(oprot_);
1027
      args.write(oprot_);
1005
      oprot_.writeMessageEnd();
1028
      oprot_.writeMessageEnd();
1006
      oprot_.getTransport().flush();
1029
      oprot_.getTransport().flush();
1007
    }
1030
    }
1008
 
1031
 
1009
    public boolean recv_billOrder() throws TransactionServiceException, TException
1032
    public Order recv_getOrder() throws TransactionServiceException, TException
1010
    {
1033
    {
1011
      TMessage msg = iprot_.readMessageBegin();
1034
      TMessage msg = iprot_.readMessageBegin();
1012
      if (msg.type == TMessageType.EXCEPTION) {
1035
      if (msg.type == TMessageType.EXCEPTION) {
1013
        TApplicationException x = TApplicationException.read(iprot_);
1036
        TApplicationException x = TApplicationException.read(iprot_);
1014
        iprot_.readMessageEnd();
1037
        iprot_.readMessageEnd();
1015
        throw x;
1038
        throw x;
1016
      }
1039
      }
1017
      billOrder_result result = new billOrder_result();
1040
      getOrder_result result = new getOrder_result();
1018
      result.read(iprot_);
1041
      result.read(iprot_);
1019
      iprot_.readMessageEnd();
1042
      iprot_.readMessageEnd();
1020
      if (result.isSetSuccess()) {
1043
      if (result.isSetSuccess()) {
1021
        return result.success;
1044
        return result.success;
1022
      }
1045
      }
1023
      if (result.ex != null) {
1046
      if (result.ex != null) {
1024
        throw result.ex;
1047
        throw result.ex;
1025
      }
1048
      }
1026
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1049
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
1027
    }
1050
    }
1028
 
1051
 
1029
    public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, TException
1052
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, TException
1030
    {
1053
    {
1031
      send_getOrdersForTransaction(transactionId, customerId);
1054
      send_getLineItemsForOrder(orderId);
1032
      return recv_getOrdersForTransaction();
1055
      return recv_getLineItemsForOrder();
1033
    }
1056
    }
1034
 
1057
 
1035
    public void send_getOrdersForTransaction(long transactionId, long customerId) throws TException
1058
    public void send_getLineItemsForOrder(long orderId) throws TException
1036
    {
1059
    {
1037
      oprot_.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.CALL, seqid_));
1060
      oprot_.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.CALL, seqid_));
1038
      getOrdersForTransaction_args args = new getOrdersForTransaction_args();
1061
      getLineItemsForOrder_args args = new getLineItemsForOrder_args();
1039
      args.transactionId = transactionId;
-
 
1040
      args.customerId = customerId;
1062
      args.orderId = orderId;
1041
      args.write(oprot_);
1063
      args.write(oprot_);
1042
      oprot_.writeMessageEnd();
1064
      oprot_.writeMessageEnd();
1043
      oprot_.getTransport().flush();
1065
      oprot_.getTransport().flush();
1044
    }
1066
    }
1045
 
1067
 
1046
    public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, TException
1068
    public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, TException
1047
    {
1069
    {
1048
      TMessage msg = iprot_.readMessageBegin();
1070
      TMessage msg = iprot_.readMessageBegin();
1049
      if (msg.type == TMessageType.EXCEPTION) {
1071
      if (msg.type == TMessageType.EXCEPTION) {
1050
        TApplicationException x = TApplicationException.read(iprot_);
1072
        TApplicationException x = TApplicationException.read(iprot_);
1051
        iprot_.readMessageEnd();
1073
        iprot_.readMessageEnd();
1052
        throw x;
1074
        throw x;
1053
      }
1075
      }
1054
      getOrdersForTransaction_result result = new getOrdersForTransaction_result();
1076
      getLineItemsForOrder_result result = new getLineItemsForOrder_result();
1055
      result.read(iprot_);
1077
      result.read(iprot_);
1056
      iprot_.readMessageEnd();
1078
      iprot_.readMessageEnd();
1057
      if (result.isSetSuccess()) {
1079
      if (result.isSetSuccess()) {
1058
        return result.success;
1080
        return result.success;
1059
      }
1081
      }
1060
      if (result.ex != null) {
1082
      if (result.ex != null) {
1061
        throw result.ex;
1083
        throw result.ex;
1062
      }
1084
      }
1063
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
1085
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
1064
    }
1086
    }
1065
 
1087
 
1066
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, TException
1088
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, TException
1067
    {
1089
    {
1068
      send_getOrdersForCustomer(customerId, from_date, to_date, statuses);
1090
      send_getOrderForCustomer(orderId, customerId);
1069
      return recv_getOrdersForCustomer();
1091
      return recv_getOrderForCustomer();
1070
    }
1092
    }
1071
 
1093
 
1072
    public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TException
1094
    public void send_getOrderForCustomer(long orderId, long customerId) throws TException
1073
    {
1095
    {
1074
      oprot_.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.CALL, seqid_));
1096
      oprot_.writeMessageBegin(new TMessage("getOrderForCustomer", TMessageType.CALL, seqid_));
1075
      getOrdersForCustomer_args args = new getOrdersForCustomer_args();
1097
      getOrderForCustomer_args args = new getOrderForCustomer_args();
-
 
1098
      args.orderId = orderId;
1076
      args.customerId = customerId;
1099
      args.customerId = customerId;
1077
      args.from_date = from_date;
-
 
1078
      args.to_date = to_date;
-
 
1079
      args.statuses = statuses;
-
 
1080
      args.write(oprot_);
1100
      args.write(oprot_);
1081
      oprot_.writeMessageEnd();
1101
      oprot_.writeMessageEnd();
1082
      oprot_.getTransport().flush();
1102
      oprot_.getTransport().flush();
1083
    }
1103
    }
1084
 
1104
 
1085
    public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, TException
1105
    public Order recv_getOrderForCustomer() throws TransactionServiceException, TException
1086
    {
1106
    {
1087
      TMessage msg = iprot_.readMessageBegin();
1107
      TMessage msg = iprot_.readMessageBegin();
1088
      if (msg.type == TMessageType.EXCEPTION) {
1108
      if (msg.type == TMessageType.EXCEPTION) {
1089
        TApplicationException x = TApplicationException.read(iprot_);
1109
        TApplicationException x = TApplicationException.read(iprot_);
1090
        iprot_.readMessageEnd();
1110
        iprot_.readMessageEnd();
1091
        throw x;
1111
        throw x;
1092
      }
1112
      }
1093
      getOrdersForCustomer_result result = new getOrdersForCustomer_result();
1113
      getOrderForCustomer_result result = new getOrderForCustomer_result();
1094
      result.read(iprot_);
1114
      result.read(iprot_);
1095
      iprot_.readMessageEnd();
1115
      iprot_.readMessageEnd();
1096
      if (result.isSetSuccess()) {
1116
      if (result.isSetSuccess()) {
1097
        return result.success;
1117
        return result.success;
1098
      }
1118
      }
1099
      if (result.ex != null) {
1119
      if (result.ex != null) {
1100
        throw result.ex;
1120
        throw result.ex;
1101
      }
1121
      }
1102
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
1122
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1103
    }
1123
    }
1104
 
1124
 
1105
    public long createOrder(Order order) throws TransactionServiceException, TException
1125
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException
1106
    {
1126
    {
1107
      send_createOrder(order);
1127
      send_getAlerts(orderId, valid);
1108
      return recv_createOrder();
1128
      return recv_getAlerts();
1109
    }
1129
    }
1110
 
1130
 
1111
    public void send_createOrder(Order order) throws TException
1131
    public void send_getAlerts(long orderId, boolean valid) throws TException
1112
    {
1132
    {
1113
      oprot_.writeMessageBegin(new TMessage("createOrder", TMessageType.CALL, seqid_));
1133
      oprot_.writeMessageBegin(new TMessage("getAlerts", TMessageType.CALL, seqid_));
1114
      createOrder_args args = new createOrder_args();
1134
      getAlerts_args args = new getAlerts_args();
1115
      args.order = order;
1135
      args.orderId = orderId;
-
 
1136
      args.valid = valid;
1116
      args.write(oprot_);
1137
      args.write(oprot_);
1117
      oprot_.writeMessageEnd();
1138
      oprot_.writeMessageEnd();
1118
      oprot_.getTransport().flush();
1139
      oprot_.getTransport().flush();
1119
    }
1140
    }
1120
 
1141
 
1121
    public long recv_createOrder() throws TransactionServiceException, TException
1142
    public List<Alert> recv_getAlerts() throws TException
1122
    {
1143
    {
1123
      TMessage msg = iprot_.readMessageBegin();
1144
      TMessage msg = iprot_.readMessageBegin();
1124
      if (msg.type == TMessageType.EXCEPTION) {
1145
      if (msg.type == TMessageType.EXCEPTION) {
1125
        TApplicationException x = TApplicationException.read(iprot_);
1146
        TApplicationException x = TApplicationException.read(iprot_);
1126
        iprot_.readMessageEnd();
1147
        iprot_.readMessageEnd();
1127
        throw x;
1148
        throw x;
1128
      }
1149
      }
1129
      createOrder_result result = new createOrder_result();
1150
      getAlerts_result result = new getAlerts_result();
1130
      result.read(iprot_);
1151
      result.read(iprot_);
1131
      iprot_.readMessageEnd();
1152
      iprot_.readMessageEnd();
1132
      if (result.isSetSuccess()) {
1153
      if (result.isSetSuccess()) {
1133
        return result.success;
1154
        return result.success;
1134
      }
1155
      }
-
 
1156
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
-
 
1157
    }
-
 
1158
 
-
 
1159
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException
-
 
1160
    {
-
 
1161
      send_setAlert(orderId, unset, type, comment);
-
 
1162
      recv_setAlert();
-
 
1163
    }
-
 
1164
 
-
 
1165
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws TException
-
 
1166
    {
-
 
1167
      oprot_.writeMessageBegin(new TMessage("setAlert", TMessageType.CALL, seqid_));
-
 
1168
      setAlert_args args = new setAlert_args();
-
 
1169
      args.orderId = orderId;
1135
      if (result.ex != null) {
1170
      args.unset = unset;
-
 
1171
      args.type = type;
-
 
1172
      args.comment = comment;
-
 
1173
      args.write(oprot_);
-
 
1174
      oprot_.writeMessageEnd();
-
 
1175
      oprot_.getTransport().flush();
-
 
1176
    }
-
 
1177
 
-
 
1178
    public void recv_setAlert() throws TException
-
 
1179
    {
-
 
1180
      TMessage msg = iprot_.readMessageBegin();
-
 
1181
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1182
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1183
        iprot_.readMessageEnd();
1136
        throw result.ex;
1184
        throw x;
1137
      }
1185
      }
1138
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
1186
      setAlert_result result = new setAlert_result();
-
 
1187
      result.read(iprot_);
-
 
1188
      iprot_.readMessageEnd();
-
 
1189
      return;
1139
    }
1190
    }
1140
 
1191
 
1141
    public Order getOrder(long id) throws TransactionServiceException, TException
1192
    public long getValidOrderCount() throws TException
1142
    {
1193
    {
1143
      send_getOrder(id);
1194
      send_getValidOrderCount();
1144
      return recv_getOrder();
1195
      return recv_getValidOrderCount();
1145
    }
1196
    }
1146
 
1197
 
1147
    public void send_getOrder(long id) throws TException
1198
    public void send_getValidOrderCount() throws TException
1148
    {
1199
    {
1149
      oprot_.writeMessageBegin(new TMessage("getOrder", TMessageType.CALL, seqid_));
1200
      oprot_.writeMessageBegin(new TMessage("getValidOrderCount", TMessageType.CALL, seqid_));
1150
      getOrder_args args = new getOrder_args();
1201
      getValidOrderCount_args args = new getValidOrderCount_args();
1151
      args.id = id;
-
 
1152
      args.write(oprot_);
1202
      args.write(oprot_);
1153
      oprot_.writeMessageEnd();
1203
      oprot_.writeMessageEnd();
1154
      oprot_.getTransport().flush();
1204
      oprot_.getTransport().flush();
1155
    }
1205
    }
1156
 
1206
 
1157
    public Order recv_getOrder() throws TransactionServiceException, TException
1207
    public long recv_getValidOrderCount() throws TException
1158
    {
1208
    {
1159
      TMessage msg = iprot_.readMessageBegin();
1209
      TMessage msg = iprot_.readMessageBegin();
1160
      if (msg.type == TMessageType.EXCEPTION) {
1210
      if (msg.type == TMessageType.EXCEPTION) {
1161
        TApplicationException x = TApplicationException.read(iprot_);
1211
        TApplicationException x = TApplicationException.read(iprot_);
1162
        iprot_.readMessageEnd();
1212
        iprot_.readMessageEnd();
1163
        throw x;
1213
        throw x;
1164
      }
1214
      }
1165
      getOrder_result result = new getOrder_result();
1215
      getValidOrderCount_result result = new getValidOrderCount_result();
1166
      result.read(iprot_);
1216
      result.read(iprot_);
1167
      iprot_.readMessageEnd();
1217
      iprot_.readMessageEnd();
1168
      if (result.isSetSuccess()) {
1218
      if (result.isSetSuccess()) {
1169
        return result.success;
1219
        return result.success;
1170
      }
1220
      }
1171
      if (result.ex != null) {
-
 
1172
        throw result.ex;
-
 
1173
      }
-
 
1174
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
1221
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1175
    }
1222
    }
1176
 
1223
 
1177
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, TException
1224
    public long getNoOfCustomersWithSuccessfulTransaction() throws TException
1178
    {
1225
    {
1179
      send_getLineItemsForOrder(orderId);
1226
      send_getNoOfCustomersWithSuccessfulTransaction();
1180
      return recv_getLineItemsForOrder();
1227
      return recv_getNoOfCustomersWithSuccessfulTransaction();
1181
    }
1228
    }
1182
 
1229
 
1183
    public void send_getLineItemsForOrder(long orderId) throws TException
1230
    public void send_getNoOfCustomersWithSuccessfulTransaction() throws TException
1184
    {
1231
    {
1185
      oprot_.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.CALL, seqid_));
1232
      oprot_.writeMessageBegin(new TMessage("getNoOfCustomersWithSuccessfulTransaction", TMessageType.CALL, seqid_));
1186
      getLineItemsForOrder_args args = new getLineItemsForOrder_args();
1233
      getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
1187
      args.orderId = orderId;
-
 
1188
      args.write(oprot_);
1234
      args.write(oprot_);
1189
      oprot_.writeMessageEnd();
1235
      oprot_.writeMessageEnd();
1190
      oprot_.getTransport().flush();
1236
      oprot_.getTransport().flush();
1191
    }
1237
    }
1192
 
1238
 
1193
    public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, TException
1239
    public long recv_getNoOfCustomersWithSuccessfulTransaction() throws TException
1194
    {
1240
    {
1195
      TMessage msg = iprot_.readMessageBegin();
1241
      TMessage msg = iprot_.readMessageBegin();
1196
      if (msg.type == TMessageType.EXCEPTION) {
1242
      if (msg.type == TMessageType.EXCEPTION) {
1197
        TApplicationException x = TApplicationException.read(iprot_);
1243
        TApplicationException x = TApplicationException.read(iprot_);
1198
        iprot_.readMessageEnd();
1244
        iprot_.readMessageEnd();
1199
        throw x;
1245
        throw x;
1200
      }
1246
      }
1201
      getLineItemsForOrder_result result = new getLineItemsForOrder_result();
1247
      getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
1202
      result.read(iprot_);
1248
      result.read(iprot_);
1203
      iprot_.readMessageEnd();
1249
      iprot_.readMessageEnd();
1204
      if (result.isSetSuccess()) {
1250
      if (result.isSetSuccess()) {
1205
        return result.success;
1251
        return result.success;
1206
      }
1252
      }
1207
      if (result.ex != null) {
-
 
1208
        throw result.ex;
-
 
1209
      }
-
 
1210
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
1253
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
1211
    }
1254
    }
1212
 
1255
 
1213
    public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, TException
1256
    public List<Double> getValidOrdersAmountRange() throws TException
1214
    {
1257
    {
1215
      send_getOrderForCustomer(orderId, customerId);
1258
      send_getValidOrdersAmountRange();
1216
      return recv_getOrderForCustomer();
1259
      return recv_getValidOrdersAmountRange();
1217
    }
1260
    }
1218
 
1261
 
1219
    public void send_getOrderForCustomer(long orderId, long customerId) throws TException
1262
    public void send_getValidOrdersAmountRange() throws TException
1220
    {
1263
    {
1221
      oprot_.writeMessageBegin(new TMessage("getOrderForCustomer", TMessageType.CALL, seqid_));
1264
      oprot_.writeMessageBegin(new TMessage("getValidOrdersAmountRange", TMessageType.CALL, seqid_));
1222
      getOrderForCustomer_args args = new getOrderForCustomer_args();
1265
      getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
1223
      args.orderId = orderId;
-
 
1224
      args.customerId = customerId;
-
 
1225
      args.write(oprot_);
1266
      args.write(oprot_);
1226
      oprot_.writeMessageEnd();
1267
      oprot_.writeMessageEnd();
1227
      oprot_.getTransport().flush();
1268
      oprot_.getTransport().flush();
1228
    }
1269
    }
1229
 
1270
 
1230
    public Order recv_getOrderForCustomer() throws TransactionServiceException, TException
1271
    public List<Double> recv_getValidOrdersAmountRange() throws TException
1231
    {
1272
    {
1232
      TMessage msg = iprot_.readMessageBegin();
1273
      TMessage msg = iprot_.readMessageBegin();
1233
      if (msg.type == TMessageType.EXCEPTION) {
1274
      if (msg.type == TMessageType.EXCEPTION) {
1234
        TApplicationException x = TApplicationException.read(iprot_);
1275
        TApplicationException x = TApplicationException.read(iprot_);
1235
        iprot_.readMessageEnd();
1276
        iprot_.readMessageEnd();
1236
        throw x;
1277
        throw x;
1237
      }
1278
      }
1238
      getOrderForCustomer_result result = new getOrderForCustomer_result();
1279
      getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
1239
      result.read(iprot_);
1280
      result.read(iprot_);
1240
      iprot_.readMessageEnd();
1281
      iprot_.readMessageEnd();
1241
      if (result.isSetSuccess()) {
1282
      if (result.isSetSuccess()) {
1242
        return result.success;
1283
        return result.success;
1243
      }
1284
      }
-
 
1285
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
-
 
1286
    }
-
 
1287
 
-
 
1288
    public List<Order> getValidOrders(long limit) throws TException
-
 
1289
    {
-
 
1290
      send_getValidOrders(limit);
-
 
1291
      return recv_getValidOrders();
-
 
1292
    }
-
 
1293
 
-
 
1294
    public void send_getValidOrders(long limit) throws TException
-
 
1295
    {
-
 
1296
      oprot_.writeMessageBegin(new TMessage("getValidOrders", TMessageType.CALL, seqid_));
-
 
1297
      getValidOrders_args args = new getValidOrders_args();
1244
      if (result.ex != null) {
1298
      args.limit = limit;
-
 
1299
      args.write(oprot_);
-
 
1300
      oprot_.writeMessageEnd();
-
 
1301
      oprot_.getTransport().flush();
-
 
1302
    }
-
 
1303
 
-
 
1304
    public List<Order> recv_getValidOrders() throws TException
-
 
1305
    {
-
 
1306
      TMessage msg = iprot_.readMessageBegin();
-
 
1307
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1308
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1309
        iprot_.readMessageEnd();
1245
        throw result.ex;
1310
        throw x;
1246
      }
1311
      }
-
 
1312
      getValidOrders_result result = new getValidOrders_result();
-
 
1313
      result.read(iprot_);
-
 
1314
      iprot_.readMessageEnd();
-
 
1315
      if (result.isSetSuccess()) {
-
 
1316
        return result.success;
-
 
1317
      }
1247
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1318
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1248
    }
1319
    }
1249
 
1320
 
1250
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, TException
1321
    public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, TException
1251
    {
1322
    {
1252
      send_batchOrders(warehouseId);
1323
      send_batchOrders(warehouseId);
Line 1317... Line 1388...
1317
        throw result.ex;
1388
        throw result.ex;
1318
      }
1389
      }
1319
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1390
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1320
    }
1391
    }
1321
 
1392
 
1322
    public boolean markOrdersAsManifested(long warehouseId, long providerId) throws TransactionServiceException, TException
1393
    public boolean verifyOrder(long orderId) throws TransactionServiceException, TException
1323
    {
1394
    {
1324
      send_markOrdersAsManifested(warehouseId, providerId);
1395
      send_verifyOrder(orderId);
1325
      return recv_markOrdersAsManifested();
1396
      return recv_verifyOrder();
1326
    }
1397
    }
1327
 
1398
 
1328
    public void send_markOrdersAsManifested(long warehouseId, long providerId) throws TException
1399
    public void send_verifyOrder(long orderId) throws TException
1329
    {
1400
    {
1330
      oprot_.writeMessageBegin(new TMessage("markOrdersAsManifested", TMessageType.CALL, seqid_));
1401
      oprot_.writeMessageBegin(new TMessage("verifyOrder", TMessageType.CALL, seqid_));
1331
      markOrdersAsManifested_args args = new markOrdersAsManifested_args();
1402
      verifyOrder_args args = new verifyOrder_args();
1332
      args.warehouseId = warehouseId;
-
 
1333
      args.providerId = providerId;
1403
      args.orderId = orderId;
1334
      args.write(oprot_);
1404
      args.write(oprot_);
1335
      oprot_.writeMessageEnd();
1405
      oprot_.writeMessageEnd();
1336
      oprot_.getTransport().flush();
1406
      oprot_.getTransport().flush();
1337
    }
1407
    }
1338
 
1408
 
1339
    public boolean recv_markOrdersAsManifested() throws TransactionServiceException, TException
1409
    public boolean recv_verifyOrder() throws TransactionServiceException, TException
1340
    {
1410
    {
1341
      TMessage msg = iprot_.readMessageBegin();
1411
      TMessage msg = iprot_.readMessageBegin();
1342
      if (msg.type == TMessageType.EXCEPTION) {
1412
      if (msg.type == TMessageType.EXCEPTION) {
1343
        TApplicationException x = TApplicationException.read(iprot_);
1413
        TApplicationException x = TApplicationException.read(iprot_);
1344
        iprot_.readMessageEnd();
1414
        iprot_.readMessageEnd();
1345
        throw x;
1415
        throw x;
1346
      }
1416
      }
1347
      markOrdersAsManifested_result result = new markOrdersAsManifested_result();
1417
      verifyOrder_result result = new verifyOrder_result();
1348
      result.read(iprot_);
1418
      result.read(iprot_);
1349
      iprot_.readMessageEnd();
1419
      iprot_.readMessageEnd();
1350
      if (result.isSetSuccess()) {
1420
      if (result.isSetSuccess()) {
1351
        return result.success;
1421
        return result.success;
1352
      }
1422
      }
1353
      if (result.ex != null) {
1423
      if (result.ex != null) {
1354
        throw result.ex;
1424
        throw result.ex;
1355
      }
1425
      }
1356
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1426
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
1357
    }
1427
    }
1358
 
1428
 
1359
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, TException
1429
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException
1360
    {
1430
    {
1361
      send_markOrdersAsPickedUp(providerId, pickupDetails);
1431
      send_acceptOrder(orderId);
1362
      return recv_markOrdersAsPickedUp();
1432
      return recv_acceptOrder();
1363
    }
1433
    }
1364
 
1434
 
1365
    public void send_markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TException
1435
    public void send_acceptOrder(long orderId) throws TException
1366
    {
1436
    {
1367
      oprot_.writeMessageBegin(new TMessage("markOrdersAsPickedUp", TMessageType.CALL, seqid_));
1437
      oprot_.writeMessageBegin(new TMessage("acceptOrder", TMessageType.CALL, seqid_));
1368
      markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
1438
      acceptOrder_args args = new acceptOrder_args();
1369
      args.providerId = providerId;
1439
      args.orderId = orderId;
1370
      args.pickupDetails = pickupDetails;
-
 
1371
      args.write(oprot_);
1440
      args.write(oprot_);
1372
      oprot_.writeMessageEnd();
1441
      oprot_.writeMessageEnd();
1373
      oprot_.getTransport().flush();
1442
      oprot_.getTransport().flush();
1374
    }
1443
    }
1375
 
1444
 
1376
    public List<Order> recv_markOrdersAsPickedUp() throws TransactionServiceException, TException
1445
    public boolean recv_acceptOrder() throws TransactionServiceException, TException
1377
    {
1446
    {
1378
      TMessage msg = iprot_.readMessageBegin();
1447
      TMessage msg = iprot_.readMessageBegin();
1379
      if (msg.type == TMessageType.EXCEPTION) {
1448
      if (msg.type == TMessageType.EXCEPTION) {
1380
        TApplicationException x = TApplicationException.read(iprot_);
1449
        TApplicationException x = TApplicationException.read(iprot_);
1381
        iprot_.readMessageEnd();
1450
        iprot_.readMessageEnd();
1382
        throw x;
1451
        throw x;
1383
      }
1452
      }
1384
      markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
1453
      acceptOrder_result result = new acceptOrder_result();
1385
      result.read(iprot_);
1454
      result.read(iprot_);
1386
      iprot_.readMessageEnd();
1455
      iprot_.readMessageEnd();
1387
      if (result.isSetSuccess()) {
1456
      if (result.isSetSuccess()) {
1388
        return result.success;
1457
        return result.success;
1389
      }
1458
      }
1390
      if (result.ex != null) {
1459
      if (result.ex != null) {
1391
        throw result.ex;
1460
        throw result.ex;
1392
      }
1461
      }
1393
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
1462
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1394
    }
1463
    }
1395
 
1464
 
1396
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, TException
1465
    public boolean billOrder(long orderId) throws TransactionServiceException, TException
1397
    {
1466
    {
1398
      send_markOrdersAsDelivered(providerId, deliveredOrders);
1467
      send_billOrder(orderId);
1399
      recv_markOrdersAsDelivered();
1468
      return recv_billOrder();
1400
    }
1469
    }
1401
 
1470
 
1402
    public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TException
1471
    public void send_billOrder(long orderId) throws TException
1403
    {
1472
    {
1404
      oprot_.writeMessageBegin(new TMessage("markOrdersAsDelivered", TMessageType.CALL, seqid_));
1473
      oprot_.writeMessageBegin(new TMessage("billOrder", TMessageType.CALL, seqid_));
1405
      markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
1474
      billOrder_args args = new billOrder_args();
1406
      args.providerId = providerId;
1475
      args.orderId = orderId;
1407
      args.deliveredOrders = deliveredOrders;
-
 
1408
      args.write(oprot_);
1476
      args.write(oprot_);
1409
      oprot_.writeMessageEnd();
1477
      oprot_.writeMessageEnd();
1410
      oprot_.getTransport().flush();
1478
      oprot_.getTransport().flush();
1411
    }
1479
    }
1412
 
1480
 
1413
    public void recv_markOrdersAsDelivered() throws TransactionServiceException, TException
1481
    public boolean recv_billOrder() throws TransactionServiceException, TException
1414
    {
1482
    {
1415
      TMessage msg = iprot_.readMessageBegin();
1483
      TMessage msg = iprot_.readMessageBegin();
1416
      if (msg.type == TMessageType.EXCEPTION) {
1484
      if (msg.type == TMessageType.EXCEPTION) {
1417
        TApplicationException x = TApplicationException.read(iprot_);
1485
        TApplicationException x = TApplicationException.read(iprot_);
1418
        iprot_.readMessageEnd();
1486
        iprot_.readMessageEnd();
1419
        throw x;
1487
        throw x;
1420
      }
1488
      }
1421
      markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
1489
      billOrder_result result = new billOrder_result();
1422
      result.read(iprot_);
1490
      result.read(iprot_);
1423
      iprot_.readMessageEnd();
1491
      iprot_.readMessageEnd();
-
 
1492
      if (result.isSetSuccess()) {
-
 
1493
        return result.success;
-
 
1494
      }
1424
      if (result.ex != null) {
1495
      if (result.ex != null) {
1425
        throw result.ex;
1496
        throw result.ex;
1426
      }
1497
      }
1427
      return;
1498
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1428
    }
1499
    }
1429
 
1500
 
1430
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, TException
1501
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, TException
1431
    {
1502
    {
1432
      send_markOrdersAsFailed(providerId, returnedOrders);
1503
      send_addBillingDetails(orderId, invoice_number, billed_by);
1433
      recv_markOrdersAsFailed();
1504
      return recv_addBillingDetails();
1434
    }
1505
    }
1435
 
1506
 
1436
    public void send_markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TException
1507
    public void send_addBillingDetails(long orderId, String invoice_number, String billed_by) throws TException
1437
    {
1508
    {
1438
      oprot_.writeMessageBegin(new TMessage("markOrdersAsFailed", TMessageType.CALL, seqid_));
1509
      oprot_.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.CALL, seqid_));
1439
      markOrdersAsFailed_args args = new markOrdersAsFailed_args();
1510
      addBillingDetails_args args = new addBillingDetails_args();
1440
      args.providerId = providerId;
1511
      args.orderId = orderId;
1441
      args.returnedOrders = returnedOrders;
1512
      args.invoice_number = invoice_number;
-
 
1513
      args.billed_by = billed_by;
1442
      args.write(oprot_);
1514
      args.write(oprot_);
1443
      oprot_.writeMessageEnd();
1515
      oprot_.writeMessageEnd();
1444
      oprot_.getTransport().flush();
1516
      oprot_.getTransport().flush();
1445
    }
1517
    }
1446
 
1518
 
1447
    public void recv_markOrdersAsFailed() throws TransactionServiceException, TException
1519
    public boolean recv_addBillingDetails() throws TransactionServiceException, TException
1448
    {
1520
    {
1449
      TMessage msg = iprot_.readMessageBegin();
1521
      TMessage msg = iprot_.readMessageBegin();
1450
      if (msg.type == TMessageType.EXCEPTION) {
1522
      if (msg.type == TMessageType.EXCEPTION) {
1451
        TApplicationException x = TApplicationException.read(iprot_);
1523
        TApplicationException x = TApplicationException.read(iprot_);
1452
        iprot_.readMessageEnd();
1524
        iprot_.readMessageEnd();
1453
        throw x;
1525
        throw x;
1454
      }
1526
      }
1455
      markOrdersAsFailed_result result = new markOrdersAsFailed_result();
1527
      addBillingDetails_result result = new addBillingDetails_result();
1456
      result.read(iprot_);
1528
      result.read(iprot_);
1457
      iprot_.readMessageEnd();
1529
      iprot_.readMessageEnd();
-
 
1530
      if (result.isSetSuccess()) {
-
 
1531
        return result.success;
-
 
1532
      }
1458
      if (result.ex != null) {
1533
      if (result.ex != null) {
1459
        throw result.ex;
1534
        throw result.ex;
1460
      }
1535
      }
1461
      return;
1536
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1462
    }
1537
    }
1463
 
1538
 
1464
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, TException
1539
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, TException
1465
    {
1540
    {
1466
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1541
      send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType);
1467
      recv_updateNonDeliveryReason();
1542
      return recv_addJacketNumber();
1468
    }
1543
    }
1469
 
1544
 
1470
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TException
1545
    public void send_addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TException
1471
    {
1546
    {
1472
      oprot_.writeMessageBegin(new TMessage("updateNonDeliveryReason", TMessageType.CALL, seqid_));
1547
      oprot_.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.CALL, seqid_));
1473
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
1548
      addJacketNumber_args args = new addJacketNumber_args();
1474
      args.providerId = providerId;
1549
      args.orderId = orderId;
-
 
1550
      args.jacketNumber = jacketNumber;
-
 
1551
      args.imeiNumber = imeiNumber;
1475
      args.undeliveredOrders = undeliveredOrders;
1552
      args.itemNumber = itemNumber;
-
 
1553
      args.billedBy = billedBy;
-
 
1554
      args.billingType = billingType;
1476
      args.write(oprot_);
1555
      args.write(oprot_);
1477
      oprot_.writeMessageEnd();
1556
      oprot_.writeMessageEnd();
1478
      oprot_.getTransport().flush();
1557
      oprot_.getTransport().flush();
1479
    }
1558
    }
1480
 
1559
 
1481
    public void recv_updateNonDeliveryReason() throws TransactionServiceException, TException
1560
    public boolean recv_addJacketNumber() throws TransactionServiceException, TException
1482
    {
1561
    {
1483
      TMessage msg = iprot_.readMessageBegin();
1562
      TMessage msg = iprot_.readMessageBegin();
1484
      if (msg.type == TMessageType.EXCEPTION) {
1563
      if (msg.type == TMessageType.EXCEPTION) {
1485
        TApplicationException x = TApplicationException.read(iprot_);
1564
        TApplicationException x = TApplicationException.read(iprot_);
1486
        iprot_.readMessageEnd();
1565
        iprot_.readMessageEnd();
1487
        throw x;
1566
        throw x;
1488
      }
1567
      }
1489
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
1568
      addJacketNumber_result result = new addJacketNumber_result();
1490
      result.read(iprot_);
1569
      result.read(iprot_);
1491
      iprot_.readMessageEnd();
1570
      iprot_.readMessageEnd();
-
 
1571
      if (result.isSetSuccess()) {
-
 
1572
        return result.success;
-
 
1573
      }
1492
      if (result.ex != null) {
1574
      if (result.ex != null) {
1493
        throw result.ex;
1575
        throw result.ex;
1494
      }
1576
      }
1495
      return;
1577
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
1496
    }
1578
    }
1497
 
1579
 
1498
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws TException
1580
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, TException
1499
    {
1581
    {
1500
      send_getUndeliveredOrders(providerId, warehouseId);
1582
      send_markOrdersAsManifested(warehouseId, providerId, cod);
1501
      return recv_getUndeliveredOrders();
1583
      return recv_markOrdersAsManifested();
1502
    }
1584
    }
1503
 
1585
 
1504
    public void send_getUndeliveredOrders(long providerId, long warehouseId) throws TException
1586
    public void send_markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TException
1505
    {
1587
    {
1506
      oprot_.writeMessageBegin(new TMessage("getUndeliveredOrders", TMessageType.CALL, seqid_));
1588
      oprot_.writeMessageBegin(new TMessage("markOrdersAsManifested", TMessageType.CALL, seqid_));
1507
      getUndeliveredOrders_args args = new getUndeliveredOrders_args();
1589
      markOrdersAsManifested_args args = new markOrdersAsManifested_args();
1508
      args.providerId = providerId;
-
 
1509
      args.warehouseId = warehouseId;
1590
      args.warehouseId = warehouseId;
-
 
1591
      args.providerId = providerId;
-
 
1592
      args.cod = cod;
1510
      args.write(oprot_);
1593
      args.write(oprot_);
1511
      oprot_.writeMessageEnd();
1594
      oprot_.writeMessageEnd();
1512
      oprot_.getTransport().flush();
1595
      oprot_.getTransport().flush();
1513
    }
1596
    }
1514
 
1597
 
1515
    public List<Order> recv_getUndeliveredOrders() throws TException
1598
    public boolean recv_markOrdersAsManifested() throws TransactionServiceException, TException
1516
    {
1599
    {
1517
      TMessage msg = iprot_.readMessageBegin();
1600
      TMessage msg = iprot_.readMessageBegin();
1518
      if (msg.type == TMessageType.EXCEPTION) {
1601
      if (msg.type == TMessageType.EXCEPTION) {
1519
        TApplicationException x = TApplicationException.read(iprot_);
1602
        TApplicationException x = TApplicationException.read(iprot_);
1520
        iprot_.readMessageEnd();
1603
        iprot_.readMessageEnd();
1521
        throw x;
1604
        throw x;
1522
      }
1605
      }
1523
      getUndeliveredOrders_result result = new getUndeliveredOrders_result();
1606
      markOrdersAsManifested_result result = new markOrdersAsManifested_result();
1524
      result.read(iprot_);
1607
      result.read(iprot_);
1525
      iprot_.readMessageEnd();
1608
      iprot_.readMessageEnd();
1526
      if (result.isSetSuccess()) {
1609
      if (result.isSetSuccess()) {
1527
        return result.success;
1610
        return result.success;
1528
      }
1611
      }
-
 
1612
      if (result.ex != null) {
-
 
1613
        throw result.ex;
-
 
1614
      }
1529
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1615
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1530
    }
1616
    }
1531
 
1617
 
1532
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException
1618
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, TException
1533
    {
1619
    {
1534
      send_getAlerts(orderId, valid);
1620
      send_markOrdersAsPickedUp(providerId, pickupDetails);
1535
      return recv_getAlerts();
1621
      return recv_markOrdersAsPickedUp();
1536
    }
1622
    }
1537
 
1623
 
1538
    public void send_getAlerts(long orderId, boolean valid) throws TException
1624
    public void send_markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TException
1539
    {
1625
    {
1540
      oprot_.writeMessageBegin(new TMessage("getAlerts", TMessageType.CALL, seqid_));
1626
      oprot_.writeMessageBegin(new TMessage("markOrdersAsPickedUp", TMessageType.CALL, seqid_));
1541
      getAlerts_args args = new getAlerts_args();
1627
      markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();
1542
      args.orderId = orderId;
1628
      args.providerId = providerId;
1543
      args.valid = valid;
1629
      args.pickupDetails = pickupDetails;
1544
      args.write(oprot_);
1630
      args.write(oprot_);
1545
      oprot_.writeMessageEnd();
1631
      oprot_.writeMessageEnd();
1546
      oprot_.getTransport().flush();
1632
      oprot_.getTransport().flush();
1547
    }
1633
    }
1548
 
1634
 
1549
    public List<Alert> recv_getAlerts() throws TException
1635
    public List<Order> recv_markOrdersAsPickedUp() throws TransactionServiceException, TException
1550
    {
1636
    {
1551
      TMessage msg = iprot_.readMessageBegin();
1637
      TMessage msg = iprot_.readMessageBegin();
1552
      if (msg.type == TMessageType.EXCEPTION) {
1638
      if (msg.type == TMessageType.EXCEPTION) {
1553
        TApplicationException x = TApplicationException.read(iprot_);
1639
        TApplicationException x = TApplicationException.read(iprot_);
1554
        iprot_.readMessageEnd();
1640
        iprot_.readMessageEnd();
1555
        throw x;
1641
        throw x;
1556
      }
1642
      }
1557
      getAlerts_result result = new getAlerts_result();
1643
      markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();
1558
      result.read(iprot_);
1644
      result.read(iprot_);
1559
      iprot_.readMessageEnd();
1645
      iprot_.readMessageEnd();
1560
      if (result.isSetSuccess()) {
1646
      if (result.isSetSuccess()) {
1561
        return result.success;
1647
        return result.success;
1562
      }
1648
      }
1563
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
-
 
1564
    }
-
 
1565
 
-
 
1566
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException
-
 
1567
    {
-
 
1568
      send_setAlert(orderId, unset, type, comment);
-
 
1569
      recv_setAlert();
-
 
1570
    }
-
 
1571
 
-
 
1572
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws TException
-
 
1573
    {
-
 
1574
      oprot_.writeMessageBegin(new TMessage("setAlert", TMessageType.CALL, seqid_));
-
 
1575
      setAlert_args args = new setAlert_args();
-
 
1576
      args.orderId = orderId;
-
 
1577
      args.unset = unset;
1649
      if (result.ex != null) {
1578
      args.type = type;
-
 
1579
      args.comment = comment;
-
 
1580
      args.write(oprot_);
-
 
1581
      oprot_.writeMessageEnd();
-
 
1582
      oprot_.getTransport().flush();
-
 
1583
    }
-
 
1584
 
-
 
1585
    public void recv_setAlert() throws TException
-
 
1586
    {
-
 
1587
      TMessage msg = iprot_.readMessageBegin();
-
 
1588
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1589
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1590
        iprot_.readMessageEnd();
-
 
1591
        throw x;
1650
        throw result.ex;
1592
      }
1651
      }
1593
      setAlert_result result = new setAlert_result();
1652
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
1594
      result.read(iprot_);
-
 
1595
      iprot_.readMessageEnd();
-
 
1596
      return;
-
 
1597
    }
1653
    }
1598
 
1654
 
1599
    public long getValidOrderCount() throws TException
1655
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, TException
1600
    {
1656
    {
1601
      send_getValidOrderCount();
1657
      send_markOrdersAsDelivered(providerId, deliveredOrders);
1602
      return recv_getValidOrderCount();
1658
      recv_markOrdersAsDelivered();
1603
    }
1659
    }
1604
 
1660
 
1605
    public void send_getValidOrderCount() throws TException
1661
    public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TException
1606
    {
1662
    {
1607
      oprot_.writeMessageBegin(new TMessage("getValidOrderCount", TMessageType.CALL, seqid_));
1663
      oprot_.writeMessageBegin(new TMessage("markOrdersAsDelivered", TMessageType.CALL, seqid_));
1608
      getValidOrderCount_args args = new getValidOrderCount_args();
1664
      markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
-
 
1665
      args.providerId = providerId;
-
 
1666
      args.deliveredOrders = deliveredOrders;
1609
      args.write(oprot_);
1667
      args.write(oprot_);
1610
      oprot_.writeMessageEnd();
1668
      oprot_.writeMessageEnd();
1611
      oprot_.getTransport().flush();
1669
      oprot_.getTransport().flush();
1612
    }
1670
    }
1613
 
1671
 
1614
    public long recv_getValidOrderCount() throws TException
1672
    public void recv_markOrdersAsDelivered() throws TransactionServiceException, TException
1615
    {
1673
    {
1616
      TMessage msg = iprot_.readMessageBegin();
1674
      TMessage msg = iprot_.readMessageBegin();
1617
      if (msg.type == TMessageType.EXCEPTION) {
1675
      if (msg.type == TMessageType.EXCEPTION) {
1618
        TApplicationException x = TApplicationException.read(iprot_);
1676
        TApplicationException x = TApplicationException.read(iprot_);
1619
        iprot_.readMessageEnd();
1677
        iprot_.readMessageEnd();
1620
        throw x;
1678
        throw x;
1621
      }
1679
      }
1622
      getValidOrderCount_result result = new getValidOrderCount_result();
1680
      markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
1623
      result.read(iprot_);
1681
      result.read(iprot_);
1624
      iprot_.readMessageEnd();
1682
      iprot_.readMessageEnd();
1625
      if (result.isSetSuccess()) {
1683
      if (result.ex != null) {
1626
        return result.success;
1684
        throw result.ex;
1627
      }
1685
      }
1628
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1686
      return;
1629
    }
1687
    }
1630
 
1688
 
1631
    public long getNoOfCustomersWithSuccessfulTransaction() throws TException
1689
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, TException
1632
    {
1690
    {
1633
      send_getNoOfCustomersWithSuccessfulTransaction();
1691
      send_markOrdersAsFailed(providerId, returnedOrders);
1634
      return recv_getNoOfCustomersWithSuccessfulTransaction();
1692
      recv_markOrdersAsFailed();
1635
    }
1693
    }
1636
 
1694
 
1637
    public void send_getNoOfCustomersWithSuccessfulTransaction() throws TException
1695
    public void send_markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TException
1638
    {
1696
    {
1639
      oprot_.writeMessageBegin(new TMessage("getNoOfCustomersWithSuccessfulTransaction", TMessageType.CALL, seqid_));
1697
      oprot_.writeMessageBegin(new TMessage("markOrdersAsFailed", TMessageType.CALL, seqid_));
1640
      getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
1698
      markOrdersAsFailed_args args = new markOrdersAsFailed_args();
-
 
1699
      args.providerId = providerId;
-
 
1700
      args.returnedOrders = returnedOrders;
1641
      args.write(oprot_);
1701
      args.write(oprot_);
1642
      oprot_.writeMessageEnd();
1702
      oprot_.writeMessageEnd();
1643
      oprot_.getTransport().flush();
1703
      oprot_.getTransport().flush();
1644
    }
1704
    }
1645
 
1705
 
1646
    public long recv_getNoOfCustomersWithSuccessfulTransaction() throws TException
1706
    public void recv_markOrdersAsFailed() throws TransactionServiceException, TException
1647
    {
1707
    {
1648
      TMessage msg = iprot_.readMessageBegin();
1708
      TMessage msg = iprot_.readMessageBegin();
1649
      if (msg.type == TMessageType.EXCEPTION) {
1709
      if (msg.type == TMessageType.EXCEPTION) {
1650
        TApplicationException x = TApplicationException.read(iprot_);
1710
        TApplicationException x = TApplicationException.read(iprot_);
1651
        iprot_.readMessageEnd();
1711
        iprot_.readMessageEnd();
1652
        throw x;
1712
        throw x;
1653
      }
1713
      }
1654
      getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
1714
      markOrdersAsFailed_result result = new markOrdersAsFailed_result();
1655
      result.read(iprot_);
1715
      result.read(iprot_);
1656
      iprot_.readMessageEnd();
1716
      iprot_.readMessageEnd();
1657
      if (result.isSetSuccess()) {
1717
      if (result.ex != null) {
1658
        return result.success;
1718
        throw result.ex;
1659
      }
1719
      }
1660
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
-
 
-
 
1720
      return;
1661
    }
1721
    }
1662
 
1722
 
1663
    public List<Double> getValidOrdersAmountRange() throws TException
1723
    public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, TException
1664
    {
1724
    {
1665
      send_getValidOrdersAmountRange();
1725
      send_updateNonDeliveryReason(providerId, undeliveredOrders);
1666
      return recv_getValidOrdersAmountRange();
1726
      recv_updateNonDeliveryReason();
1667
    }
1727
    }
1668
 
1728
 
1669
    public void send_getValidOrdersAmountRange() throws TException
1729
    public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TException
1670
    {
1730
    {
1671
      oprot_.writeMessageBegin(new TMessage("getValidOrdersAmountRange", TMessageType.CALL, seqid_));
1731
      oprot_.writeMessageBegin(new TMessage("updateNonDeliveryReason", TMessageType.CALL, seqid_));
1672
      getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
1732
      updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();
-
 
1733
      args.providerId = providerId;
-
 
1734
      args.undeliveredOrders = undeliveredOrders;
1673
      args.write(oprot_);
1735
      args.write(oprot_);
1674
      oprot_.writeMessageEnd();
1736
      oprot_.writeMessageEnd();
1675
      oprot_.getTransport().flush();
1737
      oprot_.getTransport().flush();
1676
    }
1738
    }
1677
 
1739
 
1678
    public List<Double> recv_getValidOrdersAmountRange() throws TException
1740
    public void recv_updateNonDeliveryReason() throws TransactionServiceException, TException
1679
    {
1741
    {
1680
      TMessage msg = iprot_.readMessageBegin();
1742
      TMessage msg = iprot_.readMessageBegin();
1681
      if (msg.type == TMessageType.EXCEPTION) {
1743
      if (msg.type == TMessageType.EXCEPTION) {
1682
        TApplicationException x = TApplicationException.read(iprot_);
1744
        TApplicationException x = TApplicationException.read(iprot_);
1683
        iprot_.readMessageEnd();
1745
        iprot_.readMessageEnd();
1684
        throw x;
1746
        throw x;
1685
      }
1747
      }
1686
      getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
1748
      updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();
1687
      result.read(iprot_);
1749
      result.read(iprot_);
1688
      iprot_.readMessageEnd();
1750
      iprot_.readMessageEnd();
1689
      if (result.isSetSuccess()) {
1751
      if (result.ex != null) {
1690
        return result.success;
1752
        throw result.ex;
1691
      }
1753
      }
1692
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
-
 
-
 
1754
      return;
1693
    }
1755
    }
1694
 
1756
 
1695
    public List<Order> getValidOrders(long limit) throws TException
1757
    public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws TException
1696
    {
1758
    {
1697
      send_getValidOrders(limit);
1759
      send_getUndeliveredOrders(providerId, warehouseId);
1698
      return recv_getValidOrders();
1760
      return recv_getUndeliveredOrders();
1699
    }
1761
    }
1700
 
1762
 
1701
    public void send_getValidOrders(long limit) throws TException
1763
    public void send_getUndeliveredOrders(long providerId, long warehouseId) throws TException
1702
    {
1764
    {
1703
      oprot_.writeMessageBegin(new TMessage("getValidOrders", TMessageType.CALL, seqid_));
1765
      oprot_.writeMessageBegin(new TMessage("getUndeliveredOrders", TMessageType.CALL, seqid_));
1704
      getValidOrders_args args = new getValidOrders_args();
1766
      getUndeliveredOrders_args args = new getUndeliveredOrders_args();
1705
      args.limit = limit;
1767
      args.providerId = providerId;
-
 
1768
      args.warehouseId = warehouseId;
1706
      args.write(oprot_);
1769
      args.write(oprot_);
1707
      oprot_.writeMessageEnd();
1770
      oprot_.writeMessageEnd();
1708
      oprot_.getTransport().flush();
1771
      oprot_.getTransport().flush();
1709
    }
1772
    }
1710
 
1773
 
1711
    public List<Order> recv_getValidOrders() throws TException
1774
    public List<Order> recv_getUndeliveredOrders() throws TException
1712
    {
1775
    {
1713
      TMessage msg = iprot_.readMessageBegin();
1776
      TMessage msg = iprot_.readMessageBegin();
1714
      if (msg.type == TMessageType.EXCEPTION) {
1777
      if (msg.type == TMessageType.EXCEPTION) {
1715
        TApplicationException x = TApplicationException.read(iprot_);
1778
        TApplicationException x = TApplicationException.read(iprot_);
1716
        iprot_.readMessageEnd();
1779
        iprot_.readMessageEnd();
1717
        throw x;
1780
        throw x;
1718
      }
1781
      }
1719
      getValidOrders_result result = new getValidOrders_result();
1782
      getUndeliveredOrders_result result = new getUndeliveredOrders_result();
1720
      result.read(iprot_);
1783
      result.read(iprot_);
1721
      iprot_.readMessageEnd();
1784
      iprot_.readMessageEnd();
1722
      if (result.isSetSuccess()) {
1785
      if (result.isSetSuccess()) {
1723
        return result.success;
1786
        return result.success;
1724
      }
1787
      }
1725
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1788
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1726
    }
1789
    }
1727
 
1790
 
1728
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, TException
1791
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, TException
1729
    {
1792
    {
1730
      send_toggleDOAFlag(orderId);
1793
      send_toggleDOAFlag(orderId);
Line 2170... Line 2233...
2170
      processMap_.put("getAllOrders", new getAllOrders());
2233
      processMap_.put("getAllOrders", new getAllOrders());
2171
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
2234
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
2172
      processMap_.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
2235
      processMap_.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
2173
      processMap_.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
2236
      processMap_.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
2174
      processMap_.put("changeOrderStatus", new changeOrderStatus());
2237
      processMap_.put("changeOrderStatus", new changeOrderStatus());
2175
      processMap_.put("addBillingDetails", new addBillingDetails());
-
 
2176
      processMap_.put("addJacketNumber", new addJacketNumber());
-
 
2177
      processMap_.put("acceptOrder", new acceptOrder());
-
 
2178
      processMap_.put("billOrder", new billOrder());
-
 
2179
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
2238
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
2180
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
2239
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
2181
      processMap_.put("createOrder", new createOrder());
2240
      processMap_.put("createOrder", new createOrder());
2182
      processMap_.put("getOrder", new getOrder());
2241
      processMap_.put("getOrder", new getOrder());
2183
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
2242
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
2184
      processMap_.put("getOrderForCustomer", new getOrderForCustomer());
2243
      processMap_.put("getOrderForCustomer", new getOrderForCustomer());
-
 
2244
      processMap_.put("getAlerts", new getAlerts());
-
 
2245
      processMap_.put("setAlert", new setAlert());
-
 
2246
      processMap_.put("getValidOrderCount", new getValidOrderCount());
-
 
2247
      processMap_.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
-
 
2248
      processMap_.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
-
 
2249
      processMap_.put("getValidOrders", new getValidOrders());
2185
      processMap_.put("batchOrders", new batchOrders());
2250
      processMap_.put("batchOrders", new batchOrders());
2186
      processMap_.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
2251
      processMap_.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
-
 
2252
      processMap_.put("verifyOrder", new verifyOrder());
-
 
2253
      processMap_.put("acceptOrder", new acceptOrder());
-
 
2254
      processMap_.put("billOrder", new billOrder());
-
 
2255
      processMap_.put("addBillingDetails", new addBillingDetails());
-
 
2256
      processMap_.put("addJacketNumber", new addJacketNumber());
2187
      processMap_.put("markOrdersAsManifested", new markOrdersAsManifested());
2257
      processMap_.put("markOrdersAsManifested", new markOrdersAsManifested());
2188
      processMap_.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
2258
      processMap_.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
2189
      processMap_.put("markOrdersAsDelivered", new markOrdersAsDelivered());
2259
      processMap_.put("markOrdersAsDelivered", new markOrdersAsDelivered());
2190
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
2260
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
2191
      processMap_.put("updateNonDeliveryReason", new updateNonDeliveryReason());
2261
      processMap_.put("updateNonDeliveryReason", new updateNonDeliveryReason());
2192
      processMap_.put("getUndeliveredOrders", new getUndeliveredOrders());
2262
      processMap_.put("getUndeliveredOrders", new getUndeliveredOrders());
2193
      processMap_.put("getAlerts", new getAlerts());
-
 
2194
      processMap_.put("setAlert", new setAlert());
-
 
2195
      processMap_.put("getValidOrderCount", new getValidOrderCount());
-
 
2196
      processMap_.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
-
 
2197
      processMap_.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
-
 
2198
      processMap_.put("getValidOrders", new getValidOrders());
-
 
2199
      processMap_.put("toggleDOAFlag", new toggleDOAFlag());
2263
      processMap_.put("toggleDOAFlag", new toggleDOAFlag());
2200
      processMap_.put("requestPickupNumber", new requestPickupNumber());
2264
      processMap_.put("requestPickupNumber", new requestPickupNumber());
2201
      processMap_.put("authorizePickup", new authorizePickup());
2265
      processMap_.put("authorizePickup", new authorizePickup());
2202
      processMap_.put("markDoasAsPickedUp", new markDoasAsPickedUp());
2266
      processMap_.put("markDoasAsPickedUp", new markDoasAsPickedUp());
2203
      processMap_.put("receiveReturn", new receiveReturn());
2267
      processMap_.put("receiveReturn", new receiveReturn());
Line 2589... Line 2653...
2589
        oprot.getTransport().flush();
2653
        oprot.getTransport().flush();
2590
      }
2654
      }
2591
 
2655
 
2592
    }
2656
    }
2593
 
2657
 
2594
    private class addBillingDetails implements ProcessFunction {
2658
    private class getOrdersForTransaction implements ProcessFunction {
2595
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2659
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2596
      {
2660
      {
2597
        addBillingDetails_args args = new addBillingDetails_args();
2661
        getOrdersForTransaction_args args = new getOrdersForTransaction_args();
2598
        args.read(iprot);
2662
        args.read(iprot);
2599
        iprot.readMessageEnd();
2663
        iprot.readMessageEnd();
2600
        addBillingDetails_result result = new addBillingDetails_result();
2664
        getOrdersForTransaction_result result = new getOrdersForTransaction_result();
2601
        try {
2665
        try {
2602
          result.success = iface_.addBillingDetails(args.orderId, args.invoice_number, args.billed_by);
2666
          result.success = iface_.getOrdersForTransaction(args.transactionId, args.customerId);
2603
          result.setSuccessIsSet(true);
-
 
2604
        } catch (TransactionServiceException ex) {
2667
        } catch (TransactionServiceException ex) {
2605
          result.ex = ex;
2668
          result.ex = ex;
2606
        } catch (Throwable th) {
2669
        } catch (Throwable th) {
2607
          LOGGER.error("Internal error processing addBillingDetails", th);
2670
          LOGGER.error("Internal error processing getOrdersForTransaction", th);
2608
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addBillingDetails");
2671
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersForTransaction");
2609
          oprot.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.EXCEPTION, seqid));
2672
          oprot.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.EXCEPTION, seqid));
2610
          x.write(oprot);
2673
          x.write(oprot);
2611
          oprot.writeMessageEnd();
2674
          oprot.writeMessageEnd();
2612
          oprot.getTransport().flush();
2675
          oprot.getTransport().flush();
2613
          return;
2676
          return;
2614
        }
2677
        }
2615
        oprot.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.REPLY, seqid));
2678
        oprot.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.REPLY, seqid));
2616
        result.write(oprot);
2679
        result.write(oprot);
2617
        oprot.writeMessageEnd();
2680
        oprot.writeMessageEnd();
2618
        oprot.getTransport().flush();
2681
        oprot.getTransport().flush();
2619
      }
2682
      }
2620
 
2683
 
2621
    }
2684
    }
2622
 
2685
 
2623
    private class addJacketNumber implements ProcessFunction {
2686
    private class getOrdersForCustomer implements ProcessFunction {
2624
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2687
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2625
      {
2688
      {
2626
        addJacketNumber_args args = new addJacketNumber_args();
2689
        getOrdersForCustomer_args args = new getOrdersForCustomer_args();
2627
        args.read(iprot);
2690
        args.read(iprot);
2628
        iprot.readMessageEnd();
2691
        iprot.readMessageEnd();
2629
        addJacketNumber_result result = new addJacketNumber_result();
2692
        getOrdersForCustomer_result result = new getOrdersForCustomer_result();
2630
        try {
2693
        try {
2631
          result.success = iface_.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType);
2694
          result.success = iface_.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses);
2632
          result.setSuccessIsSet(true);
-
 
2633
        } catch (TransactionServiceException ex) {
2695
        } catch (TransactionServiceException ex) {
2634
          result.ex = ex;
2696
          result.ex = ex;
2635
        } catch (Throwable th) {
2697
        } catch (Throwable th) {
2636
          LOGGER.error("Internal error processing addJacketNumber", th);
2698
          LOGGER.error("Internal error processing getOrdersForCustomer", th);
2637
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addJacketNumber");
2699
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersForCustomer");
2638
          oprot.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.EXCEPTION, seqid));
2700
          oprot.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.EXCEPTION, seqid));
2639
          x.write(oprot);
2701
          x.write(oprot);
2640
          oprot.writeMessageEnd();
2702
          oprot.writeMessageEnd();
2641
          oprot.getTransport().flush();
2703
          oprot.getTransport().flush();
2642
          return;
2704
          return;
2643
        }
2705
        }
2644
        oprot.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.REPLY, seqid));
2706
        oprot.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.REPLY, seqid));
2645
        result.write(oprot);
2707
        result.write(oprot);
2646
        oprot.writeMessageEnd();
2708
        oprot.writeMessageEnd();
2647
        oprot.getTransport().flush();
2709
        oprot.getTransport().flush();
2648
      }
2710
      }
2649
 
2711
 
2650
    }
2712
    }
2651
 
2713
 
2652
    private class acceptOrder implements ProcessFunction {
2714
    private class createOrder implements ProcessFunction {
2653
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2715
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2654
      {
2716
      {
2655
        acceptOrder_args args = new acceptOrder_args();
2717
        createOrder_args args = new createOrder_args();
2656
        args.read(iprot);
2718
        args.read(iprot);
2657
        iprot.readMessageEnd();
2719
        iprot.readMessageEnd();
2658
        acceptOrder_result result = new acceptOrder_result();
2720
        createOrder_result result = new createOrder_result();
2659
        try {
2721
        try {
2660
          result.success = iface_.acceptOrder(args.orderId);
2722
          result.success = iface_.createOrder(args.order);
2661
          result.setSuccessIsSet(true);
2723
          result.setSuccessIsSet(true);
2662
        } catch (TransactionServiceException ex) {
2724
        } catch (TransactionServiceException ex) {
2663
          result.ex = ex;
2725
          result.ex = ex;
2664
        } catch (Throwable th) {
2726
        } catch (Throwable th) {
2665
          LOGGER.error("Internal error processing acceptOrder", th);
2727
          LOGGER.error("Internal error processing createOrder", th);
2666
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing acceptOrder");
2728
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createOrder");
2667
          oprot.writeMessageBegin(new TMessage("acceptOrder", TMessageType.EXCEPTION, seqid));
2729
          oprot.writeMessageBegin(new TMessage("createOrder", TMessageType.EXCEPTION, seqid));
2668
          x.write(oprot);
2730
          x.write(oprot);
2669
          oprot.writeMessageEnd();
2731
          oprot.writeMessageEnd();
2670
          oprot.getTransport().flush();
2732
          oprot.getTransport().flush();
2671
          return;
2733
          return;
2672
        }
2734
        }
2673
        oprot.writeMessageBegin(new TMessage("acceptOrder", TMessageType.REPLY, seqid));
2735
        oprot.writeMessageBegin(new TMessage("createOrder", TMessageType.REPLY, seqid));
2674
        result.write(oprot);
2736
        result.write(oprot);
2675
        oprot.writeMessageEnd();
2737
        oprot.writeMessageEnd();
2676
        oprot.getTransport().flush();
2738
        oprot.getTransport().flush();
2677
      }
2739
      }
2678
 
2740
 
2679
    }
2741
    }
2680
 
2742
 
2681
    private class billOrder implements ProcessFunction {
2743
    private class getOrder implements ProcessFunction {
2682
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2744
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2683
      {
2745
      {
2684
        billOrder_args args = new billOrder_args();
2746
        getOrder_args args = new getOrder_args();
2685
        args.read(iprot);
2747
        args.read(iprot);
2686
        iprot.readMessageEnd();
2748
        iprot.readMessageEnd();
2687
        billOrder_result result = new billOrder_result();
2749
        getOrder_result result = new getOrder_result();
2688
        try {
2750
        try {
2689
          result.success = iface_.billOrder(args.orderId);
2751
          result.success = iface_.getOrder(args.id);
2690
          result.setSuccessIsSet(true);
-
 
2691
        } catch (TransactionServiceException ex) {
2752
        } catch (TransactionServiceException ex) {
2692
          result.ex = ex;
2753
          result.ex = ex;
2693
        } catch (Throwable th) {
2754
        } catch (Throwable th) {
2694
          LOGGER.error("Internal error processing billOrder", th);
2755
          LOGGER.error("Internal error processing getOrder", th);
2695
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing billOrder");
2756
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrder");
2696
          oprot.writeMessageBegin(new TMessage("billOrder", TMessageType.EXCEPTION, seqid));
2757
          oprot.writeMessageBegin(new TMessage("getOrder", TMessageType.EXCEPTION, seqid));
2697
          x.write(oprot);
2758
          x.write(oprot);
2698
          oprot.writeMessageEnd();
2759
          oprot.writeMessageEnd();
2699
          oprot.getTransport().flush();
2760
          oprot.getTransport().flush();
2700
          return;
2761
          return;
2701
        }
2762
        }
2702
        oprot.writeMessageBegin(new TMessage("billOrder", TMessageType.REPLY, seqid));
2763
        oprot.writeMessageBegin(new TMessage("getOrder", TMessageType.REPLY, seqid));
2703
        result.write(oprot);
2764
        result.write(oprot);
2704
        oprot.writeMessageEnd();
2765
        oprot.writeMessageEnd();
2705
        oprot.getTransport().flush();
2766
        oprot.getTransport().flush();
2706
      }
2767
      }
2707
 
2768
 
2708
    }
2769
    }
2709
 
2770
 
2710
    private class getOrdersForTransaction implements ProcessFunction {
2771
    private class getLineItemsForOrder implements ProcessFunction {
2711
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2772
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2712
      {
2773
      {
2713
        getOrdersForTransaction_args args = new getOrdersForTransaction_args();
2774
        getLineItemsForOrder_args args = new getLineItemsForOrder_args();
2714
        args.read(iprot);
2775
        args.read(iprot);
2715
        iprot.readMessageEnd();
2776
        iprot.readMessageEnd();
2716
        getOrdersForTransaction_result result = new getOrdersForTransaction_result();
2777
        getLineItemsForOrder_result result = new getLineItemsForOrder_result();
2717
        try {
2778
        try {
2718
          result.success = iface_.getOrdersForTransaction(args.transactionId, args.customerId);
2779
          result.success = iface_.getLineItemsForOrder(args.orderId);
2719
        } catch (TransactionServiceException ex) {
2780
        } catch (TransactionServiceException ex) {
2720
          result.ex = ex;
2781
          result.ex = ex;
2721
        } catch (Throwable th) {
2782
        } catch (Throwable th) {
2722
          LOGGER.error("Internal error processing getOrdersForTransaction", th);
2783
          LOGGER.error("Internal error processing getLineItemsForOrder", th);
2723
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersForTransaction");
2784
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getLineItemsForOrder");
2724
          oprot.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.EXCEPTION, seqid));
2785
          oprot.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.EXCEPTION, seqid));
2725
          x.write(oprot);
2786
          x.write(oprot);
2726
          oprot.writeMessageEnd();
2787
          oprot.writeMessageEnd();
2727
          oprot.getTransport().flush();
2788
          oprot.getTransport().flush();
2728
          return;
2789
          return;
2729
        }
2790
        }
2730
        oprot.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.REPLY, seqid));
2791
        oprot.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.REPLY, seqid));
2731
        result.write(oprot);
2792
        result.write(oprot);
2732
        oprot.writeMessageEnd();
2793
        oprot.writeMessageEnd();
2733
        oprot.getTransport().flush();
2794
        oprot.getTransport().flush();
2734
      }
2795
      }
2735
 
2796
 
2736
    }
2797
    }
2737
 
2798
 
2738
    private class getOrdersForCustomer implements ProcessFunction {
2799
    private class getOrderForCustomer implements ProcessFunction {
2739
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2800
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2740
      {
2801
      {
2741
        getOrdersForCustomer_args args = new getOrdersForCustomer_args();
2802
        getOrderForCustomer_args args = new getOrderForCustomer_args();
2742
        args.read(iprot);
2803
        args.read(iprot);
2743
        iprot.readMessageEnd();
2804
        iprot.readMessageEnd();
2744
        getOrdersForCustomer_result result = new getOrdersForCustomer_result();
2805
        getOrderForCustomer_result result = new getOrderForCustomer_result();
2745
        try {
2806
        try {
2746
          result.success = iface_.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses);
2807
          result.success = iface_.getOrderForCustomer(args.orderId, args.customerId);
2747
        } catch (TransactionServiceException ex) {
2808
        } catch (TransactionServiceException ex) {
2748
          result.ex = ex;
2809
          result.ex = ex;
2749
        } catch (Throwable th) {
2810
        } catch (Throwable th) {
2750
          LOGGER.error("Internal error processing getOrdersForCustomer", th);
2811
          LOGGER.error("Internal error processing getOrderForCustomer", th);
2751
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersForCustomer");
2812
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrderForCustomer");
2752
          oprot.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.EXCEPTION, seqid));
2813
          oprot.writeMessageBegin(new TMessage("getOrderForCustomer", TMessageType.EXCEPTION, seqid));
2753
          x.write(oprot);
2814
          x.write(oprot);
2754
          oprot.writeMessageEnd();
2815
          oprot.writeMessageEnd();
2755
          oprot.getTransport().flush();
2816
          oprot.getTransport().flush();
2756
          return;
2817
          return;
2757
        }
2818
        }
2758
        oprot.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.REPLY, seqid));
2819
        oprot.writeMessageBegin(new TMessage("getOrderForCustomer", TMessageType.REPLY, seqid));
2759
        result.write(oprot);
2820
        result.write(oprot);
2760
        oprot.writeMessageEnd();
2821
        oprot.writeMessageEnd();
2761
        oprot.getTransport().flush();
2822
        oprot.getTransport().flush();
2762
      }
2823
      }
2763
 
2824
 
2764
    }
2825
    }
2765
 
2826
 
2766
    private class createOrder implements ProcessFunction {
2827
    private class getAlerts implements ProcessFunction {
2767
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2828
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2768
      {
2829
      {
2769
        createOrder_args args = new createOrder_args();
2830
        getAlerts_args args = new getAlerts_args();
2770
        args.read(iprot);
2831
        args.read(iprot);
2771
        iprot.readMessageEnd();
2832
        iprot.readMessageEnd();
-
 
2833
        getAlerts_result result = new getAlerts_result();
-
 
2834
        result.success = iface_.getAlerts(args.orderId, args.valid);
-
 
2835
        oprot.writeMessageBegin(new TMessage("getAlerts", TMessageType.REPLY, seqid));
-
 
2836
        result.write(oprot);
-
 
2837
        oprot.writeMessageEnd();
-
 
2838
        oprot.getTransport().flush();
-
 
2839
      }
-
 
2840
 
-
 
2841
    }
-
 
2842
 
-
 
2843
    private class setAlert implements ProcessFunction {
-
 
2844
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2845
      {
-
 
2846
        setAlert_args args = new setAlert_args();
-
 
2847
        args.read(iprot);
-
 
2848
        iprot.readMessageEnd();
-
 
2849
        setAlert_result result = new setAlert_result();
-
 
2850
        iface_.setAlert(args.orderId, args.unset, args.type, args.comment);
-
 
2851
        oprot.writeMessageBegin(new TMessage("setAlert", TMessageType.REPLY, seqid));
-
 
2852
        result.write(oprot);
-
 
2853
        oprot.writeMessageEnd();
-
 
2854
        oprot.getTransport().flush();
-
 
2855
      }
-
 
2856
 
-
 
2857
    }
-
 
2858
 
-
 
2859
    private class getValidOrderCount implements ProcessFunction {
-
 
2860
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2861
      {
-
 
2862
        getValidOrderCount_args args = new getValidOrderCount_args();
-
 
2863
        args.read(iprot);
-
 
2864
        iprot.readMessageEnd();
-
 
2865
        getValidOrderCount_result result = new getValidOrderCount_result();
-
 
2866
        result.success = iface_.getValidOrderCount();
-
 
2867
        result.setSuccessIsSet(true);
-
 
2868
        oprot.writeMessageBegin(new TMessage("getValidOrderCount", TMessageType.REPLY, seqid));
-
 
2869
        result.write(oprot);
-
 
2870
        oprot.writeMessageEnd();
-
 
2871
        oprot.getTransport().flush();
-
 
2872
      }
-
 
2873
 
-
 
2874
    }
-
 
2875
 
-
 
2876
    private class getNoOfCustomersWithSuccessfulTransaction implements ProcessFunction {
-
 
2877
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2878
      {
-
 
2879
        getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
-
 
2880
        args.read(iprot);
-
 
2881
        iprot.readMessageEnd();
-
 
2882
        getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
-
 
2883
        result.success = iface_.getNoOfCustomersWithSuccessfulTransaction();
-
 
2884
        result.setSuccessIsSet(true);
-
 
2885
        oprot.writeMessageBegin(new TMessage("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid));
-
 
2886
        result.write(oprot);
-
 
2887
        oprot.writeMessageEnd();
-
 
2888
        oprot.getTransport().flush();
-
 
2889
      }
-
 
2890
 
-
 
2891
    }
-
 
2892
 
-
 
2893
    private class getValidOrdersAmountRange implements ProcessFunction {
-
 
2894
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2895
      {
-
 
2896
        getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
-
 
2897
        args.read(iprot);
-
 
2898
        iprot.readMessageEnd();
-
 
2899
        getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
-
 
2900
        result.success = iface_.getValidOrdersAmountRange();
-
 
2901
        oprot.writeMessageBegin(new TMessage("getValidOrdersAmountRange", TMessageType.REPLY, seqid));
-
 
2902
        result.write(oprot);
-
 
2903
        oprot.writeMessageEnd();
-
 
2904
        oprot.getTransport().flush();
-
 
2905
      }
-
 
2906
 
-
 
2907
    }
-
 
2908
 
-
 
2909
    private class getValidOrders implements ProcessFunction {
-
 
2910
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2911
      {
-
 
2912
        getValidOrders_args args = new getValidOrders_args();
-
 
2913
        args.read(iprot);
-
 
2914
        iprot.readMessageEnd();
-
 
2915
        getValidOrders_result result = new getValidOrders_result();
-
 
2916
        result.success = iface_.getValidOrders(args.limit);
-
 
2917
        oprot.writeMessageBegin(new TMessage("getValidOrders", TMessageType.REPLY, seqid));
-
 
2918
        result.write(oprot);
-
 
2919
        oprot.writeMessageEnd();
-
 
2920
        oprot.getTransport().flush();
-
 
2921
      }
-
 
2922
 
-
 
2923
    }
-
 
2924
 
-
 
2925
    private class batchOrders implements ProcessFunction {
-
 
2926
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2927
      {
-
 
2928
        batchOrders_args args = new batchOrders_args();
-
 
2929
        args.read(iprot);
-
 
2930
        iprot.readMessageEnd();
2772
        createOrder_result result = new createOrder_result();
2931
        batchOrders_result result = new batchOrders_result();
2773
        try {
2932
        try {
2774
          result.success = iface_.createOrder(args.order);
2933
          result.success = iface_.batchOrders(args.warehouseId);
-
 
2934
        } catch (TransactionServiceException ex) {
-
 
2935
          result.ex = ex;
-
 
2936
        } catch (Throwable th) {
-
 
2937
          LOGGER.error("Internal error processing batchOrders", th);
-
 
2938
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing batchOrders");
-
 
2939
          oprot.writeMessageBegin(new TMessage("batchOrders", TMessageType.EXCEPTION, seqid));
-
 
2940
          x.write(oprot);
-
 
2941
          oprot.writeMessageEnd();
-
 
2942
          oprot.getTransport().flush();
-
 
2943
          return;
-
 
2944
        }
-
 
2945
        oprot.writeMessageBegin(new TMessage("batchOrders", TMessageType.REPLY, seqid));
-
 
2946
        result.write(oprot);
-
 
2947
        oprot.writeMessageEnd();
-
 
2948
        oprot.getTransport().flush();
-
 
2949
      }
-
 
2950
 
-
 
2951
    }
-
 
2952
 
-
 
2953
    private class markOrderAsOutOfStock implements ProcessFunction {
-
 
2954
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2955
      {
-
 
2956
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
-
 
2957
        args.read(iprot);
-
 
2958
        iprot.readMessageEnd();
-
 
2959
        markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
-
 
2960
        try {
-
 
2961
          result.success = iface_.markOrderAsOutOfStock(args.orderId);
2775
          result.setSuccessIsSet(true);
2962
          result.setSuccessIsSet(true);
2776
        } catch (TransactionServiceException ex) {
2963
        } catch (TransactionServiceException ex) {
2777
          result.ex = ex;
2964
          result.ex = ex;
2778
        } catch (Throwable th) {
2965
        } catch (Throwable th) {
2779
          LOGGER.error("Internal error processing createOrder", th);
2966
          LOGGER.error("Internal error processing markOrderAsOutOfStock", th);
2780
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createOrder");
2967
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markOrderAsOutOfStock");
2781
          oprot.writeMessageBegin(new TMessage("createOrder", TMessageType.EXCEPTION, seqid));
2968
          oprot.writeMessageBegin(new TMessage("markOrderAsOutOfStock", TMessageType.EXCEPTION, seqid));
2782
          x.write(oprot);
2969
          x.write(oprot);
2783
          oprot.writeMessageEnd();
2970
          oprot.writeMessageEnd();
2784
          oprot.getTransport().flush();
2971
          oprot.getTransport().flush();
2785
          return;
2972
          return;
2786
        }
2973
        }
2787
        oprot.writeMessageBegin(new TMessage("createOrder", TMessageType.REPLY, seqid));
2974
        oprot.writeMessageBegin(new TMessage("markOrderAsOutOfStock", TMessageType.REPLY, seqid));
2788
        result.write(oprot);
2975
        result.write(oprot);
2789
        oprot.writeMessageEnd();
2976
        oprot.writeMessageEnd();
2790
        oprot.getTransport().flush();
2977
        oprot.getTransport().flush();
2791
      }
2978
      }
2792
 
2979
 
2793
    }
2980
    }
2794
 
2981
 
2795
    private class getOrder implements ProcessFunction {
2982
    private class verifyOrder implements ProcessFunction {
2796
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2983
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2797
      {
2984
      {
2798
        getOrder_args args = new getOrder_args();
2985
        verifyOrder_args args = new verifyOrder_args();
2799
        args.read(iprot);
2986
        args.read(iprot);
2800
        iprot.readMessageEnd();
2987
        iprot.readMessageEnd();
2801
        getOrder_result result = new getOrder_result();
2988
        verifyOrder_result result = new verifyOrder_result();
2802
        try {
2989
        try {
2803
          result.success = iface_.getOrder(args.id);
2990
          result.success = iface_.verifyOrder(args.orderId);
-
 
2991
          result.setSuccessIsSet(true);
2804
        } catch (TransactionServiceException ex) {
2992
        } catch (TransactionServiceException ex) {
2805
          result.ex = ex;
2993
          result.ex = ex;
2806
        } catch (Throwable th) {
2994
        } catch (Throwable th) {
2807
          LOGGER.error("Internal error processing getOrder", th);
2995
          LOGGER.error("Internal error processing verifyOrder", th);
2808
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrder");
2996
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing verifyOrder");
2809
          oprot.writeMessageBegin(new TMessage("getOrder", TMessageType.EXCEPTION, seqid));
2997
          oprot.writeMessageBegin(new TMessage("verifyOrder", TMessageType.EXCEPTION, seqid));
2810
          x.write(oprot);
2998
          x.write(oprot);
2811
          oprot.writeMessageEnd();
2999
          oprot.writeMessageEnd();
2812
          oprot.getTransport().flush();
3000
          oprot.getTransport().flush();
2813
          return;
3001
          return;
2814
        }
3002
        }
2815
        oprot.writeMessageBegin(new TMessage("getOrder", TMessageType.REPLY, seqid));
3003
        oprot.writeMessageBegin(new TMessage("verifyOrder", TMessageType.REPLY, seqid));
2816
        result.write(oprot);
3004
        result.write(oprot);
2817
        oprot.writeMessageEnd();
3005
        oprot.writeMessageEnd();
2818
        oprot.getTransport().flush();
3006
        oprot.getTransport().flush();
2819
      }
3007
      }
2820
 
3008
 
2821
    }
3009
    }
2822
 
3010
 
2823
    private class getLineItemsForOrder implements ProcessFunction {
3011
    private class acceptOrder implements ProcessFunction {
2824
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3012
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2825
      {
3013
      {
2826
        getLineItemsForOrder_args args = new getLineItemsForOrder_args();
3014
        acceptOrder_args args = new acceptOrder_args();
2827
        args.read(iprot);
3015
        args.read(iprot);
2828
        iprot.readMessageEnd();
3016
        iprot.readMessageEnd();
2829
        getLineItemsForOrder_result result = new getLineItemsForOrder_result();
3017
        acceptOrder_result result = new acceptOrder_result();
2830
        try {
3018
        try {
2831
          result.success = iface_.getLineItemsForOrder(args.orderId);
3019
          result.success = iface_.acceptOrder(args.orderId);
-
 
3020
          result.setSuccessIsSet(true);
2832
        } catch (TransactionServiceException ex) {
3021
        } catch (TransactionServiceException ex) {
2833
          result.ex = ex;
3022
          result.ex = ex;
2834
        } catch (Throwable th) {
3023
        } catch (Throwable th) {
2835
          LOGGER.error("Internal error processing getLineItemsForOrder", th);
3024
          LOGGER.error("Internal error processing acceptOrder", th);
2836
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getLineItemsForOrder");
3025
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing acceptOrder");
2837
          oprot.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.EXCEPTION, seqid));
3026
          oprot.writeMessageBegin(new TMessage("acceptOrder", TMessageType.EXCEPTION, seqid));
2838
          x.write(oprot);
3027
          x.write(oprot);
2839
          oprot.writeMessageEnd();
3028
          oprot.writeMessageEnd();
2840
          oprot.getTransport().flush();
3029
          oprot.getTransport().flush();
2841
          return;
3030
          return;
2842
        }
3031
        }
2843
        oprot.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.REPLY, seqid));
3032
        oprot.writeMessageBegin(new TMessage("acceptOrder", TMessageType.REPLY, seqid));
2844
        result.write(oprot);
3033
        result.write(oprot);
2845
        oprot.writeMessageEnd();
3034
        oprot.writeMessageEnd();
2846
        oprot.getTransport().flush();
3035
        oprot.getTransport().flush();
2847
      }
3036
      }
2848
 
3037
 
2849
    }
3038
    }
2850
 
3039
 
2851
    private class getOrderForCustomer implements ProcessFunction {
3040
    private class billOrder implements ProcessFunction {
2852
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3041
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2853
      {
3042
      {
2854
        getOrderForCustomer_args args = new getOrderForCustomer_args();
3043
        billOrder_args args = new billOrder_args();
2855
        args.read(iprot);
3044
        args.read(iprot);
2856
        iprot.readMessageEnd();
3045
        iprot.readMessageEnd();
2857
        getOrderForCustomer_result result = new getOrderForCustomer_result();
3046
        billOrder_result result = new billOrder_result();
2858
        try {
3047
        try {
2859
          result.success = iface_.getOrderForCustomer(args.orderId, args.customerId);
3048
          result.success = iface_.billOrder(args.orderId);
-
 
3049
          result.setSuccessIsSet(true);
2860
        } catch (TransactionServiceException ex) {
3050
        } catch (TransactionServiceException ex) {
2861
          result.ex = ex;
3051
          result.ex = ex;
2862
        } catch (Throwable th) {
3052
        } catch (Throwable th) {
2863
          LOGGER.error("Internal error processing getOrderForCustomer", th);
3053
          LOGGER.error("Internal error processing billOrder", th);
2864
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrderForCustomer");
3054
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing billOrder");
2865
          oprot.writeMessageBegin(new TMessage("getOrderForCustomer", TMessageType.EXCEPTION, seqid));
3055
          oprot.writeMessageBegin(new TMessage("billOrder", TMessageType.EXCEPTION, seqid));
2866
          x.write(oprot);
3056
          x.write(oprot);
2867
          oprot.writeMessageEnd();
3057
          oprot.writeMessageEnd();
2868
          oprot.getTransport().flush();
3058
          oprot.getTransport().flush();
2869
          return;
3059
          return;
2870
        }
3060
        }
2871
        oprot.writeMessageBegin(new TMessage("getOrderForCustomer", TMessageType.REPLY, seqid));
3061
        oprot.writeMessageBegin(new TMessage("billOrder", TMessageType.REPLY, seqid));
2872
        result.write(oprot);
3062
        result.write(oprot);
2873
        oprot.writeMessageEnd();
3063
        oprot.writeMessageEnd();
2874
        oprot.getTransport().flush();
3064
        oprot.getTransport().flush();
2875
      }
3065
      }
2876
 
3066
 
2877
    }
3067
    }
2878
 
3068
 
2879
    private class batchOrders implements ProcessFunction {
3069
    private class addBillingDetails implements ProcessFunction {
2880
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3070
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2881
      {
3071
      {
2882
        batchOrders_args args = new batchOrders_args();
3072
        addBillingDetails_args args = new addBillingDetails_args();
2883
        args.read(iprot);
3073
        args.read(iprot);
2884
        iprot.readMessageEnd();
3074
        iprot.readMessageEnd();
2885
        batchOrders_result result = new batchOrders_result();
3075
        addBillingDetails_result result = new addBillingDetails_result();
2886
        try {
3076
        try {
2887
          result.success = iface_.batchOrders(args.warehouseId);
3077
          result.success = iface_.addBillingDetails(args.orderId, args.invoice_number, args.billed_by);
-
 
3078
          result.setSuccessIsSet(true);
2888
        } catch (TransactionServiceException ex) {
3079
        } catch (TransactionServiceException ex) {
2889
          result.ex = ex;
3080
          result.ex = ex;
2890
        } catch (Throwable th) {
3081
        } catch (Throwable th) {
2891
          LOGGER.error("Internal error processing batchOrders", th);
3082
          LOGGER.error("Internal error processing addBillingDetails", th);
2892
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing batchOrders");
3083
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addBillingDetails");
2893
          oprot.writeMessageBegin(new TMessage("batchOrders", TMessageType.EXCEPTION, seqid));
3084
          oprot.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.EXCEPTION, seqid));
2894
          x.write(oprot);
3085
          x.write(oprot);
2895
          oprot.writeMessageEnd();
3086
          oprot.writeMessageEnd();
2896
          oprot.getTransport().flush();
3087
          oprot.getTransport().flush();
2897
          return;
3088
          return;
2898
        }
3089
        }
2899
        oprot.writeMessageBegin(new TMessage("batchOrders", TMessageType.REPLY, seqid));
3090
        oprot.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.REPLY, seqid));
2900
        result.write(oprot);
3091
        result.write(oprot);
2901
        oprot.writeMessageEnd();
3092
        oprot.writeMessageEnd();
2902
        oprot.getTransport().flush();
3093
        oprot.getTransport().flush();
2903
      }
3094
      }
2904
 
3095
 
2905
    }
3096
    }
2906
 
3097
 
2907
    private class markOrderAsOutOfStock implements ProcessFunction {
3098
    private class addJacketNumber implements ProcessFunction {
2908
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3099
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2909
      {
3100
      {
2910
        markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();
3101
        addJacketNumber_args args = new addJacketNumber_args();
2911
        args.read(iprot);
3102
        args.read(iprot);
2912
        iprot.readMessageEnd();
3103
        iprot.readMessageEnd();
2913
        markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();
3104
        addJacketNumber_result result = new addJacketNumber_result();
2914
        try {
3105
        try {
2915
          result.success = iface_.markOrderAsOutOfStock(args.orderId);
3106
          result.success = iface_.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType);
2916
          result.setSuccessIsSet(true);
3107
          result.setSuccessIsSet(true);
2917
        } catch (TransactionServiceException ex) {
3108
        } catch (TransactionServiceException ex) {
2918
          result.ex = ex;
3109
          result.ex = ex;
2919
        } catch (Throwable th) {
3110
        } catch (Throwable th) {
2920
          LOGGER.error("Internal error processing markOrderAsOutOfStock", th);
3111
          LOGGER.error("Internal error processing addJacketNumber", th);
2921
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markOrderAsOutOfStock");
3112
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addJacketNumber");
2922
          oprot.writeMessageBegin(new TMessage("markOrderAsOutOfStock", TMessageType.EXCEPTION, seqid));
3113
          oprot.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.EXCEPTION, seqid));
2923
          x.write(oprot);
3114
          x.write(oprot);
2924
          oprot.writeMessageEnd();
3115
          oprot.writeMessageEnd();
2925
          oprot.getTransport().flush();
3116
          oprot.getTransport().flush();
2926
          return;
3117
          return;
2927
        }
3118
        }
2928
        oprot.writeMessageBegin(new TMessage("markOrderAsOutOfStock", TMessageType.REPLY, seqid));
3119
        oprot.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.REPLY, seqid));
2929
        result.write(oprot);
3120
        result.write(oprot);
2930
        oprot.writeMessageEnd();
3121
        oprot.writeMessageEnd();
2931
        oprot.getTransport().flush();
3122
        oprot.getTransport().flush();
2932
      }
3123
      }
2933
 
3124
 
Line 2939... Line 3130...
2939
        markOrdersAsManifested_args args = new markOrdersAsManifested_args();
3130
        markOrdersAsManifested_args args = new markOrdersAsManifested_args();
2940
        args.read(iprot);
3131
        args.read(iprot);
2941
        iprot.readMessageEnd();
3132
        iprot.readMessageEnd();
2942
        markOrdersAsManifested_result result = new markOrdersAsManifested_result();
3133
        markOrdersAsManifested_result result = new markOrdersAsManifested_result();
2943
        try {
3134
        try {
2944
          result.success = iface_.markOrdersAsManifested(args.warehouseId, args.providerId);
3135
          result.success = iface_.markOrdersAsManifested(args.warehouseId, args.providerId, args.cod);
2945
          result.setSuccessIsSet(true);
3136
          result.setSuccessIsSet(true);
2946
        } catch (TransactionServiceException ex) {
3137
        } catch (TransactionServiceException ex) {
2947
          result.ex = ex;
3138
          result.ex = ex;
2948
        } catch (Throwable th) {
3139
        } catch (Throwable th) {
2949
          LOGGER.error("Internal error processing markOrdersAsManifested", th);
3140
          LOGGER.error("Internal error processing markOrdersAsManifested", th);
Line 3088... Line 3279...
3088
        oprot.getTransport().flush();
3279
        oprot.getTransport().flush();
3089
      }
3280
      }
3090
 
3281
 
3091
    }
3282
    }
3092
 
3283
 
3093
    private class getAlerts implements ProcessFunction {
-
 
3094
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3095
      {
-
 
3096
        getAlerts_args args = new getAlerts_args();
-
 
3097
        args.read(iprot);
-
 
3098
        iprot.readMessageEnd();
-
 
3099
        getAlerts_result result = new getAlerts_result();
-
 
3100
        result.success = iface_.getAlerts(args.orderId, args.valid);
-
 
3101
        oprot.writeMessageBegin(new TMessage("getAlerts", TMessageType.REPLY, seqid));
-
 
3102
        result.write(oprot);
-
 
3103
        oprot.writeMessageEnd();
-
 
3104
        oprot.getTransport().flush();
-
 
3105
      }
-
 
3106
 
-
 
3107
    }
-
 
3108
 
-
 
3109
    private class setAlert implements ProcessFunction {
-
 
3110
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3111
      {
-
 
3112
        setAlert_args args = new setAlert_args();
-
 
3113
        args.read(iprot);
-
 
3114
        iprot.readMessageEnd();
-
 
3115
        setAlert_result result = new setAlert_result();
-
 
3116
        iface_.setAlert(args.orderId, args.unset, args.type, args.comment);
-
 
3117
        oprot.writeMessageBegin(new TMessage("setAlert", TMessageType.REPLY, seqid));
-
 
3118
        result.write(oprot);
-
 
3119
        oprot.writeMessageEnd();
-
 
3120
        oprot.getTransport().flush();
-
 
3121
      }
-
 
3122
 
-
 
3123
    }
-
 
3124
 
-
 
3125
    private class getValidOrderCount implements ProcessFunction {
-
 
3126
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3127
      {
-
 
3128
        getValidOrderCount_args args = new getValidOrderCount_args();
-
 
3129
        args.read(iprot);
-
 
3130
        iprot.readMessageEnd();
-
 
3131
        getValidOrderCount_result result = new getValidOrderCount_result();
-
 
3132
        result.success = iface_.getValidOrderCount();
-
 
3133
        result.setSuccessIsSet(true);
-
 
3134
        oprot.writeMessageBegin(new TMessage("getValidOrderCount", TMessageType.REPLY, seqid));
-
 
3135
        result.write(oprot);
-
 
3136
        oprot.writeMessageEnd();
-
 
3137
        oprot.getTransport().flush();
-
 
3138
      }
-
 
3139
 
-
 
3140
    }
-
 
3141
 
-
 
3142
    private class getNoOfCustomersWithSuccessfulTransaction implements ProcessFunction {
-
 
3143
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3144
      {
-
 
3145
        getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();
-
 
3146
        args.read(iprot);
-
 
3147
        iprot.readMessageEnd();
-
 
3148
        getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();
-
 
3149
        result.success = iface_.getNoOfCustomersWithSuccessfulTransaction();
-
 
3150
        result.setSuccessIsSet(true);
-
 
3151
        oprot.writeMessageBegin(new TMessage("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid));
-
 
3152
        result.write(oprot);
-
 
3153
        oprot.writeMessageEnd();
-
 
3154
        oprot.getTransport().flush();
-
 
3155
      }
-
 
3156
 
-
 
3157
    }
-
 
3158
 
-
 
3159
    private class getValidOrdersAmountRange implements ProcessFunction {
-
 
3160
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3161
      {
-
 
3162
        getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();
-
 
3163
        args.read(iprot);
-
 
3164
        iprot.readMessageEnd();
-
 
3165
        getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();
-
 
3166
        result.success = iface_.getValidOrdersAmountRange();
-
 
3167
        oprot.writeMessageBegin(new TMessage("getValidOrdersAmountRange", TMessageType.REPLY, seqid));
-
 
3168
        result.write(oprot);
-
 
3169
        oprot.writeMessageEnd();
-
 
3170
        oprot.getTransport().flush();
-
 
3171
      }
-
 
3172
 
-
 
3173
    }
-
 
3174
 
-
 
3175
    private class getValidOrders implements ProcessFunction {
-
 
3176
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
3177
      {
-
 
3178
        getValidOrders_args args = new getValidOrders_args();
-
 
3179
        args.read(iprot);
-
 
3180
        iprot.readMessageEnd();
-
 
3181
        getValidOrders_result result = new getValidOrders_result();
-
 
3182
        result.success = iface_.getValidOrders(args.limit);
-
 
3183
        oprot.writeMessageBegin(new TMessage("getValidOrders", TMessageType.REPLY, seqid));
-
 
3184
        result.write(oprot);
-
 
3185
        oprot.writeMessageEnd();
-
 
3186
        oprot.getTransport().flush();
-
 
3187
      }
-
 
3188
 
-
 
3189
    }
-
 
3190
 
-
 
3191
    private class toggleDOAFlag implements ProcessFunction {
3284
    private class toggleDOAFlag implements ProcessFunction {
3192
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3285
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
3193
      {
3286
      {
3194
        toggleDOAFlag_args args = new toggleDOAFlag_args();
3287
        toggleDOAFlag_args args = new toggleDOAFlag_args();
3195
        args.read(iprot);
3288
        args.read(iprot);
Line 13152... Line 13245...
13152
      // check for required fields
13245
      // check for required fields
13153
    }
13246
    }
13154
 
13247
 
13155
  }
13248
  }
13156
 
13249
 
13157
  public static class addBillingDetails_args implements TBase<addBillingDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<addBillingDetails_args>   {
13250
  public static class getOrdersForTransaction_args implements TBase<getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForTransaction_args>   {
13158
    private static final TStruct STRUCT_DESC = new TStruct("addBillingDetails_args");
13251
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForTransaction_args");
13159
 
13252
 
13160
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
13253
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
13161
    private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)2);
-
 
13162
    private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)3);
13254
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
13163
 
13255
 
13164
    private long orderId;
13256
    private long transactionId;
13165
    private String invoice_number;
-
 
13166
    private String billed_by;
13257
    private long customerId;
13167
 
13258
 
13168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13259
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13169
    public enum _Fields implements TFieldIdEnum {
13260
    public enum _Fields implements TFieldIdEnum {
13170
      ORDER_ID((short)1, "orderId"),
13261
      TRANSACTION_ID((short)1, "transactionId"),
13171
      INVOICE_NUMBER((short)2, "invoice_number"),
-
 
13172
      BILLED_BY((short)3, "billed_by");
13262
      CUSTOMER_ID((short)2, "customerId");
13173
 
13263
 
13174
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
13264
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
13175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13176
 
13266
 
13177
      static {
13267
      static {
Line 13221... Line 13311...
13221
        return _fieldName;
13311
        return _fieldName;
13222
      }
13312
      }
13223
    }
13313
    }
13224
 
13314
 
13225
    // isset id assignments
13315
    // isset id assignments
-
 
13316
    private static final int __TRANSACTIONID_ISSET_ID = 0;
13226
    private static final int __ORDERID_ISSET_ID = 0;
13317
    private static final int __CUSTOMERID_ISSET_ID = 1;
13227
    private BitSet __isset_bit_vector = new BitSet(1);
13318
    private BitSet __isset_bit_vector = new BitSet(2);
13228
 
13319
 
13229
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13320
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
13321
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
-
 
13322
          new FieldValueMetaData(TType.I64)));
13230
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
13323
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
13231
          new FieldValueMetaData(TType.I64)));
13324
          new FieldValueMetaData(TType.I64)));
13232
      put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoice_number", TFieldRequirementType.DEFAULT, 
-
 
13233
          new FieldValueMetaData(TType.STRING)));
-
 
13234
      put(_Fields.BILLED_BY, new FieldMetaData("billed_by", TFieldRequirementType.DEFAULT, 
-
 
13235
          new FieldValueMetaData(TType.STRING)));
-
 
13236
    }});
13325
    }});
13237
 
13326
 
13238
    static {
13327
    static {
13239
      FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
13328
      FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_args.class, metaDataMap);
13240
    }
13329
    }
13241
 
13330
 
13242
    public addBillingDetails_args() {
13331
    public getOrdersForTransaction_args() {
13243
    }
13332
    }
13244
 
13333
 
13245
    public addBillingDetails_args(
13334
    public getOrdersForTransaction_args(
13246
      long orderId,
13335
      long transactionId,
13247
      String invoice_number,
-
 
13248
      String billed_by)
13336
      long customerId)
13249
    {
13337
    {
13250
      this();
13338
      this();
13251
      this.orderId = orderId;
13339
      this.transactionId = transactionId;
13252
      setOrderIdIsSet(true);
13340
      setTransactionIdIsSet(true);
13253
      this.invoice_number = invoice_number;
13341
      this.customerId = customerId;
13254
      this.billed_by = billed_by;
13342
      setCustomerIdIsSet(true);
13255
    }
13343
    }
13256
 
13344
 
13257
    /**
13345
    /**
13258
     * Performs a deep copy on <i>other</i>.
13346
     * Performs a deep copy on <i>other</i>.
13259
     */
13347
     */
13260
    public addBillingDetails_args(addBillingDetails_args other) {
13348
    public getOrdersForTransaction_args(getOrdersForTransaction_args other) {
13261
      __isset_bit_vector.clear();
13349
      __isset_bit_vector.clear();
13262
      __isset_bit_vector.or(other.__isset_bit_vector);
13350
      __isset_bit_vector.or(other.__isset_bit_vector);
13263
      this.orderId = other.orderId;
13351
      this.transactionId = other.transactionId;
13264
      if (other.isSetInvoice_number()) {
-
 
13265
        this.invoice_number = other.invoice_number;
-
 
13266
      }
-
 
13267
      if (other.isSetBilled_by()) {
-
 
13268
        this.billed_by = other.billed_by;
13352
      this.customerId = other.customerId;
13269
      }
-
 
13270
    }
13353
    }
13271
 
13354
 
13272
    public addBillingDetails_args deepCopy() {
13355
    public getOrdersForTransaction_args deepCopy() {
13273
      return new addBillingDetails_args(this);
13356
      return new getOrdersForTransaction_args(this);
13274
    }
13357
    }
13275
 
13358
 
13276
    @Deprecated
13359
    @Deprecated
13277
    public addBillingDetails_args clone() {
13360
    public getOrdersForTransaction_args clone() {
13278
      return new addBillingDetails_args(this);
13361
      return new getOrdersForTransaction_args(this);
13279
    }
-
 
13280
 
-
 
13281
    public long getOrderId() {
-
 
13282
      return this.orderId;
-
 
13283
    }
-
 
13284
 
-
 
13285
    public addBillingDetails_args setOrderId(long orderId) {
-
 
13286
      this.orderId = orderId;
-
 
13287
      setOrderIdIsSet(true);
-
 
13288
      return this;
-
 
13289
    }
-
 
13290
 
-
 
13291
    public void unsetOrderId() {
-
 
13292
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
13293
    }
-
 
13294
 
-
 
13295
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
13296
    public boolean isSetOrderId() {
-
 
13297
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
13298
    }
-
 
13299
 
-
 
13300
    public void setOrderIdIsSet(boolean value) {
-
 
13301
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
13302
    }
13362
    }
13303
 
13363
 
13304
    public String getInvoice_number() {
13364
    public long getTransactionId() {
13305
      return this.invoice_number;
13365
      return this.transactionId;
13306
    }
13366
    }
13307
 
13367
 
13308
    public addBillingDetails_args setInvoice_number(String invoice_number) {
13368
    public getOrdersForTransaction_args setTransactionId(long transactionId) {
13309
      this.invoice_number = invoice_number;
13369
      this.transactionId = transactionId;
-
 
13370
      setTransactionIdIsSet(true);
13310
      return this;
13371
      return this;
13311
    }
13372
    }
13312
 
13373
 
13313
    public void unsetInvoice_number() {
13374
    public void unsetTransactionId() {
13314
      this.invoice_number = null;
13375
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
13315
    }
13376
    }
13316
 
13377
 
13317
    /** Returns true if field invoice_number is set (has been asigned a value) and false otherwise */
13378
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
13318
    public boolean isSetInvoice_number() {
13379
    public boolean isSetTransactionId() {
13319
      return this.invoice_number != null;
13380
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
13320
    }
13381
    }
13321
 
13382
 
13322
    public void setInvoice_numberIsSet(boolean value) {
13383
    public void setTransactionIdIsSet(boolean value) {
13323
      if (!value) {
-
 
13324
        this.invoice_number = null;
13384
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
13325
      }
-
 
13326
    }
13385
    }
13327
 
13386
 
13328
    public String getBilled_by() {
13387
    public long getCustomerId() {
13329
      return this.billed_by;
13388
      return this.customerId;
13330
    }
13389
    }
13331
 
13390
 
13332
    public addBillingDetails_args setBilled_by(String billed_by) {
13391
    public getOrdersForTransaction_args setCustomerId(long customerId) {
13333
      this.billed_by = billed_by;
13392
      this.customerId = customerId;
-
 
13393
      setCustomerIdIsSet(true);
13334
      return this;
13394
      return this;
13335
    }
13395
    }
13336
 
13396
 
13337
    public void unsetBilled_by() {
13397
    public void unsetCustomerId() {
13338
      this.billed_by = null;
13398
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
13339
    }
13399
    }
13340
 
13400
 
13341
    /** Returns true if field billed_by is set (has been asigned a value) and false otherwise */
13401
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
13342
    public boolean isSetBilled_by() {
13402
    public boolean isSetCustomerId() {
13343
      return this.billed_by != null;
13403
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
13344
    }
13404
    }
13345
 
13405
 
13346
    public void setBilled_byIsSet(boolean value) {
13406
    public void setCustomerIdIsSet(boolean value) {
13347
      if (!value) {
-
 
13348
        this.billed_by = null;
13407
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
13349
      }
-
 
13350
    }
13408
    }
13351
 
13409
 
13352
    public void setFieldValue(_Fields field, Object value) {
13410
    public void setFieldValue(_Fields field, Object value) {
13353
      switch (field) {
13411
      switch (field) {
13354
      case ORDER_ID:
13412
      case TRANSACTION_ID:
13355
        if (value == null) {
-
 
13356
          unsetOrderId();
-
 
13357
        } else {
-
 
13358
          setOrderId((Long)value);
-
 
13359
        }
-
 
13360
        break;
-
 
13361
 
-
 
13362
      case INVOICE_NUMBER:
-
 
13363
        if (value == null) {
13413
        if (value == null) {
13364
          unsetInvoice_number();
13414
          unsetTransactionId();
13365
        } else {
13415
        } else {
13366
          setInvoice_number((String)value);
13416
          setTransactionId((Long)value);
13367
        }
13417
        }
13368
        break;
13418
        break;
13369
 
13419
 
13370
      case BILLED_BY:
13420
      case CUSTOMER_ID:
13371
        if (value == null) {
13421
        if (value == null) {
13372
          unsetBilled_by();
13422
          unsetCustomerId();
13373
        } else {
13423
        } else {
13374
          setBilled_by((String)value);
13424
          setCustomerId((Long)value);
13375
        }
13425
        }
13376
        break;
13426
        break;
13377
 
13427
 
13378
      }
13428
      }
13379
    }
13429
    }
Line 13382... Line 13432...
13382
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
13432
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
13383
    }
13433
    }
13384
 
13434
 
13385
    public Object getFieldValue(_Fields field) {
13435
    public Object getFieldValue(_Fields field) {
13386
      switch (field) {
13436
      switch (field) {
13387
      case ORDER_ID:
13437
      case TRANSACTION_ID:
13388
        return new Long(getOrderId());
13438
        return new Long(getTransactionId());
13389
 
-
 
13390
      case INVOICE_NUMBER:
-
 
13391
        return getInvoice_number();
-
 
13392
 
13439
 
13393
      case BILLED_BY:
13440
      case CUSTOMER_ID:
13394
        return getBilled_by();
13441
        return new Long(getCustomerId());
13395
 
13442
 
13396
      }
13443
      }
13397
      throw new IllegalStateException();
13444
      throw new IllegalStateException();
13398
    }
13445
    }
13399
 
13446
 
Line 13402... Line 13449...
13402
    }
13449
    }
13403
 
13450
 
13404
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13451
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13405
    public boolean isSet(_Fields field) {
13452
    public boolean isSet(_Fields field) {
13406
      switch (field) {
13453
      switch (field) {
13407
      case ORDER_ID:
13454
      case TRANSACTION_ID:
13408
        return isSetOrderId();
13455
        return isSetTransactionId();
13409
      case INVOICE_NUMBER:
-
 
13410
        return isSetInvoice_number();
-
 
13411
      case BILLED_BY:
13456
      case CUSTOMER_ID:
13412
        return isSetBilled_by();
13457
        return isSetCustomerId();
13413
      }
13458
      }
13414
      throw new IllegalStateException();
13459
      throw new IllegalStateException();
13415
    }
13460
    }
13416
 
13461
 
13417
    public boolean isSet(int fieldID) {
13462
    public boolean isSet(int fieldID) {
Line 13420... Line 13465...
13420
 
13465
 
13421
    @Override
13466
    @Override
13422
    public boolean equals(Object that) {
13467
    public boolean equals(Object that) {
13423
      if (that == null)
13468
      if (that == null)
13424
        return false;
13469
        return false;
13425
      if (that instanceof addBillingDetails_args)
13470
      if (that instanceof getOrdersForTransaction_args)
13426
        return this.equals((addBillingDetails_args)that);
13471
        return this.equals((getOrdersForTransaction_args)that);
13427
      return false;
13472
      return false;
13428
    }
13473
    }
13429
 
13474
 
13430
    public boolean equals(addBillingDetails_args that) {
13475
    public boolean equals(getOrdersForTransaction_args that) {
13431
      if (that == null)
13476
      if (that == null)
13432
        return false;
13477
        return false;
13433
 
13478
 
13434
      boolean this_present_orderId = true;
13479
      boolean this_present_transactionId = true;
13435
      boolean that_present_orderId = true;
13480
      boolean that_present_transactionId = true;
13436
      if (this_present_orderId || that_present_orderId) {
13481
      if (this_present_transactionId || that_present_transactionId) {
13437
        if (!(this_present_orderId && that_present_orderId))
13482
        if (!(this_present_transactionId && that_present_transactionId))
13438
          return false;
-
 
13439
        if (this.orderId != that.orderId)
-
 
13440
          return false;
-
 
13441
      }
-
 
13442
 
-
 
13443
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
-
 
13444
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
-
 
13445
      if (this_present_invoice_number || that_present_invoice_number) {
-
 
13446
        if (!(this_present_invoice_number && that_present_invoice_number))
-
 
13447
          return false;
13483
          return false;
13448
        if (!this.invoice_number.equals(that.invoice_number))
13484
        if (this.transactionId != that.transactionId)
13449
          return false;
13485
          return false;
13450
      }
13486
      }
13451
 
13487
 
13452
      boolean this_present_billed_by = true && this.isSetBilled_by();
13488
      boolean this_present_customerId = true;
13453
      boolean that_present_billed_by = true && that.isSetBilled_by();
13489
      boolean that_present_customerId = true;
13454
      if (this_present_billed_by || that_present_billed_by) {
13490
      if (this_present_customerId || that_present_customerId) {
13455
        if (!(this_present_billed_by && that_present_billed_by))
13491
        if (!(this_present_customerId && that_present_customerId))
13456
          return false;
13492
          return false;
13457
        if (!this.billed_by.equals(that.billed_by))
13493
        if (this.customerId != that.customerId)
13458
          return false;
13494
          return false;
13459
      }
13495
      }
13460
 
13496
 
13461
      return true;
13497
      return true;
13462
    }
13498
    }
Line 13464... Line 13500...
13464
    @Override
13500
    @Override
13465
    public int hashCode() {
13501
    public int hashCode() {
13466
      return 0;
13502
      return 0;
13467
    }
13503
    }
13468
 
13504
 
13469
    public int compareTo(addBillingDetails_args other) {
13505
    public int compareTo(getOrdersForTransaction_args other) {
13470
      if (!getClass().equals(other.getClass())) {
13506
      if (!getClass().equals(other.getClass())) {
13471
        return getClass().getName().compareTo(other.getClass().getName());
13507
        return getClass().getName().compareTo(other.getClass().getName());
13472
      }
13508
      }
13473
 
13509
 
13474
      int lastComparison = 0;
13510
      int lastComparison = 0;
13475
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
13511
      getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;
13476
 
13512
 
13477
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
13513
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
13478
      if (lastComparison != 0) {
-
 
13479
        return lastComparison;
-
 
13480
      }
-
 
13481
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
13482
      if (lastComparison != 0) {
-
 
13483
        return lastComparison;
-
 
13484
      }
-
 
13485
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(isSetInvoice_number());
-
 
13486
      if (lastComparison != 0) {
13514
      if (lastComparison != 0) {
13487
        return lastComparison;
13515
        return lastComparison;
13488
      }
13516
      }
13489
      lastComparison = TBaseHelper.compareTo(invoice_number, typedOther.invoice_number);
13517
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
13490
      if (lastComparison != 0) {
13518
      if (lastComparison != 0) {
13491
        return lastComparison;
13519
        return lastComparison;
13492
      }
13520
      }
13493
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(isSetBilled_by());
13521
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
13494
      if (lastComparison != 0) {
13522
      if (lastComparison != 0) {
13495
        return lastComparison;
13523
        return lastComparison;
13496
      }
13524
      }
13497
      lastComparison = TBaseHelper.compareTo(billed_by, typedOther.billed_by);
13525
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
13498
      if (lastComparison != 0) {
13526
      if (lastComparison != 0) {
13499
        return lastComparison;
13527
        return lastComparison;
13500
      }
13528
      }
13501
      return 0;
13529
      return 0;
13502
    }
13530
    }
Line 13513... Line 13541...
13513
        _Fields fieldId = _Fields.findByThriftId(field.id);
13541
        _Fields fieldId = _Fields.findByThriftId(field.id);
13514
        if (fieldId == null) {
13542
        if (fieldId == null) {
13515
          TProtocolUtil.skip(iprot, field.type);
13543
          TProtocolUtil.skip(iprot, field.type);
13516
        } else {
13544
        } else {
13517
          switch (fieldId) {
13545
          switch (fieldId) {
13518
            case ORDER_ID:
13546
            case TRANSACTION_ID:
13519
              if (field.type == TType.I64) {
13547
              if (field.type == TType.I64) {
13520
                this.orderId = iprot.readI64();
13548
                this.transactionId = iprot.readI64();
13521
                setOrderIdIsSet(true);
13549
                setTransactionIdIsSet(true);
13522
              } else { 
-
 
13523
                TProtocolUtil.skip(iprot, field.type);
-
 
13524
              }
-
 
13525
              break;
-
 
13526
            case INVOICE_NUMBER:
-
 
13527
              if (field.type == TType.STRING) {
-
 
13528
                this.invoice_number = iprot.readString();
-
 
13529
              } else { 
13550
              } else { 
13530
                TProtocolUtil.skip(iprot, field.type);
13551
                TProtocolUtil.skip(iprot, field.type);
13531
              }
13552
              }
13532
              break;
13553
              break;
13533
            case BILLED_BY:
13554
            case CUSTOMER_ID:
13534
              if (field.type == TType.STRING) {
13555
              if (field.type == TType.I64) {
13535
                this.billed_by = iprot.readString();
13556
                this.customerId = iprot.readI64();
-
 
13557
                setCustomerIdIsSet(true);
13536
              } else { 
13558
              } else { 
13537
                TProtocolUtil.skip(iprot, field.type);
13559
                TProtocolUtil.skip(iprot, field.type);
13538
              }
13560
              }
13539
              break;
13561
              break;
13540
          }
13562
          }
Line 13547... Line 13569...
13547
 
13569
 
13548
    public void write(TProtocol oprot) throws TException {
13570
    public void write(TProtocol oprot) throws TException {
13549
      validate();
13571
      validate();
13550
 
13572
 
13551
      oprot.writeStructBegin(STRUCT_DESC);
13573
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13574
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
13575
      oprot.writeI64(this.transactionId);
-
 
13576
      oprot.writeFieldEnd();
13552
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13577
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
13553
      oprot.writeI64(this.orderId);
13578
      oprot.writeI64(this.customerId);
13554
      oprot.writeFieldEnd();
13579
      oprot.writeFieldEnd();
13555
      if (this.invoice_number != null) {
-
 
13556
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
-
 
13557
        oprot.writeString(this.invoice_number);
-
 
13558
        oprot.writeFieldEnd();
-
 
13559
      }
-
 
13560
      if (this.billed_by != null) {
-
 
13561
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
-
 
13562
        oprot.writeString(this.billed_by);
-
 
13563
        oprot.writeFieldEnd();
-
 
13564
      }
-
 
13565
      oprot.writeFieldStop();
13580
      oprot.writeFieldStop();
13566
      oprot.writeStructEnd();
13581
      oprot.writeStructEnd();
13567
    }
13582
    }
13568
 
13583
 
13569
    @Override
13584
    @Override
13570
    public String toString() {
13585
    public String toString() {
13571
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
13586
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");
13572
      boolean first = true;
13587
      boolean first = true;
13573
 
13588
 
13574
      sb.append("orderId:");
13589
      sb.append("transactionId:");
13575
      sb.append(this.orderId);
13590
      sb.append(this.transactionId);
13576
      first = false;
-
 
13577
      if (!first) sb.append(", ");
-
 
13578
      sb.append("invoice_number:");
-
 
13579
      if (this.invoice_number == null) {
-
 
13580
        sb.append("null");
-
 
13581
      } else {
-
 
13582
        sb.append(this.invoice_number);
-
 
13583
      }
-
 
13584
      first = false;
13591
      first = false;
13585
      if (!first) sb.append(", ");
13592
      if (!first) sb.append(", ");
13586
      sb.append("billed_by:");
13593
      sb.append("customerId:");
13587
      if (this.billed_by == null) {
-
 
13588
        sb.append("null");
-
 
13589
      } else {
-
 
13590
        sb.append(this.billed_by);
13594
      sb.append(this.customerId);
13591
      }
-
 
13592
      first = false;
13595
      first = false;
13593
      sb.append(")");
13596
      sb.append(")");
13594
      return sb.toString();
13597
      return sb.toString();
13595
    }
13598
    }
13596
 
13599
 
Line 13598... Line 13601...
13598
      // check for required fields
13601
      // check for required fields
13599
    }
13602
    }
13600
 
13603
 
13601
  }
13604
  }
13602
 
13605
 
13603
  public static class addBillingDetails_result implements TBase<addBillingDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<addBillingDetails_result>   {
13606
  public static class getOrdersForTransaction_result implements TBase<getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForTransaction_result>   {
13604
    private static final TStruct STRUCT_DESC = new TStruct("addBillingDetails_result");
13607
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForTransaction_result");
13605
 
13608
 
13606
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
13609
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
13607
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
13610
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
13608
 
13611
 
13609
    private boolean success;
13612
    private List<Order> success;
13610
    private TransactionServiceException ex;
13613
    private TransactionServiceException ex;
13611
 
13614
 
13612
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13613
    public enum _Fields implements TFieldIdEnum {
13616
    public enum _Fields implements TFieldIdEnum {
13614
      SUCCESS((short)0, "success"),
13617
      SUCCESS((short)0, "success"),
Line 13664... Line 13667...
13664
        return _fieldName;
13667
        return _fieldName;
13665
      }
13668
      }
13666
    }
13669
    }
13667
 
13670
 
13668
    // isset id assignments
13671
    // isset id assignments
13669
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
13670
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
13671
 
13672
 
13672
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13673
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13673
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
13674
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
13674
          new FieldValueMetaData(TType.BOOL)));
13675
          new ListMetaData(TType.LIST, 
-
 
13676
              new StructMetaData(TType.STRUCT, Order.class))));
13675
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
13677
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
13676
          new FieldValueMetaData(TType.STRUCT)));
13678
          new FieldValueMetaData(TType.STRUCT)));
13677
    }});
13679
    }});
13678
 
13680
 
13679
    static {
13681
    static {
13680
      FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
13682
      FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);
13681
    }
13683
    }
13682
 
13684
 
13683
    public addBillingDetails_result() {
13685
    public getOrdersForTransaction_result() {
13684
    }
13686
    }
13685
 
13687
 
13686
    public addBillingDetails_result(
13688
    public getOrdersForTransaction_result(
13687
      boolean success,
13689
      List<Order> success,
13688
      TransactionServiceException ex)
13690
      TransactionServiceException ex)
13689
    {
13691
    {
13690
      this();
13692
      this();
13691
      this.success = success;
13693
      this.success = success;
13692
      setSuccessIsSet(true);
-
 
13693
      this.ex = ex;
13694
      this.ex = ex;
13694
    }
13695
    }
13695
 
13696
 
13696
    /**
13697
    /**
13697
     * Performs a deep copy on <i>other</i>.
13698
     * Performs a deep copy on <i>other</i>.
13698
     */
13699
     */
13699
    public addBillingDetails_result(addBillingDetails_result other) {
13700
    public getOrdersForTransaction_result(getOrdersForTransaction_result other) {
13700
      __isset_bit_vector.clear();
13701
      if (other.isSetSuccess()) {
-
 
13702
        List<Order> __this__success = new ArrayList<Order>();
-
 
13703
        for (Order other_element : other.success) {
13701
      __isset_bit_vector.or(other.__isset_bit_vector);
13704
          __this__success.add(new Order(other_element));
-
 
13705
        }
13702
      this.success = other.success;
13706
        this.success = __this__success;
-
 
13707
      }
13703
      if (other.isSetEx()) {
13708
      if (other.isSetEx()) {
13704
        this.ex = new TransactionServiceException(other.ex);
13709
        this.ex = new TransactionServiceException(other.ex);
13705
      }
13710
      }
13706
    }
13711
    }
13707
 
13712
 
13708
    public addBillingDetails_result deepCopy() {
13713
    public getOrdersForTransaction_result deepCopy() {
13709
      return new addBillingDetails_result(this);
13714
      return new getOrdersForTransaction_result(this);
13710
    }
13715
    }
13711
 
13716
 
13712
    @Deprecated
13717
    @Deprecated
13713
    public addBillingDetails_result clone() {
13718
    public getOrdersForTransaction_result clone() {
13714
      return new addBillingDetails_result(this);
13719
      return new getOrdersForTransaction_result(this);
13715
    }
13720
    }
13716
 
13721
 
-
 
13722
    public int getSuccessSize() {
-
 
13723
      return (this.success == null) ? 0 : this.success.size();
-
 
13724
    }
-
 
13725
 
-
 
13726
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
13727
      return (this.success == null) ? null : this.success.iterator();
-
 
13728
    }
-
 
13729
 
-
 
13730
    public void addToSuccess(Order elem) {
-
 
13731
      if (this.success == null) {
-
 
13732
        this.success = new ArrayList<Order>();
-
 
13733
      }
-
 
13734
      this.success.add(elem);
-
 
13735
    }
-
 
13736
 
13717
    public boolean isSuccess() {
13737
    public List<Order> getSuccess() {
13718
      return this.success;
13738
      return this.success;
13719
    }
13739
    }
13720
 
13740
 
13721
    public addBillingDetails_result setSuccess(boolean success) {
13741
    public getOrdersForTransaction_result setSuccess(List<Order> success) {
13722
      this.success = success;
13742
      this.success = success;
13723
      setSuccessIsSet(true);
-
 
13724
      return this;
13743
      return this;
13725
    }
13744
    }
13726
 
13745
 
13727
    public void unsetSuccess() {
13746
    public void unsetSuccess() {
13728
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13747
      this.success = null;
13729
    }
13748
    }
13730
 
13749
 
13731
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
13750
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
13732
    public boolean isSetSuccess() {
13751
    public boolean isSetSuccess() {
13733
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13752
      return this.success != null;
13734
    }
13753
    }
13735
 
13754
 
13736
    public void setSuccessIsSet(boolean value) {
13755
    public void setSuccessIsSet(boolean value) {
-
 
13756
      if (!value) {
13737
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13757
        this.success = null;
-
 
13758
      }
13738
    }
13759
    }
13739
 
13760
 
13740
    public TransactionServiceException getEx() {
13761
    public TransactionServiceException getEx() {
13741
      return this.ex;
13762
      return this.ex;
13742
    }
13763
    }
13743
 
13764
 
13744
    public addBillingDetails_result setEx(TransactionServiceException ex) {
13765
    public getOrdersForTransaction_result setEx(TransactionServiceException ex) {
13745
      this.ex = ex;
13766
      this.ex = ex;
13746
      return this;
13767
      return this;
13747
    }
13768
    }
13748
 
13769
 
13749
    public void unsetEx() {
13770
    public void unsetEx() {
Line 13765... Line 13786...
13765
      switch (field) {
13786
      switch (field) {
13766
      case SUCCESS:
13787
      case SUCCESS:
13767
        if (value == null) {
13788
        if (value == null) {
13768
          unsetSuccess();
13789
          unsetSuccess();
13769
        } else {
13790
        } else {
13770
          setSuccess((Boolean)value);
13791
          setSuccess((List<Order>)value);
13771
        }
13792
        }
13772
        break;
13793
        break;
13773
 
13794
 
13774
      case EX:
13795
      case EX:
13775
        if (value == null) {
13796
        if (value == null) {
Line 13787... Line 13808...
13787
    }
13808
    }
13788
 
13809
 
13789
    public Object getFieldValue(_Fields field) {
13810
    public Object getFieldValue(_Fields field) {
13790
      switch (field) {
13811
      switch (field) {
13791
      case SUCCESS:
13812
      case SUCCESS:
13792
        return new Boolean(isSuccess());
13813
        return getSuccess();
13793
 
13814
 
13794
      case EX:
13815
      case EX:
13795
        return getEx();
13816
        return getEx();
13796
 
13817
 
13797
      }
13818
      }
Line 13819... Line 13840...
13819
 
13840
 
13820
    @Override
13841
    @Override
13821
    public boolean equals(Object that) {
13842
    public boolean equals(Object that) {
13822
      if (that == null)
13843
      if (that == null)
13823
        return false;
13844
        return false;
13824
      if (that instanceof addBillingDetails_result)
13845
      if (that instanceof getOrdersForTransaction_result)
13825
        return this.equals((addBillingDetails_result)that);
13846
        return this.equals((getOrdersForTransaction_result)that);
13826
      return false;
13847
      return false;
13827
    }
13848
    }
13828
 
13849
 
13829
    public boolean equals(addBillingDetails_result that) {
13850
    public boolean equals(getOrdersForTransaction_result that) {
13830
      if (that == null)
13851
      if (that == null)
13831
        return false;
13852
        return false;
13832
 
13853
 
13833
      boolean this_present_success = true;
13854
      boolean this_present_success = true && this.isSetSuccess();
13834
      boolean that_present_success = true;
13855
      boolean that_present_success = true && that.isSetSuccess();
13835
      if (this_present_success || that_present_success) {
13856
      if (this_present_success || that_present_success) {
13836
        if (!(this_present_success && that_present_success))
13857
        if (!(this_present_success && that_present_success))
13837
          return false;
13858
          return false;
13838
        if (this.success != that.success)
13859
        if (!this.success.equals(that.success))
13839
          return false;
13860
          return false;
13840
      }
13861
      }
13841
 
13862
 
13842
      boolean this_present_ex = true && this.isSetEx();
13863
      boolean this_present_ex = true && this.isSetEx();
13843
      boolean that_present_ex = true && that.isSetEx();
13864
      boolean that_present_ex = true && that.isSetEx();
Line 13854... Line 13875...
13854
    @Override
13875
    @Override
13855
    public int hashCode() {
13876
    public int hashCode() {
13856
      return 0;
13877
      return 0;
13857
    }
13878
    }
13858
 
13879
 
13859
    public int compareTo(addBillingDetails_result other) {
13880
    public int compareTo(getOrdersForTransaction_result other) {
13860
      if (!getClass().equals(other.getClass())) {
13881
      if (!getClass().equals(other.getClass())) {
13861
        return getClass().getName().compareTo(other.getClass().getName());
13882
        return getClass().getName().compareTo(other.getClass().getName());
13862
      }
13883
      }
13863
 
13884
 
13864
      int lastComparison = 0;
13885
      int lastComparison = 0;
13865
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
13886
      getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;
13866
 
13887
 
13867
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
13888
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
13868
      if (lastComparison != 0) {
13889
      if (lastComparison != 0) {
13869
        return lastComparison;
13890
        return lastComparison;
13870
      }
13891
      }
Line 13896... Line 13917...
13896
        if (fieldId == null) {
13917
        if (fieldId == null) {
13897
          TProtocolUtil.skip(iprot, field.type);
13918
          TProtocolUtil.skip(iprot, field.type);
13898
        } else {
13919
        } else {
13899
          switch (fieldId) {
13920
          switch (fieldId) {
13900
            case SUCCESS:
13921
            case SUCCESS:
13901
              if (field.type == TType.BOOL) {
13922
              if (field.type == TType.LIST) {
-
 
13923
                {
13902
                this.success = iprot.readBool();
13924
                  TList _list32 = iprot.readListBegin();
-
 
13925
                  this.success = new ArrayList<Order>(_list32.size);
-
 
13926
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
-
 
13927
                  {
-
 
13928
                    Order _elem34;
-
 
13929
                    _elem34 = new Order();
13903
                setSuccessIsSet(true);
13930
                    _elem34.read(iprot);
-
 
13931
                    this.success.add(_elem34);
-
 
13932
                  }
-
 
13933
                  iprot.readListEnd();
-
 
13934
                }
13904
              } else { 
13935
              } else { 
13905
                TProtocolUtil.skip(iprot, field.type);
13936
                TProtocolUtil.skip(iprot, field.type);
13906
              }
13937
              }
13907
              break;
13938
              break;
13908
            case EX:
13939
            case EX:
Line 13924... Line 13955...
13924
    public void write(TProtocol oprot) throws TException {
13955
    public void write(TProtocol oprot) throws TException {
13925
      oprot.writeStructBegin(STRUCT_DESC);
13956
      oprot.writeStructBegin(STRUCT_DESC);
13926
 
13957
 
13927
      if (this.isSetSuccess()) {
13958
      if (this.isSetSuccess()) {
13928
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13959
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
13960
        {
-
 
13961
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
13929
        oprot.writeBool(this.success);
13962
          for (Order _iter35 : this.success)
-
 
13963
          {
-
 
13964
            _iter35.write(oprot);
-
 
13965
          }
-
 
13966
          oprot.writeListEnd();
-
 
13967
        }
13930
        oprot.writeFieldEnd();
13968
        oprot.writeFieldEnd();
13931
      } else if (this.isSetEx()) {
13969
      } else if (this.isSetEx()) {
13932
        oprot.writeFieldBegin(EX_FIELD_DESC);
13970
        oprot.writeFieldBegin(EX_FIELD_DESC);
13933
        this.ex.write(oprot);
13971
        this.ex.write(oprot);
13934
        oprot.writeFieldEnd();
13972
        oprot.writeFieldEnd();
Line 13937... Line 13975...
13937
      oprot.writeStructEnd();
13975
      oprot.writeStructEnd();
13938
    }
13976
    }
13939
 
13977
 
13940
    @Override
13978
    @Override
13941
    public String toString() {
13979
    public String toString() {
13942
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
13980
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");
13943
      boolean first = true;
13981
      boolean first = true;
13944
 
13982
 
13945
      sb.append("success:");
13983
      sb.append("success:");
-
 
13984
      if (this.success == null) {
-
 
13985
        sb.append("null");
-
 
13986
      } else {
13946
      sb.append(this.success);
13987
        sb.append(this.success);
-
 
13988
      }
13947
      first = false;
13989
      first = false;
13948
      if (!first) sb.append(", ");
13990
      if (!first) sb.append(", ");
13949
      sb.append("ex:");
13991
      sb.append("ex:");
13950
      if (this.ex == null) {
13992
      if (this.ex == null) {
13951
        sb.append("null");
13993
        sb.append("null");
Line 13961... Line 14003...
13961
      // check for required fields
14003
      // check for required fields
13962
    }
14004
    }
13963
 
14005
 
13964
  }
14006
  }
13965
 
14007
 
13966
  public static class addJacketNumber_args implements TBase<addJacketNumber_args._Fields>, java.io.Serializable, Cloneable, Comparable<addJacketNumber_args>   {
14008
  public static class getOrdersForCustomer_args implements TBase<getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForCustomer_args>   {
13967
    private static final TStruct STRUCT_DESC = new TStruct("addJacketNumber_args");
14009
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForCustomer_args");
13968
 
14010
 
13969
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
14011
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
13970
    private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacketNumber", TType.I64, (short)2);
14012
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
13971
    private static final TField IMEI_NUMBER_FIELD_DESC = new TField("imeiNumber", TType.I64, (short)3);
14013
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
13972
    private static final TField ITEM_NUMBER_FIELD_DESC = new TField("itemNumber", TType.STRING, (short)4);
14014
    private static final TField STATUSES_FIELD_DESC = new TField("statuses", TType.LIST, (short)4);
13973
    private static final TField BILLED_BY_FIELD_DESC = new TField("billedBy", TType.STRING, (short)5);
-
 
13974
    private static final TField BILLING_TYPE_FIELD_DESC = new TField("billingType", TType.I64, (short)6);
-
 
13975
 
14015
 
13976
    private long orderId;
14016
    private long customerId;
13977
    private long jacketNumber;
14017
    private long from_date;
13978
    private long imeiNumber;
14018
    private long to_date;
13979
    private String itemNumber;
14019
    private List<OrderStatus> statuses;
13980
    private String billedBy;
-
 
13981
    private long billingType;
-
 
13982
 
14020
 
13983
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13984
    public enum _Fields implements TFieldIdEnum {
14022
    public enum _Fields implements TFieldIdEnum {
13985
      ORDER_ID((short)1, "orderId"),
14023
      CUSTOMER_ID((short)1, "customerId"),
13986
      JACKET_NUMBER((short)2, "jacketNumber"),
14024
      FROM_DATE((short)2, "from_date"),
13987
      IMEI_NUMBER((short)3, "imeiNumber"),
14025
      TO_DATE((short)3, "to_date"),
13988
      ITEM_NUMBER((short)4, "itemNumber"),
14026
      STATUSES((short)4, "statuses");
13989
      BILLED_BY((short)5, "billedBy"),
-
 
13990
      BILLING_TYPE((short)6, "billingType");
-
 
13991
 
14027
 
13992
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
14028
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
13993
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13994
 
14030
 
13995
      static {
14031
      static {
Line 14039... Line 14075...
14039
        return _fieldName;
14075
        return _fieldName;
14040
      }
14076
      }
14041
    }
14077
    }
14042
 
14078
 
14043
    // isset id assignments
14079
    // isset id assignments
14044
    private static final int __ORDERID_ISSET_ID = 0;
14080
    private static final int __CUSTOMERID_ISSET_ID = 0;
14045
    private static final int __JACKETNUMBER_ISSET_ID = 1;
14081
    private static final int __FROM_DATE_ISSET_ID = 1;
14046
    private static final int __IMEINUMBER_ISSET_ID = 2;
14082
    private static final int __TO_DATE_ISSET_ID = 2;
14047
    private static final int __BILLINGTYPE_ISSET_ID = 3;
-
 
14048
    private BitSet __isset_bit_vector = new BitSet(4);
14083
    private BitSet __isset_bit_vector = new BitSet(3);
14049
 
14084
 
14050
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14085
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14051
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
14086
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
14052
          new FieldValueMetaData(TType.I64)));
-
 
14053
      put(_Fields.JACKET_NUMBER, new FieldMetaData("jacketNumber", TFieldRequirementType.DEFAULT, 
-
 
14054
          new FieldValueMetaData(TType.I64)));
14087
          new FieldValueMetaData(TType.I64)));
14055
      put(_Fields.IMEI_NUMBER, new FieldMetaData("imeiNumber", TFieldRequirementType.DEFAULT, 
14088
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
14056
          new FieldValueMetaData(TType.I64)));
14089
          new FieldValueMetaData(TType.I64)));
14057
      put(_Fields.ITEM_NUMBER, new FieldMetaData("itemNumber", TFieldRequirementType.DEFAULT, 
14090
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
14058
          new FieldValueMetaData(TType.STRING)));
-
 
14059
      put(_Fields.BILLED_BY, new FieldMetaData("billedBy", TFieldRequirementType.DEFAULT, 
-
 
14060
          new FieldValueMetaData(TType.STRING)));
-
 
14061
      put(_Fields.BILLING_TYPE, new FieldMetaData("billingType", TFieldRequirementType.DEFAULT, 
-
 
14062
          new FieldValueMetaData(TType.I64)));
14091
          new FieldValueMetaData(TType.I64)));
-
 
14092
      put(_Fields.STATUSES, new FieldMetaData("statuses", TFieldRequirementType.DEFAULT, 
-
 
14093
          new ListMetaData(TType.LIST, 
-
 
14094
              new EnumMetaData(TType.ENUM, OrderStatus.class))));
14063
    }});
14095
    }});
14064
 
14096
 
14065
    static {
14097
    static {
14066
      FieldMetaData.addStructMetaDataMap(addJacketNumber_args.class, metaDataMap);
14098
      FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);
14067
    }
14099
    }
14068
 
14100
 
14069
    public addJacketNumber_args() {
14101
    public getOrdersForCustomer_args() {
14070
    }
14102
    }
14071
 
14103
 
14072
    public addJacketNumber_args(
14104
    public getOrdersForCustomer_args(
14073
      long orderId,
14105
      long customerId,
14074
      long jacketNumber,
14106
      long from_date,
14075
      long imeiNumber,
14107
      long to_date,
14076
      String itemNumber,
14108
      List<OrderStatus> statuses)
14077
      String billedBy,
-
 
14078
      long billingType)
-
 
14079
    {
14109
    {
14080
      this();
14110
      this();
14081
      this.orderId = orderId;
14111
      this.customerId = customerId;
14082
      setOrderIdIsSet(true);
14112
      setCustomerIdIsSet(true);
14083
      this.jacketNumber = jacketNumber;
14113
      this.from_date = from_date;
14084
      setJacketNumberIsSet(true);
14114
      setFrom_dateIsSet(true);
14085
      this.imeiNumber = imeiNumber;
14115
      this.to_date = to_date;
14086
      setImeiNumberIsSet(true);
14116
      setTo_dateIsSet(true);
14087
      this.itemNumber = itemNumber;
14117
      this.statuses = statuses;
14088
      this.billedBy = billedBy;
-
 
14089
      this.billingType = billingType;
-
 
14090
      setBillingTypeIsSet(true);
-
 
14091
    }
14118
    }
14092
 
14119
 
14093
    /**
14120
    /**
14094
     * Performs a deep copy on <i>other</i>.
14121
     * Performs a deep copy on <i>other</i>.
14095
     */
14122
     */
14096
    public addJacketNumber_args(addJacketNumber_args other) {
14123
    public getOrdersForCustomer_args(getOrdersForCustomer_args other) {
14097
      __isset_bit_vector.clear();
14124
      __isset_bit_vector.clear();
14098
      __isset_bit_vector.or(other.__isset_bit_vector);
14125
      __isset_bit_vector.or(other.__isset_bit_vector);
14099
      this.orderId = other.orderId;
14126
      this.customerId = other.customerId;
14100
      this.jacketNumber = other.jacketNumber;
14127
      this.from_date = other.from_date;
14101
      this.imeiNumber = other.imeiNumber;
14128
      this.to_date = other.to_date;
14102
      if (other.isSetItemNumber()) {
14129
      if (other.isSetStatuses()) {
-
 
14130
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
-
 
14131
        for (OrderStatus other_element : other.statuses) {
14103
        this.itemNumber = other.itemNumber;
14132
          __this__statuses.add(other_element);
14104
      }
14133
        }
14105
      if (other.isSetBilledBy()) {
-
 
14106
        this.billedBy = other.billedBy;
14134
        this.statuses = __this__statuses;
14107
      }
14135
      }
14108
      this.billingType = other.billingType;
-
 
14109
    }
14136
    }
14110
 
14137
 
14111
    public addJacketNumber_args deepCopy() {
14138
    public getOrdersForCustomer_args deepCopy() {
14112
      return new addJacketNumber_args(this);
14139
      return new getOrdersForCustomer_args(this);
14113
    }
14140
    }
14114
 
14141
 
14115
    @Deprecated
14142
    @Deprecated
14116
    public addJacketNumber_args clone() {
14143
    public getOrdersForCustomer_args clone() {
14117
      return new addJacketNumber_args(this);
14144
      return new getOrdersForCustomer_args(this);
14118
    }
14145
    }
14119
 
14146
 
14120
    public long getOrderId() {
14147
    public long getCustomerId() {
14121
      return this.orderId;
14148
      return this.customerId;
14122
    }
14149
    }
14123
 
14150
 
14124
    public addJacketNumber_args setOrderId(long orderId) {
14151
    public getOrdersForCustomer_args setCustomerId(long customerId) {
14125
      this.orderId = orderId;
14152
      this.customerId = customerId;
14126
      setOrderIdIsSet(true);
14153
      setCustomerIdIsSet(true);
14127
      return this;
14154
      return this;
14128
    }
14155
    }
14129
 
14156
 
14130
    public void unsetOrderId() {
14157
    public void unsetCustomerId() {
14131
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14158
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
14132
    }
14159
    }
14133
 
14160
 
14134
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
14161
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
14135
    public boolean isSetOrderId() {
14162
    public boolean isSetCustomerId() {
14136
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14163
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
14137
    }
14164
    }
14138
 
14165
 
14139
    public void setOrderIdIsSet(boolean value) {
14166
    public void setCustomerIdIsSet(boolean value) {
14140
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14167
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
14141
    }
14168
    }
14142
 
14169
 
14143
    public long getJacketNumber() {
14170
    public long getFrom_date() {
14144
      return this.jacketNumber;
14171
      return this.from_date;
14145
    }
14172
    }
14146
 
14173
 
14147
    public addJacketNumber_args setJacketNumber(long jacketNumber) {
14174
    public getOrdersForCustomer_args setFrom_date(long from_date) {
14148
      this.jacketNumber = jacketNumber;
14175
      this.from_date = from_date;
14149
      setJacketNumberIsSet(true);
14176
      setFrom_dateIsSet(true);
14150
      return this;
14177
      return this;
14151
    }
14178
    }
14152
 
14179
 
14153
    public void unsetJacketNumber() {
14180
    public void unsetFrom_date() {
14154
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
14181
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
14155
    }
14182
    }
14156
 
14183
 
14157
    /** Returns true if field jacketNumber is set (has been asigned a value) and false otherwise */
14184
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
14158
    public boolean isSetJacketNumber() {
14185
    public boolean isSetFrom_date() {
14159
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
14186
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
14160
    }
14187
    }
14161
 
14188
 
14162
    public void setJacketNumberIsSet(boolean value) {
14189
    public void setFrom_dateIsSet(boolean value) {
14163
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
14190
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
14164
    }
14191
    }
14165
 
14192
 
14166
    public long getImeiNumber() {
14193
    public long getTo_date() {
14167
      return this.imeiNumber;
14194
      return this.to_date;
14168
    }
14195
    }
14169
 
14196
 
14170
    public addJacketNumber_args setImeiNumber(long imeiNumber) {
14197
    public getOrdersForCustomer_args setTo_date(long to_date) {
14171
      this.imeiNumber = imeiNumber;
14198
      this.to_date = to_date;
14172
      setImeiNumberIsSet(true);
14199
      setTo_dateIsSet(true);
14173
      return this;
14200
      return this;
14174
    }
14201
    }
14175
 
14202
 
14176
    public void unsetImeiNumber() {
14203
    public void unsetTo_date() {
14177
      __isset_bit_vector.clear(__IMEINUMBER_ISSET_ID);
14204
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
14178
    }
-
 
14179
 
-
 
14180
    /** Returns true if field imeiNumber is set (has been asigned a value) and false otherwise */
-
 
14181
    public boolean isSetImeiNumber() {
-
 
14182
      return __isset_bit_vector.get(__IMEINUMBER_ISSET_ID);
-
 
14183
    }
-
 
14184
 
-
 
14185
    public void setImeiNumberIsSet(boolean value) {
-
 
14186
      __isset_bit_vector.set(__IMEINUMBER_ISSET_ID, value);
-
 
14187
    }
14205
    }
14188
 
14206
 
-
 
14207
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
14189
    public String getItemNumber() {
14208
    public boolean isSetTo_date() {
14190
      return this.itemNumber;
14209
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
14191
    }
14210
    }
14192
 
14211
 
14193
    public addJacketNumber_args setItemNumber(String itemNumber) {
14212
    public void setTo_dateIsSet(boolean value) {
14194
      this.itemNumber = itemNumber;
14213
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
14195
      return this;
-
 
14196
    }
14214
    }
14197
 
14215
 
14198
    public void unsetItemNumber() {
14216
    public int getStatusesSize() {
14199
      this.itemNumber = null;
14217
      return (this.statuses == null) ? 0 : this.statuses.size();
14200
    }
14218
    }
14201
 
14219
 
14202
    /** Returns true if field itemNumber is set (has been asigned a value) and false otherwise */
-
 
14203
    public boolean isSetItemNumber() {
14220
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
14204
      return this.itemNumber != null;
14221
      return (this.statuses == null) ? null : this.statuses.iterator();
14205
    }
14222
    }
14206
 
14223
 
14207
    public void setItemNumberIsSet(boolean value) {
14224
    public void addToStatuses(OrderStatus elem) {
14208
      if (!value) {
14225
      if (this.statuses == null) {
14209
        this.itemNumber = null;
14226
        this.statuses = new ArrayList<OrderStatus>();
14210
      }
14227
      }
-
 
14228
      this.statuses.add(elem);
14211
    }
14229
    }
14212
 
14230
 
14213
    public String getBilledBy() {
14231
    public List<OrderStatus> getStatuses() {
14214
      return this.billedBy;
14232
      return this.statuses;
14215
    }
14233
    }
14216
 
14234
 
14217
    public addJacketNumber_args setBilledBy(String billedBy) {
14235
    public getOrdersForCustomer_args setStatuses(List<OrderStatus> statuses) {
14218
      this.billedBy = billedBy;
14236
      this.statuses = statuses;
14219
      return this;
14237
      return this;
14220
    }
14238
    }
14221
 
14239
 
14222
    public void unsetBilledBy() {
14240
    public void unsetStatuses() {
14223
      this.billedBy = null;
14241
      this.statuses = null;
14224
    }
14242
    }
14225
 
14243
 
14226
    /** Returns true if field billedBy is set (has been asigned a value) and false otherwise */
14244
    /** Returns true if field statuses is set (has been asigned a value) and false otherwise */
14227
    public boolean isSetBilledBy() {
14245
    public boolean isSetStatuses() {
14228
      return this.billedBy != null;
14246
      return this.statuses != null;
14229
    }
14247
    }
14230
 
14248
 
14231
    public void setBilledByIsSet(boolean value) {
14249
    public void setStatusesIsSet(boolean value) {
14232
      if (!value) {
14250
      if (!value) {
14233
        this.billedBy = null;
14251
        this.statuses = null;
14234
      }
14252
      }
14235
    }
14253
    }
14236
 
14254
 
14237
    public long getBillingType() {
-
 
14238
      return this.billingType;
-
 
14239
    }
-
 
14240
 
-
 
14241
    public addJacketNumber_args setBillingType(long billingType) {
-
 
14242
      this.billingType = billingType;
-
 
14243
      setBillingTypeIsSet(true);
-
 
14244
      return this;
-
 
14245
    }
-
 
14246
 
-
 
14247
    public void unsetBillingType() {
-
 
14248
      __isset_bit_vector.clear(__BILLINGTYPE_ISSET_ID);
-
 
14249
    }
-
 
14250
 
-
 
14251
    /** Returns true if field billingType is set (has been asigned a value) and false otherwise */
-
 
14252
    public boolean isSetBillingType() {
-
 
14253
      return __isset_bit_vector.get(__BILLINGTYPE_ISSET_ID);
-
 
14254
    }
-
 
14255
 
-
 
14256
    public void setBillingTypeIsSet(boolean value) {
-
 
14257
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
-
 
14258
    }
-
 
14259
 
-
 
14260
    public void setFieldValue(_Fields field, Object value) {
14255
    public void setFieldValue(_Fields field, Object value) {
14261
      switch (field) {
14256
      switch (field) {
14262
      case ORDER_ID:
14257
      case CUSTOMER_ID:
14263
        if (value == null) {
-
 
14264
          unsetOrderId();
-
 
14265
        } else {
-
 
14266
          setOrderId((Long)value);
-
 
14267
        }
-
 
14268
        break;
-
 
14269
 
-
 
14270
      case JACKET_NUMBER:
-
 
14271
        if (value == null) {
-
 
14272
          unsetJacketNumber();
-
 
14273
        } else {
-
 
14274
          setJacketNumber((Long)value);
-
 
14275
        }
-
 
14276
        break;
-
 
14277
 
-
 
14278
      case IMEI_NUMBER:
-
 
14279
        if (value == null) {
14258
        if (value == null) {
14280
          unsetImeiNumber();
14259
          unsetCustomerId();
14281
        } else {
14260
        } else {
14282
          setImeiNumber((Long)value);
14261
          setCustomerId((Long)value);
14283
        }
14262
        }
14284
        break;
14263
        break;
14285
 
14264
 
14286
      case ITEM_NUMBER:
14265
      case FROM_DATE:
14287
        if (value == null) {
14266
        if (value == null) {
14288
          unsetItemNumber();
14267
          unsetFrom_date();
14289
        } else {
14268
        } else {
14290
          setItemNumber((String)value);
14269
          setFrom_date((Long)value);
14291
        }
14270
        }
14292
        break;
14271
        break;
14293
 
14272
 
14294
      case BILLED_BY:
14273
      case TO_DATE:
14295
        if (value == null) {
14274
        if (value == null) {
14296
          unsetBilledBy();
14275
          unsetTo_date();
14297
        } else {
14276
        } else {
14298
          setBilledBy((String)value);
14277
          setTo_date((Long)value);
14299
        }
14278
        }
14300
        break;
14279
        break;
14301
 
14280
 
14302
      case BILLING_TYPE:
14281
      case STATUSES:
14303
        if (value == null) {
14282
        if (value == null) {
14304
          unsetBillingType();
14283
          unsetStatuses();
14305
        } else {
14284
        } else {
14306
          setBillingType((Long)value);
14285
          setStatuses((List<OrderStatus>)value);
14307
        }
14286
        }
14308
        break;
14287
        break;
14309
 
14288
 
14310
      }
14289
      }
14311
    }
14290
    }
Line 14314... Line 14293...
14314
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
14293
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
14315
    }
14294
    }
14316
 
14295
 
14317
    public Object getFieldValue(_Fields field) {
14296
    public Object getFieldValue(_Fields field) {
14318
      switch (field) {
14297
      switch (field) {
14319
      case ORDER_ID:
14298
      case CUSTOMER_ID:
14320
        return new Long(getOrderId());
14299
        return new Long(getCustomerId());
14321
 
-
 
14322
      case JACKET_NUMBER:
-
 
14323
        return new Long(getJacketNumber());
-
 
14324
 
-
 
14325
      case IMEI_NUMBER:
-
 
14326
        return new Long(getImeiNumber());
-
 
14327
 
14300
 
14328
      case ITEM_NUMBER:
14301
      case FROM_DATE:
14329
        return getItemNumber();
14302
        return new Long(getFrom_date());
14330
 
14303
 
14331
      case BILLED_BY:
14304
      case TO_DATE:
14332
        return getBilledBy();
14305
        return new Long(getTo_date());
14333
 
14306
 
14334
      case BILLING_TYPE:
14307
      case STATUSES:
14335
        return new Long(getBillingType());
14308
        return getStatuses();
14336
 
14309
 
14337
      }
14310
      }
14338
      throw new IllegalStateException();
14311
      throw new IllegalStateException();
14339
    }
14312
    }
14340
 
14313
 
Line 14343... Line 14316...
14343
    }
14316
    }
14344
 
14317
 
14345
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
14318
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
14346
    public boolean isSet(_Fields field) {
14319
    public boolean isSet(_Fields field) {
14347
      switch (field) {
14320
      switch (field) {
14348
      case ORDER_ID:
14321
      case CUSTOMER_ID:
14349
        return isSetOrderId();
14322
        return isSetCustomerId();
14350
      case JACKET_NUMBER:
-
 
14351
        return isSetJacketNumber();
-
 
14352
      case IMEI_NUMBER:
14323
      case FROM_DATE:
14353
        return isSetImeiNumber();
14324
        return isSetFrom_date();
14354
      case ITEM_NUMBER:
14325
      case TO_DATE:
14355
        return isSetItemNumber();
14326
        return isSetTo_date();
14356
      case BILLED_BY:
14327
      case STATUSES:
14357
        return isSetBilledBy();
14328
        return isSetStatuses();
14358
      case BILLING_TYPE:
-
 
14359
        return isSetBillingType();
-
 
14360
      }
14329
      }
14361
      throw new IllegalStateException();
14330
      throw new IllegalStateException();
14362
    }
14331
    }
14363
 
14332
 
14364
    public boolean isSet(int fieldID) {
14333
    public boolean isSet(int fieldID) {
Line 14367... Line 14336...
14367
 
14336
 
14368
    @Override
14337
    @Override
14369
    public boolean equals(Object that) {
14338
    public boolean equals(Object that) {
14370
      if (that == null)
14339
      if (that == null)
14371
        return false;
14340
        return false;
14372
      if (that instanceof addJacketNumber_args)
14341
      if (that instanceof getOrdersForCustomer_args)
14373
        return this.equals((addJacketNumber_args)that);
14342
        return this.equals((getOrdersForCustomer_args)that);
14374
      return false;
14343
      return false;
14375
    }
14344
    }
14376
 
14345
 
14377
    public boolean equals(addJacketNumber_args that) {
14346
    public boolean equals(getOrdersForCustomer_args that) {
14378
      if (that == null)
14347
      if (that == null)
14379
        return false;
14348
        return false;
14380
 
14349
 
14381
      boolean this_present_orderId = true;
14350
      boolean this_present_customerId = true;
14382
      boolean that_present_orderId = true;
14351
      boolean that_present_customerId = true;
14383
      if (this_present_orderId || that_present_orderId) {
14352
      if (this_present_customerId || that_present_customerId) {
14384
        if (!(this_present_orderId && that_present_orderId))
14353
        if (!(this_present_customerId && that_present_customerId))
14385
          return false;
-
 
14386
        if (this.orderId != that.orderId)
-
 
14387
          return false;
-
 
14388
      }
-
 
14389
 
-
 
14390
      boolean this_present_jacketNumber = true;
-
 
14391
      boolean that_present_jacketNumber = true;
-
 
14392
      if (this_present_jacketNumber || that_present_jacketNumber) {
-
 
14393
        if (!(this_present_jacketNumber && that_present_jacketNumber))
-
 
14394
          return false;
-
 
14395
        if (this.jacketNumber != that.jacketNumber)
-
 
14396
          return false;
-
 
14397
      }
-
 
14398
 
-
 
14399
      boolean this_present_imeiNumber = true;
-
 
14400
      boolean that_present_imeiNumber = true;
-
 
14401
      if (this_present_imeiNumber || that_present_imeiNumber) {
-
 
14402
        if (!(this_present_imeiNumber && that_present_imeiNumber))
-
 
14403
          return false;
14354
          return false;
14404
        if (this.imeiNumber != that.imeiNumber)
14355
        if (this.customerId != that.customerId)
14405
          return false;
14356
          return false;
14406
      }
14357
      }
14407
 
14358
 
14408
      boolean this_present_itemNumber = true && this.isSetItemNumber();
14359
      boolean this_present_from_date = true;
14409
      boolean that_present_itemNumber = true && that.isSetItemNumber();
14360
      boolean that_present_from_date = true;
14410
      if (this_present_itemNumber || that_present_itemNumber) {
14361
      if (this_present_from_date || that_present_from_date) {
14411
        if (!(this_present_itemNumber && that_present_itemNumber))
14362
        if (!(this_present_from_date && that_present_from_date))
14412
          return false;
14363
          return false;
14413
        if (!this.itemNumber.equals(that.itemNumber))
14364
        if (this.from_date != that.from_date)
14414
          return false;
14365
          return false;
14415
      }
14366
      }
14416
 
14367
 
14417
      boolean this_present_billedBy = true && this.isSetBilledBy();
14368
      boolean this_present_to_date = true;
14418
      boolean that_present_billedBy = true && that.isSetBilledBy();
14369
      boolean that_present_to_date = true;
14419
      if (this_present_billedBy || that_present_billedBy) {
14370
      if (this_present_to_date || that_present_to_date) {
14420
        if (!(this_present_billedBy && that_present_billedBy))
14371
        if (!(this_present_to_date && that_present_to_date))
14421
          return false;
14372
          return false;
14422
        if (!this.billedBy.equals(that.billedBy))
14373
        if (this.to_date != that.to_date)
14423
          return false;
14374
          return false;
14424
      }
14375
      }
14425
 
14376
 
14426
      boolean this_present_billingType = true;
14377
      boolean this_present_statuses = true && this.isSetStatuses();
14427
      boolean that_present_billingType = true;
14378
      boolean that_present_statuses = true && that.isSetStatuses();
14428
      if (this_present_billingType || that_present_billingType) {
14379
      if (this_present_statuses || that_present_statuses) {
14429
        if (!(this_present_billingType && that_present_billingType))
14380
        if (!(this_present_statuses && that_present_statuses))
14430
          return false;
14381
          return false;
14431
        if (this.billingType != that.billingType)
14382
        if (!this.statuses.equals(that.statuses))
14432
          return false;
14383
          return false;
14433
      }
14384
      }
14434
 
14385
 
14435
      return true;
14386
      return true;
14436
    }
14387
    }
Line 14438... Line 14389...
14438
    @Override
14389
    @Override
14439
    public int hashCode() {
14390
    public int hashCode() {
14440
      return 0;
14391
      return 0;
14441
    }
14392
    }
14442
 
14393
 
14443
    public int compareTo(addJacketNumber_args other) {
14394
    public int compareTo(getOrdersForCustomer_args other) {
14444
      if (!getClass().equals(other.getClass())) {
14395
      if (!getClass().equals(other.getClass())) {
14445
        return getClass().getName().compareTo(other.getClass().getName());
14396
        return getClass().getName().compareTo(other.getClass().getName());
14446
      }
14397
      }
14447
 
14398
 
14448
      int lastComparison = 0;
14399
      int lastComparison = 0;
14449
      addJacketNumber_args typedOther = (addJacketNumber_args)other;
14400
      getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;
14450
 
14401
 
14451
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
14402
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
14452
      if (lastComparison != 0) {
-
 
14453
        return lastComparison;
-
 
14454
      }
-
 
14455
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
14456
      if (lastComparison != 0) {
-
 
14457
        return lastComparison;
-
 
14458
      }
-
 
14459
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(isSetJacketNumber());
-
 
14460
      if (lastComparison != 0) {
-
 
14461
        return lastComparison;
-
 
14462
      }
-
 
14463
      lastComparison = TBaseHelper.compareTo(jacketNumber, typedOther.jacketNumber);
-
 
14464
      if (lastComparison != 0) {
-
 
14465
        return lastComparison;
-
 
14466
      }
-
 
14467
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(isSetImeiNumber());
-
 
14468
      if (lastComparison != 0) {
14403
      if (lastComparison != 0) {
14469
        return lastComparison;
14404
        return lastComparison;
14470
      }
14405
      }
14471
      lastComparison = TBaseHelper.compareTo(imeiNumber, typedOther.imeiNumber);
14406
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
14472
      if (lastComparison != 0) {
14407
      if (lastComparison != 0) {
14473
        return lastComparison;
14408
        return lastComparison;
14474
      }
14409
      }
14475
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(isSetItemNumber());
14410
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
14476
      if (lastComparison != 0) {
14411
      if (lastComparison != 0) {
14477
        return lastComparison;
14412
        return lastComparison;
14478
      }
14413
      }
14479
      lastComparison = TBaseHelper.compareTo(itemNumber, typedOther.itemNumber);
14414
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
14480
      if (lastComparison != 0) {
14415
      if (lastComparison != 0) {
14481
        return lastComparison;
14416
        return lastComparison;
14482
      }
14417
      }
14483
      lastComparison = Boolean.valueOf(isSetBilledBy()).compareTo(isSetBilledBy());
14418
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
14484
      if (lastComparison != 0) {
14419
      if (lastComparison != 0) {
14485
        return lastComparison;
14420
        return lastComparison;
14486
      }
14421
      }
14487
      lastComparison = TBaseHelper.compareTo(billedBy, typedOther.billedBy);
14422
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
14488
      if (lastComparison != 0) {
14423
      if (lastComparison != 0) {
14489
        return lastComparison;
14424
        return lastComparison;
14490
      }
14425
      }
14491
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(isSetBillingType());
14426
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(isSetStatuses());
14492
      if (lastComparison != 0) {
14427
      if (lastComparison != 0) {
14493
        return lastComparison;
14428
        return lastComparison;
14494
      }
14429
      }
14495
      lastComparison = TBaseHelper.compareTo(billingType, typedOther.billingType);
14430
      lastComparison = TBaseHelper.compareTo(statuses, typedOther.statuses);
14496
      if (lastComparison != 0) {
14431
      if (lastComparison != 0) {
14497
        return lastComparison;
14432
        return lastComparison;
14498
      }
14433
      }
14499
      return 0;
14434
      return 0;
14500
    }
14435
    }
Line 14511... Line 14446...
14511
        _Fields fieldId = _Fields.findByThriftId(field.id);
14446
        _Fields fieldId = _Fields.findByThriftId(field.id);
14512
        if (fieldId == null) {
14447
        if (fieldId == null) {
14513
          TProtocolUtil.skip(iprot, field.type);
14448
          TProtocolUtil.skip(iprot, field.type);
14514
        } else {
14449
        } else {
14515
          switch (fieldId) {
14450
          switch (fieldId) {
14516
            case ORDER_ID:
14451
            case CUSTOMER_ID:
14517
              if (field.type == TType.I64) {
14452
              if (field.type == TType.I64) {
14518
                this.orderId = iprot.readI64();
14453
                this.customerId = iprot.readI64();
14519
                setOrderIdIsSet(true);
14454
                setCustomerIdIsSet(true);
14520
              } else { 
14455
              } else { 
14521
                TProtocolUtil.skip(iprot, field.type);
14456
                TProtocolUtil.skip(iprot, field.type);
14522
              }
14457
              }
14523
              break;
14458
              break;
14524
            case JACKET_NUMBER:
14459
            case FROM_DATE:
14525
              if (field.type == TType.I64) {
14460
              if (field.type == TType.I64) {
14526
                this.jacketNumber = iprot.readI64();
14461
                this.from_date = iprot.readI64();
14527
                setJacketNumberIsSet(true);
14462
                setFrom_dateIsSet(true);
14528
              } else { 
14463
              } else { 
14529
                TProtocolUtil.skip(iprot, field.type);
14464
                TProtocolUtil.skip(iprot, field.type);
14530
              }
14465
              }
14531
              break;
14466
              break;
14532
            case IMEI_NUMBER:
14467
            case TO_DATE:
14533
              if (field.type == TType.I64) {
14468
              if (field.type == TType.I64) {
14534
                this.imeiNumber = iprot.readI64();
14469
                this.to_date = iprot.readI64();
14535
                setImeiNumberIsSet(true);
14470
                setTo_dateIsSet(true);
14536
              } else { 
-
 
14537
                TProtocolUtil.skip(iprot, field.type);
-
 
14538
              }
-
 
14539
              break;
-
 
14540
            case ITEM_NUMBER:
-
 
14541
              if (field.type == TType.STRING) {
-
 
14542
                this.itemNumber = iprot.readString();
-
 
14543
              } else { 
-
 
14544
                TProtocolUtil.skip(iprot, field.type);
-
 
14545
              }
-
 
14546
              break;
-
 
14547
            case BILLED_BY:
-
 
14548
              if (field.type == TType.STRING) {
-
 
14549
                this.billedBy = iprot.readString();
-
 
14550
              } else { 
14471
              } else { 
14551
                TProtocolUtil.skip(iprot, field.type);
14472
                TProtocolUtil.skip(iprot, field.type);
14552
              }
14473
              }
14553
              break;
14474
              break;
14554
            case BILLING_TYPE:
14475
            case STATUSES:
14555
              if (field.type == TType.I64) {
14476
              if (field.type == TType.LIST) {
-
 
14477
                {
14556
                this.billingType = iprot.readI64();
14478
                  TList _list36 = iprot.readListBegin();
-
 
14479
                  this.statuses = new ArrayList<OrderStatus>(_list36.size);
-
 
14480
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
-
 
14481
                  {
-
 
14482
                    OrderStatus _elem38;
-
 
14483
                    _elem38 = OrderStatus.findByValue(iprot.readI32());
14557
                setBillingTypeIsSet(true);
14484
                    this.statuses.add(_elem38);
-
 
14485
                  }
-
 
14486
                  iprot.readListEnd();
-
 
14487
                }
14558
              } else { 
14488
              } else { 
14559
                TProtocolUtil.skip(iprot, field.type);
14489
                TProtocolUtil.skip(iprot, field.type);
14560
              }
14490
              }
14561
              break;
14491
              break;
14562
          }
14492
          }
Line 14569... Line 14499...
14569
 
14499
 
14570
    public void write(TProtocol oprot) throws TException {
14500
    public void write(TProtocol oprot) throws TException {
14571
      validate();
14501
      validate();
14572
 
14502
 
14573
      oprot.writeStructBegin(STRUCT_DESC);
14503
      oprot.writeStructBegin(STRUCT_DESC);
14574
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14504
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
14575
      oprot.writeI64(this.orderId);
14505
      oprot.writeI64(this.customerId);
14576
      oprot.writeFieldEnd();
14506
      oprot.writeFieldEnd();
14577
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
14507
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
14578
      oprot.writeI64(this.jacketNumber);
14508
      oprot.writeI64(this.from_date);
14579
      oprot.writeFieldEnd();
14509
      oprot.writeFieldEnd();
14580
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
14510
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
14581
      oprot.writeI64(this.imeiNumber);
14511
      oprot.writeI64(this.to_date);
14582
      oprot.writeFieldEnd();
14512
      oprot.writeFieldEnd();
14583
      if (this.itemNumber != null) {
14513
      if (this.statuses != null) {
14584
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
14514
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
-
 
14515
        {
14585
        oprot.writeString(this.itemNumber);
14516
          oprot.writeListBegin(new TList(TType.I32, this.statuses.size()));
14586
        oprot.writeFieldEnd();
14517
          for (OrderStatus _iter39 : this.statuses)
14587
      }
14518
          {
14588
      if (this.billedBy != null) {
14519
            oprot.writeI32(_iter39.getValue());
14589
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
14520
          }
14590
        oprot.writeString(this.billedBy);
14521
          oprot.writeListEnd();
-
 
14522
        }
14591
        oprot.writeFieldEnd();
14523
        oprot.writeFieldEnd();
14592
      }
14524
      }
14593
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
-
 
14594
      oprot.writeI64(this.billingType);
-
 
14595
      oprot.writeFieldEnd();
-
 
14596
      oprot.writeFieldStop();
14525
      oprot.writeFieldStop();
14597
      oprot.writeStructEnd();
14526
      oprot.writeStructEnd();
14598
    }
14527
    }
14599
 
14528
 
14600
    @Override
14529
    @Override
14601
    public String toString() {
14530
    public String toString() {
14602
      StringBuilder sb = new StringBuilder("addJacketNumber_args(");
14531
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");
14603
      boolean first = true;
14532
      boolean first = true;
14604
 
14533
 
14605
      sb.append("orderId:");
14534
      sb.append("customerId:");
14606
      sb.append(this.orderId);
14535
      sb.append(this.customerId);
14607
      first = false;
-
 
14608
      if (!first) sb.append(", ");
-
 
14609
      sb.append("jacketNumber:");
-
 
14610
      sb.append(this.jacketNumber);
-
 
14611
      first = false;
14536
      first = false;
14612
      if (!first) sb.append(", ");
14537
      if (!first) sb.append(", ");
14613
      sb.append("imeiNumber:");
14538
      sb.append("from_date:");
14614
      sb.append(this.imeiNumber);
14539
      sb.append(this.from_date);
14615
      first = false;
14540
      first = false;
14616
      if (!first) sb.append(", ");
14541
      if (!first) sb.append(", ");
14617
      sb.append("itemNumber:");
14542
      sb.append("to_date:");
14618
      if (this.itemNumber == null) {
-
 
14619
        sb.append("null");
-
 
14620
      } else {
-
 
14621
        sb.append(this.itemNumber);
14543
      sb.append(this.to_date);
14622
      }
-
 
14623
      first = false;
14544
      first = false;
14624
      if (!first) sb.append(", ");
14545
      if (!first) sb.append(", ");
14625
      sb.append("billedBy:");
14546
      sb.append("statuses:");
14626
      if (this.billedBy == null) {
14547
      if (this.statuses == null) {
14627
        sb.append("null");
14548
        sb.append("null");
14628
      } else {
14549
      } else {
14629
        sb.append(this.billedBy);
14550
        sb.append(this.statuses);
14630
      }
14551
      }
14631
      first = false;
14552
      first = false;
14632
      if (!first) sb.append(", ");
-
 
14633
      sb.append("billingType:");
-
 
14634
      sb.append(this.billingType);
-
 
14635
      first = false;
-
 
14636
      sb.append(")");
14553
      sb.append(")");
14637
      return sb.toString();
14554
      return sb.toString();
14638
    }
14555
    }
14639
 
14556
 
14640
    public void validate() throws TException {
14557
    public void validate() throws TException {
14641
      // check for required fields
14558
      // check for required fields
14642
    }
14559
    }
14643
 
14560
 
14644
  }
14561
  }
14645
 
14562
 
14646
  public static class addJacketNumber_result implements TBase<addJacketNumber_result._Fields>, java.io.Serializable, Cloneable, Comparable<addJacketNumber_result>   {
14563
  public static class getOrdersForCustomer_result implements TBase<getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForCustomer_result>   {
14647
    private static final TStruct STRUCT_DESC = new TStruct("addJacketNumber_result");
14564
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForCustomer_result");
14648
 
14565
 
14649
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
14566
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
14650
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
14567
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
14651
 
14568
 
14652
    private boolean success;
14569
    private List<Order> success;
14653
    private TransactionServiceException ex;
14570
    private TransactionServiceException ex;
14654
 
14571
 
14655
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14656
    public enum _Fields implements TFieldIdEnum {
14573
    public enum _Fields implements TFieldIdEnum {
14657
      SUCCESS((short)0, "success"),
14574
      SUCCESS((short)0, "success"),
Line 14707... Line 14624...
14707
        return _fieldName;
14624
        return _fieldName;
14708
      }
14625
      }
14709
    }
14626
    }
14710
 
14627
 
14711
    // isset id assignments
14628
    // isset id assignments
14712
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
14713
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14714
 
14629
 
14715
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14630
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14716
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
14631
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
14717
          new FieldValueMetaData(TType.BOOL)));
14632
          new ListMetaData(TType.LIST, 
-
 
14633
              new StructMetaData(TType.STRUCT, Order.class))));
14718
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
14634
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
14719
          new FieldValueMetaData(TType.STRUCT)));
14635
          new FieldValueMetaData(TType.STRUCT)));
14720
    }});
14636
    }});
14721
 
14637
 
14722
    static {
14638
    static {
14723
      FieldMetaData.addStructMetaDataMap(addJacketNumber_result.class, metaDataMap);
14639
      FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);
14724
    }
14640
    }
14725
 
14641
 
14726
    public addJacketNumber_result() {
14642
    public getOrdersForCustomer_result() {
14727
    }
14643
    }
14728
 
14644
 
14729
    public addJacketNumber_result(
14645
    public getOrdersForCustomer_result(
14730
      boolean success,
14646
      List<Order> success,
14731
      TransactionServiceException ex)
14647
      TransactionServiceException ex)
14732
    {
14648
    {
14733
      this();
14649
      this();
14734
      this.success = success;
14650
      this.success = success;
14735
      setSuccessIsSet(true);
-
 
14736
      this.ex = ex;
14651
      this.ex = ex;
14737
    }
14652
    }
14738
 
14653
 
14739
    /**
14654
    /**
14740
     * Performs a deep copy on <i>other</i>.
14655
     * Performs a deep copy on <i>other</i>.
14741
     */
14656
     */
14742
    public addJacketNumber_result(addJacketNumber_result other) {
14657
    public getOrdersForCustomer_result(getOrdersForCustomer_result other) {
14743
      __isset_bit_vector.clear();
14658
      if (other.isSetSuccess()) {
-
 
14659
        List<Order> __this__success = new ArrayList<Order>();
-
 
14660
        for (Order other_element : other.success) {
14744
      __isset_bit_vector.or(other.__isset_bit_vector);
14661
          __this__success.add(new Order(other_element));
-
 
14662
        }
14745
      this.success = other.success;
14663
        this.success = __this__success;
-
 
14664
      }
14746
      if (other.isSetEx()) {
14665
      if (other.isSetEx()) {
14747
        this.ex = new TransactionServiceException(other.ex);
14666
        this.ex = new TransactionServiceException(other.ex);
14748
      }
14667
      }
14749
    }
14668
    }
14750
 
14669
 
14751
    public addJacketNumber_result deepCopy() {
14670
    public getOrdersForCustomer_result deepCopy() {
14752
      return new addJacketNumber_result(this);
14671
      return new getOrdersForCustomer_result(this);
14753
    }
14672
    }
14754
 
14673
 
14755
    @Deprecated
14674
    @Deprecated
14756
    public addJacketNumber_result clone() {
14675
    public getOrdersForCustomer_result clone() {
14757
      return new addJacketNumber_result(this);
14676
      return new getOrdersForCustomer_result(this);
14758
    }
14677
    }
14759
 
14678
 
-
 
14679
    public int getSuccessSize() {
-
 
14680
      return (this.success == null) ? 0 : this.success.size();
-
 
14681
    }
-
 
14682
 
-
 
14683
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
14684
      return (this.success == null) ? null : this.success.iterator();
-
 
14685
    }
-
 
14686
 
-
 
14687
    public void addToSuccess(Order elem) {
-
 
14688
      if (this.success == null) {
-
 
14689
        this.success = new ArrayList<Order>();
-
 
14690
      }
-
 
14691
      this.success.add(elem);
-
 
14692
    }
-
 
14693
 
14760
    public boolean isSuccess() {
14694
    public List<Order> getSuccess() {
14761
      return this.success;
14695
      return this.success;
14762
    }
14696
    }
14763
 
14697
 
14764
    public addJacketNumber_result setSuccess(boolean success) {
14698
    public getOrdersForCustomer_result setSuccess(List<Order> success) {
14765
      this.success = success;
14699
      this.success = success;
14766
      setSuccessIsSet(true);
-
 
14767
      return this;
14700
      return this;
14768
    }
14701
    }
14769
 
14702
 
14770
    public void unsetSuccess() {
14703
    public void unsetSuccess() {
14771
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14704
      this.success = null;
14772
    }
14705
    }
14773
 
14706
 
14774
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
14707
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
14775
    public boolean isSetSuccess() {
14708
    public boolean isSetSuccess() {
14776
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14709
      return this.success != null;
14777
    }
14710
    }
14778
 
14711
 
14779
    public void setSuccessIsSet(boolean value) {
14712
    public void setSuccessIsSet(boolean value) {
-
 
14713
      if (!value) {
14780
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14714
        this.success = null;
-
 
14715
      }
14781
    }
14716
    }
14782
 
14717
 
14783
    public TransactionServiceException getEx() {
14718
    public TransactionServiceException getEx() {
14784
      return this.ex;
14719
      return this.ex;
14785
    }
14720
    }
14786
 
14721
 
14787
    public addJacketNumber_result setEx(TransactionServiceException ex) {
14722
    public getOrdersForCustomer_result setEx(TransactionServiceException ex) {
14788
      this.ex = ex;
14723
      this.ex = ex;
14789
      return this;
14724
      return this;
14790
    }
14725
    }
14791
 
14726
 
14792
    public void unsetEx() {
14727
    public void unsetEx() {
Line 14808... Line 14743...
14808
      switch (field) {
14743
      switch (field) {
14809
      case SUCCESS:
14744
      case SUCCESS:
14810
        if (value == null) {
14745
        if (value == null) {
14811
          unsetSuccess();
14746
          unsetSuccess();
14812
        } else {
14747
        } else {
14813
          setSuccess((Boolean)value);
14748
          setSuccess((List<Order>)value);
14814
        }
14749
        }
14815
        break;
14750
        break;
14816
 
14751
 
14817
      case EX:
14752
      case EX:
14818
        if (value == null) {
14753
        if (value == null) {
Line 14830... Line 14765...
14830
    }
14765
    }
14831
 
14766
 
14832
    public Object getFieldValue(_Fields field) {
14767
    public Object getFieldValue(_Fields field) {
14833
      switch (field) {
14768
      switch (field) {
14834
      case SUCCESS:
14769
      case SUCCESS:
14835
        return new Boolean(isSuccess());
14770
        return getSuccess();
14836
 
14771
 
14837
      case EX:
14772
      case EX:
14838
        return getEx();
14773
        return getEx();
14839
 
14774
 
14840
      }
14775
      }
Line 14862... Line 14797...
14862
 
14797
 
14863
    @Override
14798
    @Override
14864
    public boolean equals(Object that) {
14799
    public boolean equals(Object that) {
14865
      if (that == null)
14800
      if (that == null)
14866
        return false;
14801
        return false;
14867
      if (that instanceof addJacketNumber_result)
14802
      if (that instanceof getOrdersForCustomer_result)
14868
        return this.equals((addJacketNumber_result)that);
14803
        return this.equals((getOrdersForCustomer_result)that);
14869
      return false;
14804
      return false;
14870
    }
14805
    }
14871
 
14806
 
14872
    public boolean equals(addJacketNumber_result that) {
14807
    public boolean equals(getOrdersForCustomer_result that) {
14873
      if (that == null)
14808
      if (that == null)
14874
        return false;
14809
        return false;
14875
 
14810
 
14876
      boolean this_present_success = true;
14811
      boolean this_present_success = true && this.isSetSuccess();
14877
      boolean that_present_success = true;
14812
      boolean that_present_success = true && that.isSetSuccess();
14878
      if (this_present_success || that_present_success) {
14813
      if (this_present_success || that_present_success) {
14879
        if (!(this_present_success && that_present_success))
14814
        if (!(this_present_success && that_present_success))
14880
          return false;
14815
          return false;
14881
        if (this.success != that.success)
14816
        if (!this.success.equals(that.success))
14882
          return false;
14817
          return false;
14883
      }
14818
      }
14884
 
14819
 
14885
      boolean this_present_ex = true && this.isSetEx();
14820
      boolean this_present_ex = true && this.isSetEx();
14886
      boolean that_present_ex = true && that.isSetEx();
14821
      boolean that_present_ex = true && that.isSetEx();
Line 14897... Line 14832...
14897
    @Override
14832
    @Override
14898
    public int hashCode() {
14833
    public int hashCode() {
14899
      return 0;
14834
      return 0;
14900
    }
14835
    }
14901
 
14836
 
14902
    public int compareTo(addJacketNumber_result other) {
14837
    public int compareTo(getOrdersForCustomer_result other) {
14903
      if (!getClass().equals(other.getClass())) {
14838
      if (!getClass().equals(other.getClass())) {
14904
        return getClass().getName().compareTo(other.getClass().getName());
14839
        return getClass().getName().compareTo(other.getClass().getName());
14905
      }
14840
      }
14906
 
14841
 
14907
      int lastComparison = 0;
14842
      int lastComparison = 0;
14908
      addJacketNumber_result typedOther = (addJacketNumber_result)other;
14843
      getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;
14909
 
14844
 
14910
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
14845
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
14911
      if (lastComparison != 0) {
14846
      if (lastComparison != 0) {
14912
        return lastComparison;
14847
        return lastComparison;
14913
      }
14848
      }
Line 14939... Line 14874...
14939
        if (fieldId == null) {
14874
        if (fieldId == null) {
14940
          TProtocolUtil.skip(iprot, field.type);
14875
          TProtocolUtil.skip(iprot, field.type);
14941
        } else {
14876
        } else {
14942
          switch (fieldId) {
14877
          switch (fieldId) {
14943
            case SUCCESS:
14878
            case SUCCESS:
14944
              if (field.type == TType.BOOL) {
14879
              if (field.type == TType.LIST) {
-
 
14880
                {
14945
                this.success = iprot.readBool();
14881
                  TList _list40 = iprot.readListBegin();
-
 
14882
                  this.success = new ArrayList<Order>(_list40.size);
-
 
14883
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
-
 
14884
                  {
-
 
14885
                    Order _elem42;
-
 
14886
                    _elem42 = new Order();
14946
                setSuccessIsSet(true);
14887
                    _elem42.read(iprot);
-
 
14888
                    this.success.add(_elem42);
-
 
14889
                  }
-
 
14890
                  iprot.readListEnd();
-
 
14891
                }
14947
              } else { 
14892
              } else { 
14948
                TProtocolUtil.skip(iprot, field.type);
14893
                TProtocolUtil.skip(iprot, field.type);
14949
              }
14894
              }
14950
              break;
14895
              break;
14951
            case EX:
14896
            case EX:
Line 14967... Line 14912...
14967
    public void write(TProtocol oprot) throws TException {
14912
    public void write(TProtocol oprot) throws TException {
14968
      oprot.writeStructBegin(STRUCT_DESC);
14913
      oprot.writeStructBegin(STRUCT_DESC);
14969
 
14914
 
14970
      if (this.isSetSuccess()) {
14915
      if (this.isSetSuccess()) {
14971
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14916
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
14917
        {
-
 
14918
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
14972
        oprot.writeBool(this.success);
14919
          for (Order _iter43 : this.success)
-
 
14920
          {
-
 
14921
            _iter43.write(oprot);
-
 
14922
          }
-
 
14923
          oprot.writeListEnd();
-
 
14924
        }
14973
        oprot.writeFieldEnd();
14925
        oprot.writeFieldEnd();
14974
      } else if (this.isSetEx()) {
14926
      } else if (this.isSetEx()) {
14975
        oprot.writeFieldBegin(EX_FIELD_DESC);
14927
        oprot.writeFieldBegin(EX_FIELD_DESC);
14976
        this.ex.write(oprot);
14928
        this.ex.write(oprot);
14977
        oprot.writeFieldEnd();
14929
        oprot.writeFieldEnd();
Line 14980... Line 14932...
14980
      oprot.writeStructEnd();
14932
      oprot.writeStructEnd();
14981
    }
14933
    }
14982
 
14934
 
14983
    @Override
14935
    @Override
14984
    public String toString() {
14936
    public String toString() {
14985
      StringBuilder sb = new StringBuilder("addJacketNumber_result(");
14937
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");
14986
      boolean first = true;
14938
      boolean first = true;
14987
 
14939
 
14988
      sb.append("success:");
14940
      sb.append("success:");
-
 
14941
      if (this.success == null) {
-
 
14942
        sb.append("null");
-
 
14943
      } else {
14989
      sb.append(this.success);
14944
        sb.append(this.success);
-
 
14945
      }
14990
      first = false;
14946
      first = false;
14991
      if (!first) sb.append(", ");
14947
      if (!first) sb.append(", ");
14992
      sb.append("ex:");
14948
      sb.append("ex:");
14993
      if (this.ex == null) {
14949
      if (this.ex == null) {
14994
        sb.append("null");
14950
        sb.append("null");
Line 15004... Line 14960...
15004
      // check for required fields
14960
      // check for required fields
15005
    }
14961
    }
15006
 
14962
 
15007
  }
14963
  }
15008
 
14964
 
15009
  public static class acceptOrder_args implements TBase<acceptOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<acceptOrder_args>   {
14965
  public static class createOrder_args implements TBase<createOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<createOrder_args>   {
15010
    private static final TStruct STRUCT_DESC = new TStruct("acceptOrder_args");
14966
    private static final TStruct STRUCT_DESC = new TStruct("createOrder_args");
15011
 
14967
 
15012
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
14968
    private static final TField ORDER_FIELD_DESC = new TField("order", TType.STRUCT, (short)1);
15013
 
14969
 
15014
    private long orderId;
14970
    private Order order;
15015
 
14971
 
15016
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14972
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15017
    public enum _Fields implements TFieldIdEnum {
14973
    public enum _Fields implements TFieldIdEnum {
15018
      ORDER_ID((short)1, "orderId");
14974
      ORDER((short)1, "order");
15019
 
14975
 
15020
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
14976
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
15021
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15022
 
14978
 
15023
      static {
14979
      static {
Line 15067... Line 15023...
15067
        return _fieldName;
15023
        return _fieldName;
15068
      }
15024
      }
15069
    }
15025
    }
15070
 
15026
 
15071
    // isset id assignments
15027
    // isset id assignments
15072
    private static final int __ORDERID_ISSET_ID = 0;
-
 
15073
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
15074
 
15028
 
15075
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15029
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15076
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
15030
      put(_Fields.ORDER, new FieldMetaData("order", TFieldRequirementType.DEFAULT, 
15077
          new FieldValueMetaData(TType.I64)));
15031
          new StructMetaData(TType.STRUCT, Order.class)));
15078
    }});
15032
    }});
15079
 
15033
 
15080
    static {
15034
    static {
15081
      FieldMetaData.addStructMetaDataMap(acceptOrder_args.class, metaDataMap);
15035
      FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);
15082
    }
15036
    }
15083
 
15037
 
15084
    public acceptOrder_args() {
15038
    public createOrder_args() {
15085
    }
15039
    }
15086
 
15040
 
15087
    public acceptOrder_args(
15041
    public createOrder_args(
15088
      long orderId)
15042
      Order order)
15089
    {
15043
    {
15090
      this();
15044
      this();
15091
      this.orderId = orderId;
15045
      this.order = order;
15092
      setOrderIdIsSet(true);
-
 
15093
    }
15046
    }
15094
 
15047
 
15095
    /**
15048
    /**
15096
     * Performs a deep copy on <i>other</i>.
15049
     * Performs a deep copy on <i>other</i>.
15097
     */
15050
     */
15098
    public acceptOrder_args(acceptOrder_args other) {
15051
    public createOrder_args(createOrder_args other) {
15099
      __isset_bit_vector.clear();
15052
      if (other.isSetOrder()) {
15100
      __isset_bit_vector.or(other.__isset_bit_vector);
15053
        this.order = new Order(other.order);
15101
      this.orderId = other.orderId;
15054
      }
15102
    }
15055
    }
15103
 
15056
 
15104
    public acceptOrder_args deepCopy() {
15057
    public createOrder_args deepCopy() {
15105
      return new acceptOrder_args(this);
15058
      return new createOrder_args(this);
15106
    }
15059
    }
15107
 
15060
 
15108
    @Deprecated
15061
    @Deprecated
15109
    public acceptOrder_args clone() {
15062
    public createOrder_args clone() {
15110
      return new acceptOrder_args(this);
15063
      return new createOrder_args(this);
15111
    }
15064
    }
15112
 
15065
 
15113
    public long getOrderId() {
15066
    public Order getOrder() {
15114
      return this.orderId;
15067
      return this.order;
15115
    }
15068
    }
15116
 
15069
 
15117
    public acceptOrder_args setOrderId(long orderId) {
15070
    public createOrder_args setOrder(Order order) {
15118
      this.orderId = orderId;
15071
      this.order = order;
15119
      setOrderIdIsSet(true);
-
 
15120
      return this;
15072
      return this;
15121
    }
15073
    }
15122
 
15074
 
15123
    public void unsetOrderId() {
15075
    public void unsetOrder() {
15124
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15076
      this.order = null;
15125
    }
15077
    }
15126
 
15078
 
15127
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
15079
    /** Returns true if field order is set (has been asigned a value) and false otherwise */
15128
    public boolean isSetOrderId() {
15080
    public boolean isSetOrder() {
15129
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15081
      return this.order != null;
15130
    }
15082
    }
15131
 
15083
 
15132
    public void setOrderIdIsSet(boolean value) {
15084
    public void setOrderIsSet(boolean value) {
-
 
15085
      if (!value) {
15133
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15086
        this.order = null;
-
 
15087
      }
15134
    }
15088
    }
15135
 
15089
 
15136
    public void setFieldValue(_Fields field, Object value) {
15090
    public void setFieldValue(_Fields field, Object value) {
15137
      switch (field) {
15091
      switch (field) {
15138
      case ORDER_ID:
15092
      case ORDER:
15139
        if (value == null) {
15093
        if (value == null) {
15140
          unsetOrderId();
15094
          unsetOrder();
15141
        } else {
15095
        } else {
15142
          setOrderId((Long)value);
15096
          setOrder((Order)value);
15143
        }
15097
        }
15144
        break;
15098
        break;
15145
 
15099
 
15146
      }
15100
      }
15147
    }
15101
    }
Line 15150... Line 15104...
15150
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
15104
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
15151
    }
15105
    }
15152
 
15106
 
15153
    public Object getFieldValue(_Fields field) {
15107
    public Object getFieldValue(_Fields field) {
15154
      switch (field) {
15108
      switch (field) {
15155
      case ORDER_ID:
15109
      case ORDER:
15156
        return new Long(getOrderId());
15110
        return getOrder();
15157
 
15111
 
15158
      }
15112
      }
15159
      throw new IllegalStateException();
15113
      throw new IllegalStateException();
15160
    }
15114
    }
15161
 
15115
 
Line 15164... Line 15118...
15164
    }
15118
    }
15165
 
15119
 
15166
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
15120
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
15167
    public boolean isSet(_Fields field) {
15121
    public boolean isSet(_Fields field) {
15168
      switch (field) {
15122
      switch (field) {
15169
      case ORDER_ID:
15123
      case ORDER:
15170
        return isSetOrderId();
15124
        return isSetOrder();
15171
      }
15125
      }
15172
      throw new IllegalStateException();
15126
      throw new IllegalStateException();
15173
    }
15127
    }
15174
 
15128
 
15175
    public boolean isSet(int fieldID) {
15129
    public boolean isSet(int fieldID) {
Line 15178... Line 15132...
15178
 
15132
 
15179
    @Override
15133
    @Override
15180
    public boolean equals(Object that) {
15134
    public boolean equals(Object that) {
15181
      if (that == null)
15135
      if (that == null)
15182
        return false;
15136
        return false;
15183
      if (that instanceof acceptOrder_args)
15137
      if (that instanceof createOrder_args)
15184
        return this.equals((acceptOrder_args)that);
15138
        return this.equals((createOrder_args)that);
15185
      return false;
15139
      return false;
15186
    }
15140
    }
15187
 
15141
 
15188
    public boolean equals(acceptOrder_args that) {
15142
    public boolean equals(createOrder_args that) {
15189
      if (that == null)
15143
      if (that == null)
15190
        return false;
15144
        return false;
15191
 
15145
 
15192
      boolean this_present_orderId = true;
15146
      boolean this_present_order = true && this.isSetOrder();
15193
      boolean that_present_orderId = true;
15147
      boolean that_present_order = true && that.isSetOrder();
15194
      if (this_present_orderId || that_present_orderId) {
15148
      if (this_present_order || that_present_order) {
15195
        if (!(this_present_orderId && that_present_orderId))
15149
        if (!(this_present_order && that_present_order))
15196
          return false;
15150
          return false;
15197
        if (this.orderId != that.orderId)
15151
        if (!this.order.equals(that.order))
15198
          return false;
15152
          return false;
15199
      }
15153
      }
15200
 
15154
 
15201
      return true;
15155
      return true;
15202
    }
15156
    }
Line 15204... Line 15158...
15204
    @Override
15158
    @Override
15205
    public int hashCode() {
15159
    public int hashCode() {
15206
      return 0;
15160
      return 0;
15207
    }
15161
    }
15208
 
15162
 
15209
    public int compareTo(acceptOrder_args other) {
15163
    public int compareTo(createOrder_args other) {
15210
      if (!getClass().equals(other.getClass())) {
15164
      if (!getClass().equals(other.getClass())) {
15211
        return getClass().getName().compareTo(other.getClass().getName());
15165
        return getClass().getName().compareTo(other.getClass().getName());
15212
      }
15166
      }
15213
 
15167
 
15214
      int lastComparison = 0;
15168
      int lastComparison = 0;
15215
      acceptOrder_args typedOther = (acceptOrder_args)other;
15169
      createOrder_args typedOther = (createOrder_args)other;
15216
 
15170
 
15217
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
15171
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(isSetOrder());
15218
      if (lastComparison != 0) {
15172
      if (lastComparison != 0) {
15219
        return lastComparison;
15173
        return lastComparison;
15220
      }
15174
      }
15221
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
15175
      lastComparison = TBaseHelper.compareTo(order, typedOther.order);
15222
      if (lastComparison != 0) {
15176
      if (lastComparison != 0) {
15223
        return lastComparison;
15177
        return lastComparison;
15224
      }
15178
      }
15225
      return 0;
15179
      return 0;
15226
    }
15180
    }
Line 15237... Line 15191...
15237
        _Fields fieldId = _Fields.findByThriftId(field.id);
15191
        _Fields fieldId = _Fields.findByThriftId(field.id);
15238
        if (fieldId == null) {
15192
        if (fieldId == null) {
15239
          TProtocolUtil.skip(iprot, field.type);
15193
          TProtocolUtil.skip(iprot, field.type);
15240
        } else {
15194
        } else {
15241
          switch (fieldId) {
15195
          switch (fieldId) {
15242
            case ORDER_ID:
15196
            case ORDER:
15243
              if (field.type == TType.I64) {
15197
              if (field.type == TType.STRUCT) {
15244
                this.orderId = iprot.readI64();
15198
                this.order = new Order();
15245
                setOrderIdIsSet(true);
15199
                this.order.read(iprot);
15246
              } else { 
15200
              } else { 
15247
                TProtocolUtil.skip(iprot, field.type);
15201
                TProtocolUtil.skip(iprot, field.type);
15248
              }
15202
              }
15249
              break;
15203
              break;
15250
          }
15204
          }
Line 15257... Line 15211...
15257
 
15211
 
15258
    public void write(TProtocol oprot) throws TException {
15212
    public void write(TProtocol oprot) throws TException {
15259
      validate();
15213
      validate();
15260
 
15214
 
15261
      oprot.writeStructBegin(STRUCT_DESC);
15215
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15216
      if (this.order != null) {
15262
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15217
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
15263
      oprot.writeI64(this.orderId);
15218
        this.order.write(oprot);
15264
      oprot.writeFieldEnd();
15219
        oprot.writeFieldEnd();
-
 
15220
      }
15265
      oprot.writeFieldStop();
15221
      oprot.writeFieldStop();
15266
      oprot.writeStructEnd();
15222
      oprot.writeStructEnd();
15267
    }
15223
    }
15268
 
15224
 
15269
    @Override
15225
    @Override
15270
    public String toString() {
15226
    public String toString() {
15271
      StringBuilder sb = new StringBuilder("acceptOrder_args(");
15227
      StringBuilder sb = new StringBuilder("createOrder_args(");
15272
      boolean first = true;
15228
      boolean first = true;
15273
 
15229
 
15274
      sb.append("orderId:");
15230
      sb.append("order:");
-
 
15231
      if (this.order == null) {
-
 
15232
        sb.append("null");
-
 
15233
      } else {
15275
      sb.append(this.orderId);
15234
        sb.append(this.order);
-
 
15235
      }
15276
      first = false;
15236
      first = false;
15277
      sb.append(")");
15237
      sb.append(")");
15278
      return sb.toString();
15238
      return sb.toString();
15279
    }
15239
    }
15280
 
15240
 
Line 15282... Line 15242...
15282
      // check for required fields
15242
      // check for required fields
15283
    }
15243
    }
15284
 
15244
 
15285
  }
15245
  }
15286
 
15246
 
15287
  public static class acceptOrder_result implements TBase<acceptOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<acceptOrder_result>   {
15247
  public static class createOrder_result implements TBase<createOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<createOrder_result>   {
15288
    private static final TStruct STRUCT_DESC = new TStruct("acceptOrder_result");
15248
    private static final TStruct STRUCT_DESC = new TStruct("createOrder_result");
15289
 
15249
 
15290
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
15250
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
15291
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
15251
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
15292
 
15252
 
15293
    private boolean success;
15253
    private long success;
15294
    private TransactionServiceException ex;
15254
    private TransactionServiceException ex;
15295
 
15255
 
15296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15256
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15297
    public enum _Fields implements TFieldIdEnum {
15257
    public enum _Fields implements TFieldIdEnum {
15298
      SUCCESS((short)0, "success"),
15258
      SUCCESS((short)0, "success"),
Line 15353... Line 15313...
15353
    private static final int __SUCCESS_ISSET_ID = 0;
15313
    private static final int __SUCCESS_ISSET_ID = 0;
15354
    private BitSet __isset_bit_vector = new BitSet(1);
15314
    private BitSet __isset_bit_vector = new BitSet(1);
15355
 
15315
 
15356
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15316
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15357
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
15317
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
15358
          new FieldValueMetaData(TType.BOOL)));
15318
          new FieldValueMetaData(TType.I64)));
15359
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
15319
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
15360
          new FieldValueMetaData(TType.STRUCT)));
15320
          new FieldValueMetaData(TType.STRUCT)));
15361
    }});
15321
    }});
15362
 
15322
 
15363
    static {
15323
    static {
15364
      FieldMetaData.addStructMetaDataMap(acceptOrder_result.class, metaDataMap);
15324
      FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);
15365
    }
15325
    }
15366
 
15326
 
15367
    public acceptOrder_result() {
15327
    public createOrder_result() {
15368
    }
15328
    }
15369
 
15329
 
15370
    public acceptOrder_result(
15330
    public createOrder_result(
15371
      boolean success,
15331
      long success,
15372
      TransactionServiceException ex)
15332
      TransactionServiceException ex)
15373
    {
15333
    {
15374
      this();
15334
      this();
15375
      this.success = success;
15335
      this.success = success;
15376
      setSuccessIsSet(true);
15336
      setSuccessIsSet(true);
Line 15378... Line 15338...
15378
    }
15338
    }
15379
 
15339
 
15380
    /**
15340
    /**
15381
     * Performs a deep copy on <i>other</i>.
15341
     * Performs a deep copy on <i>other</i>.
15382
     */
15342
     */
15383
    public acceptOrder_result(acceptOrder_result other) {
15343
    public createOrder_result(createOrder_result other) {
15384
      __isset_bit_vector.clear();
15344
      __isset_bit_vector.clear();
15385
      __isset_bit_vector.or(other.__isset_bit_vector);
15345
      __isset_bit_vector.or(other.__isset_bit_vector);
15386
      this.success = other.success;
15346
      this.success = other.success;
15387
      if (other.isSetEx()) {
15347
      if (other.isSetEx()) {
15388
        this.ex = new TransactionServiceException(other.ex);
15348
        this.ex = new TransactionServiceException(other.ex);
15389
      }
15349
      }
15390
    }
15350
    }
15391
 
15351
 
15392
    public acceptOrder_result deepCopy() {
15352
    public createOrder_result deepCopy() {
15393
      return new acceptOrder_result(this);
15353
      return new createOrder_result(this);
15394
    }
15354
    }
15395
 
15355
 
15396
    @Deprecated
15356
    @Deprecated
15397
    public acceptOrder_result clone() {
15357
    public createOrder_result clone() {
15398
      return new acceptOrder_result(this);
15358
      return new createOrder_result(this);
15399
    }
15359
    }
15400
 
15360
 
15401
    public boolean isSuccess() {
15361
    public long getSuccess() {
15402
      return this.success;
15362
      return this.success;
15403
    }
15363
    }
15404
 
15364
 
15405
    public acceptOrder_result setSuccess(boolean success) {
15365
    public createOrder_result setSuccess(long success) {
15406
      this.success = success;
15366
      this.success = success;
15407
      setSuccessIsSet(true);
15367
      setSuccessIsSet(true);
15408
      return this;
15368
      return this;
15409
    }
15369
    }
15410
 
15370
 
Line 15423... Line 15383...
15423
 
15383
 
15424
    public TransactionServiceException getEx() {
15384
    public TransactionServiceException getEx() {
15425
      return this.ex;
15385
      return this.ex;
15426
    }
15386
    }
15427
 
15387
 
15428
    public acceptOrder_result setEx(TransactionServiceException ex) {
15388
    public createOrder_result setEx(TransactionServiceException ex) {
15429
      this.ex = ex;
15389
      this.ex = ex;
15430
      return this;
15390
      return this;
15431
    }
15391
    }
15432
 
15392
 
15433
    public void unsetEx() {
15393
    public void unsetEx() {
Line 15449... Line 15409...
15449
      switch (field) {
15409
      switch (field) {
15450
      case SUCCESS:
15410
      case SUCCESS:
15451
        if (value == null) {
15411
        if (value == null) {
15452
          unsetSuccess();
15412
          unsetSuccess();
15453
        } else {
15413
        } else {
15454
          setSuccess((Boolean)value);
15414
          setSuccess((Long)value);
15455
        }
15415
        }
15456
        break;
15416
        break;
15457
 
15417
 
15458
      case EX:
15418
      case EX:
15459
        if (value == null) {
15419
        if (value == null) {
Line 15471... Line 15431...
15471
    }
15431
    }
15472
 
15432
 
15473
    public Object getFieldValue(_Fields field) {
15433
    public Object getFieldValue(_Fields field) {
15474
      switch (field) {
15434
      switch (field) {
15475
      case SUCCESS:
15435
      case SUCCESS:
15476
        return new Boolean(isSuccess());
15436
        return new Long(getSuccess());
15477
 
15437
 
15478
      case EX:
15438
      case EX:
15479
        return getEx();
15439
        return getEx();
15480
 
15440
 
15481
      }
15441
      }
Line 15503... Line 15463...
15503
 
15463
 
15504
    @Override
15464
    @Override
15505
    public boolean equals(Object that) {
15465
    public boolean equals(Object that) {
15506
      if (that == null)
15466
      if (that == null)
15507
        return false;
15467
        return false;
15508
      if (that instanceof acceptOrder_result)
15468
      if (that instanceof createOrder_result)
15509
        return this.equals((acceptOrder_result)that);
15469
        return this.equals((createOrder_result)that);
15510
      return false;
15470
      return false;
15511
    }
15471
    }
15512
 
15472
 
15513
    public boolean equals(acceptOrder_result that) {
15473
    public boolean equals(createOrder_result that) {
15514
      if (that == null)
15474
      if (that == null)
15515
        return false;
15475
        return false;
15516
 
15476
 
15517
      boolean this_present_success = true;
15477
      boolean this_present_success = true;
15518
      boolean that_present_success = true;
15478
      boolean that_present_success = true;
Line 15538... Line 15498...
15538
    @Override
15498
    @Override
15539
    public int hashCode() {
15499
    public int hashCode() {
15540
      return 0;
15500
      return 0;
15541
    }
15501
    }
15542
 
15502
 
15543
    public int compareTo(acceptOrder_result other) {
15503
    public int compareTo(createOrder_result other) {
15544
      if (!getClass().equals(other.getClass())) {
15504
      if (!getClass().equals(other.getClass())) {
15545
        return getClass().getName().compareTo(other.getClass().getName());
15505
        return getClass().getName().compareTo(other.getClass().getName());
15546
      }
15506
      }
15547
 
15507
 
15548
      int lastComparison = 0;
15508
      int lastComparison = 0;
15549
      acceptOrder_result typedOther = (acceptOrder_result)other;
15509
      createOrder_result typedOther = (createOrder_result)other;
15550
 
15510
 
15551
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
15511
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
15552
      if (lastComparison != 0) {
15512
      if (lastComparison != 0) {
15553
        return lastComparison;
15513
        return lastComparison;
15554
      }
15514
      }
Line 15580... Line 15540...
15580
        if (fieldId == null) {
15540
        if (fieldId == null) {
15581
          TProtocolUtil.skip(iprot, field.type);
15541
          TProtocolUtil.skip(iprot, field.type);
15582
        } else {
15542
        } else {
15583
          switch (fieldId) {
15543
          switch (fieldId) {
15584
            case SUCCESS:
15544
            case SUCCESS:
15585
              if (field.type == TType.BOOL) {
15545
              if (field.type == TType.I64) {
15586
                this.success = iprot.readBool();
15546
                this.success = iprot.readI64();
15587
                setSuccessIsSet(true);
15547
                setSuccessIsSet(true);
15588
              } else { 
15548
              } else { 
15589
                TProtocolUtil.skip(iprot, field.type);
15549
                TProtocolUtil.skip(iprot, field.type);
15590
              }
15550
              }
15591
              break;
15551
              break;
Line 15608... Line 15568...
15608
    public void write(TProtocol oprot) throws TException {
15568
    public void write(TProtocol oprot) throws TException {
15609
      oprot.writeStructBegin(STRUCT_DESC);
15569
      oprot.writeStructBegin(STRUCT_DESC);
15610
 
15570
 
15611
      if (this.isSetSuccess()) {
15571
      if (this.isSetSuccess()) {
15612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15572
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15613
        oprot.writeBool(this.success);
15573
        oprot.writeI64(this.success);
15614
        oprot.writeFieldEnd();
15574
        oprot.writeFieldEnd();
15615
      } else if (this.isSetEx()) {
15575
      } else if (this.isSetEx()) {
15616
        oprot.writeFieldBegin(EX_FIELD_DESC);
15576
        oprot.writeFieldBegin(EX_FIELD_DESC);
15617
        this.ex.write(oprot);
15577
        this.ex.write(oprot);
15618
        oprot.writeFieldEnd();
15578
        oprot.writeFieldEnd();
Line 15621... Line 15581...
15621
      oprot.writeStructEnd();
15581
      oprot.writeStructEnd();
15622
    }
15582
    }
15623
 
15583
 
15624
    @Override
15584
    @Override
15625
    public String toString() {
15585
    public String toString() {
15626
      StringBuilder sb = new StringBuilder("acceptOrder_result(");
15586
      StringBuilder sb = new StringBuilder("createOrder_result(");
15627
      boolean first = true;
15587
      boolean first = true;
15628
 
15588
 
15629
      sb.append("success:");
15589
      sb.append("success:");
15630
      sb.append(this.success);
15590
      sb.append(this.success);
15631
      first = false;
15591
      first = false;
Line 15645... Line 15605...
15645
      // check for required fields
15605
      // check for required fields
15646
    }
15606
    }
15647
 
15607
 
15648
  }
15608
  }
15649
 
15609
 
15650
  public static class billOrder_args implements TBase<billOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<billOrder_args>   {
15610
  public static class getOrder_args implements TBase<getOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrder_args>   {
15651
    private static final TStruct STRUCT_DESC = new TStruct("billOrder_args");
15611
    private static final TStruct STRUCT_DESC = new TStruct("getOrder_args");
15652
 
15612
 
15653
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
15613
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
15654
 
15614
 
15655
    private long orderId;
15615
    private long id;
15656
 
15616
 
15657
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15658
    public enum _Fields implements TFieldIdEnum {
15618
    public enum _Fields implements TFieldIdEnum {
15659
      ORDER_ID((short)1, "orderId");
15619
      ID((short)1, "id");
15660
 
15620
 
15661
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
15621
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
15662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15663
 
15623
 
15664
      static {
15624
      static {
Line 15708... Line 15668...
15708
        return _fieldName;
15668
        return _fieldName;
15709
      }
15669
      }
15710
    }
15670
    }
15711
 
15671
 
15712
    // isset id assignments
15672
    // isset id assignments
15713
    private static final int __ORDERID_ISSET_ID = 0;
15673
    private static final int __ID_ISSET_ID = 0;
15714
    private BitSet __isset_bit_vector = new BitSet(1);
15674
    private BitSet __isset_bit_vector = new BitSet(1);
15715
 
15675
 
15716
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15676
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15717
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
15677
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
15718
          new FieldValueMetaData(TType.I64)));
15678
          new FieldValueMetaData(TType.I64)));
15719
    }});
15679
    }});
15720
 
15680
 
15721
    static {
15681
    static {
15722
      FieldMetaData.addStructMetaDataMap(billOrder_args.class, metaDataMap);
15682
      FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);
15723
    }
15683
    }
15724
 
15684
 
15725
    public billOrder_args() {
15685
    public getOrder_args() {
15726
    }
15686
    }
15727
 
15687
 
15728
    public billOrder_args(
15688
    public getOrder_args(
15729
      long orderId)
15689
      long id)
15730
    {
15690
    {
15731
      this();
15691
      this();
15732
      this.orderId = orderId;
15692
      this.id = id;
15733
      setOrderIdIsSet(true);
15693
      setIdIsSet(true);
15734
    }
15694
    }
15735
 
15695
 
15736
    /**
15696
    /**
15737
     * Performs a deep copy on <i>other</i>.
15697
     * Performs a deep copy on <i>other</i>.
15738
     */
15698
     */
15739
    public billOrder_args(billOrder_args other) {
15699
    public getOrder_args(getOrder_args other) {
15740
      __isset_bit_vector.clear();
15700
      __isset_bit_vector.clear();
15741
      __isset_bit_vector.or(other.__isset_bit_vector);
15701
      __isset_bit_vector.or(other.__isset_bit_vector);
15742
      this.orderId = other.orderId;
15702
      this.id = other.id;
15743
    }
15703
    }
15744
 
15704
 
15745
    public billOrder_args deepCopy() {
15705
    public getOrder_args deepCopy() {
15746
      return new billOrder_args(this);
15706
      return new getOrder_args(this);
15747
    }
15707
    }
15748
 
15708
 
15749
    @Deprecated
15709
    @Deprecated
15750
    public billOrder_args clone() {
15710
    public getOrder_args clone() {
15751
      return new billOrder_args(this);
15711
      return new getOrder_args(this);
15752
    }
15712
    }
15753
 
15713
 
15754
    public long getOrderId() {
15714
    public long getId() {
15755
      return this.orderId;
15715
      return this.id;
15756
    }
15716
    }
15757
 
15717
 
15758
    public billOrder_args setOrderId(long orderId) {
15718
    public getOrder_args setId(long id) {
15759
      this.orderId = orderId;
15719
      this.id = id;
15760
      setOrderIdIsSet(true);
15720
      setIdIsSet(true);
15761
      return this;
15721
      return this;
15762
    }
15722
    }
15763
 
15723
 
15764
    public void unsetOrderId() {
15724
    public void unsetId() {
15765
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15725
      __isset_bit_vector.clear(__ID_ISSET_ID);
15766
    }
15726
    }
15767
 
15727
 
15768
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
15728
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
15769
    public boolean isSetOrderId() {
15729
    public boolean isSetId() {
15770
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15730
      return __isset_bit_vector.get(__ID_ISSET_ID);
15771
    }
15731
    }
15772
 
15732
 
15773
    public void setOrderIdIsSet(boolean value) {
15733
    public void setIdIsSet(boolean value) {
15774
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15734
      __isset_bit_vector.set(__ID_ISSET_ID, value);
15775
    }
15735
    }
15776
 
15736
 
15777
    public void setFieldValue(_Fields field, Object value) {
15737
    public void setFieldValue(_Fields field, Object value) {
15778
      switch (field) {
15738
      switch (field) {
15779
      case ORDER_ID:
15739
      case ID:
15780
        if (value == null) {
15740
        if (value == null) {
15781
          unsetOrderId();
15741
          unsetId();
15782
        } else {
15742
        } else {
15783
          setOrderId((Long)value);
15743
          setId((Long)value);
15784
        }
15744
        }
15785
        break;
15745
        break;
15786
 
15746
 
15787
      }
15747
      }
15788
    }
15748
    }
Line 15791... Line 15751...
15791
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
15751
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
15792
    }
15752
    }
15793
 
15753
 
15794
    public Object getFieldValue(_Fields field) {
15754
    public Object getFieldValue(_Fields field) {
15795
      switch (field) {
15755
      switch (field) {
15796
      case ORDER_ID:
15756
      case ID:
15797
        return new Long(getOrderId());
15757
        return new Long(getId());
15798
 
15758
 
15799
      }
15759
      }
15800
      throw new IllegalStateException();
15760
      throw new IllegalStateException();
15801
    }
15761
    }
15802
 
15762
 
Line 15805... Line 15765...
15805
    }
15765
    }
15806
 
15766
 
15807
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
15767
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
15808
    public boolean isSet(_Fields field) {
15768
    public boolean isSet(_Fields field) {
15809
      switch (field) {
15769
      switch (field) {
15810
      case ORDER_ID:
15770
      case ID:
15811
        return isSetOrderId();
15771
        return isSetId();
15812
      }
15772
      }
15813
      throw new IllegalStateException();
15773
      throw new IllegalStateException();
15814
    }
15774
    }
15815
 
15775
 
15816
    public boolean isSet(int fieldID) {
15776
    public boolean isSet(int fieldID) {
Line 15819... Line 15779...
15819
 
15779
 
15820
    @Override
15780
    @Override
15821
    public boolean equals(Object that) {
15781
    public boolean equals(Object that) {
15822
      if (that == null)
15782
      if (that == null)
15823
        return false;
15783
        return false;
15824
      if (that instanceof billOrder_args)
15784
      if (that instanceof getOrder_args)
15825
        return this.equals((billOrder_args)that);
15785
        return this.equals((getOrder_args)that);
15826
      return false;
15786
      return false;
15827
    }
15787
    }
15828
 
15788
 
15829
    public boolean equals(billOrder_args that) {
15789
    public boolean equals(getOrder_args that) {
15830
      if (that == null)
15790
      if (that == null)
15831
        return false;
15791
        return false;
15832
 
15792
 
15833
      boolean this_present_orderId = true;
15793
      boolean this_present_id = true;
15834
      boolean that_present_orderId = true;
15794
      boolean that_present_id = true;
15835
      if (this_present_orderId || that_present_orderId) {
15795
      if (this_present_id || that_present_id) {
15836
        if (!(this_present_orderId && that_present_orderId))
15796
        if (!(this_present_id && that_present_id))
15837
          return false;
15797
          return false;
15838
        if (this.orderId != that.orderId)
15798
        if (this.id != that.id)
15839
          return false;
15799
          return false;
15840
      }
15800
      }
15841
 
15801
 
15842
      return true;
15802
      return true;
15843
    }
15803
    }
Line 15845... Line 15805...
15845
    @Override
15805
    @Override
15846
    public int hashCode() {
15806
    public int hashCode() {
15847
      return 0;
15807
      return 0;
15848
    }
15808
    }
15849
 
15809
 
15850
    public int compareTo(billOrder_args other) {
15810
    public int compareTo(getOrder_args other) {
15851
      if (!getClass().equals(other.getClass())) {
15811
      if (!getClass().equals(other.getClass())) {
15852
        return getClass().getName().compareTo(other.getClass().getName());
15812
        return getClass().getName().compareTo(other.getClass().getName());
15853
      }
15813
      }
15854
 
15814
 
15855
      int lastComparison = 0;
15815
      int lastComparison = 0;
15856
      billOrder_args typedOther = (billOrder_args)other;
15816
      getOrder_args typedOther = (getOrder_args)other;
15857
 
15817
 
15858
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
15818
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
15859
      if (lastComparison != 0) {
15819
      if (lastComparison != 0) {
15860
        return lastComparison;
15820
        return lastComparison;
15861
      }
15821
      }
15862
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
15822
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
15863
      if (lastComparison != 0) {
15823
      if (lastComparison != 0) {
15864
        return lastComparison;
15824
        return lastComparison;
15865
      }
15825
      }
15866
      return 0;
15826
      return 0;
15867
    }
15827
    }
Line 15878... Line 15838...
15878
        _Fields fieldId = _Fields.findByThriftId(field.id);
15838
        _Fields fieldId = _Fields.findByThriftId(field.id);
15879
        if (fieldId == null) {
15839
        if (fieldId == null) {
15880
          TProtocolUtil.skip(iprot, field.type);
15840
          TProtocolUtil.skip(iprot, field.type);
15881
        } else {
15841
        } else {
15882
          switch (fieldId) {
15842
          switch (fieldId) {
15883
            case ORDER_ID:
15843
            case ID:
15884
              if (field.type == TType.I64) {
15844
              if (field.type == TType.I64) {
15885
                this.orderId = iprot.readI64();
15845
                this.id = iprot.readI64();
15886
                setOrderIdIsSet(true);
15846
                setIdIsSet(true);
15887
              } else { 
15847
              } else { 
15888
                TProtocolUtil.skip(iprot, field.type);
15848
                TProtocolUtil.skip(iprot, field.type);
15889
              }
15849
              }
15890
              break;
15850
              break;
15891
          }
15851
          }
Line 15898... Line 15858...
15898
 
15858
 
15899
    public void write(TProtocol oprot) throws TException {
15859
    public void write(TProtocol oprot) throws TException {
15900
      validate();
15860
      validate();
15901
 
15861
 
15902
      oprot.writeStructBegin(STRUCT_DESC);
15862
      oprot.writeStructBegin(STRUCT_DESC);
15903
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15863
      oprot.writeFieldBegin(ID_FIELD_DESC);
15904
      oprot.writeI64(this.orderId);
15864
      oprot.writeI64(this.id);
15905
      oprot.writeFieldEnd();
15865
      oprot.writeFieldEnd();
15906
      oprot.writeFieldStop();
15866
      oprot.writeFieldStop();
15907
      oprot.writeStructEnd();
15867
      oprot.writeStructEnd();
15908
    }
15868
    }
15909
 
15869
 
15910
    @Override
15870
    @Override
15911
    public String toString() {
15871
    public String toString() {
15912
      StringBuilder sb = new StringBuilder("billOrder_args(");
15872
      StringBuilder sb = new StringBuilder("getOrder_args(");
15913
      boolean first = true;
15873
      boolean first = true;
15914
 
15874
 
15915
      sb.append("orderId:");
15875
      sb.append("id:");
15916
      sb.append(this.orderId);
15876
      sb.append(this.id);
15917
      first = false;
15877
      first = false;
15918
      sb.append(")");
15878
      sb.append(")");
15919
      return sb.toString();
15879
      return sb.toString();
15920
    }
15880
    }
15921
 
15881
 
Line 15923... Line 15883...
15923
      // check for required fields
15883
      // check for required fields
15924
    }
15884
    }
15925
 
15885
 
15926
  }
15886
  }
15927
 
15887
 
15928
  public static class billOrder_result implements TBase<billOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<billOrder_result>   {
15888
  public static class getOrder_result implements TBase<getOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrder_result>   {
15929
    private static final TStruct STRUCT_DESC = new TStruct("billOrder_result");
15889
    private static final TStruct STRUCT_DESC = new TStruct("getOrder_result");
15930
 
15890
 
15931
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
15891
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
15932
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
15892
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
15933
 
15893
 
15934
    private boolean success;
15894
    private Order success;
15935
    private TransactionServiceException ex;
15895
    private TransactionServiceException ex;
15936
 
15896
 
15937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15897
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15938
    public enum _Fields implements TFieldIdEnum {
15898
    public enum _Fields implements TFieldIdEnum {
15939
      SUCCESS((short)0, "success"),
15899
      SUCCESS((short)0, "success"),
Line 15989... Line 15949...
15989
        return _fieldName;
15949
        return _fieldName;
15990
      }
15950
      }
15991
    }
15951
    }
15992
 
15952
 
15993
    // isset id assignments
15953
    // isset id assignments
15994
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
15995
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
15996
 
15954
 
15997
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15955
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15998
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
15956
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
15999
          new FieldValueMetaData(TType.BOOL)));
15957
          new StructMetaData(TType.STRUCT, Order.class)));
16000
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
15958
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
16001
          new FieldValueMetaData(TType.STRUCT)));
15959
          new FieldValueMetaData(TType.STRUCT)));
16002
    }});
15960
    }});
16003
 
15961
 
16004
    static {
15962
    static {
16005
      FieldMetaData.addStructMetaDataMap(billOrder_result.class, metaDataMap);
15963
      FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);
16006
    }
15964
    }
16007
 
15965
 
16008
    public billOrder_result() {
15966
    public getOrder_result() {
16009
    }
15967
    }
16010
 
15968
 
16011
    public billOrder_result(
15969
    public getOrder_result(
16012
      boolean success,
15970
      Order success,
16013
      TransactionServiceException ex)
15971
      TransactionServiceException ex)
16014
    {
15972
    {
16015
      this();
15973
      this();
16016
      this.success = success;
15974
      this.success = success;
16017
      setSuccessIsSet(true);
-
 
16018
      this.ex = ex;
15975
      this.ex = ex;
16019
    }
15976
    }
16020
 
15977
 
16021
    /**
15978
    /**
16022
     * Performs a deep copy on <i>other</i>.
15979
     * Performs a deep copy on <i>other</i>.
16023
     */
15980
     */
16024
    public billOrder_result(billOrder_result other) {
15981
    public getOrder_result(getOrder_result other) {
16025
      __isset_bit_vector.clear();
15982
      if (other.isSetSuccess()) {
16026
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16027
      this.success = other.success;
15983
        this.success = new Order(other.success);
-
 
15984
      }
16028
      if (other.isSetEx()) {
15985
      if (other.isSetEx()) {
16029
        this.ex = new TransactionServiceException(other.ex);
15986
        this.ex = new TransactionServiceException(other.ex);
16030
      }
15987
      }
16031
    }
15988
    }
16032
 
15989
 
16033
    public billOrder_result deepCopy() {
15990
    public getOrder_result deepCopy() {
16034
      return new billOrder_result(this);
15991
      return new getOrder_result(this);
16035
    }
15992
    }
16036
 
15993
 
16037
    @Deprecated
15994
    @Deprecated
16038
    public billOrder_result clone() {
15995
    public getOrder_result clone() {
16039
      return new billOrder_result(this);
15996
      return new getOrder_result(this);
16040
    }
15997
    }
16041
 
15998
 
16042
    public boolean isSuccess() {
15999
    public Order getSuccess() {
16043
      return this.success;
16000
      return this.success;
16044
    }
16001
    }
16045
 
16002
 
16046
    public billOrder_result setSuccess(boolean success) {
16003
    public getOrder_result setSuccess(Order success) {
16047
      this.success = success;
16004
      this.success = success;
16048
      setSuccessIsSet(true);
-
 
16049
      return this;
16005
      return this;
16050
    }
16006
    }
16051
 
16007
 
16052
    public void unsetSuccess() {
16008
    public void unsetSuccess() {
16053
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16009
      this.success = null;
16054
    }
16010
    }
16055
 
16011
 
16056
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
16012
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
16057
    public boolean isSetSuccess() {
16013
    public boolean isSetSuccess() {
16058
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16014
      return this.success != null;
16059
    }
16015
    }
16060
 
16016
 
16061
    public void setSuccessIsSet(boolean value) {
16017
    public void setSuccessIsSet(boolean value) {
-
 
16018
      if (!value) {
16062
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16019
        this.success = null;
-
 
16020
      }
16063
    }
16021
    }
16064
 
16022
 
16065
    public TransactionServiceException getEx() {
16023
    public TransactionServiceException getEx() {
16066
      return this.ex;
16024
      return this.ex;
16067
    }
16025
    }
16068
 
16026
 
16069
    public billOrder_result setEx(TransactionServiceException ex) {
16027
    public getOrder_result setEx(TransactionServiceException ex) {
16070
      this.ex = ex;
16028
      this.ex = ex;
16071
      return this;
16029
      return this;
16072
    }
16030
    }
16073
 
16031
 
16074
    public void unsetEx() {
16032
    public void unsetEx() {
Line 16090... Line 16048...
16090
      switch (field) {
16048
      switch (field) {
16091
      case SUCCESS:
16049
      case SUCCESS:
16092
        if (value == null) {
16050
        if (value == null) {
16093
          unsetSuccess();
16051
          unsetSuccess();
16094
        } else {
16052
        } else {
16095
          setSuccess((Boolean)value);
16053
          setSuccess((Order)value);
16096
        }
16054
        }
16097
        break;
16055
        break;
16098
 
16056
 
16099
      case EX:
16057
      case EX:
16100
        if (value == null) {
16058
        if (value == null) {
Line 16112... Line 16070...
16112
    }
16070
    }
16113
 
16071
 
16114
    public Object getFieldValue(_Fields field) {
16072
    public Object getFieldValue(_Fields field) {
16115
      switch (field) {
16073
      switch (field) {
16116
      case SUCCESS:
16074
      case SUCCESS:
16117
        return new Boolean(isSuccess());
16075
        return getSuccess();
16118
 
16076
 
16119
      case EX:
16077
      case EX:
16120
        return getEx();
16078
        return getEx();
16121
 
16079
 
16122
      }
16080
      }
Line 16144... Line 16102...
16144
 
16102
 
16145
    @Override
16103
    @Override
16146
    public boolean equals(Object that) {
16104
    public boolean equals(Object that) {
16147
      if (that == null)
16105
      if (that == null)
16148
        return false;
16106
        return false;
16149
      if (that instanceof billOrder_result)
16107
      if (that instanceof getOrder_result)
16150
        return this.equals((billOrder_result)that);
16108
        return this.equals((getOrder_result)that);
16151
      return false;
16109
      return false;
16152
    }
16110
    }
16153
 
16111
 
16154
    public boolean equals(billOrder_result that) {
16112
    public boolean equals(getOrder_result that) {
16155
      if (that == null)
16113
      if (that == null)
16156
        return false;
16114
        return false;
16157
 
16115
 
16158
      boolean this_present_success = true;
16116
      boolean this_present_success = true && this.isSetSuccess();
16159
      boolean that_present_success = true;
16117
      boolean that_present_success = true && that.isSetSuccess();
16160
      if (this_present_success || that_present_success) {
16118
      if (this_present_success || that_present_success) {
16161
        if (!(this_present_success && that_present_success))
16119
        if (!(this_present_success && that_present_success))
16162
          return false;
16120
          return false;
16163
        if (this.success != that.success)
16121
        if (!this.success.equals(that.success))
16164
          return false;
16122
          return false;
16165
      }
16123
      }
16166
 
16124
 
16167
      boolean this_present_ex = true && this.isSetEx();
16125
      boolean this_present_ex = true && this.isSetEx();
16168
      boolean that_present_ex = true && that.isSetEx();
16126
      boolean that_present_ex = true && that.isSetEx();
Line 16179... Line 16137...
16179
    @Override
16137
    @Override
16180
    public int hashCode() {
16138
    public int hashCode() {
16181
      return 0;
16139
      return 0;
16182
    }
16140
    }
16183
 
16141
 
16184
    public int compareTo(billOrder_result other) {
16142
    public int compareTo(getOrder_result other) {
16185
      if (!getClass().equals(other.getClass())) {
16143
      if (!getClass().equals(other.getClass())) {
16186
        return getClass().getName().compareTo(other.getClass().getName());
16144
        return getClass().getName().compareTo(other.getClass().getName());
16187
      }
16145
      }
16188
 
16146
 
16189
      int lastComparison = 0;
16147
      int lastComparison = 0;
16190
      billOrder_result typedOther = (billOrder_result)other;
16148
      getOrder_result typedOther = (getOrder_result)other;
16191
 
16149
 
16192
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
16150
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
16193
      if (lastComparison != 0) {
16151
      if (lastComparison != 0) {
16194
        return lastComparison;
16152
        return lastComparison;
16195
      }
16153
      }
Line 16221... Line 16179...
16221
        if (fieldId == null) {
16179
        if (fieldId == null) {
16222
          TProtocolUtil.skip(iprot, field.type);
16180
          TProtocolUtil.skip(iprot, field.type);
16223
        } else {
16181
        } else {
16224
          switch (fieldId) {
16182
          switch (fieldId) {
16225
            case SUCCESS:
16183
            case SUCCESS:
16226
              if (field.type == TType.BOOL) {
16184
              if (field.type == TType.STRUCT) {
16227
                this.success = iprot.readBool();
16185
                this.success = new Order();
16228
                setSuccessIsSet(true);
16186
                this.success.read(iprot);
16229
              } else { 
16187
              } else { 
16230
                TProtocolUtil.skip(iprot, field.type);
16188
                TProtocolUtil.skip(iprot, field.type);
16231
              }
16189
              }
16232
              break;
16190
              break;
16233
            case EX:
16191
            case EX:
Line 16249... Line 16207...
16249
    public void write(TProtocol oprot) throws TException {
16207
    public void write(TProtocol oprot) throws TException {
16250
      oprot.writeStructBegin(STRUCT_DESC);
16208
      oprot.writeStructBegin(STRUCT_DESC);
16251
 
16209
 
16252
      if (this.isSetSuccess()) {
16210
      if (this.isSetSuccess()) {
16253
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16211
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16254
        oprot.writeBool(this.success);
16212
        this.success.write(oprot);
16255
        oprot.writeFieldEnd();
16213
        oprot.writeFieldEnd();
16256
      } else if (this.isSetEx()) {
16214
      } else if (this.isSetEx()) {
16257
        oprot.writeFieldBegin(EX_FIELD_DESC);
16215
        oprot.writeFieldBegin(EX_FIELD_DESC);
16258
        this.ex.write(oprot);
16216
        this.ex.write(oprot);
16259
        oprot.writeFieldEnd();
16217
        oprot.writeFieldEnd();
Line 16262... Line 16220...
16262
      oprot.writeStructEnd();
16220
      oprot.writeStructEnd();
16263
    }
16221
    }
16264
 
16222
 
16265
    @Override
16223
    @Override
16266
    public String toString() {
16224
    public String toString() {
16267
      StringBuilder sb = new StringBuilder("billOrder_result(");
16225
      StringBuilder sb = new StringBuilder("getOrder_result(");
16268
      boolean first = true;
16226
      boolean first = true;
16269
 
16227
 
16270
      sb.append("success:");
16228
      sb.append("success:");
-
 
16229
      if (this.success == null) {
-
 
16230
        sb.append("null");
-
 
16231
      } else {
16271
      sb.append(this.success);
16232
        sb.append(this.success);
-
 
16233
      }
16272
      first = false;
16234
      first = false;
16273
      if (!first) sb.append(", ");
16235
      if (!first) sb.append(", ");
16274
      sb.append("ex:");
16236
      sb.append("ex:");
16275
      if (this.ex == null) {
16237
      if (this.ex == null) {
16276
        sb.append("null");
16238
        sb.append("null");
Line 16286... Line 16248...
16286
      // check for required fields
16248
      // check for required fields
16287
    }
16249
    }
16288
 
16250
 
16289
  }
16251
  }
16290
 
16252
 
16291
  public static class getOrdersForTransaction_args implements TBase<getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForTransaction_args>   {
16253
  public static class getLineItemsForOrder_args implements TBase<getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLineItemsForOrder_args>   {
16292
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForTransaction_args");
16254
    private static final TStruct STRUCT_DESC = new TStruct("getLineItemsForOrder_args");
16293
 
16255
 
16294
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
-
 
16295
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
16256
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
16296
 
16257
 
16297
    private long transactionId;
-
 
16298
    private long customerId;
16258
    private long orderId;
16299
 
16259
 
16300
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16260
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16301
    public enum _Fields implements TFieldIdEnum {
16261
    public enum _Fields implements TFieldIdEnum {
16302
      TRANSACTION_ID((short)1, "transactionId"),
-
 
16303
      CUSTOMER_ID((short)2, "customerId");
16262
      ORDER_ID((short)1, "orderId");
16304
 
16263
 
16305
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
16264
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
16306
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16307
 
16266
 
16308
      static {
16267
      static {
Line 16352... Line 16311...
16352
        return _fieldName;
16311
        return _fieldName;
16353
      }
16312
      }
16354
    }
16313
    }
16355
 
16314
 
16356
    // isset id assignments
16315
    // isset id assignments
16357
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
16358
    private static final int __CUSTOMERID_ISSET_ID = 1;
16316
    private static final int __ORDERID_ISSET_ID = 0;
16359
    private BitSet __isset_bit_vector = new BitSet(2);
16317
    private BitSet __isset_bit_vector = new BitSet(1);
16360
 
16318
 
16361
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
16319
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
16362
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
-
 
16363
          new FieldValueMetaData(TType.I64)));
-
 
16364
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
16320
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
16365
          new FieldValueMetaData(TType.I64)));
16321
          new FieldValueMetaData(TType.I64)));
16366
    }});
16322
    }});
16367
 
16323
 
16368
    static {
16324
    static {
16369
      FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_args.class, metaDataMap);
16325
      FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);
16370
    }
16326
    }
16371
 
16327
 
16372
    public getOrdersForTransaction_args() {
16328
    public getLineItemsForOrder_args() {
16373
    }
16329
    }
16374
 
16330
 
16375
    public getOrdersForTransaction_args(
16331
    public getLineItemsForOrder_args(
16376
      long transactionId,
-
 
16377
      long customerId)
16332
      long orderId)
16378
    {
16333
    {
16379
      this();
16334
      this();
16380
      this.transactionId = transactionId;
-
 
16381
      setTransactionIdIsSet(true);
-
 
16382
      this.customerId = customerId;
16335
      this.orderId = orderId;
16383
      setCustomerIdIsSet(true);
16336
      setOrderIdIsSet(true);
16384
    }
16337
    }
16385
 
16338
 
16386
    /**
16339
    /**
16387
     * Performs a deep copy on <i>other</i>.
16340
     * Performs a deep copy on <i>other</i>.
16388
     */
16341
     */
16389
    public getOrdersForTransaction_args(getOrdersForTransaction_args other) {
16342
    public getLineItemsForOrder_args(getLineItemsForOrder_args other) {
16390
      __isset_bit_vector.clear();
16343
      __isset_bit_vector.clear();
16391
      __isset_bit_vector.or(other.__isset_bit_vector);
16344
      __isset_bit_vector.or(other.__isset_bit_vector);
16392
      this.transactionId = other.transactionId;
-
 
16393
      this.customerId = other.customerId;
16345
      this.orderId = other.orderId;
16394
    }
16346
    }
16395
 
16347
 
16396
    public getOrdersForTransaction_args deepCopy() {
16348
    public getLineItemsForOrder_args deepCopy() {
16397
      return new getOrdersForTransaction_args(this);
16349
      return new getLineItemsForOrder_args(this);
16398
    }
16350
    }
16399
 
16351
 
16400
    @Deprecated
16352
    @Deprecated
16401
    public getOrdersForTransaction_args clone() {
16353
    public getLineItemsForOrder_args clone() {
16402
      return new getOrdersForTransaction_args(this);
16354
      return new getLineItemsForOrder_args(this);
16403
    }
-
 
16404
 
-
 
16405
    public long getTransactionId() {
-
 
16406
      return this.transactionId;
-
 
16407
    }
-
 
16408
 
-
 
16409
    public getOrdersForTransaction_args setTransactionId(long transactionId) {
-
 
16410
      this.transactionId = transactionId;
-
 
16411
      setTransactionIdIsSet(true);
-
 
16412
      return this;
-
 
16413
    }
-
 
16414
 
-
 
16415
    public void unsetTransactionId() {
-
 
16416
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
16417
    }
-
 
16418
 
-
 
16419
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
-
 
16420
    public boolean isSetTransactionId() {
-
 
16421
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
16422
    }
-
 
16423
 
-
 
16424
    public void setTransactionIdIsSet(boolean value) {
-
 
16425
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
16426
    }
16355
    }
16427
 
16356
 
16428
    public long getCustomerId() {
16357
    public long getOrderId() {
16429
      return this.customerId;
16358
      return this.orderId;
16430
    }
16359
    }
16431
 
16360
 
16432
    public getOrdersForTransaction_args setCustomerId(long customerId) {
16361
    public getLineItemsForOrder_args setOrderId(long orderId) {
16433
      this.customerId = customerId;
16362
      this.orderId = orderId;
16434
      setCustomerIdIsSet(true);
16363
      setOrderIdIsSet(true);
16435
      return this;
16364
      return this;
16436
    }
16365
    }
16437
 
16366
 
16438
    public void unsetCustomerId() {
16367
    public void unsetOrderId() {
16439
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
16368
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
16440
    }
16369
    }
16441
 
16370
 
16442
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
16371
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
16443
    public boolean isSetCustomerId() {
16372
    public boolean isSetOrderId() {
16444
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
16373
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
16445
    }
16374
    }
16446
 
16375
 
16447
    public void setCustomerIdIsSet(boolean value) {
16376
    public void setOrderIdIsSet(boolean value) {
16448
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
16377
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
16449
    }
16378
    }
16450
 
16379
 
16451
    public void setFieldValue(_Fields field, Object value) {
16380
    public void setFieldValue(_Fields field, Object value) {
16452
      switch (field) {
16381
      switch (field) {
16453
      case TRANSACTION_ID:
-
 
16454
        if (value == null) {
-
 
16455
          unsetTransactionId();
-
 
16456
        } else {
-
 
16457
          setTransactionId((Long)value);
-
 
16458
        }
-
 
16459
        break;
-
 
16460
 
-
 
16461
      case CUSTOMER_ID:
16382
      case ORDER_ID:
16462
        if (value == null) {
16383
        if (value == null) {
16463
          unsetCustomerId();
16384
          unsetOrderId();
16464
        } else {
16385
        } else {
16465
          setCustomerId((Long)value);
16386
          setOrderId((Long)value);
16466
        }
16387
        }
16467
        break;
16388
        break;
16468
 
16389
 
16469
      }
16390
      }
16470
    }
16391
    }
Line 16473... Line 16394...
16473
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
16394
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
16474
    }
16395
    }
16475
 
16396
 
16476
    public Object getFieldValue(_Fields field) {
16397
    public Object getFieldValue(_Fields field) {
16477
      switch (field) {
16398
      switch (field) {
16478
      case TRANSACTION_ID:
-
 
16479
        return new Long(getTransactionId());
-
 
16480
 
-
 
16481
      case CUSTOMER_ID:
16399
      case ORDER_ID:
16482
        return new Long(getCustomerId());
16400
        return new Long(getOrderId());
16483
 
16401
 
16484
      }
16402
      }
16485
      throw new IllegalStateException();
16403
      throw new IllegalStateException();
16486
    }
16404
    }
16487
 
16405
 
Line 16490... Line 16408...
16490
    }
16408
    }
16491
 
16409
 
16492
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
16410
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
16493
    public boolean isSet(_Fields field) {
16411
    public boolean isSet(_Fields field) {
16494
      switch (field) {
16412
      switch (field) {
16495
      case TRANSACTION_ID:
-
 
16496
        return isSetTransactionId();
-
 
16497
      case CUSTOMER_ID:
16413
      case ORDER_ID:
16498
        return isSetCustomerId();
16414
        return isSetOrderId();
16499
      }
16415
      }
16500
      throw new IllegalStateException();
16416
      throw new IllegalStateException();
16501
    }
16417
    }
16502
 
16418
 
16503
    public boolean isSet(int fieldID) {
16419
    public boolean isSet(int fieldID) {
Line 16506... Line 16422...
16506
 
16422
 
16507
    @Override
16423
    @Override
16508
    public boolean equals(Object that) {
16424
    public boolean equals(Object that) {
16509
      if (that == null)
16425
      if (that == null)
16510
        return false;
16426
        return false;
16511
      if (that instanceof getOrdersForTransaction_args)
16427
      if (that instanceof getLineItemsForOrder_args)
16512
        return this.equals((getOrdersForTransaction_args)that);
16428
        return this.equals((getLineItemsForOrder_args)that);
16513
      return false;
16429
      return false;
16514
    }
16430
    }
16515
 
16431
 
16516
    public boolean equals(getOrdersForTransaction_args that) {
16432
    public boolean equals(getLineItemsForOrder_args that) {
16517
      if (that == null)
16433
      if (that == null)
16518
        return false;
16434
        return false;
16519
 
16435
 
16520
      boolean this_present_transactionId = true;
-
 
16521
      boolean that_present_transactionId = true;
-
 
16522
      if (this_present_transactionId || that_present_transactionId) {
-
 
16523
        if (!(this_present_transactionId && that_present_transactionId))
-
 
16524
          return false;
-
 
16525
        if (this.transactionId != that.transactionId)
-
 
16526
          return false;
-
 
16527
      }
-
 
16528
 
-
 
16529
      boolean this_present_customerId = true;
16436
      boolean this_present_orderId = true;
16530
      boolean that_present_customerId = true;
16437
      boolean that_present_orderId = true;
16531
      if (this_present_customerId || that_present_customerId) {
16438
      if (this_present_orderId || that_present_orderId) {
16532
        if (!(this_present_customerId && that_present_customerId))
16439
        if (!(this_present_orderId && that_present_orderId))
16533
          return false;
16440
          return false;
16534
        if (this.customerId != that.customerId)
16441
        if (this.orderId != that.orderId)
16535
          return false;
16442
          return false;
16536
      }
16443
      }
16537
 
16444
 
16538
      return true;
16445
      return true;
16539
    }
16446
    }
Line 16541... Line 16448...
16541
    @Override
16448
    @Override
16542
    public int hashCode() {
16449
    public int hashCode() {
16543
      return 0;
16450
      return 0;
16544
    }
16451
    }
16545
 
16452
 
16546
    public int compareTo(getOrdersForTransaction_args other) {
16453
    public int compareTo(getLineItemsForOrder_args other) {
16547
      if (!getClass().equals(other.getClass())) {
16454
      if (!getClass().equals(other.getClass())) {
16548
        return getClass().getName().compareTo(other.getClass().getName());
16455
        return getClass().getName().compareTo(other.getClass().getName());
16549
      }
16456
      }
16550
 
16457
 
16551
      int lastComparison = 0;
16458
      int lastComparison = 0;
16552
      getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;
16459
      getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;
16553
 
16460
 
16554
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
-
 
16555
      if (lastComparison != 0) {
-
 
16556
        return lastComparison;
-
 
16557
      }
-
 
16558
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
16559
      if (lastComparison != 0) {
-
 
16560
        return lastComparison;
-
 
16561
      }
-
 
16562
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
16461
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
16563
      if (lastComparison != 0) {
16462
      if (lastComparison != 0) {
16564
        return lastComparison;
16463
        return lastComparison;
16565
      }
16464
      }
16566
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
16465
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
16567
      if (lastComparison != 0) {
16466
      if (lastComparison != 0) {
16568
        return lastComparison;
16467
        return lastComparison;
16569
      }
16468
      }
16570
      return 0;
16469
      return 0;
16571
    }
16470
    }
Line 16582... Line 16481...
16582
        _Fields fieldId = _Fields.findByThriftId(field.id);
16481
        _Fields fieldId = _Fields.findByThriftId(field.id);
16583
        if (fieldId == null) {
16482
        if (fieldId == null) {
16584
          TProtocolUtil.skip(iprot, field.type);
16483
          TProtocolUtil.skip(iprot, field.type);
16585
        } else {
16484
        } else {
16586
          switch (fieldId) {
16485
          switch (fieldId) {
16587
            case TRANSACTION_ID:
-
 
16588
              if (field.type == TType.I64) {
-
 
16589
                this.transactionId = iprot.readI64();
-
 
16590
                setTransactionIdIsSet(true);
-
 
16591
              } else { 
-
 
16592
                TProtocolUtil.skip(iprot, field.type);
-
 
16593
              }
-
 
16594
              break;
-
 
16595
            case CUSTOMER_ID:
16486
            case ORDER_ID:
16596
              if (field.type == TType.I64) {
16487
              if (field.type == TType.I64) {
16597
                this.customerId = iprot.readI64();
16488
                this.orderId = iprot.readI64();
16598
                setCustomerIdIsSet(true);
16489
                setOrderIdIsSet(true);
16599
              } else { 
16490
              } else { 
16600
                TProtocolUtil.skip(iprot, field.type);
16491
                TProtocolUtil.skip(iprot, field.type);
16601
              }
16492
              }
16602
              break;
16493
              break;
16603
          }
16494
          }
Line 16610... Line 16501...
16610
 
16501
 
16611
    public void write(TProtocol oprot) throws TException {
16502
    public void write(TProtocol oprot) throws TException {
16612
      validate();
16503
      validate();
16613
 
16504
 
16614
      oprot.writeStructBegin(STRUCT_DESC);
16505
      oprot.writeStructBegin(STRUCT_DESC);
16615
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
16616
      oprot.writeI64(this.transactionId);
-
 
16617
      oprot.writeFieldEnd();
-
 
16618
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
16506
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
16619
      oprot.writeI64(this.customerId);
16507
      oprot.writeI64(this.orderId);
16620
      oprot.writeFieldEnd();
16508
      oprot.writeFieldEnd();
16621
      oprot.writeFieldStop();
16509
      oprot.writeFieldStop();
16622
      oprot.writeStructEnd();
16510
      oprot.writeStructEnd();
16623
    }
16511
    }
16624
 
16512
 
16625
    @Override
16513
    @Override
16626
    public String toString() {
16514
    public String toString() {
16627
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");
16515
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");
16628
      boolean first = true;
16516
      boolean first = true;
16629
 
16517
 
16630
      sb.append("transactionId:");
-
 
16631
      sb.append(this.transactionId);
-
 
16632
      first = false;
-
 
16633
      if (!first) sb.append(", ");
-
 
16634
      sb.append("customerId:");
16518
      sb.append("orderId:");
16635
      sb.append(this.customerId);
16519
      sb.append(this.orderId);
16636
      first = false;
16520
      first = false;
16637
      sb.append(")");
16521
      sb.append(")");
16638
      return sb.toString();
16522
      return sb.toString();
16639
    }
16523
    }
16640
 
16524
 
Line 16642... Line 16526...
16642
      // check for required fields
16526
      // check for required fields
16643
    }
16527
    }
16644
 
16528
 
16645
  }
16529
  }
16646
 
16530
 
16647
  public static class getOrdersForTransaction_result implements TBase<getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForTransaction_result>   {
16531
  public static class getLineItemsForOrder_result implements TBase<getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLineItemsForOrder_result>   {
16648
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForTransaction_result");
16532
    private static final TStruct STRUCT_DESC = new TStruct("getLineItemsForOrder_result");
16649
 
16533
 
16650
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
16534
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
16651
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
16535
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
16652
 
16536
 
16653
    private List<Order> success;
16537
    private List<LineItem> success;
16654
    private TransactionServiceException ex;
16538
    private TransactionServiceException ex;
16655
 
16539
 
16656
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16657
    public enum _Fields implements TFieldIdEnum {
16541
    public enum _Fields implements TFieldIdEnum {
16658
      SUCCESS((short)0, "success"),
16542
      SUCCESS((short)0, "success"),
Line 16712... Line 16596...
16712
    // isset id assignments
16596
    // isset id assignments
16713
 
16597
 
16714
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
16598
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
16715
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
16599
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
16716
          new ListMetaData(TType.LIST, 
16600
          new ListMetaData(TType.LIST, 
16717
              new StructMetaData(TType.STRUCT, Order.class))));
16601
              new StructMetaData(TType.STRUCT, LineItem.class))));
16718
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
16602
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
16719
          new FieldValueMetaData(TType.STRUCT)));
16603
          new FieldValueMetaData(TType.STRUCT)));
16720
    }});
16604
    }});
16721
 
16605
 
16722
    static {
16606
    static {
16723
      FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);
16607
      FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);
16724
    }
16608
    }
16725
 
16609
 
16726
    public getOrdersForTransaction_result() {
16610
    public getLineItemsForOrder_result() {
16727
    }
16611
    }
16728
 
16612
 
16729
    public getOrdersForTransaction_result(
16613
    public getLineItemsForOrder_result(
16730
      List<Order> success,
16614
      List<LineItem> success,
16731
      TransactionServiceException ex)
16615
      TransactionServiceException ex)
16732
    {
16616
    {
16733
      this();
16617
      this();
16734
      this.success = success;
16618
      this.success = success;
16735
      this.ex = ex;
16619
      this.ex = ex;
16736
    }
16620
    }
16737
 
16621
 
16738
    /**
16622
    /**
16739
     * Performs a deep copy on <i>other</i>.
16623
     * Performs a deep copy on <i>other</i>.
16740
     */
16624
     */
16741
    public getOrdersForTransaction_result(getOrdersForTransaction_result other) {
16625
    public getLineItemsForOrder_result(getLineItemsForOrder_result other) {
16742
      if (other.isSetSuccess()) {
16626
      if (other.isSetSuccess()) {
16743
        List<Order> __this__success = new ArrayList<Order>();
16627
        List<LineItem> __this__success = new ArrayList<LineItem>();
16744
        for (Order other_element : other.success) {
16628
        for (LineItem other_element : other.success) {
16745
          __this__success.add(new Order(other_element));
16629
          __this__success.add(new LineItem(other_element));
16746
        }
16630
        }
16747
        this.success = __this__success;
16631
        this.success = __this__success;
16748
      }
16632
      }
16749
      if (other.isSetEx()) {
16633
      if (other.isSetEx()) {
16750
        this.ex = new TransactionServiceException(other.ex);
16634
        this.ex = new TransactionServiceException(other.ex);
16751
      }
16635
      }
16752
    }
16636
    }
16753
 
16637
 
16754
    public getOrdersForTransaction_result deepCopy() {
16638
    public getLineItemsForOrder_result deepCopy() {
16755
      return new getOrdersForTransaction_result(this);
16639
      return new getLineItemsForOrder_result(this);
16756
    }
16640
    }
16757
 
16641
 
16758
    @Deprecated
16642
    @Deprecated
16759
    public getOrdersForTransaction_result clone() {
16643
    public getLineItemsForOrder_result clone() {
16760
      return new getOrdersForTransaction_result(this);
16644
      return new getLineItemsForOrder_result(this);
16761
    }
16645
    }
16762
 
16646
 
16763
    public int getSuccessSize() {
16647
    public int getSuccessSize() {
16764
      return (this.success == null) ? 0 : this.success.size();
16648
      return (this.success == null) ? 0 : this.success.size();
16765
    }
16649
    }
16766
 
16650
 
16767
    public java.util.Iterator<Order> getSuccessIterator() {
16651
    public java.util.Iterator<LineItem> getSuccessIterator() {
16768
      return (this.success == null) ? null : this.success.iterator();
16652
      return (this.success == null) ? null : this.success.iterator();
16769
    }
16653
    }
16770
 
16654
 
16771
    public void addToSuccess(Order elem) {
16655
    public void addToSuccess(LineItem elem) {
16772
      if (this.success == null) {
16656
      if (this.success == null) {
16773
        this.success = new ArrayList<Order>();
16657
        this.success = new ArrayList<LineItem>();
16774
      }
16658
      }
16775
      this.success.add(elem);
16659
      this.success.add(elem);
16776
    }
16660
    }
16777
 
16661
 
16778
    public List<Order> getSuccess() {
16662
    public List<LineItem> getSuccess() {
16779
      return this.success;
16663
      return this.success;
16780
    }
16664
    }
16781
 
16665
 
16782
    public getOrdersForTransaction_result setSuccess(List<Order> success) {
16666
    public getLineItemsForOrder_result setSuccess(List<LineItem> success) {
16783
      this.success = success;
16667
      this.success = success;
16784
      return this;
16668
      return this;
16785
    }
16669
    }
16786
 
16670
 
16787
    public void unsetSuccess() {
16671
    public void unsetSuccess() {
Line 16801... Line 16685...
16801
 
16685
 
16802
    public TransactionServiceException getEx() {
16686
    public TransactionServiceException getEx() {
16803
      return this.ex;
16687
      return this.ex;
16804
    }
16688
    }
16805
 
16689
 
16806
    public getOrdersForTransaction_result setEx(TransactionServiceException ex) {
16690
    public getLineItemsForOrder_result setEx(TransactionServiceException ex) {
16807
      this.ex = ex;
16691
      this.ex = ex;
16808
      return this;
16692
      return this;
16809
    }
16693
    }
16810
 
16694
 
16811
    public void unsetEx() {
16695
    public void unsetEx() {
Line 16827... Line 16711...
16827
      switch (field) {
16711
      switch (field) {
16828
      case SUCCESS:
16712
      case SUCCESS:
16829
        if (value == null) {
16713
        if (value == null) {
16830
          unsetSuccess();
16714
          unsetSuccess();
16831
        } else {
16715
        } else {
16832
          setSuccess((List<Order>)value);
16716
          setSuccess((List<LineItem>)value);
16833
        }
16717
        }
16834
        break;
16718
        break;
16835
 
16719
 
16836
      case EX:
16720
      case EX:
16837
        if (value == null) {
16721
        if (value == null) {
Line 16881... Line 16765...
16881
 
16765
 
16882
    @Override
16766
    @Override
16883
    public boolean equals(Object that) {
16767
    public boolean equals(Object that) {
16884
      if (that == null)
16768
      if (that == null)
16885
        return false;
16769
        return false;
16886
      if (that instanceof getOrdersForTransaction_result)
16770
      if (that instanceof getLineItemsForOrder_result)
16887
        return this.equals((getOrdersForTransaction_result)that);
16771
        return this.equals((getLineItemsForOrder_result)that);
16888
      return false;
16772
      return false;
16889
    }
16773
    }
16890
 
16774
 
16891
    public boolean equals(getOrdersForTransaction_result that) {
16775
    public boolean equals(getLineItemsForOrder_result that) {
16892
      if (that == null)
16776
      if (that == null)
16893
        return false;
16777
        return false;
16894
 
16778
 
16895
      boolean this_present_success = true && this.isSetSuccess();
16779
      boolean this_present_success = true && this.isSetSuccess();
16896
      boolean that_present_success = true && that.isSetSuccess();
16780
      boolean that_present_success = true && that.isSetSuccess();
Line 16916... Line 16800...
16916
    @Override
16800
    @Override
16917
    public int hashCode() {
16801
    public int hashCode() {
16918
      return 0;
16802
      return 0;
16919
    }
16803
    }
16920
 
16804
 
16921
    public int compareTo(getOrdersForTransaction_result other) {
16805
    public int compareTo(getLineItemsForOrder_result other) {
16922
      if (!getClass().equals(other.getClass())) {
16806
      if (!getClass().equals(other.getClass())) {
16923
        return getClass().getName().compareTo(other.getClass().getName());
16807
        return getClass().getName().compareTo(other.getClass().getName());
16924
      }
16808
      }
16925
 
16809
 
16926
      int lastComparison = 0;
16810
      int lastComparison = 0;
16927
      getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;
16811
      getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;
16928
 
16812
 
16929
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
16813
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
16930
      if (lastComparison != 0) {
16814
      if (lastComparison != 0) {
16931
        return lastComparison;
16815
        return lastComparison;
16932
      }
16816
      }
Line 16960... Line 16844...
16960
        } else {
16844
        } else {
16961
          switch (fieldId) {
16845
          switch (fieldId) {
16962
            case SUCCESS:
16846
            case SUCCESS:
16963
              if (field.type == TType.LIST) {
16847
              if (field.type == TType.LIST) {
16964
                {
16848
                {
16965
                  TList _list32 = iprot.readListBegin();
16849
                  TList _list44 = iprot.readListBegin();
16966
                  this.success = new ArrayList<Order>(_list32.size);
16850
                  this.success = new ArrayList<LineItem>(_list44.size);
16967
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
16851
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
16968
                  {
16852
                  {
16969
                    Order _elem34;
16853
                    LineItem _elem46;
16970
                    _elem34 = new Order();
16854
                    _elem46 = new LineItem();
16971
                    _elem34.read(iprot);
16855
                    _elem46.read(iprot);
16972
                    this.success.add(_elem34);
16856
                    this.success.add(_elem46);
16973
                  }
16857
                  }
16974
                  iprot.readListEnd();
16858
                  iprot.readListEnd();
16975
                }
16859
                }
16976
              } else { 
16860
              } else { 
16977
                TProtocolUtil.skip(iprot, field.type);
16861
                TProtocolUtil.skip(iprot, field.type);
Line 16998... Line 16882...
16998
 
16882
 
16999
      if (this.isSetSuccess()) {
16883
      if (this.isSetSuccess()) {
17000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17001
        {
16885
        {
17002
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16886
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17003
          for (Order _iter35 : this.success)
16887
          for (LineItem _iter47 : this.success)
17004
          {
16888
          {
17005
            _iter35.write(oprot);
16889
            _iter47.write(oprot);
17006
          }
16890
          }
17007
          oprot.writeListEnd();
16891
          oprot.writeListEnd();
17008
        }
16892
        }
17009
        oprot.writeFieldEnd();
16893
        oprot.writeFieldEnd();
17010
      } else if (this.isSetEx()) {
16894
      } else if (this.isSetEx()) {
Line 17016... Line 16900...
17016
      oprot.writeStructEnd();
16900
      oprot.writeStructEnd();
17017
    }
16901
    }
17018
 
16902
 
17019
    @Override
16903
    @Override
17020
    public String toString() {
16904
    public String toString() {
17021
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");
16905
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");
17022
      boolean first = true;
16906
      boolean first = true;
17023
 
16907
 
17024
      sb.append("success:");
16908
      sb.append("success:");
17025
      if (this.success == null) {
16909
      if (this.success == null) {
17026
        sb.append("null");
16910
        sb.append("null");
Line 17044... Line 16928...
17044
      // check for required fields
16928
      // check for required fields
17045
    }
16929
    }
17046
 
16930
 
17047
  }
16931
  }
17048
 
16932
 
17049
  public static class getOrdersForCustomer_args implements TBase<getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForCustomer_args>   {
16933
  public static class getOrderForCustomer_args implements TBase<getOrderForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrderForCustomer_args>   {
17050
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForCustomer_args");
16934
    private static final TStruct STRUCT_DESC = new TStruct("getOrderForCustomer_args");
17051
 
16935
 
17052
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
16936
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
17053
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
16937
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
17054
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
-
 
17055
    private static final TField STATUSES_FIELD_DESC = new TField("statuses", TType.LIST, (short)4);
-
 
17056
 
16938
 
-
 
16939
    private long orderId;
17057
    private long customerId;
16940
    private long customerId;
17058
    private long from_date;
-
 
17059
    private long to_date;
-
 
17060
    private List<OrderStatus> statuses;
-
 
17061
 
16941
 
17062
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16942
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17063
    public enum _Fields implements TFieldIdEnum {
16943
    public enum _Fields implements TFieldIdEnum {
17064
      CUSTOMER_ID((short)1, "customerId"),
16944
      ORDER_ID((short)1, "orderId"),
17065
      FROM_DATE((short)2, "from_date"),
-
 
17066
      TO_DATE((short)3, "to_date"),
-
 
17067
      STATUSES((short)4, "statuses");
16945
      CUSTOMER_ID((short)2, "customerId");
17068
 
16946
 
17069
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
16947
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
17070
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16948
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17071
 
16949
 
17072
      static {
16950
      static {
Line 17116... Line 16994...
17116
        return _fieldName;
16994
        return _fieldName;
17117
      }
16995
      }
17118
    }
16996
    }
17119
 
16997
 
17120
    // isset id assignments
16998
    // isset id assignments
17121
    private static final int __CUSTOMERID_ISSET_ID = 0;
16999
    private static final int __ORDERID_ISSET_ID = 0;
17122
    private static final int __FROM_DATE_ISSET_ID = 1;
17000
    private static final int __CUSTOMERID_ISSET_ID = 1;
17123
    private static final int __TO_DATE_ISSET_ID = 2;
-
 
17124
    private BitSet __isset_bit_vector = new BitSet(3);
17001
    private BitSet __isset_bit_vector = new BitSet(2);
17125
 
17002
 
17126
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
17003
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
17127
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
17004
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
17128
          new FieldValueMetaData(TType.I64)));
-
 
17129
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
-
 
17130
          new FieldValueMetaData(TType.I64)));
17005
          new FieldValueMetaData(TType.I64)));
17131
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
17006
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
17132
          new FieldValueMetaData(TType.I64)));
17007
          new FieldValueMetaData(TType.I64)));
17133
      put(_Fields.STATUSES, new FieldMetaData("statuses", TFieldRequirementType.DEFAULT, 
-
 
17134
          new ListMetaData(TType.LIST, 
-
 
17135
              new EnumMetaData(TType.ENUM, OrderStatus.class))));
-
 
17136
    }});
17008
    }});
17137
 
17009
 
17138
    static {
17010
    static {
17139
      FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);
17011
      FieldMetaData.addStructMetaDataMap(getOrderForCustomer_args.class, metaDataMap);
17140
    }
17012
    }
17141
 
17013
 
17142
    public getOrdersForCustomer_args() {
17014
    public getOrderForCustomer_args() {
17143
    }
17015
    }
17144
 
17016
 
17145
    public getOrdersForCustomer_args(
17017
    public getOrderForCustomer_args(
17146
      long customerId,
17018
      long orderId,
17147
      long from_date,
-
 
17148
      long to_date,
17019
      long customerId)
17149
      List<OrderStatus> statuses)
-
 
17150
    {
17020
    {
17151
      this();
17021
      this();
-
 
17022
      this.orderId = orderId;
-
 
17023
      setOrderIdIsSet(true);
17152
      this.customerId = customerId;
17024
      this.customerId = customerId;
17153
      setCustomerIdIsSet(true);
17025
      setCustomerIdIsSet(true);
17154
      this.from_date = from_date;
-
 
17155
      setFrom_dateIsSet(true);
-
 
17156
      this.to_date = to_date;
-
 
17157
      setTo_dateIsSet(true);
-
 
17158
      this.statuses = statuses;
-
 
17159
    }
17026
    }
17160
 
17027
 
17161
    /**
17028
    /**
17162
     * Performs a deep copy on <i>other</i>.
17029
     * Performs a deep copy on <i>other</i>.
17163
     */
17030
     */
17164
    public getOrdersForCustomer_args(getOrdersForCustomer_args other) {
17031
    public getOrderForCustomer_args(getOrderForCustomer_args other) {
17165
      __isset_bit_vector.clear();
17032
      __isset_bit_vector.clear();
17166
      __isset_bit_vector.or(other.__isset_bit_vector);
17033
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17034
      this.orderId = other.orderId;
17167
      this.customerId = other.customerId;
17035
      this.customerId = other.customerId;
17168
      this.from_date = other.from_date;
-
 
17169
      this.to_date = other.to_date;
-
 
17170
      if (other.isSetStatuses()) {
-
 
17171
        List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();
-
 
17172
        for (OrderStatus other_element : other.statuses) {
-
 
17173
          __this__statuses.add(other_element);
-
 
17174
        }
-
 
17175
        this.statuses = __this__statuses;
-
 
17176
      }
-
 
17177
    }
17036
    }
17178
 
17037
 
17179
    public getOrdersForCustomer_args deepCopy() {
17038
    public getOrderForCustomer_args deepCopy() {
17180
      return new getOrdersForCustomer_args(this);
17039
      return new getOrderForCustomer_args(this);
17181
    }
17040
    }
17182
 
17041
 
17183
    @Deprecated
17042
    @Deprecated
17184
    public getOrdersForCustomer_args clone() {
17043
    public getOrderForCustomer_args clone() {
17185
      return new getOrdersForCustomer_args(this);
17044
      return new getOrderForCustomer_args(this);
17186
    }
-
 
17187
 
-
 
17188
    public long getCustomerId() {
-
 
17189
      return this.customerId;
-
 
17190
    }
-
 
17191
 
-
 
17192
    public getOrdersForCustomer_args setCustomerId(long customerId) {
-
 
17193
      this.customerId = customerId;
-
 
17194
      setCustomerIdIsSet(true);
-
 
17195
      return this;
-
 
17196
    }
-
 
17197
 
-
 
17198
    public void unsetCustomerId() {
-
 
17199
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
-
 
17200
    }
-
 
17201
 
-
 
17202
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
-
 
17203
    public boolean isSetCustomerId() {
-
 
17204
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
-
 
17205
    }
-
 
17206
 
-
 
17207
    public void setCustomerIdIsSet(boolean value) {
-
 
17208
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
-
 
17209
    }
-
 
17210
 
-
 
17211
    public long getFrom_date() {
-
 
17212
      return this.from_date;
-
 
17213
    }
-
 
17214
 
-
 
17215
    public getOrdersForCustomer_args setFrom_date(long from_date) {
-
 
17216
      this.from_date = from_date;
-
 
17217
      setFrom_dateIsSet(true);
-
 
17218
      return this;
-
 
17219
    }
-
 
17220
 
-
 
17221
    public void unsetFrom_date() {
-
 
17222
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
-
 
17223
    }
-
 
17224
 
-
 
17225
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
-
 
17226
    public boolean isSetFrom_date() {
-
 
17227
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
-
 
17228
    }
-
 
17229
 
-
 
17230
    public void setFrom_dateIsSet(boolean value) {
-
 
17231
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
-
 
17232
    }
17045
    }
17233
 
17046
 
17234
    public long getTo_date() {
17047
    public long getOrderId() {
17235
      return this.to_date;
17048
      return this.orderId;
17236
    }
17049
    }
17237
 
17050
 
17238
    public getOrdersForCustomer_args setTo_date(long to_date) {
17051
    public getOrderForCustomer_args setOrderId(long orderId) {
17239
      this.to_date = to_date;
17052
      this.orderId = orderId;
17240
      setTo_dateIsSet(true);
17053
      setOrderIdIsSet(true);
17241
      return this;
17054
      return this;
17242
    }
17055
    }
17243
 
17056
 
17244
    public void unsetTo_date() {
17057
    public void unsetOrderId() {
17245
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
17058
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
17246
    }
-
 
17247
 
-
 
17248
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
-
 
17249
    public boolean isSetTo_date() {
-
 
17250
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
-
 
17251
    }
-
 
17252
 
-
 
17253
    public void setTo_dateIsSet(boolean value) {
-
 
17254
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
-
 
17255
    }
-
 
17256
 
-
 
17257
    public int getStatusesSize() {
-
 
17258
      return (this.statuses == null) ? 0 : this.statuses.size();
-
 
17259
    }
17059
    }
17260
 
17060
 
-
 
17061
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
17261
    public java.util.Iterator<OrderStatus> getStatusesIterator() {
17062
    public boolean isSetOrderId() {
17262
      return (this.statuses == null) ? null : this.statuses.iterator();
17063
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
17263
    }
17064
    }
17264
 
17065
 
17265
    public void addToStatuses(OrderStatus elem) {
17066
    public void setOrderIdIsSet(boolean value) {
17266
      if (this.statuses == null) {
-
 
17267
        this.statuses = new ArrayList<OrderStatus>();
17067
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
17268
      }
-
 
17269
      this.statuses.add(elem);
-
 
17270
    }
17068
    }
17271
 
17069
 
17272
    public List<OrderStatus> getStatuses() {
17070
    public long getCustomerId() {
17273
      return this.statuses;
17071
      return this.customerId;
17274
    }
17072
    }
17275
 
17073
 
17276
    public getOrdersForCustomer_args setStatuses(List<OrderStatus> statuses) {
17074
    public getOrderForCustomer_args setCustomerId(long customerId) {
17277
      this.statuses = statuses;
17075
      this.customerId = customerId;
-
 
17076
      setCustomerIdIsSet(true);
17278
      return this;
17077
      return this;
17279
    }
17078
    }
17280
 
17079
 
17281
    public void unsetStatuses() {
17080
    public void unsetCustomerId() {
17282
      this.statuses = null;
17081
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
17283
    }
17082
    }
17284
 
17083
 
17285
    /** Returns true if field statuses is set (has been asigned a value) and false otherwise */
17084
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
17286
    public boolean isSetStatuses() {
17085
    public boolean isSetCustomerId() {
17287
      return this.statuses != null;
17086
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
17288
    }
17087
    }
17289
 
17088
 
17290
    public void setStatusesIsSet(boolean value) {
17089
    public void setCustomerIdIsSet(boolean value) {
17291
      if (!value) {
-
 
17292
        this.statuses = null;
17090
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
17293
      }
-
 
17294
    }
17091
    }
17295
 
17092
 
17296
    public void setFieldValue(_Fields field, Object value) {
17093
    public void setFieldValue(_Fields field, Object value) {
17297
      switch (field) {
17094
      switch (field) {
17298
      case CUSTOMER_ID:
17095
      case ORDER_ID:
17299
        if (value == null) {
-
 
17300
          unsetCustomerId();
-
 
17301
        } else {
-
 
17302
          setCustomerId((Long)value);
-
 
17303
        }
-
 
17304
        break;
-
 
17305
 
-
 
17306
      case FROM_DATE:
-
 
17307
        if (value == null) {
-
 
17308
          unsetFrom_date();
-
 
17309
        } else {
-
 
17310
          setFrom_date((Long)value);
-
 
17311
        }
-
 
17312
        break;
-
 
17313
 
-
 
17314
      case TO_DATE:
-
 
17315
        if (value == null) {
17096
        if (value == null) {
17316
          unsetTo_date();
17097
          unsetOrderId();
17317
        } else {
17098
        } else {
17318
          setTo_date((Long)value);
17099
          setOrderId((Long)value);
17319
        }
17100
        }
17320
        break;
17101
        break;
17321
 
17102
 
17322
      case STATUSES:
17103
      case CUSTOMER_ID:
17323
        if (value == null) {
17104
        if (value == null) {
17324
          unsetStatuses();
17105
          unsetCustomerId();
17325
        } else {
17106
        } else {
17326
          setStatuses((List<OrderStatus>)value);
17107
          setCustomerId((Long)value);
17327
        }
17108
        }
17328
        break;
17109
        break;
17329
 
17110
 
17330
      }
17111
      }
17331
    }
17112
    }
Line 17334... Line 17115...
17334
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
17115
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
17335
    }
17116
    }
17336
 
17117
 
17337
    public Object getFieldValue(_Fields field) {
17118
    public Object getFieldValue(_Fields field) {
17338
      switch (field) {
17119
      switch (field) {
-
 
17120
      case ORDER_ID:
-
 
17121
        return new Long(getOrderId());
-
 
17122
 
17339
      case CUSTOMER_ID:
17123
      case CUSTOMER_ID:
17340
        return new Long(getCustomerId());
17124
        return new Long(getCustomerId());
17341
 
17125
 
17342
      case FROM_DATE:
-
 
17343
        return new Long(getFrom_date());
-
 
17344
 
-
 
17345
      case TO_DATE:
-
 
17346
        return new Long(getTo_date());
-
 
17347
 
-
 
17348
      case STATUSES:
-
 
17349
        return getStatuses();
-
 
17350
 
-
 
17351
      }
17126
      }
17352
      throw new IllegalStateException();
17127
      throw new IllegalStateException();
17353
    }
17128
    }
17354
 
17129
 
17355
    public Object getFieldValue(int fieldId) {
17130
    public Object getFieldValue(int fieldId) {
Line 17357... Line 17132...
17357
    }
17132
    }
17358
 
17133
 
17359
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
17134
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
17360
    public boolean isSet(_Fields field) {
17135
    public boolean isSet(_Fields field) {
17361
      switch (field) {
17136
      switch (field) {
-
 
17137
      case ORDER_ID:
-
 
17138
        return isSetOrderId();
17362
      case CUSTOMER_ID:
17139
      case CUSTOMER_ID:
17363
        return isSetCustomerId();
17140
        return isSetCustomerId();
17364
      case FROM_DATE:
-
 
17365
        return isSetFrom_date();
-
 
17366
      case TO_DATE:
-
 
17367
        return isSetTo_date();
-
 
17368
      case STATUSES:
-
 
17369
        return isSetStatuses();
-
 
17370
      }
17141
      }
17371
      throw new IllegalStateException();
17142
      throw new IllegalStateException();
17372
    }
17143
    }
17373
 
17144
 
17374
    public boolean isSet(int fieldID) {
17145
    public boolean isSet(int fieldID) {
Line 17377... Line 17148...
17377
 
17148
 
17378
    @Override
17149
    @Override
17379
    public boolean equals(Object that) {
17150
    public boolean equals(Object that) {
17380
      if (that == null)
17151
      if (that == null)
17381
        return false;
17152
        return false;
17382
      if (that instanceof getOrdersForCustomer_args)
17153
      if (that instanceof getOrderForCustomer_args)
17383
        return this.equals((getOrdersForCustomer_args)that);
17154
        return this.equals((getOrderForCustomer_args)that);
17384
      return false;
17155
      return false;
17385
    }
17156
    }
17386
 
17157
 
17387
    public boolean equals(getOrdersForCustomer_args that) {
17158
    public boolean equals(getOrderForCustomer_args that) {
17388
      if (that == null)
17159
      if (that == null)
17389
        return false;
17160
        return false;
17390
 
17161
 
-
 
17162
      boolean this_present_orderId = true;
-
 
17163
      boolean that_present_orderId = true;
-
 
17164
      if (this_present_orderId || that_present_orderId) {
-
 
17165
        if (!(this_present_orderId && that_present_orderId))
-
 
17166
          return false;
-
 
17167
        if (this.orderId != that.orderId)
-
 
17168
          return false;
-
 
17169
      }
-
 
17170
 
17391
      boolean this_present_customerId = true;
17171
      boolean this_present_customerId = true;
17392
      boolean that_present_customerId = true;
17172
      boolean that_present_customerId = true;
17393
      if (this_present_customerId || that_present_customerId) {
17173
      if (this_present_customerId || that_present_customerId) {
17394
        if (!(this_present_customerId && that_present_customerId))
17174
        if (!(this_present_customerId && that_present_customerId))
17395
          return false;
17175
          return false;
17396
        if (this.customerId != that.customerId)
17176
        if (this.customerId != that.customerId)
17397
          return false;
17177
          return false;
17398
      }
17178
      }
17399
 
17179
 
17400
      boolean this_present_from_date = true;
-
 
17401
      boolean that_present_from_date = true;
-
 
17402
      if (this_present_from_date || that_present_from_date) {
-
 
17403
        if (!(this_present_from_date && that_present_from_date))
-
 
17404
          return false;
-
 
17405
        if (this.from_date != that.from_date)
-
 
17406
          return false;
-
 
17407
      }
-
 
17408
 
-
 
17409
      boolean this_present_to_date = true;
-
 
17410
      boolean that_present_to_date = true;
-
 
17411
      if (this_present_to_date || that_present_to_date) {
-
 
17412
        if (!(this_present_to_date && that_present_to_date))
-
 
17413
          return false;
-
 
17414
        if (this.to_date != that.to_date)
-
 
17415
          return false;
-
 
17416
      }
-
 
17417
 
-
 
17418
      boolean this_present_statuses = true && this.isSetStatuses();
-
 
17419
      boolean that_present_statuses = true && that.isSetStatuses();
-
 
17420
      if (this_present_statuses || that_present_statuses) {
-
 
17421
        if (!(this_present_statuses && that_present_statuses))
-
 
17422
          return false;
-
 
17423
        if (!this.statuses.equals(that.statuses))
-
 
17424
          return false;
-
 
17425
      }
-
 
17426
 
-
 
17427
      return true;
17180
      return true;
17428
    }
17181
    }
17429
 
17182
 
17430
    @Override
17183
    @Override
17431
    public int hashCode() {
17184
    public int hashCode() {
17432
      return 0;
17185
      return 0;
17433
    }
17186
    }
17434
 
17187
 
17435
    public int compareTo(getOrdersForCustomer_args other) {
17188
    public int compareTo(getOrderForCustomer_args other) {
17436
      if (!getClass().equals(other.getClass())) {
17189
      if (!getClass().equals(other.getClass())) {
17437
        return getClass().getName().compareTo(other.getClass().getName());
17190
        return getClass().getName().compareTo(other.getClass().getName());
17438
      }
17191
      }
17439
 
17192
 
17440
      int lastComparison = 0;
17193
      int lastComparison = 0;
17441
      getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;
17194
      getOrderForCustomer_args typedOther = (getOrderForCustomer_args)other;
17442
 
17195
 
17443
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
17196
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
17444
      if (lastComparison != 0) {
-
 
17445
        return lastComparison;
-
 
17446
      }
-
 
17447
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
-
 
17448
      if (lastComparison != 0) {
-
 
17449
        return lastComparison;
-
 
17450
      }
-
 
17451
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
-
 
17452
      if (lastComparison != 0) {
-
 
17453
        return lastComparison;
-
 
17454
      }
-
 
17455
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
-
 
17456
      if (lastComparison != 0) {
-
 
17457
        return lastComparison;
-
 
17458
      }
-
 
17459
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
-
 
17460
      if (lastComparison != 0) {
17197
      if (lastComparison != 0) {
17461
        return lastComparison;
17198
        return lastComparison;
17462
      }
17199
      }
17463
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
17200
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
17464
      if (lastComparison != 0) {
17201
      if (lastComparison != 0) {
17465
        return lastComparison;
17202
        return lastComparison;
17466
      }
17203
      }
17467
      lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(isSetStatuses());
17204
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
17468
      if (lastComparison != 0) {
17205
      if (lastComparison != 0) {
17469
        return lastComparison;
17206
        return lastComparison;
17470
      }
17207
      }
17471
      lastComparison = TBaseHelper.compareTo(statuses, typedOther.statuses);
17208
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
17472
      if (lastComparison != 0) {
17209
      if (lastComparison != 0) {
17473
        return lastComparison;
17210
        return lastComparison;
17474
      }
17211
      }
17475
      return 0;
17212
      return 0;
17476
    }
17213
    }
Line 17487... Line 17224...
17487
        _Fields fieldId = _Fields.findByThriftId(field.id);
17224
        _Fields fieldId = _Fields.findByThriftId(field.id);
17488
        if (fieldId == null) {
17225
        if (fieldId == null) {
17489
          TProtocolUtil.skip(iprot, field.type);
17226
          TProtocolUtil.skip(iprot, field.type);
17490
        } else {
17227
        } else {
17491
          switch (fieldId) {
17228
          switch (fieldId) {
17492
            case CUSTOMER_ID:
17229
            case ORDER_ID:
17493
              if (field.type == TType.I64) {
-
 
17494
                this.customerId = iprot.readI64();
-
 
17495
                setCustomerIdIsSet(true);
-
 
17496
              } else { 
-
 
17497
                TProtocolUtil.skip(iprot, field.type);
-
 
17498
              }
-
 
17499
              break;
-
 
17500
            case FROM_DATE:
-
 
17501
              if (field.type == TType.I64) {
17230
              if (field.type == TType.I64) {
17502
                this.from_date = iprot.readI64();
17231
                this.orderId = iprot.readI64();
17503
                setFrom_dateIsSet(true);
17232
                setOrderIdIsSet(true);
17504
              } else { 
17233
              } else { 
17505
                TProtocolUtil.skip(iprot, field.type);
17234
                TProtocolUtil.skip(iprot, field.type);
17506
              }
17235
              }
17507
              break;
17236
              break;
17508
            case TO_DATE:
17237
            case CUSTOMER_ID:
17509
              if (field.type == TType.I64) {
17238
              if (field.type == TType.I64) {
17510
                this.to_date = iprot.readI64();
17239
                this.customerId = iprot.readI64();
17511
                setTo_dateIsSet(true);
17240
                setCustomerIdIsSet(true);
17512
              } else { 
-
 
17513
                TProtocolUtil.skip(iprot, field.type);
-
 
17514
              }
-
 
17515
              break;
-
 
17516
            case STATUSES:
-
 
17517
              if (field.type == TType.LIST) {
-
 
17518
                {
-
 
17519
                  TList _list36 = iprot.readListBegin();
-
 
17520
                  this.statuses = new ArrayList<OrderStatus>(_list36.size);
-
 
17521
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
-
 
17522
                  {
-
 
17523
                    OrderStatus _elem38;
-
 
17524
                    _elem38 = OrderStatus.findByValue(iprot.readI32());
-
 
17525
                    this.statuses.add(_elem38);
-
 
17526
                  }
-
 
17527
                  iprot.readListEnd();
-
 
17528
                }
-
 
17529
              } else { 
17241
              } else { 
17530
                TProtocolUtil.skip(iprot, field.type);
17242
                TProtocolUtil.skip(iprot, field.type);
17531
              }
17243
              }
17532
              break;
17244
              break;
17533
          }
17245
          }
Line 17540... Line 17252...
17540
 
17252
 
17541
    public void write(TProtocol oprot) throws TException {
17253
    public void write(TProtocol oprot) throws TException {
17542
      validate();
17254
      validate();
17543
 
17255
 
17544
      oprot.writeStructBegin(STRUCT_DESC);
17256
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17257
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
17258
      oprot.writeI64(this.orderId);
-
 
17259
      oprot.writeFieldEnd();
17545
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
17260
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
17546
      oprot.writeI64(this.customerId);
17261
      oprot.writeI64(this.customerId);
17547
      oprot.writeFieldEnd();
17262
      oprot.writeFieldEnd();
17548
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
17549
      oprot.writeI64(this.from_date);
-
 
17550
      oprot.writeFieldEnd();
-
 
17551
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
17552
      oprot.writeI64(this.to_date);
-
 
17553
      oprot.writeFieldEnd();
-
 
17554
      if (this.statuses != null) {
-
 
17555
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
-
 
17556
        {
-
 
17557
          oprot.writeListBegin(new TList(TType.I32, this.statuses.size()));
-
 
17558
          for (OrderStatus _iter39 : this.statuses)
-
 
17559
          {
-
 
17560
            oprot.writeI32(_iter39.getValue());
-
 
17561
          }
-
 
17562
          oprot.writeListEnd();
-
 
17563
        }
-
 
17564
        oprot.writeFieldEnd();
-
 
17565
      }
-
 
17566
      oprot.writeFieldStop();
17263
      oprot.writeFieldStop();
17567
      oprot.writeStructEnd();
17264
      oprot.writeStructEnd();
17568
    }
17265
    }
17569
 
17266
 
17570
    @Override
17267
    @Override
17571
    public String toString() {
17268
    public String toString() {
17572
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");
17269
      StringBuilder sb = new StringBuilder("getOrderForCustomer_args(");
17573
      boolean first = true;
17270
      boolean first = true;
17574
 
17271
 
17575
      sb.append("customerId:");
17272
      sb.append("orderId:");
17576
      sb.append(this.customerId);
17273
      sb.append(this.orderId);
17577
      first = false;
-
 
17578
      if (!first) sb.append(", ");
-
 
17579
      sb.append("from_date:");
-
 
17580
      sb.append(this.from_date);
-
 
17581
      first = false;
-
 
17582
      if (!first) sb.append(", ");
-
 
17583
      sb.append("to_date:");
-
 
17584
      sb.append(this.to_date);
-
 
17585
      first = false;
17274
      first = false;
17586
      if (!first) sb.append(", ");
17275
      if (!first) sb.append(", ");
17587
      sb.append("statuses:");
17276
      sb.append("customerId:");
17588
      if (this.statuses == null) {
-
 
17589
        sb.append("null");
-
 
17590
      } else {
-
 
17591
        sb.append(this.statuses);
17277
      sb.append(this.customerId);
17592
      }
-
 
17593
      first = false;
17278
      first = false;
17594
      sb.append(")");
17279
      sb.append(")");
17595
      return sb.toString();
17280
      return sb.toString();
17596
    }
17281
    }
17597
 
17282
 
Line 17599... Line 17284...
17599
      // check for required fields
17284
      // check for required fields
17600
    }
17285
    }
17601
 
17286
 
17602
  }
17287
  }
17603
 
17288
 
17604
  public static class getOrdersForCustomer_result implements TBase<getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForCustomer_result>   {
17289
  public static class getOrderForCustomer_result implements TBase<getOrderForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrderForCustomer_result>   {
17605
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForCustomer_result");
17290
    private static final TStruct STRUCT_DESC = new TStruct("getOrderForCustomer_result");
17606
 
17291
 
17607
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
17292
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
17608
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
17293
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
17609
 
17294
 
17610
    private List<Order> success;
17295
    private Order success;
17611
    private TransactionServiceException ex;
17296
    private TransactionServiceException ex;
17612
 
17297
 
17613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17298
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17614
    public enum _Fields implements TFieldIdEnum {
17299
    public enum _Fields implements TFieldIdEnum {
17615
      SUCCESS((short)0, "success"),
17300
      SUCCESS((short)0, "success"),
Line 17668... Line 17353...
17668
 
17353
 
17669
    // isset id assignments
17354
    // isset id assignments
17670
 
17355
 
17671
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
17356
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
17672
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
17357
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
17673
          new ListMetaData(TType.LIST, 
-
 
17674
              new StructMetaData(TType.STRUCT, Order.class))));
17358
          new StructMetaData(TType.STRUCT, Order.class)));
17675
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
17359
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
17676
          new FieldValueMetaData(TType.STRUCT)));
17360
          new FieldValueMetaData(TType.STRUCT)));
17677
    }});
17361
    }});
17678
 
17362
 
17679
    static {
17363
    static {
17680
      FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);
17364
      FieldMetaData.addStructMetaDataMap(getOrderForCustomer_result.class, metaDataMap);
17681
    }
17365
    }
17682
 
17366
 
17683
    public getOrdersForCustomer_result() {
17367
    public getOrderForCustomer_result() {
17684
    }
17368
    }
17685
 
17369
 
17686
    public getOrdersForCustomer_result(
17370
    public getOrderForCustomer_result(
17687
      List<Order> success,
17371
      Order success,
17688
      TransactionServiceException ex)
17372
      TransactionServiceException ex)
17689
    {
17373
    {
17690
      this();
17374
      this();
17691
      this.success = success;
17375
      this.success = success;
17692
      this.ex = ex;
17376
      this.ex = ex;
17693
    }
17377
    }
17694
 
17378
 
17695
    /**
17379
    /**
17696
     * Performs a deep copy on <i>other</i>.
17380
     * Performs a deep copy on <i>other</i>.
17697
     */
17381
     */
17698
    public getOrdersForCustomer_result(getOrdersForCustomer_result other) {
17382
    public getOrderForCustomer_result(getOrderForCustomer_result other) {
17699
      if (other.isSetSuccess()) {
17383
      if (other.isSetSuccess()) {
17700
        List<Order> __this__success = new ArrayList<Order>();
-
 
17701
        for (Order other_element : other.success) {
-
 
17702
          __this__success.add(new Order(other_element));
-
 
17703
        }
-
 
17704
        this.success = __this__success;
17384
        this.success = new Order(other.success);
17705
      }
17385
      }
17706
      if (other.isSetEx()) {
17386
      if (other.isSetEx()) {
17707
        this.ex = new TransactionServiceException(other.ex);
17387
        this.ex = new TransactionServiceException(other.ex);
17708
      }
17388
      }
17709
    }
17389
    }
17710
 
17390
 
17711
    public getOrdersForCustomer_result deepCopy() {
17391
    public getOrderForCustomer_result deepCopy() {
17712
      return new getOrdersForCustomer_result(this);
17392
      return new getOrderForCustomer_result(this);
17713
    }
17393
    }
17714
 
17394
 
17715
    @Deprecated
17395
    @Deprecated
17716
    public getOrdersForCustomer_result clone() {
17396
    public getOrderForCustomer_result clone() {
17717
      return new getOrdersForCustomer_result(this);
17397
      return new getOrderForCustomer_result(this);
17718
    }
-
 
17719
 
-
 
17720
    public int getSuccessSize() {
-
 
17721
      return (this.success == null) ? 0 : this.success.size();
-
 
17722
    }
-
 
17723
 
-
 
17724
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
17725
      return (this.success == null) ? null : this.success.iterator();
-
 
17726
    }
-
 
17727
 
-
 
17728
    public void addToSuccess(Order elem) {
-
 
17729
      if (this.success == null) {
-
 
17730
        this.success = new ArrayList<Order>();
-
 
17731
      }
-
 
17732
      this.success.add(elem);
-
 
17733
    }
17398
    }
17734
 
17399
 
17735
    public List<Order> getSuccess() {
17400
    public Order getSuccess() {
17736
      return this.success;
17401
      return this.success;
17737
    }
17402
    }
17738
 
17403
 
17739
    public getOrdersForCustomer_result setSuccess(List<Order> success) {
17404
    public getOrderForCustomer_result setSuccess(Order success) {
17740
      this.success = success;
17405
      this.success = success;
17741
      return this;
17406
      return this;
17742
    }
17407
    }
17743
 
17408
 
17744
    public void unsetSuccess() {
17409
    public void unsetSuccess() {
Line 17758... Line 17423...
17758
 
17423
 
17759
    public TransactionServiceException getEx() {
17424
    public TransactionServiceException getEx() {
17760
      return this.ex;
17425
      return this.ex;
17761
    }
17426
    }
17762
 
17427
 
17763
    public getOrdersForCustomer_result setEx(TransactionServiceException ex) {
17428
    public getOrderForCustomer_result setEx(TransactionServiceException ex) {
17764
      this.ex = ex;
17429
      this.ex = ex;
17765
      return this;
17430
      return this;
17766
    }
17431
    }
17767
 
17432
 
17768
    public void unsetEx() {
17433
    public void unsetEx() {
Line 17784... Line 17449...
17784
      switch (field) {
17449
      switch (field) {
17785
      case SUCCESS:
17450
      case SUCCESS:
17786
        if (value == null) {
17451
        if (value == null) {
17787
          unsetSuccess();
17452
          unsetSuccess();
17788
        } else {
17453
        } else {
17789
          setSuccess((List<Order>)value);
17454
          setSuccess((Order)value);
17790
        }
17455
        }
17791
        break;
17456
        break;
17792
 
17457
 
17793
      case EX:
17458
      case EX:
17794
        if (value == null) {
17459
        if (value == null) {
Line 17838... Line 17503...
17838
 
17503
 
17839
    @Override
17504
    @Override
17840
    public boolean equals(Object that) {
17505
    public boolean equals(Object that) {
17841
      if (that == null)
17506
      if (that == null)
17842
        return false;
17507
        return false;
17843
      if (that instanceof getOrdersForCustomer_result)
17508
      if (that instanceof getOrderForCustomer_result)
17844
        return this.equals((getOrdersForCustomer_result)that);
17509
        return this.equals((getOrderForCustomer_result)that);
17845
      return false;
17510
      return false;
17846
    }
17511
    }
17847
 
17512
 
17848
    public boolean equals(getOrdersForCustomer_result that) {
17513
    public boolean equals(getOrderForCustomer_result that) {
17849
      if (that == null)
17514
      if (that == null)
17850
        return false;
17515
        return false;
17851
 
17516
 
17852
      boolean this_present_success = true && this.isSetSuccess();
17517
      boolean this_present_success = true && this.isSetSuccess();
17853
      boolean that_present_success = true && that.isSetSuccess();
17518
      boolean that_present_success = true && that.isSetSuccess();
Line 17873... Line 17538...
17873
    @Override
17538
    @Override
17874
    public int hashCode() {
17539
    public int hashCode() {
17875
      return 0;
17540
      return 0;
17876
    }
17541
    }
17877
 
17542
 
17878
    public int compareTo(getOrdersForCustomer_result other) {
17543
    public int compareTo(getOrderForCustomer_result other) {
17879
      if (!getClass().equals(other.getClass())) {
17544
      if (!getClass().equals(other.getClass())) {
17880
        return getClass().getName().compareTo(other.getClass().getName());
17545
        return getClass().getName().compareTo(other.getClass().getName());
17881
      }
17546
      }
17882
 
17547
 
17883
      int lastComparison = 0;
17548
      int lastComparison = 0;
17884
      getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;
17549
      getOrderForCustomer_result typedOther = (getOrderForCustomer_result)other;
17885
 
17550
 
17886
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
17551
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
17887
      if (lastComparison != 0) {
17552
      if (lastComparison != 0) {
17888
        return lastComparison;
17553
        return lastComparison;
17889
      }
17554
      }
Line 17915... Line 17580...
17915
        if (fieldId == null) {
17580
        if (fieldId == null) {
17916
          TProtocolUtil.skip(iprot, field.type);
17581
          TProtocolUtil.skip(iprot, field.type);
17917
        } else {
17582
        } else {
17918
          switch (fieldId) {
17583
          switch (fieldId) {
17919
            case SUCCESS:
17584
            case SUCCESS:
17920
              if (field.type == TType.LIST) {
17585
              if (field.type == TType.STRUCT) {
17921
                {
-
 
17922
                  TList _list40 = iprot.readListBegin();
-
 
17923
                  this.success = new ArrayList<Order>(_list40.size);
-
 
17924
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
-
 
17925
                  {
-
 
17926
                    Order _elem42;
-
 
17927
                    _elem42 = new Order();
17586
                this.success = new Order();
17928
                    _elem42.read(iprot);
17587
                this.success.read(iprot);
17929
                    this.success.add(_elem42);
-
 
17930
                  }
-
 
17931
                  iprot.readListEnd();
-
 
17932
                }
-
 
17933
              } else { 
17588
              } else { 
17934
                TProtocolUtil.skip(iprot, field.type);
17589
                TProtocolUtil.skip(iprot, field.type);
17935
              }
17590
              }
17936
              break;
17591
              break;
17937
            case EX:
17592
            case EX:
Line 17953... Line 17608...
17953
    public void write(TProtocol oprot) throws TException {
17608
    public void write(TProtocol oprot) throws TException {
17954
      oprot.writeStructBegin(STRUCT_DESC);
17609
      oprot.writeStructBegin(STRUCT_DESC);
17955
 
17610
 
17956
      if (this.isSetSuccess()) {
17611
      if (this.isSetSuccess()) {
17957
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17958
        {
-
 
17959
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
17960
          for (Order _iter43 : this.success)
-
 
17961
          {
-
 
17962
            _iter43.write(oprot);
17613
        this.success.write(oprot);
17963
          }
-
 
17964
          oprot.writeListEnd();
-
 
17965
        }
-
 
17966
        oprot.writeFieldEnd();
17614
        oprot.writeFieldEnd();
17967
      } else if (this.isSetEx()) {
17615
      } else if (this.isSetEx()) {
17968
        oprot.writeFieldBegin(EX_FIELD_DESC);
17616
        oprot.writeFieldBegin(EX_FIELD_DESC);
17969
        this.ex.write(oprot);
17617
        this.ex.write(oprot);
17970
        oprot.writeFieldEnd();
17618
        oprot.writeFieldEnd();
Line 17973... Line 17621...
17973
      oprot.writeStructEnd();
17621
      oprot.writeStructEnd();
17974
    }
17622
    }
17975
 
17623
 
17976
    @Override
17624
    @Override
17977
    public String toString() {
17625
    public String toString() {
17978
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");
17626
      StringBuilder sb = new StringBuilder("getOrderForCustomer_result(");
17979
      boolean first = true;
17627
      boolean first = true;
17980
 
17628
 
17981
      sb.append("success:");
17629
      sb.append("success:");
17982
      if (this.success == null) {
17630
      if (this.success == null) {
17983
        sb.append("null");
17631
        sb.append("null");
Line 18001... Line 17649...
18001
      // check for required fields
17649
      // check for required fields
18002
    }
17650
    }
18003
 
17651
 
18004
  }
17652
  }
18005
 
17653
 
18006
  public static class createOrder_args implements TBase<createOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<createOrder_args>   {
17654
  public static class getAlerts_args implements TBase<getAlerts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_args>   {
18007
    private static final TStruct STRUCT_DESC = new TStruct("createOrder_args");
17655
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_args");
18008
 
17656
 
18009
    private static final TField ORDER_FIELD_DESC = new TField("order", TType.STRUCT, (short)1);
17657
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
17658
    private static final TField VALID_FIELD_DESC = new TField("valid", TType.BOOL, (short)2);
18010
 
17659
 
18011
    private Order order;
17660
    private long orderId;
-
 
17661
    private boolean valid;
18012
 
17662
 
18013
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17663
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18014
    public enum _Fields implements TFieldIdEnum {
17664
    public enum _Fields implements TFieldIdEnum {
18015
      ORDER((short)1, "order");
17665
      ORDER_ID((short)1, "orderId"),
-
 
17666
      VALID((short)2, "valid");
18016
 
17667
 
18017
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
17668
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
18018
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17669
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18019
 
17670
 
18020
      static {
17671
      static {
Line 18064... Line 17715...
18064
        return _fieldName;
17715
        return _fieldName;
18065
      }
17716
      }
18066
    }
17717
    }
18067
 
17718
 
18068
    // isset id assignments
17719
    // isset id assignments
-
 
17720
    private static final int __ORDERID_ISSET_ID = 0;
-
 
17721
    private static final int __VALID_ISSET_ID = 1;
-
 
17722
    private BitSet __isset_bit_vector = new BitSet(2);
18069
 
17723
 
18070
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
17724
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
18071
      put(_Fields.ORDER, new FieldMetaData("order", TFieldRequirementType.DEFAULT, 
17725
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
17726
          new FieldValueMetaData(TType.I64)));
-
 
17727
      put(_Fields.VALID, new FieldMetaData("valid", TFieldRequirementType.DEFAULT, 
18072
          new StructMetaData(TType.STRUCT, Order.class)));
17728
          new FieldValueMetaData(TType.BOOL)));
18073
    }});
17729
    }});
18074
 
17730
 
18075
    static {
17731
    static {
18076
      FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);
17732
      FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
18077
    }
17733
    }
18078
 
17734
 
18079
    public createOrder_args() {
17735
    public getAlerts_args() {
18080
    }
17736
    }
18081
 
17737
 
18082
    public createOrder_args(
17738
    public getAlerts_args(
18083
      Order order)
17739
      long orderId,
-
 
17740
      boolean valid)
18084
    {
17741
    {
18085
      this();
17742
      this();
18086
      this.order = order;
17743
      this.orderId = orderId;
-
 
17744
      setOrderIdIsSet(true);
-
 
17745
      this.valid = valid;
-
 
17746
      setValidIsSet(true);
18087
    }
17747
    }
18088
 
17748
 
18089
    /**
17749
    /**
18090
     * Performs a deep copy on <i>other</i>.
17750
     * Performs a deep copy on <i>other</i>.
18091
     */
17751
     */
18092
    public createOrder_args(createOrder_args other) {
17752
    public getAlerts_args(getAlerts_args other) {
18093
      if (other.isSetOrder()) {
17753
      __isset_bit_vector.clear();
-
 
17754
      __isset_bit_vector.or(other.__isset_bit_vector);
18094
        this.order = new Order(other.order);
17755
      this.orderId = other.orderId;
18095
      }
17756
      this.valid = other.valid;
18096
    }
17757
    }
18097
 
17758
 
18098
    public createOrder_args deepCopy() {
17759
    public getAlerts_args deepCopy() {
18099
      return new createOrder_args(this);
17760
      return new getAlerts_args(this);
18100
    }
17761
    }
18101
 
17762
 
18102
    @Deprecated
17763
    @Deprecated
18103
    public createOrder_args clone() {
17764
    public getAlerts_args clone() {
18104
      return new createOrder_args(this);
17765
      return new getAlerts_args(this);
18105
    }
17766
    }
18106
 
17767
 
18107
    public Order getOrder() {
17768
    public long getOrderId() {
18108
      return this.order;
17769
      return this.orderId;
18109
    }
17770
    }
18110
 
17771
 
18111
    public createOrder_args setOrder(Order order) {
17772
    public getAlerts_args setOrderId(long orderId) {
18112
      this.order = order;
17773
      this.orderId = orderId;
-
 
17774
      setOrderIdIsSet(true);
18113
      return this;
17775
      return this;
18114
    }
17776
    }
18115
 
17777
 
18116
    public void unsetOrder() {
17778
    public void unsetOrderId() {
18117
      this.order = null;
17779
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
18118
    }
17780
    }
18119
 
17781
 
18120
    /** Returns true if field order is set (has been asigned a value) and false otherwise */
17782
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
18121
    public boolean isSetOrder() {
17783
    public boolean isSetOrderId() {
18122
      return this.order != null;
17784
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
18123
    }
17785
    }
18124
 
17786
 
18125
    public void setOrderIsSet(boolean value) {
17787
    public void setOrderIdIsSet(boolean value) {
-
 
17788
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
17789
    }
-
 
17790
 
-
 
17791
    public boolean isValid() {
18126
      if (!value) {
17792
      return this.valid;
-
 
17793
    }
-
 
17794
 
-
 
17795
    public getAlerts_args setValid(boolean valid) {
18127
        this.order = null;
17796
      this.valid = valid;
-
 
17797
      setValidIsSet(true);
-
 
17798
      return this;
-
 
17799
    }
-
 
17800
 
-
 
17801
    public void unsetValid() {
-
 
17802
      __isset_bit_vector.clear(__VALID_ISSET_ID);
-
 
17803
    }
-
 
17804
 
-
 
17805
    /** Returns true if field valid is set (has been asigned a value) and false otherwise */
-
 
17806
    public boolean isSetValid() {
-
 
17807
      return __isset_bit_vector.get(__VALID_ISSET_ID);
18128
      }
17808
    }
-
 
17809
 
-
 
17810
    public void setValidIsSet(boolean value) {
-
 
17811
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
18129
    }
17812
    }
18130
 
17813
 
18131
    public void setFieldValue(_Fields field, Object value) {
17814
    public void setFieldValue(_Fields field, Object value) {
18132
      switch (field) {
17815
      switch (field) {
18133
      case ORDER:
17816
      case ORDER_ID:
18134
        if (value == null) {
17817
        if (value == null) {
18135
          unsetOrder();
17818
          unsetOrderId();
18136
        } else {
17819
        } else {
18137
          setOrder((Order)value);
17820
          setOrderId((Long)value);
-
 
17821
        }
-
 
17822
        break;
-
 
17823
 
-
 
17824
      case VALID:
-
 
17825
        if (value == null) {
-
 
17826
          unsetValid();
-
 
17827
        } else {
-
 
17828
          setValid((Boolean)value);
18138
        }
17829
        }
18139
        break;
17830
        break;
18140
 
17831
 
18141
      }
17832
      }
18142
    }
17833
    }
Line 18145... Line 17836...
18145
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
17836
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
18146
    }
17837
    }
18147
 
17838
 
18148
    public Object getFieldValue(_Fields field) {
17839
    public Object getFieldValue(_Fields field) {
18149
      switch (field) {
17840
      switch (field) {
18150
      case ORDER:
17841
      case ORDER_ID:
18151
        return getOrder();
17842
        return new Long(getOrderId());
-
 
17843
 
-
 
17844
      case VALID:
-
 
17845
        return new Boolean(isValid());
18152
 
17846
 
18153
      }
17847
      }
18154
      throw new IllegalStateException();
17848
      throw new IllegalStateException();
18155
    }
17849
    }
18156
 
17850
 
Line 18159... Line 17853...
18159
    }
17853
    }
18160
 
17854
 
18161
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
17855
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
18162
    public boolean isSet(_Fields field) {
17856
    public boolean isSet(_Fields field) {
18163
      switch (field) {
17857
      switch (field) {
18164
      case ORDER:
17858
      case ORDER_ID:
18165
        return isSetOrder();
17859
        return isSetOrderId();
-
 
17860
      case VALID:
-
 
17861
        return isSetValid();
18166
      }
17862
      }
18167
      throw new IllegalStateException();
17863
      throw new IllegalStateException();
18168
    }
17864
    }
18169
 
17865
 
18170
    public boolean isSet(int fieldID) {
17866
    public boolean isSet(int fieldID) {
Line 18173... Line 17869...
18173
 
17869
 
18174
    @Override
17870
    @Override
18175
    public boolean equals(Object that) {
17871
    public boolean equals(Object that) {
18176
      if (that == null)
17872
      if (that == null)
18177
        return false;
17873
        return false;
18178
      if (that instanceof createOrder_args)
17874
      if (that instanceof getAlerts_args)
18179
        return this.equals((createOrder_args)that);
17875
        return this.equals((getAlerts_args)that);
18180
      return false;
17876
      return false;
18181
    }
17877
    }
18182
 
17878
 
18183
    public boolean equals(createOrder_args that) {
17879
    public boolean equals(getAlerts_args that) {
18184
      if (that == null)
17880
      if (that == null)
18185
        return false;
17881
        return false;
18186
 
17882
 
18187
      boolean this_present_order = true && this.isSetOrder();
17883
      boolean this_present_orderId = true;
18188
      boolean that_present_order = true && that.isSetOrder();
17884
      boolean that_present_orderId = true;
18189
      if (this_present_order || that_present_order) {
17885
      if (this_present_orderId || that_present_orderId) {
18190
        if (!(this_present_order && that_present_order))
17886
        if (!(this_present_orderId && that_present_orderId))
18191
          return false;
17887
          return false;
18192
        if (!this.order.equals(that.order))
17888
        if (this.orderId != that.orderId)
-
 
17889
          return false;
-
 
17890
      }
-
 
17891
 
-
 
17892
      boolean this_present_valid = true;
-
 
17893
      boolean that_present_valid = true;
-
 
17894
      if (this_present_valid || that_present_valid) {
-
 
17895
        if (!(this_present_valid && that_present_valid))
-
 
17896
          return false;
-
 
17897
        if (this.valid != that.valid)
18193
          return false;
17898
          return false;
18194
      }
17899
      }
18195
 
17900
 
18196
      return true;
17901
      return true;
18197
    }
17902
    }
Line 18199... Line 17904...
18199
    @Override
17904
    @Override
18200
    public int hashCode() {
17905
    public int hashCode() {
18201
      return 0;
17906
      return 0;
18202
    }
17907
    }
18203
 
17908
 
18204
    public int compareTo(createOrder_args other) {
17909
    public int compareTo(getAlerts_args other) {
18205
      if (!getClass().equals(other.getClass())) {
17910
      if (!getClass().equals(other.getClass())) {
18206
        return getClass().getName().compareTo(other.getClass().getName());
17911
        return getClass().getName().compareTo(other.getClass().getName());
18207
      }
17912
      }
18208
 
17913
 
18209
      int lastComparison = 0;
17914
      int lastComparison = 0;
18210
      createOrder_args typedOther = (createOrder_args)other;
17915
      getAlerts_args typedOther = (getAlerts_args)other;
18211
 
17916
 
18212
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(isSetOrder());
17917
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
18213
      if (lastComparison != 0) {
17918
      if (lastComparison != 0) {
18214
        return lastComparison;
17919
        return lastComparison;
18215
      }
17920
      }
18216
      lastComparison = TBaseHelper.compareTo(order, typedOther.order);
17921
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
17922
      if (lastComparison != 0) {
-
 
17923
        return lastComparison;
-
 
17924
      }
-
 
17925
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(isSetValid());
-
 
17926
      if (lastComparison != 0) {
-
 
17927
        return lastComparison;
-
 
17928
      }
-
 
17929
      lastComparison = TBaseHelper.compareTo(valid, typedOther.valid);
18217
      if (lastComparison != 0) {
17930
      if (lastComparison != 0) {
18218
        return lastComparison;
17931
        return lastComparison;
18219
      }
17932
      }
18220
      return 0;
17933
      return 0;
18221
    }
17934
    }
Line 18232... Line 17945...
18232
        _Fields fieldId = _Fields.findByThriftId(field.id);
17945
        _Fields fieldId = _Fields.findByThriftId(field.id);
18233
        if (fieldId == null) {
17946
        if (fieldId == null) {
18234
          TProtocolUtil.skip(iprot, field.type);
17947
          TProtocolUtil.skip(iprot, field.type);
18235
        } else {
17948
        } else {
18236
          switch (fieldId) {
17949
          switch (fieldId) {
18237
            case ORDER:
17950
            case ORDER_ID:
18238
              if (field.type == TType.STRUCT) {
17951
              if (field.type == TType.I64) {
18239
                this.order = new Order();
17952
                this.orderId = iprot.readI64();
-
 
17953
                setOrderIdIsSet(true);
-
 
17954
              } else { 
-
 
17955
                TProtocolUtil.skip(iprot, field.type);
-
 
17956
              }
-
 
17957
              break;
-
 
17958
            case VALID:
-
 
17959
              if (field.type == TType.BOOL) {
18240
                this.order.read(iprot);
17960
                this.valid = iprot.readBool();
-
 
17961
                setValidIsSet(true);
18241
              } else { 
17962
              } else { 
18242
                TProtocolUtil.skip(iprot, field.type);
17963
                TProtocolUtil.skip(iprot, field.type);
18243
              }
17964
              }
18244
              break;
17965
              break;
18245
          }
17966
          }
Line 18252... Line 17973...
18252
 
17973
 
18253
    public void write(TProtocol oprot) throws TException {
17974
    public void write(TProtocol oprot) throws TException {
18254
      validate();
17975
      validate();
18255
 
17976
 
18256
      oprot.writeStructBegin(STRUCT_DESC);
17977
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17978
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
18257
      if (this.order != null) {
17979
      oprot.writeI64(this.orderId);
-
 
17980
      oprot.writeFieldEnd();
18258
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
17981
      oprot.writeFieldBegin(VALID_FIELD_DESC);
18259
        this.order.write(oprot);
17982
      oprot.writeBool(this.valid);
18260
        oprot.writeFieldEnd();
17983
      oprot.writeFieldEnd();
18261
      }
-
 
18262
      oprot.writeFieldStop();
17984
      oprot.writeFieldStop();
18263
      oprot.writeStructEnd();
17985
      oprot.writeStructEnd();
18264
    }
17986
    }
18265
 
17987
 
18266
    @Override
17988
    @Override
18267
    public String toString() {
17989
    public String toString() {
18268
      StringBuilder sb = new StringBuilder("createOrder_args(");
17990
      StringBuilder sb = new StringBuilder("getAlerts_args(");
18269
      boolean first = true;
17991
      boolean first = true;
18270
 
17992
 
18271
      sb.append("order:");
17993
      sb.append("orderId:");
18272
      if (this.order == null) {
17994
      sb.append(this.orderId);
-
 
17995
      first = false;
18273
        sb.append("null");
17996
      if (!first) sb.append(", ");
18274
      } else {
17997
      sb.append("valid:");
18275
        sb.append(this.order);
17998
      sb.append(this.valid);
18276
      }
-
 
18277
      first = false;
17999
      first = false;
18278
      sb.append(")");
18000
      sb.append(")");
18279
      return sb.toString();
18001
      return sb.toString();
18280
    }
18002
    }
18281
 
18003
 
Line 18283... Line 18005...
18283
      // check for required fields
18005
      // check for required fields
18284
    }
18006
    }
18285
 
18007
 
18286
  }
18008
  }
18287
 
18009
 
18288
  public static class createOrder_result implements TBase<createOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<createOrder_result>   {
18010
  public static class getAlerts_result implements TBase<getAlerts_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_result>   {
18289
    private static final TStruct STRUCT_DESC = new TStruct("createOrder_result");
18011
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_result");
18290
 
18012
 
18291
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
18013
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
18292
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
18293
 
18014
 
18294
    private long success;
18015
    private List<Alert> success;
18295
    private TransactionServiceException ex;
-
 
18296
 
18016
 
18297
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18017
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18298
    public enum _Fields implements TFieldIdEnum {
18018
    public enum _Fields implements TFieldIdEnum {
18299
      SUCCESS((short)0, "success"),
18019
      SUCCESS((short)0, "success");
18300
      EX((short)1, "ex");
-
 
18301
 
18020
 
18302
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
18021
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
18303
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18022
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18304
 
18023
 
18305
      static {
18024
      static {
Line 18349... Line 18068...
18349
        return _fieldName;
18068
        return _fieldName;
18350
      }
18069
      }
18351
    }
18070
    }
18352
 
18071
 
18353
    // isset id assignments
18072
    // isset id assignments
18354
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
18355
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
18356
 
18073
 
18357
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
18074
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
18358
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
18075
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
18359
          new FieldValueMetaData(TType.I64)));
18076
          new ListMetaData(TType.LIST, 
18360
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
18361
          new FieldValueMetaData(TType.STRUCT)));
18077
              new StructMetaData(TType.STRUCT, Alert.class))));
18362
    }});
18078
    }});
18363
 
18079
 
18364
    static {
18080
    static {
18365
      FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);
18081
      FieldMetaData.addStructMetaDataMap(getAlerts_result.class, metaDataMap);
18366
    }
18082
    }
18367
 
18083
 
18368
    public createOrder_result() {
18084
    public getAlerts_result() {
18369
    }
18085
    }
18370
 
18086
 
18371
    public createOrder_result(
18087
    public getAlerts_result(
18372
      long success,
18088
      List<Alert> success)
18373
      TransactionServiceException ex)
-
 
18374
    {
18089
    {
18375
      this();
18090
      this();
18376
      this.success = success;
18091
      this.success = success;
18377
      setSuccessIsSet(true);
-
 
18378
      this.ex = ex;
-
 
18379
    }
18092
    }
18380
 
18093
 
18381
    /**
18094
    /**
18382
     * Performs a deep copy on <i>other</i>.
18095
     * Performs a deep copy on <i>other</i>.
18383
     */
18096
     */
18384
    public createOrder_result(createOrder_result other) {
18097
    public getAlerts_result(getAlerts_result other) {
18385
      __isset_bit_vector.clear();
18098
      if (other.isSetSuccess()) {
18386
      __isset_bit_vector.or(other.__isset_bit_vector);
18099
        List<Alert> __this__success = new ArrayList<Alert>();
18387
      this.success = other.success;
18100
        for (Alert other_element : other.success) {
18388
      if (other.isSetEx()) {
18101
          __this__success.add(new Alert(other_element));
-
 
18102
        }
18389
        this.ex = new TransactionServiceException(other.ex);
18103
        this.success = __this__success;
18390
      }
18104
      }
18391
    }
18105
    }
18392
 
18106
 
18393
    public createOrder_result deepCopy() {
18107
    public getAlerts_result deepCopy() {
18394
      return new createOrder_result(this);
18108
      return new getAlerts_result(this);
18395
    }
18109
    }
18396
 
18110
 
18397
    @Deprecated
18111
    @Deprecated
18398
    public createOrder_result clone() {
18112
    public getAlerts_result clone() {
18399
      return new createOrder_result(this);
18113
      return new getAlerts_result(this);
18400
    }
-
 
18401
 
-
 
18402
    public long getSuccess() {
-
 
18403
      return this.success;
-
 
18404
    }
-
 
18405
 
-
 
18406
    public createOrder_result setSuccess(long success) {
-
 
18407
      this.success = success;
-
 
18408
      setSuccessIsSet(true);
-
 
18409
      return this;
-
 
18410
    }
18114
    }
18411
 
18115
 
18412
    public void unsetSuccess() {
18116
    public int getSuccessSize() {
18413
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18117
      return (this.success == null) ? 0 : this.success.size();
18414
    }
18118
    }
18415
 
18119
 
18416
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
18417
    public boolean isSetSuccess() {
18120
    public java.util.Iterator<Alert> getSuccessIterator() {
18418
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18121
      return (this.success == null) ? null : this.success.iterator();
18419
    }
18122
    }
18420
 
18123
 
18421
    public void setSuccessIsSet(boolean value) {
18124
    public void addToSuccess(Alert elem) {
-
 
18125
      if (this.success == null) {
18422
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18126
        this.success = new ArrayList<Alert>();
-
 
18127
      }
-
 
18128
      this.success.add(elem);
18423
    }
18129
    }
18424
 
18130
 
18425
    public TransactionServiceException getEx() {
18131
    public List<Alert> getSuccess() {
18426
      return this.ex;
18132
      return this.success;
18427
    }
18133
    }
18428
 
18134
 
18429
    public createOrder_result setEx(TransactionServiceException ex) {
18135
    public getAlerts_result setSuccess(List<Alert> success) {
18430
      this.ex = ex;
18136
      this.success = success;
18431
      return this;
18137
      return this;
18432
    }
18138
    }
18433
 
18139
 
18434
    public void unsetEx() {
18140
    public void unsetSuccess() {
18435
      this.ex = null;
18141
      this.success = null;
18436
    }
18142
    }
18437
 
18143
 
18438
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
18144
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
18439
    public boolean isSetEx() {
18145
    public boolean isSetSuccess() {
18440
      return this.ex != null;
18146
      return this.success != null;
18441
    }
18147
    }
18442
 
18148
 
18443
    public void setExIsSet(boolean value) {
18149
    public void setSuccessIsSet(boolean value) {
18444
      if (!value) {
18150
      if (!value) {
18445
        this.ex = null;
18151
        this.success = null;
18446
      }
18152
      }
18447
    }
18153
    }
18448
 
18154
 
18449
    public void setFieldValue(_Fields field, Object value) {
18155
    public void setFieldValue(_Fields field, Object value) {
18450
      switch (field) {
18156
      switch (field) {
18451
      case SUCCESS:
18157
      case SUCCESS:
18452
        if (value == null) {
18158
        if (value == null) {
18453
          unsetSuccess();
18159
          unsetSuccess();
18454
        } else {
18160
        } else {
18455
          setSuccess((Long)value);
18161
          setSuccess((List<Alert>)value);
18456
        }
-
 
18457
        break;
-
 
18458
 
-
 
18459
      case EX:
-
 
18460
        if (value == null) {
-
 
18461
          unsetEx();
-
 
18462
        } else {
-
 
18463
          setEx((TransactionServiceException)value);
-
 
18464
        }
18162
        }
18465
        break;
18163
        break;
18466
 
18164
 
18467
      }
18165
      }
18468
    }
18166
    }
Line 18472... Line 18170...
18472
    }
18170
    }
18473
 
18171
 
18474
    public Object getFieldValue(_Fields field) {
18172
    public Object getFieldValue(_Fields field) {
18475
      switch (field) {
18173
      switch (field) {
18476
      case SUCCESS:
18174
      case SUCCESS:
18477
        return new Long(getSuccess());
-
 
18478
 
-
 
18479
      case EX:
-
 
18480
        return getEx();
18175
        return getSuccess();
18481
 
18176
 
18482
      }
18177
      }
18483
      throw new IllegalStateException();
18178
      throw new IllegalStateException();
18484
    }
18179
    }
18485
 
18180
 
Line 18490... Line 18185...
18490
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
18185
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
18491
    public boolean isSet(_Fields field) {
18186
    public boolean isSet(_Fields field) {
18492
      switch (field) {
18187
      switch (field) {
18493
      case SUCCESS:
18188
      case SUCCESS:
18494
        return isSetSuccess();
18189
        return isSetSuccess();
18495
      case EX:
-
 
18496
        return isSetEx();
-
 
18497
      }
18190
      }
18498
      throw new IllegalStateException();
18191
      throw new IllegalStateException();
18499
    }
18192
    }
18500
 
18193
 
18501
    public boolean isSet(int fieldID) {
18194
    public boolean isSet(int fieldID) {
Line 18504... Line 18197...
18504
 
18197
 
18505
    @Override
18198
    @Override
18506
    public boolean equals(Object that) {
18199
    public boolean equals(Object that) {
18507
      if (that == null)
18200
      if (that == null)
18508
        return false;
18201
        return false;
18509
      if (that instanceof createOrder_result)
18202
      if (that instanceof getAlerts_result)
18510
        return this.equals((createOrder_result)that);
18203
        return this.equals((getAlerts_result)that);
18511
      return false;
18204
      return false;
18512
    }
18205
    }
18513
 
18206
 
18514
    public boolean equals(createOrder_result that) {
18207
    public boolean equals(getAlerts_result that) {
18515
      if (that == null)
18208
      if (that == null)
18516
        return false;
18209
        return false;
18517
 
18210
 
18518
      boolean this_present_success = true;
18211
      boolean this_present_success = true && this.isSetSuccess();
18519
      boolean that_present_success = true;
18212
      boolean that_present_success = true && that.isSetSuccess();
18520
      if (this_present_success || that_present_success) {
18213
      if (this_present_success || that_present_success) {
18521
        if (!(this_present_success && that_present_success))
18214
        if (!(this_present_success && that_present_success))
18522
          return false;
18215
          return false;
18523
        if (this.success != that.success)
18216
        if (!this.success.equals(that.success))
18524
          return false;
-
 
18525
      }
-
 
18526
 
-
 
18527
      boolean this_present_ex = true && this.isSetEx();
-
 
18528
      boolean that_present_ex = true && that.isSetEx();
-
 
18529
      if (this_present_ex || that_present_ex) {
-
 
18530
        if (!(this_present_ex && that_present_ex))
-
 
18531
          return false;
-
 
18532
        if (!this.ex.equals(that.ex))
-
 
18533
          return false;
18217
          return false;
18534
      }
18218
      }
18535
 
18219
 
18536
      return true;
18220
      return true;
18537
    }
18221
    }
Line 18539... Line 18223...
18539
    @Override
18223
    @Override
18540
    public int hashCode() {
18224
    public int hashCode() {
18541
      return 0;
18225
      return 0;
18542
    }
18226
    }
18543
 
18227
 
18544
    public int compareTo(createOrder_result other) {
18228
    public int compareTo(getAlerts_result other) {
18545
      if (!getClass().equals(other.getClass())) {
18229
      if (!getClass().equals(other.getClass())) {
18546
        return getClass().getName().compareTo(other.getClass().getName());
18230
        return getClass().getName().compareTo(other.getClass().getName());
18547
      }
18231
      }
18548
 
18232
 
18549
      int lastComparison = 0;
18233
      int lastComparison = 0;
18550
      createOrder_result typedOther = (createOrder_result)other;
18234
      getAlerts_result typedOther = (getAlerts_result)other;
18551
 
18235
 
18552
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
18236
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
18553
      if (lastComparison != 0) {
18237
      if (lastComparison != 0) {
18554
        return lastComparison;
18238
        return lastComparison;
18555
      }
18239
      }
18556
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
18240
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
18557
      if (lastComparison != 0) {
18241
      if (lastComparison != 0) {
18558
        return lastComparison;
18242
        return lastComparison;
18559
      }
18243
      }
18560
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
18561
      if (lastComparison != 0) {
-
 
18562
        return lastComparison;
-
 
18563
      }
-
 
18564
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
18565
      if (lastComparison != 0) {
-
 
18566
        return lastComparison;
-
 
18567
      }
-
 
18568
      return 0;
18244
      return 0;
18569
    }
18245
    }
18570
 
18246
 
18571
    public void read(TProtocol iprot) throws TException {
18247
    public void read(TProtocol iprot) throws TException {
18572
      TField field;
18248
      TField field;
Line 18581... Line 18257...
18581
        if (fieldId == null) {
18257
        if (fieldId == null) {
18582
          TProtocolUtil.skip(iprot, field.type);
18258
          TProtocolUtil.skip(iprot, field.type);
18583
        } else {
18259
        } else {
18584
          switch (fieldId) {
18260
          switch (fieldId) {
18585
            case SUCCESS:
18261
            case SUCCESS:
18586
              if (field.type == TType.I64) {
18262
              if (field.type == TType.LIST) {
18587
                this.success = iprot.readI64();
18263
                {
18588
                setSuccessIsSet(true);
18264
                  TList _list48 = iprot.readListBegin();
18589
              } else { 
18265
                  this.success = new ArrayList<Alert>(_list48.size);
18590
                TProtocolUtil.skip(iprot, field.type);
18266
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
18591
              }
18267
                  {
18592
              break;
18268
                    Alert _elem50;
18593
            case EX:
18269
                    _elem50 = new Alert();
18594
              if (field.type == TType.STRUCT) {
18270
                    _elem50.read(iprot);
18595
                this.ex = new TransactionServiceException();
18271
                    this.success.add(_elem50);
-
 
18272
                  }
18596
                this.ex.read(iprot);
18273
                  iprot.readListEnd();
-
 
18274
                }
18597
              } else { 
18275
              } else { 
18598
                TProtocolUtil.skip(iprot, field.type);
18276
                TProtocolUtil.skip(iprot, field.type);
18599
              }
18277
              }
18600
              break;
18278
              break;
18601
          }
18279
          }
Line 18609... Line 18287...
18609
    public void write(TProtocol oprot) throws TException {
18287
    public void write(TProtocol oprot) throws TException {
18610
      oprot.writeStructBegin(STRUCT_DESC);
18288
      oprot.writeStructBegin(STRUCT_DESC);
18611
 
18289
 
18612
      if (this.isSetSuccess()) {
18290
      if (this.isSetSuccess()) {
18613
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18291
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
18292
        {
-
 
18293
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18614
        oprot.writeI64(this.success);
18294
          for (Alert _iter51 : this.success)
-
 
18295
          {
18615
        oprot.writeFieldEnd();
18296
            _iter51.write(oprot);
18616
      } else if (this.isSetEx()) {
18297
          }
18617
        oprot.writeFieldBegin(EX_FIELD_DESC);
18298
          oprot.writeListEnd();
18618
        this.ex.write(oprot);
18299
        }
18619
        oprot.writeFieldEnd();
18300
        oprot.writeFieldEnd();
18620
      }
18301
      }
18621
      oprot.writeFieldStop();
18302
      oprot.writeFieldStop();
18622
      oprot.writeStructEnd();
18303
      oprot.writeStructEnd();
18623
    }
18304
    }
18624
 
18305
 
18625
    @Override
18306
    @Override
18626
    public String toString() {
18307
    public String toString() {
18627
      StringBuilder sb = new StringBuilder("createOrder_result(");
18308
      StringBuilder sb = new StringBuilder("getAlerts_result(");
18628
      boolean first = true;
18309
      boolean first = true;
18629
 
18310
 
18630
      sb.append("success:");
18311
      sb.append("success:");
18631
      sb.append(this.success);
-
 
18632
      first = false;
-
 
18633
      if (!first) sb.append(", ");
-
 
18634
      sb.append("ex:");
-
 
18635
      if (this.ex == null) {
18312
      if (this.success == null) {
18636
        sb.append("null");
18313
        sb.append("null");
18637
      } else {
18314
      } else {
18638
        sb.append(this.ex);
18315
        sb.append(this.success);
18639
      }
18316
      }
18640
      first = false;
18317
      first = false;
18641
      sb.append(")");
18318
      sb.append(")");
18642
      return sb.toString();
18319
      return sb.toString();
18643
    }
18320
    }
Line 18646... Line 18323...
18646
      // check for required fields
18323
      // check for required fields
18647
    }
18324
    }
18648
 
18325
 
18649
  }
18326
  }
18650
 
18327
 
18651
  public static class getOrder_args implements TBase<getOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrder_args>   {
18328
  public static class setAlert_args implements TBase<setAlert_args._Fields>, java.io.Serializable, Cloneable, Comparable<setAlert_args>   {
18652
    private static final TStruct STRUCT_DESC = new TStruct("getOrder_args");
18329
    private static final TStruct STRUCT_DESC = new TStruct("setAlert_args");
18653
 
18330
 
-
 
18331
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
18332
    private static final TField UNSET_FIELD_DESC = new TField("unset", TType.BOOL, (short)2);
18654
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
18333
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I64, (short)3);
-
 
18334
    private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)4);
18655
 
18335
 
-
 
18336
    private long orderId;
-
 
18337
    private boolean unset;
18656
    private long id;
18338
    private long type;
-
 
18339
    private String comment;
18657
 
18340
 
18658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18659
    public enum _Fields implements TFieldIdEnum {
18342
    public enum _Fields implements TFieldIdEnum {
-
 
18343
      ORDER_ID((short)1, "orderId"),
-
 
18344
      UNSET((short)2, "unset"),
18660
      ID((short)1, "id");
18345
      TYPE((short)3, "type"),
-
 
18346
      COMMENT((short)4, "comment");
18661
 
18347
 
18662
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
18348
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
18663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18664
 
18350
 
18665
      static {
18351
      static {
Line 18709... Line 18395...
18709
        return _fieldName;
18395
        return _fieldName;
18710
      }
18396
      }
18711
    }
18397
    }
18712
 
18398
 
18713
    // isset id assignments
18399
    // isset id assignments
18714
    private static final int __ID_ISSET_ID = 0;
18400
    private static final int __ORDERID_ISSET_ID = 0;
-
 
18401
    private static final int __UNSET_ISSET_ID = 1;
-
 
18402
    private static final int __TYPE_ISSET_ID = 2;
18715
    private BitSet __isset_bit_vector = new BitSet(1);
18403
    private BitSet __isset_bit_vector = new BitSet(3);
18716
 
18404
 
18717
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
18405
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
18406
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
18407
          new FieldValueMetaData(TType.I64)));
-
 
18408
      put(_Fields.UNSET, new FieldMetaData("unset", TFieldRequirementType.DEFAULT, 
-
 
18409
          new FieldValueMetaData(TType.BOOL)));
18718
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
18410
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
18719
          new FieldValueMetaData(TType.I64)));
18411
          new FieldValueMetaData(TType.I64)));
-
 
18412
      put(_Fields.COMMENT, new FieldMetaData("comment", TFieldRequirementType.DEFAULT, 
-
 
18413
          new FieldValueMetaData(TType.STRING)));
18720
    }});
18414
    }});
18721
 
18415
 
18722
    static {
18416
    static {
18723
      FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);
18417
      FieldMetaData.addStructMetaDataMap(setAlert_args.class, metaDataMap);
18724
    }
18418
    }
18725
 
18419
 
18726
    public getOrder_args() {
18420
    public setAlert_args() {
18727
    }
18421
    }
18728
 
18422
 
18729
    public getOrder_args(
18423
    public setAlert_args(
-
 
18424
      long orderId,
-
 
18425
      boolean unset,
18730
      long id)
18426
      long type,
-
 
18427
      String comment)
18731
    {
18428
    {
18732
      this();
18429
      this();
-
 
18430
      this.orderId = orderId;
-
 
18431
      setOrderIdIsSet(true);
-
 
18432
      this.unset = unset;
-
 
18433
      setUnsetIsSet(true);
18733
      this.id = id;
18434
      this.type = type;
18734
      setIdIsSet(true);
18435
      setTypeIsSet(true);
-
 
18436
      this.comment = comment;
18735
    }
18437
    }
18736
 
18438
 
18737
    /**
18439
    /**
18738
     * Performs a deep copy on <i>other</i>.
18440
     * Performs a deep copy on <i>other</i>.
18739
     */
18441
     */
18740
    public getOrder_args(getOrder_args other) {
18442
    public setAlert_args(setAlert_args other) {
18741
      __isset_bit_vector.clear();
18443
      __isset_bit_vector.clear();
18742
      __isset_bit_vector.or(other.__isset_bit_vector);
18444
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
18445
      this.orderId = other.orderId;
-
 
18446
      this.unset = other.unset;
18743
      this.id = other.id;
18447
      this.type = other.type;
-
 
18448
      if (other.isSetComment()) {
-
 
18449
        this.comment = other.comment;
-
 
18450
      }
18744
    }
18451
    }
18745
 
18452
 
18746
    public getOrder_args deepCopy() {
18453
    public setAlert_args deepCopy() {
18747
      return new getOrder_args(this);
18454
      return new setAlert_args(this);
18748
    }
18455
    }
18749
 
18456
 
18750
    @Deprecated
18457
    @Deprecated
18751
    public getOrder_args clone() {
18458
    public setAlert_args clone() {
18752
      return new getOrder_args(this);
18459
      return new setAlert_args(this);
18753
    }
18460
    }
18754
 
18461
 
18755
    public long getId() {
18462
    public long getOrderId() {
18756
      return this.id;
18463
      return this.orderId;
18757
    }
18464
    }
18758
 
18465
 
18759
    public getOrder_args setId(long id) {
18466
    public setAlert_args setOrderId(long orderId) {
18760
      this.id = id;
18467
      this.orderId = orderId;
18761
      setIdIsSet(true);
18468
      setOrderIdIsSet(true);
18762
      return this;
18469
      return this;
18763
    }
18470
    }
18764
 
18471
 
18765
    public void unsetId() {
18472
    public void unsetOrderId() {
18766
      __isset_bit_vector.clear(__ID_ISSET_ID);
18473
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
18767
    }
18474
    }
18768
 
18475
 
18769
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
18476
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
18770
    public boolean isSetId() {
18477
    public boolean isSetOrderId() {
18771
      return __isset_bit_vector.get(__ID_ISSET_ID);
18478
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
18772
    }
18479
    }
18773
 
18480
 
-
 
18481
    public void setOrderIdIsSet(boolean value) {
-
 
18482
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
18483
    }
-
 
18484
 
-
 
18485
    public boolean isUnset() {
-
 
18486
      return this.unset;
-
 
18487
    }
-
 
18488
 
-
 
18489
    public setAlert_args setUnset(boolean unset) {
-
 
18490
      this.unset = unset;
-
 
18491
      setUnsetIsSet(true);
-
 
18492
      return this;
-
 
18493
    }
-
 
18494
 
-
 
18495
    public void unsetUnset() {
-
 
18496
      __isset_bit_vector.clear(__UNSET_ISSET_ID);
-
 
18497
    }
-
 
18498
 
-
 
18499
    /** Returns true if field unset is set (has been asigned a value) and false otherwise */
-
 
18500
    public boolean isSetUnset() {
-
 
18501
      return __isset_bit_vector.get(__UNSET_ISSET_ID);
-
 
18502
    }
-
 
18503
 
-
 
18504
    public void setUnsetIsSet(boolean value) {
-
 
18505
      __isset_bit_vector.set(__UNSET_ISSET_ID, value);
-
 
18506
    }
-
 
18507
 
-
 
18508
    public long getType() {
-
 
18509
      return this.type;
-
 
18510
    }
-
 
18511
 
-
 
18512
    public setAlert_args setType(long type) {
-
 
18513
      this.type = type;
-
 
18514
      setTypeIsSet(true);
-
 
18515
      return this;
-
 
18516
    }
-
 
18517
 
-
 
18518
    public void unsetType() {
-
 
18519
      __isset_bit_vector.clear(__TYPE_ISSET_ID);
-
 
18520
    }
-
 
18521
 
-
 
18522
    /** Returns true if field type is set (has been asigned a value) and false otherwise */
-
 
18523
    public boolean isSetType() {
-
 
18524
      return __isset_bit_vector.get(__TYPE_ISSET_ID);
-
 
18525
    }
-
 
18526
 
18774
    public void setIdIsSet(boolean value) {
18527
    public void setTypeIsSet(boolean value) {
18775
      __isset_bit_vector.set(__ID_ISSET_ID, value);
18528
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
-
 
18529
    }
-
 
18530
 
-
 
18531
    public String getComment() {
-
 
18532
      return this.comment;
-
 
18533
    }
-
 
18534
 
-
 
18535
    public setAlert_args setComment(String comment) {
-
 
18536
      this.comment = comment;
-
 
18537
      return this;
-
 
18538
    }
-
 
18539
 
-
 
18540
    public void unsetComment() {
-
 
18541
      this.comment = null;
-
 
18542
    }
-
 
18543
 
-
 
18544
    /** Returns true if field comment is set (has been asigned a value) and false otherwise */
-
 
18545
    public boolean isSetComment() {
-
 
18546
      return this.comment != null;
-
 
18547
    }
-
 
18548
 
-
 
18549
    public void setCommentIsSet(boolean value) {
-
 
18550
      if (!value) {
-
 
18551
        this.comment = null;
-
 
18552
      }
18776
    }
18553
    }
18777
 
18554
 
18778
    public void setFieldValue(_Fields field, Object value) {
18555
    public void setFieldValue(_Fields field, Object value) {
18779
      switch (field) {
18556
      switch (field) {
18780
      case ID:
18557
      case ORDER_ID:
18781
        if (value == null) {
18558
        if (value == null) {
18782
          unsetId();
18559
          unsetOrderId();
18783
        } else {
18560
        } else {
-
 
18561
          setOrderId((Long)value);
-
 
18562
        }
-
 
18563
        break;
-
 
18564
 
-
 
18565
      case UNSET:
-
 
18566
        if (value == null) {
-
 
18567
          unsetUnset();
-
 
18568
        } else {
-
 
18569
          setUnset((Boolean)value);
-
 
18570
        }
-
 
18571
        break;
-
 
18572
 
-
 
18573
      case TYPE:
-
 
18574
        if (value == null) {
-
 
18575
          unsetType();
-
 
18576
        } else {
18784
          setId((Long)value);
18577
          setType((Long)value);
-
 
18578
        }
-
 
18579
        break;
-
 
18580
 
-
 
18581
      case COMMENT:
-
 
18582
        if (value == null) {
-
 
18583
          unsetComment();
-
 
18584
        } else {
-
 
18585
          setComment((String)value);
18785
        }
18586
        }
18786
        break;
18587
        break;
18787
 
18588
 
18788
      }
18589
      }
18789
    }
18590
    }
Line 18792... Line 18593...
18792
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
18593
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
18793
    }
18594
    }
18794
 
18595
 
18795
    public Object getFieldValue(_Fields field) {
18596
    public Object getFieldValue(_Fields field) {
18796
      switch (field) {
18597
      switch (field) {
-
 
18598
      case ORDER_ID:
-
 
18599
        return new Long(getOrderId());
-
 
18600
 
-
 
18601
      case UNSET:
-
 
18602
        return new Boolean(isUnset());
-
 
18603
 
18797
      case ID:
18604
      case TYPE:
18798
        return new Long(getId());
18605
        return new Long(getType());
-
 
18606
 
-
 
18607
      case COMMENT:
-
 
18608
        return getComment();
18799
 
18609
 
18800
      }
18610
      }
18801
      throw new IllegalStateException();
18611
      throw new IllegalStateException();
18802
    }
18612
    }
18803
 
18613
 
Line 18806... Line 18616...
18806
    }
18616
    }
18807
 
18617
 
18808
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
18618
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
18809
    public boolean isSet(_Fields field) {
18619
    public boolean isSet(_Fields field) {
18810
      switch (field) {
18620
      switch (field) {
-
 
18621
      case ORDER_ID:
-
 
18622
        return isSetOrderId();
-
 
18623
      case UNSET:
-
 
18624
        return isSetUnset();
18811
      case ID:
18625
      case TYPE:
18812
        return isSetId();
18626
        return isSetType();
-
 
18627
      case COMMENT:
-
 
18628
        return isSetComment();
18813
      }
18629
      }
18814
      throw new IllegalStateException();
18630
      throw new IllegalStateException();
18815
    }
18631
    }
18816
 
18632
 
18817
    public boolean isSet(int fieldID) {
18633
    public boolean isSet(int fieldID) {
Line 18820... Line 18636...
18820
 
18636
 
18821
    @Override
18637
    @Override
18822
    public boolean equals(Object that) {
18638
    public boolean equals(Object that) {
18823
      if (that == null)
18639
      if (that == null)
18824
        return false;
18640
        return false;
18825
      if (that instanceof getOrder_args)
18641
      if (that instanceof setAlert_args)
18826
        return this.equals((getOrder_args)that);
18642
        return this.equals((setAlert_args)that);
18827
      return false;
18643
      return false;
18828
    }
18644
    }
18829
 
18645
 
18830
    public boolean equals(getOrder_args that) {
18646
    public boolean equals(setAlert_args that) {
18831
      if (that == null)
18647
      if (that == null)
18832
        return false;
18648
        return false;
18833
 
18649
 
18834
      boolean this_present_id = true;
18650
      boolean this_present_orderId = true;
18835
      boolean that_present_id = true;
18651
      boolean that_present_orderId = true;
18836
      if (this_present_id || that_present_id) {
18652
      if (this_present_orderId || that_present_orderId) {
18837
        if (!(this_present_id && that_present_id))
18653
        if (!(this_present_orderId && that_present_orderId))
18838
          return false;
18654
          return false;
-
 
18655
        if (this.orderId != that.orderId)
-
 
18656
          return false;
-
 
18657
      }
-
 
18658
 
-
 
18659
      boolean this_present_unset = true;
-
 
18660
      boolean that_present_unset = true;
-
 
18661
      if (this_present_unset || that_present_unset) {
-
 
18662
        if (!(this_present_unset && that_present_unset))
-
 
18663
          return false;
-
 
18664
        if (this.unset != that.unset)
-
 
18665
          return false;
-
 
18666
      }
-
 
18667
 
-
 
18668
      boolean this_present_type = true;
-
 
18669
      boolean that_present_type = true;
-
 
18670
      if (this_present_type || that_present_type) {
-
 
18671
        if (!(this_present_type && that_present_type))
-
 
18672
          return false;
18839
        if (this.id != that.id)
18673
        if (this.type != that.type)
-
 
18674
          return false;
-
 
18675
      }
-
 
18676
 
-
 
18677
      boolean this_present_comment = true && this.isSetComment();
-
 
18678
      boolean that_present_comment = true && that.isSetComment();
-
 
18679
      if (this_present_comment || that_present_comment) {
-
 
18680
        if (!(this_present_comment && that_present_comment))
-
 
18681
          return false;
-
 
18682
        if (!this.comment.equals(that.comment))
18840
          return false;
18683
          return false;
18841
      }
18684
      }
18842
 
18685
 
18843
      return true;
18686
      return true;
18844
    }
18687
    }
Line 18846... Line 18689...
18846
    @Override
18689
    @Override
18847
    public int hashCode() {
18690
    public int hashCode() {
18848
      return 0;
18691
      return 0;
18849
    }
18692
    }
18850
 
18693
 
18851
    public int compareTo(getOrder_args other) {
18694
    public int compareTo(setAlert_args other) {
18852
      if (!getClass().equals(other.getClass())) {
18695
      if (!getClass().equals(other.getClass())) {
18853
        return getClass().getName().compareTo(other.getClass().getName());
18696
        return getClass().getName().compareTo(other.getClass().getName());
18854
      }
18697
      }
18855
 
18698
 
18856
      int lastComparison = 0;
18699
      int lastComparison = 0;
18857
      getOrder_args typedOther = (getOrder_args)other;
18700
      setAlert_args typedOther = (setAlert_args)other;
18858
 
18701
 
18859
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
18702
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
18860
      if (lastComparison != 0) {
18703
      if (lastComparison != 0) {
18861
        return lastComparison;
18704
        return lastComparison;
18862
      }
18705
      }
-
 
18706
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
18707
      if (lastComparison != 0) {
-
 
18708
        return lastComparison;
-
 
18709
      }
-
 
18710
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(isSetUnset());
-
 
18711
      if (lastComparison != 0) {
-
 
18712
        return lastComparison;
-
 
18713
      }
-
 
18714
      lastComparison = TBaseHelper.compareTo(unset, typedOther.unset);
-
 
18715
      if (lastComparison != 0) {
-
 
18716
        return lastComparison;
-
 
18717
      }
-
 
18718
      lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
-
 
18719
      if (lastComparison != 0) {
-
 
18720
        return lastComparison;
-
 
18721
      }
18863
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
18722
      lastComparison = TBaseHelper.compareTo(type, typedOther.type);
-
 
18723
      if (lastComparison != 0) {
-
 
18724
        return lastComparison;
-
 
18725
      }
-
 
18726
      lastComparison = Boolean.valueOf(isSetComment()).compareTo(isSetComment());
-
 
18727
      if (lastComparison != 0) {
-
 
18728
        return lastComparison;
-
 
18729
      }
-
 
18730
      lastComparison = TBaseHelper.compareTo(comment, typedOther.comment);
18864
      if (lastComparison != 0) {
18731
      if (lastComparison != 0) {
18865
        return lastComparison;
18732
        return lastComparison;
18866
      }
18733
      }
18867
      return 0;
18734
      return 0;
18868
    }
18735
    }
Line 18879... Line 18746...
18879
        _Fields fieldId = _Fields.findByThriftId(field.id);
18746
        _Fields fieldId = _Fields.findByThriftId(field.id);
18880
        if (fieldId == null) {
18747
        if (fieldId == null) {
18881
          TProtocolUtil.skip(iprot, field.type);
18748
          TProtocolUtil.skip(iprot, field.type);
18882
        } else {
18749
        } else {
18883
          switch (fieldId) {
18750
          switch (fieldId) {
18884
            case ID:
18751
            case ORDER_ID:
18885
              if (field.type == TType.I64) {
18752
              if (field.type == TType.I64) {
-
 
18753
                this.orderId = iprot.readI64();
-
 
18754
                setOrderIdIsSet(true);
-
 
18755
              } else { 
-
 
18756
                TProtocolUtil.skip(iprot, field.type);
-
 
18757
              }
-
 
18758
              break;
-
 
18759
            case UNSET:
-
 
18760
              if (field.type == TType.BOOL) {
-
 
18761
                this.unset = iprot.readBool();
-
 
18762
                setUnsetIsSet(true);
-
 
18763
              } else { 
-
 
18764
                TProtocolUtil.skip(iprot, field.type);
-
 
18765
              }
-
 
18766
              break;
-
 
18767
            case TYPE:
-
 
18768
              if (field.type == TType.I64) {
18886
                this.id = iprot.readI64();
18769
                this.type = iprot.readI64();
18887
                setIdIsSet(true);
18770
                setTypeIsSet(true);
-
 
18771
              } else { 
-
 
18772
                TProtocolUtil.skip(iprot, field.type);
-
 
18773
              }
-
 
18774
              break;
-
 
18775
            case COMMENT:
-
 
18776
              if (field.type == TType.STRING) {
-
 
18777
                this.comment = iprot.readString();
18888
              } else { 
18778
              } else { 
18889
                TProtocolUtil.skip(iprot, field.type);
18779
                TProtocolUtil.skip(iprot, field.type);
18890
              }
18780
              }
18891
              break;
18781
              break;
18892
          }
18782
          }
Line 18899... Line 18789...
18899
 
18789
 
18900
    public void write(TProtocol oprot) throws TException {
18790
    public void write(TProtocol oprot) throws TException {
18901
      validate();
18791
      validate();
18902
 
18792
 
18903
      oprot.writeStructBegin(STRUCT_DESC);
18793
      oprot.writeStructBegin(STRUCT_DESC);
18904
      oprot.writeFieldBegin(ID_FIELD_DESC);
18794
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
18905
      oprot.writeI64(this.id);
18795
      oprot.writeI64(this.orderId);
18906
      oprot.writeFieldEnd();
18796
      oprot.writeFieldEnd();
-
 
18797
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
-
 
18798
      oprot.writeBool(this.unset);
-
 
18799
      oprot.writeFieldEnd();
-
 
18800
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
18801
      oprot.writeI64(this.type);
-
 
18802
      oprot.writeFieldEnd();
-
 
18803
      if (this.comment != null) {
-
 
18804
        oprot.writeFieldBegin(COMMENT_FIELD_DESC);
-
 
18805
        oprot.writeString(this.comment);
-
 
18806
        oprot.writeFieldEnd();
-
 
18807
      }
18907
      oprot.writeFieldStop();
18808
      oprot.writeFieldStop();
18908
      oprot.writeStructEnd();
18809
      oprot.writeStructEnd();
18909
    }
18810
    }
18910
 
18811
 
18911
    @Override
18812
    @Override
18912
    public String toString() {
18813
    public String toString() {
18913
      StringBuilder sb = new StringBuilder("getOrder_args(");
18814
      StringBuilder sb = new StringBuilder("setAlert_args(");
18914
      boolean first = true;
18815
      boolean first = true;
18915
 
18816
 
-
 
18817
      sb.append("orderId:");
-
 
18818
      sb.append(this.orderId);
-
 
18819
      first = false;
-
 
18820
      if (!first) sb.append(", ");
-
 
18821
      sb.append("unset:");
-
 
18822
      sb.append(this.unset);
-
 
18823
      first = false;
-
 
18824
      if (!first) sb.append(", ");
18916
      sb.append("id:");
18825
      sb.append("type:");
18917
      sb.append(this.id);
18826
      sb.append(this.type);
-
 
18827
      first = false;
-
 
18828
      if (!first) sb.append(", ");
-
 
18829
      sb.append("comment:");
-
 
18830
      if (this.comment == null) {
-
 
18831
        sb.append("null");
-
 
18832
      } else {
-
 
18833
        sb.append(this.comment);
-
 
18834
      }
18918
      first = false;
18835
      first = false;
18919
      sb.append(")");
18836
      sb.append(")");
18920
      return sb.toString();
18837
      return sb.toString();
18921
    }
18838
    }
18922
 
18839
 
Line 18924... Line 18841...
18924
      // check for required fields
18841
      // check for required fields
18925
    }
18842
    }
18926
 
18843
 
18927
  }
18844
  }
18928
 
18845
 
18929
  public static class getOrder_result implements TBase<getOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrder_result>   {
18846
  public static class setAlert_result implements TBase<setAlert_result._Fields>, java.io.Serializable, Cloneable, Comparable<setAlert_result>   {
18930
    private static final TStruct STRUCT_DESC = new TStruct("getOrder_result");
18847
    private static final TStruct STRUCT_DESC = new TStruct("setAlert_result");
18931
 
18848
 
18932
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
18933
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
18934
 
18849
 
18935
    private Order success;
-
 
18936
    private TransactionServiceException ex;
-
 
18937
 
18850
 
18938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18851
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18939
    public enum _Fields implements TFieldIdEnum {
18852
    public enum _Fields implements TFieldIdEnum {
-
 
18853
;
-
 
18854
 
-
 
18855
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
18856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18857
 
-
 
18858
      static {
-
 
18859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18860
          byId.put((int)field._thriftId, field);
-
 
18861
          byName.put(field.getFieldName(), field);
-
 
18862
        }
-
 
18863
      }
-
 
18864
 
-
 
18865
      /**
-
 
18866
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18867
       */
-
 
18868
      public static _Fields findByThriftId(int fieldId) {
-
 
18869
        return byId.get(fieldId);
-
 
18870
      }
-
 
18871
 
-
 
18872
      /**
-
 
18873
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18874
       * if it is not found.
-
 
18875
       */
-
 
18876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18877
        _Fields fields = findByThriftId(fieldId);
-
 
18878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18879
        return fields;
-
 
18880
      }
-
 
18881
 
-
 
18882
      /**
-
 
18883
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18884
       */
-
 
18885
      public static _Fields findByName(String name) {
-
 
18886
        return byName.get(name);
-
 
18887
      }
-
 
18888
 
-
 
18889
      private final short _thriftId;
-
 
18890
      private final String _fieldName;
-
 
18891
 
-
 
18892
      _Fields(short thriftId, String fieldName) {
-
 
18893
        _thriftId = thriftId;
-
 
18894
        _fieldName = fieldName;
-
 
18895
      }
-
 
18896
 
-
 
18897
      public short getThriftFieldId() {
-
 
18898
        return _thriftId;
-
 
18899
      }
-
 
18900
 
-
 
18901
      public String getFieldName() {
-
 
18902
        return _fieldName;
-
 
18903
      }
-
 
18904
    }
-
 
18905
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
18906
    }});
-
 
18907
 
-
 
18908
    static {
-
 
18909
      FieldMetaData.addStructMetaDataMap(setAlert_result.class, metaDataMap);
-
 
18910
    }
-
 
18911
 
-
 
18912
    public setAlert_result() {
-
 
18913
    }
-
 
18914
 
-
 
18915
    /**
-
 
18916
     * Performs a deep copy on <i>other</i>.
-
 
18917
     */
-
 
18918
    public setAlert_result(setAlert_result other) {
-
 
18919
    }
-
 
18920
 
-
 
18921
    public setAlert_result deepCopy() {
-
 
18922
      return new setAlert_result(this);
-
 
18923
    }
-
 
18924
 
-
 
18925
    @Deprecated
-
 
18926
    public setAlert_result clone() {
-
 
18927
      return new setAlert_result(this);
-
 
18928
    }
-
 
18929
 
-
 
18930
    public void setFieldValue(_Fields field, Object value) {
-
 
18931
      switch (field) {
-
 
18932
      }
-
 
18933
    }
-
 
18934
 
-
 
18935
    public void setFieldValue(int fieldID, Object value) {
-
 
18936
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
18937
    }
-
 
18938
 
-
 
18939
    public Object getFieldValue(_Fields field) {
-
 
18940
      switch (field) {
-
 
18941
      }
-
 
18942
      throw new IllegalStateException();
-
 
18943
    }
-
 
18944
 
-
 
18945
    public Object getFieldValue(int fieldId) {
-
 
18946
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
18947
    }
-
 
18948
 
-
 
18949
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
18950
    public boolean isSet(_Fields field) {
-
 
18951
      switch (field) {
-
 
18952
      }
-
 
18953
      throw new IllegalStateException();
-
 
18954
    }
-
 
18955
 
-
 
18956
    public boolean isSet(int fieldID) {
-
 
18957
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
18958
    }
-
 
18959
 
-
 
18960
    @Override
-
 
18961
    public boolean equals(Object that) {
-
 
18962
      if (that == null)
-
 
18963
        return false;
-
 
18964
      if (that instanceof setAlert_result)
-
 
18965
        return this.equals((setAlert_result)that);
-
 
18966
      return false;
-
 
18967
    }
-
 
18968
 
-
 
18969
    public boolean equals(setAlert_result that) {
-
 
18970
      if (that == null)
-
 
18971
        return false;
-
 
18972
 
-
 
18973
      return true;
-
 
18974
    }
-
 
18975
 
-
 
18976
    @Override
-
 
18977
    public int hashCode() {
-
 
18978
      return 0;
-
 
18979
    }
-
 
18980
 
-
 
18981
    public int compareTo(setAlert_result other) {
-
 
18982
      if (!getClass().equals(other.getClass())) {
-
 
18983
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18984
      }
-
 
18985
 
-
 
18986
      int lastComparison = 0;
-
 
18987
      setAlert_result typedOther = (setAlert_result)other;
-
 
18988
 
-
 
18989
      return 0;
-
 
18990
    }
-
 
18991
 
-
 
18992
    public void read(TProtocol iprot) throws TException {
-
 
18993
      TField field;
-
 
18994
      iprot.readStructBegin();
-
 
18995
      while (true)
-
 
18996
      {
-
 
18997
        field = iprot.readFieldBegin();
-
 
18998
        if (field.type == TType.STOP) { 
-
 
18999
          break;
-
 
19000
        }
-
 
19001
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
19002
        if (fieldId == null) {
-
 
19003
          TProtocolUtil.skip(iprot, field.type);
-
 
19004
        } else {
-
 
19005
          switch (fieldId) {
-
 
19006
          }
-
 
19007
          iprot.readFieldEnd();
-
 
19008
        }
-
 
19009
      }
-
 
19010
      iprot.readStructEnd();
-
 
19011
      validate();
-
 
19012
    }
-
 
19013
 
-
 
19014
    public void write(TProtocol oprot) throws TException {
-
 
19015
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19016
 
-
 
19017
      oprot.writeFieldStop();
-
 
19018
      oprot.writeStructEnd();
-
 
19019
    }
-
 
19020
 
-
 
19021
    @Override
-
 
19022
    public String toString() {
-
 
19023
      StringBuilder sb = new StringBuilder("setAlert_result(");
-
 
19024
      boolean first = true;
-
 
19025
 
-
 
19026
      sb.append(")");
-
 
19027
      return sb.toString();
-
 
19028
    }
-
 
19029
 
-
 
19030
    public void validate() throws TException {
-
 
19031
      // check for required fields
-
 
19032
    }
-
 
19033
 
-
 
19034
  }
-
 
19035
 
-
 
19036
  public static class getValidOrderCount_args implements TBase<getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrderCount_args>   {
-
 
19037
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrderCount_args");
-
 
19038
 
-
 
19039
 
-
 
19040
 
-
 
19041
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19042
    public enum _Fields implements TFieldIdEnum {
-
 
19043
;
-
 
19044
 
-
 
19045
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
19046
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19047
 
-
 
19048
      static {
-
 
19049
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19050
          byId.put((int)field._thriftId, field);
-
 
19051
          byName.put(field.getFieldName(), field);
-
 
19052
        }
-
 
19053
      }
-
 
19054
 
-
 
19055
      /**
-
 
19056
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19057
       */
-
 
19058
      public static _Fields findByThriftId(int fieldId) {
-
 
19059
        return byId.get(fieldId);
-
 
19060
      }
-
 
19061
 
-
 
19062
      /**
-
 
19063
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19064
       * if it is not found.
-
 
19065
       */
-
 
19066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19067
        _Fields fields = findByThriftId(fieldId);
-
 
19068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19069
        return fields;
-
 
19070
      }
-
 
19071
 
-
 
19072
      /**
-
 
19073
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19074
       */
-
 
19075
      public static _Fields findByName(String name) {
-
 
19076
        return byName.get(name);
-
 
19077
      }
-
 
19078
 
-
 
19079
      private final short _thriftId;
-
 
19080
      private final String _fieldName;
-
 
19081
 
-
 
19082
      _Fields(short thriftId, String fieldName) {
-
 
19083
        _thriftId = thriftId;
-
 
19084
        _fieldName = fieldName;
-
 
19085
      }
-
 
19086
 
-
 
19087
      public short getThriftFieldId() {
-
 
19088
        return _thriftId;
-
 
19089
      }
-
 
19090
 
-
 
19091
      public String getFieldName() {
-
 
19092
        return _fieldName;
-
 
19093
      }
-
 
19094
    }
-
 
19095
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
19096
    }});
-
 
19097
 
-
 
19098
    static {
-
 
19099
      FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);
-
 
19100
    }
-
 
19101
 
-
 
19102
    public getValidOrderCount_args() {
-
 
19103
    }
-
 
19104
 
-
 
19105
    /**
-
 
19106
     * Performs a deep copy on <i>other</i>.
-
 
19107
     */
-
 
19108
    public getValidOrderCount_args(getValidOrderCount_args other) {
-
 
19109
    }
-
 
19110
 
-
 
19111
    public getValidOrderCount_args deepCopy() {
-
 
19112
      return new getValidOrderCount_args(this);
-
 
19113
    }
-
 
19114
 
-
 
19115
    @Deprecated
-
 
19116
    public getValidOrderCount_args clone() {
-
 
19117
      return new getValidOrderCount_args(this);
-
 
19118
    }
-
 
19119
 
-
 
19120
    public void setFieldValue(_Fields field, Object value) {
-
 
19121
      switch (field) {
-
 
19122
      }
-
 
19123
    }
-
 
19124
 
-
 
19125
    public void setFieldValue(int fieldID, Object value) {
-
 
19126
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
19127
    }
-
 
19128
 
-
 
19129
    public Object getFieldValue(_Fields field) {
-
 
19130
      switch (field) {
-
 
19131
      }
-
 
19132
      throw new IllegalStateException();
-
 
19133
    }
-
 
19134
 
-
 
19135
    public Object getFieldValue(int fieldId) {
-
 
19136
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
19137
    }
-
 
19138
 
-
 
19139
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
19140
    public boolean isSet(_Fields field) {
-
 
19141
      switch (field) {
-
 
19142
      }
-
 
19143
      throw new IllegalStateException();
-
 
19144
    }
-
 
19145
 
-
 
19146
    public boolean isSet(int fieldID) {
-
 
19147
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
19148
    }
-
 
19149
 
-
 
19150
    @Override
-
 
19151
    public boolean equals(Object that) {
-
 
19152
      if (that == null)
-
 
19153
        return false;
-
 
19154
      if (that instanceof getValidOrderCount_args)
-
 
19155
        return this.equals((getValidOrderCount_args)that);
-
 
19156
      return false;
-
 
19157
    }
-
 
19158
 
-
 
19159
    public boolean equals(getValidOrderCount_args that) {
-
 
19160
      if (that == null)
-
 
19161
        return false;
-
 
19162
 
-
 
19163
      return true;
-
 
19164
    }
-
 
19165
 
-
 
19166
    @Override
-
 
19167
    public int hashCode() {
-
 
19168
      return 0;
-
 
19169
    }
-
 
19170
 
-
 
19171
    public int compareTo(getValidOrderCount_args other) {
-
 
19172
      if (!getClass().equals(other.getClass())) {
-
 
19173
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19174
      }
-
 
19175
 
-
 
19176
      int lastComparison = 0;
-
 
19177
      getValidOrderCount_args typedOther = (getValidOrderCount_args)other;
-
 
19178
 
-
 
19179
      return 0;
-
 
19180
    }
-
 
19181
 
-
 
19182
    public void read(TProtocol iprot) throws TException {
-
 
19183
      TField field;
-
 
19184
      iprot.readStructBegin();
-
 
19185
      while (true)
-
 
19186
      {
-
 
19187
        field = iprot.readFieldBegin();
-
 
19188
        if (field.type == TType.STOP) { 
-
 
19189
          break;
-
 
19190
        }
-
 
19191
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
19192
        if (fieldId == null) {
-
 
19193
          TProtocolUtil.skip(iprot, field.type);
-
 
19194
        } else {
-
 
19195
          switch (fieldId) {
-
 
19196
          }
-
 
19197
          iprot.readFieldEnd();
-
 
19198
        }
-
 
19199
      }
-
 
19200
      iprot.readStructEnd();
-
 
19201
      validate();
-
 
19202
    }
-
 
19203
 
-
 
19204
    public void write(TProtocol oprot) throws TException {
-
 
19205
      validate();
-
 
19206
 
-
 
19207
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19208
      oprot.writeFieldStop();
-
 
19209
      oprot.writeStructEnd();
-
 
19210
    }
-
 
19211
 
-
 
19212
    @Override
-
 
19213
    public String toString() {
-
 
19214
      StringBuilder sb = new StringBuilder("getValidOrderCount_args(");
-
 
19215
      boolean first = true;
-
 
19216
 
-
 
19217
      sb.append(")");
-
 
19218
      return sb.toString();
-
 
19219
    }
-
 
19220
 
-
 
19221
    public void validate() throws TException {
-
 
19222
      // check for required fields
-
 
19223
    }
-
 
19224
 
-
 
19225
  }
-
 
19226
 
-
 
19227
  public static class getValidOrderCount_result implements TBase<getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrderCount_result>   {
-
 
19228
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrderCount_result");
-
 
19229
 
-
 
19230
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
19231
 
18940
      SUCCESS((short)0, "success"),
19232
    private long success;
-
 
19233
 
-
 
19234
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19235
    public enum _Fields implements TFieldIdEnum {
18941
      EX((short)1, "ex");
19236
      SUCCESS((short)0, "success");
18942
 
19237
 
18943
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
19238
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
18944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18945
 
19240
 
18946
      static {
19241
      static {
Line 18990... Line 19285...
18990
        return _fieldName;
19285
        return _fieldName;
18991
      }
19286
      }
18992
    }
19287
    }
18993
 
19288
 
18994
    // isset id assignments
19289
    // isset id assignments
-
 
19290
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
19291
    private BitSet __isset_bit_vector = new BitSet(1);
18995
 
19292
 
18996
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
19293
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
18997
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
19294
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
18998
          new StructMetaData(TType.STRUCT, Order.class)));
-
 
18999
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
19000
          new FieldValueMetaData(TType.STRUCT)));
19295
          new FieldValueMetaData(TType.I64)));
19001
    }});
19296
    }});
19002
 
19297
 
19003
    static {
19298
    static {
19004
      FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);
19299
      FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);
19005
    }
19300
    }
19006
 
19301
 
19007
    public getOrder_result() {
19302
    public getValidOrderCount_result() {
19008
    }
19303
    }
19009
 
19304
 
19010
    public getOrder_result(
19305
    public getValidOrderCount_result(
19011
      Order success,
19306
      long success)
19012
      TransactionServiceException ex)
-
 
19013
    {
19307
    {
19014
      this();
19308
      this();
19015
      this.success = success;
19309
      this.success = success;
19016
      this.ex = ex;
19310
      setSuccessIsSet(true);
19017
    }
19311
    }
19018
 
19312
 
19019
    /**
19313
    /**
19020
     * Performs a deep copy on <i>other</i>.
19314
     * Performs a deep copy on <i>other</i>.
19021
     */
19315
     */
19022
    public getOrder_result(getOrder_result other) {
19316
    public getValidOrderCount_result(getValidOrderCount_result other) {
19023
      if (other.isSetSuccess()) {
19317
      __isset_bit_vector.clear();
19024
        this.success = new Order(other.success);
19318
      __isset_bit_vector.or(other.__isset_bit_vector);
19025
      }
-
 
19026
      if (other.isSetEx()) {
19319
      this.success = other.success;
19027
        this.ex = new TransactionServiceException(other.ex);
-
 
19028
      }
-
 
19029
    }
19320
    }
19030
 
19321
 
19031
    public getOrder_result deepCopy() {
19322
    public getValidOrderCount_result deepCopy() {
19032
      return new getOrder_result(this);
19323
      return new getValidOrderCount_result(this);
19033
    }
19324
    }
19034
 
19325
 
19035
    @Deprecated
19326
    @Deprecated
19036
    public getOrder_result clone() {
19327
    public getValidOrderCount_result clone() {
19037
      return new getOrder_result(this);
19328
      return new getValidOrderCount_result(this);
19038
    }
19329
    }
19039
 
19330
 
19040
    public Order getSuccess() {
19331
    public long getSuccess() {
19041
      return this.success;
19332
      return this.success;
19042
    }
19333
    }
19043
 
19334
 
19044
    public getOrder_result setSuccess(Order success) {
19335
    public getValidOrderCount_result setSuccess(long success) {
19045
      this.success = success;
19336
      this.success = success;
-
 
19337
      setSuccessIsSet(true);
19046
      return this;
19338
      return this;
19047
    }
19339
    }
19048
 
19340
 
19049
    public void unsetSuccess() {
19341
    public void unsetSuccess() {
19050
      this.success = null;
19342
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
19051
    }
19343
    }
19052
 
19344
 
19053
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
19345
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
19054
    public boolean isSetSuccess() {
19346
    public boolean isSetSuccess() {
19055
      return this.success != null;
19347
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
19056
    }
19348
    }
19057
 
19349
 
19058
    public void setSuccessIsSet(boolean value) {
19350
    public void setSuccessIsSet(boolean value) {
19059
      if (!value) {
-
 
19060
        this.success = null;
-
 
19061
      }
-
 
19062
    }
-
 
19063
 
-
 
19064
    public TransactionServiceException getEx() {
-
 
19065
      return this.ex;
-
 
19066
    }
-
 
19067
 
-
 
19068
    public getOrder_result setEx(TransactionServiceException ex) {
-
 
19069
      this.ex = ex;
-
 
19070
      return this;
-
 
19071
    }
-
 
19072
 
-
 
19073
    public void unsetEx() {
-
 
19074
      this.ex = null;
-
 
19075
    }
-
 
19076
 
-
 
19077
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
19078
    public boolean isSetEx() {
-
 
19079
      return this.ex != null;
-
 
19080
    }
-
 
19081
 
-
 
19082
    public void setExIsSet(boolean value) {
19351
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
19083
      if (!value) {
-
 
19084
        this.ex = null;
-
 
19085
      }
-
 
19086
    }
19352
    }
19087
 
19353
 
19088
    public void setFieldValue(_Fields field, Object value) {
19354
    public void setFieldValue(_Fields field, Object value) {
19089
      switch (field) {
19355
      switch (field) {
19090
      case SUCCESS:
19356
      case SUCCESS:
19091
        if (value == null) {
19357
        if (value == null) {
19092
          unsetSuccess();
19358
          unsetSuccess();
19093
        } else {
19359
        } else {
19094
          setSuccess((Order)value);
19360
          setSuccess((Long)value);
19095
        }
-
 
19096
        break;
-
 
19097
 
-
 
19098
      case EX:
-
 
19099
        if (value == null) {
-
 
19100
          unsetEx();
-
 
19101
        } else {
-
 
19102
          setEx((TransactionServiceException)value);
-
 
19103
        }
19361
        }
19104
        break;
19362
        break;
19105
 
19363
 
19106
      }
19364
      }
19107
    }
19365
    }
Line 19111... Line 19369...
19111
    }
19369
    }
19112
 
19370
 
19113
    public Object getFieldValue(_Fields field) {
19371
    public Object getFieldValue(_Fields field) {
19114
      switch (field) {
19372
      switch (field) {
19115
      case SUCCESS:
19373
      case SUCCESS:
19116
        return getSuccess();
19374
        return new Long(getSuccess());
19117
 
-
 
19118
      case EX:
-
 
19119
        return getEx();
-
 
19120
 
19375
 
19121
      }
19376
      }
19122
      throw new IllegalStateException();
19377
      throw new IllegalStateException();
19123
    }
19378
    }
19124
 
19379
 
Line 19129... Line 19384...
19129
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
19384
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
19130
    public boolean isSet(_Fields field) {
19385
    public boolean isSet(_Fields field) {
19131
      switch (field) {
19386
      switch (field) {
19132
      case SUCCESS:
19387
      case SUCCESS:
19133
        return isSetSuccess();
19388
        return isSetSuccess();
19134
      case EX:
-
 
19135
        return isSetEx();
-
 
19136
      }
19389
      }
19137
      throw new IllegalStateException();
19390
      throw new IllegalStateException();
19138
    }
19391
    }
19139
 
19392
 
19140
    public boolean isSet(int fieldID) {
19393
    public boolean isSet(int fieldID) {
Line 19143... Line 19396...
19143
 
19396
 
19144
    @Override
19397
    @Override
19145
    public boolean equals(Object that) {
19398
    public boolean equals(Object that) {
19146
      if (that == null)
19399
      if (that == null)
19147
        return false;
19400
        return false;
19148
      if (that instanceof getOrder_result)
19401
      if (that instanceof getValidOrderCount_result)
19149
        return this.equals((getOrder_result)that);
19402
        return this.equals((getValidOrderCount_result)that);
19150
      return false;
19403
      return false;
19151
    }
19404
    }
19152
 
19405
 
19153
    public boolean equals(getOrder_result that) {
19406
    public boolean equals(getValidOrderCount_result that) {
19154
      if (that == null)
19407
      if (that == null)
19155
        return false;
19408
        return false;
19156
 
19409
 
19157
      boolean this_present_success = true && this.isSetSuccess();
19410
      boolean this_present_success = true;
19158
      boolean that_present_success = true && that.isSetSuccess();
19411
      boolean that_present_success = true;
19159
      if (this_present_success || that_present_success) {
19412
      if (this_present_success || that_present_success) {
19160
        if (!(this_present_success && that_present_success))
19413
        if (!(this_present_success && that_present_success))
19161
          return false;
19414
          return false;
19162
        if (!this.success.equals(that.success))
19415
        if (this.success != that.success)
19163
          return false;
-
 
19164
      }
-
 
19165
 
-
 
19166
      boolean this_present_ex = true && this.isSetEx();
-
 
19167
      boolean that_present_ex = true && that.isSetEx();
-
 
19168
      if (this_present_ex || that_present_ex) {
-
 
19169
        if (!(this_present_ex && that_present_ex))
-
 
19170
          return false;
-
 
19171
        if (!this.ex.equals(that.ex))
-
 
19172
          return false;
19416
          return false;
19173
      }
19417
      }
19174
 
19418
 
19175
      return true;
19419
      return true;
19176
    }
19420
    }
Line 19178... Line 19422...
19178
    @Override
19422
    @Override
19179
    public int hashCode() {
19423
    public int hashCode() {
19180
      return 0;
19424
      return 0;
19181
    }
19425
    }
19182
 
19426
 
19183
    public int compareTo(getOrder_result other) {
19427
    public int compareTo(getValidOrderCount_result other) {
19184
      if (!getClass().equals(other.getClass())) {
19428
      if (!getClass().equals(other.getClass())) {
19185
        return getClass().getName().compareTo(other.getClass().getName());
19429
        return getClass().getName().compareTo(other.getClass().getName());
19186
      }
19430
      }
19187
 
19431
 
19188
      int lastComparison = 0;
19432
      int lastComparison = 0;
19189
      getOrder_result typedOther = (getOrder_result)other;
19433
      getValidOrderCount_result typedOther = (getValidOrderCount_result)other;
19190
 
19434
 
19191
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
19435
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
19192
      if (lastComparison != 0) {
19436
      if (lastComparison != 0) {
19193
        return lastComparison;
19437
        return lastComparison;
19194
      }
19438
      }
19195
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
19439
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
19196
      if (lastComparison != 0) {
19440
      if (lastComparison != 0) {
19197
        return lastComparison;
19441
        return lastComparison;
19198
      }
19442
      }
19199
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
19200
      if (lastComparison != 0) {
-
 
19201
        return lastComparison;
-
 
19202
      }
-
 
19203
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
19204
      if (lastComparison != 0) {
-
 
19205
        return lastComparison;
-
 
19206
      }
-
 
19207
      return 0;
19443
      return 0;
19208
    }
19444
    }
19209
 
19445
 
19210
    public void read(TProtocol iprot) throws TException {
19446
    public void read(TProtocol iprot) throws TException {
19211
      TField field;
19447
      TField field;
Line 19220... Line 19456...
19220
        if (fieldId == null) {
19456
        if (fieldId == null) {
19221
          TProtocolUtil.skip(iprot, field.type);
19457
          TProtocolUtil.skip(iprot, field.type);
19222
        } else {
19458
        } else {
19223
          switch (fieldId) {
19459
          switch (fieldId) {
19224
            case SUCCESS:
19460
            case SUCCESS:
19225
              if (field.type == TType.STRUCT) {
19461
              if (field.type == TType.I64) {
19226
                this.success = new Order();
19462
                this.success = iprot.readI64();
19227
                this.success.read(iprot);
19463
                setSuccessIsSet(true);
19228
              } else { 
-
 
19229
                TProtocolUtil.skip(iprot, field.type);
-
 
19230
              }
-
 
19231
              break;
-
 
19232
            case EX:
-
 
19233
              if (field.type == TType.STRUCT) {
-
 
19234
                this.ex = new TransactionServiceException();
-
 
19235
                this.ex.read(iprot);
-
 
19236
              } else { 
19464
              } else { 
19237
                TProtocolUtil.skip(iprot, field.type);
19465
                TProtocolUtil.skip(iprot, field.type);
19238
              }
19466
              }
19239
              break;
19467
              break;
19240
          }
19468
          }
Line 19248... Line 19476...
19248
    public void write(TProtocol oprot) throws TException {
19476
    public void write(TProtocol oprot) throws TException {
19249
      oprot.writeStructBegin(STRUCT_DESC);
19477
      oprot.writeStructBegin(STRUCT_DESC);
19250
 
19478
 
19251
      if (this.isSetSuccess()) {
19479
      if (this.isSetSuccess()) {
19252
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19253
        this.success.write(oprot);
-
 
19254
        oprot.writeFieldEnd();
19481
        oprot.writeI64(this.success);
19255
      } else if (this.isSetEx()) {
-
 
19256
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
19257
        this.ex.write(oprot);
-
 
19258
        oprot.writeFieldEnd();
19482
        oprot.writeFieldEnd();
19259
      }
19483
      }
19260
      oprot.writeFieldStop();
19484
      oprot.writeFieldStop();
19261
      oprot.writeStructEnd();
19485
      oprot.writeStructEnd();
19262
    }
19486
    }
19263
 
19487
 
19264
    @Override
19488
    @Override
19265
    public String toString() {
19489
    public String toString() {
19266
      StringBuilder sb = new StringBuilder("getOrder_result(");
19490
      StringBuilder sb = new StringBuilder("getValidOrderCount_result(");
19267
      boolean first = true;
19491
      boolean first = true;
19268
 
19492
 
19269
      sb.append("success:");
19493
      sb.append("success:");
19270
      if (this.success == null) {
-
 
19271
        sb.append("null");
-
 
19272
      } else {
-
 
19273
        sb.append(this.success);
19494
      sb.append(this.success);
19274
      }
-
 
19275
      first = false;
19495
      first = false;
19276
      if (!first) sb.append(", ");
19496
      sb.append(")");
19277
      sb.append("ex:");
19497
      return sb.toString();
-
 
19498
    }
-
 
19499
 
19278
      if (this.ex == null) {
19500
    public void validate() throws TException {
19279
        sb.append("null");
19501
      // check for required fields
-
 
19502
    }
-
 
19503
 
-
 
19504
  }
-
 
19505
 
-
 
19506
  public static class getNoOfCustomersWithSuccessfulTransaction_args implements TBase<getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getNoOfCustomersWithSuccessfulTransaction_args>   {
-
 
19507
    private static final TStruct STRUCT_DESC = new TStruct("getNoOfCustomersWithSuccessfulTransaction_args");
-
 
19508
 
-
 
19509
 
-
 
19510
 
-
 
19511
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19512
    public enum _Fields implements TFieldIdEnum {
-
 
19513
;
-
 
19514
 
-
 
19515
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
19516
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19517
 
19280
      } else {
19518
      static {
-
 
19519
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19281
        sb.append(this.ex);
19520
          byId.put((int)field._thriftId, field);
-
 
19521
          byName.put(field.getFieldName(), field);
-
 
19522
        }
19282
      }
19523
      }
-
 
19524
 
-
 
19525
      /**
-
 
19526
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19527
       */
-
 
19528
      public static _Fields findByThriftId(int fieldId) {
-
 
19529
        return byId.get(fieldId);
-
 
19530
      }
-
 
19531
 
-
 
19532
      /**
-
 
19533
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19534
       * if it is not found.
-
 
19535
       */
-
 
19536
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19537
        _Fields fields = findByThriftId(fieldId);
-
 
19538
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19539
        return fields;
-
 
19540
      }
-
 
19541
 
-
 
19542
      /**
-
 
19543
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19544
       */
-
 
19545
      public static _Fields findByName(String name) {
-
 
19546
        return byName.get(name);
-
 
19547
      }
-
 
19548
 
-
 
19549
      private final short _thriftId;
-
 
19550
      private final String _fieldName;
-
 
19551
 
-
 
19552
      _Fields(short thriftId, String fieldName) {
-
 
19553
        _thriftId = thriftId;
-
 
19554
        _fieldName = fieldName;
-
 
19555
      }
-
 
19556
 
-
 
19557
      public short getThriftFieldId() {
-
 
19558
        return _thriftId;
-
 
19559
      }
-
 
19560
 
-
 
19561
      public String getFieldName() {
-
 
19562
        return _fieldName;
-
 
19563
      }
-
 
19564
    }
-
 
19565
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
19566
    }});
-
 
19567
 
-
 
19568
    static {
-
 
19569
      FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);
-
 
19570
    }
-
 
19571
 
-
 
19572
    public getNoOfCustomersWithSuccessfulTransaction_args() {
-
 
19573
    }
-
 
19574
 
-
 
19575
    /**
-
 
19576
     * Performs a deep copy on <i>other</i>.
-
 
19577
     */
-
 
19578
    public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {
-
 
19579
    }
-
 
19580
 
-
 
19581
    public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {
-
 
19582
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
-
 
19583
    }
-
 
19584
 
-
 
19585
    @Deprecated
-
 
19586
    public getNoOfCustomersWithSuccessfulTransaction_args clone() {
-
 
19587
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
-
 
19588
    }
-
 
19589
 
-
 
19590
    public void setFieldValue(_Fields field, Object value) {
-
 
19591
      switch (field) {
-
 
19592
      }
-
 
19593
    }
-
 
19594
 
-
 
19595
    public void setFieldValue(int fieldID, Object value) {
-
 
19596
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
19597
    }
-
 
19598
 
-
 
19599
    public Object getFieldValue(_Fields field) {
-
 
19600
      switch (field) {
-
 
19601
      }
-
 
19602
      throw new IllegalStateException();
-
 
19603
    }
-
 
19604
 
-
 
19605
    public Object getFieldValue(int fieldId) {
-
 
19606
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
19607
    }
-
 
19608
 
-
 
19609
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
19610
    public boolean isSet(_Fields field) {
-
 
19611
      switch (field) {
-
 
19612
      }
-
 
19613
      throw new IllegalStateException();
-
 
19614
    }
-
 
19615
 
-
 
19616
    public boolean isSet(int fieldID) {
-
 
19617
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
19618
    }
-
 
19619
 
-
 
19620
    @Override
-
 
19621
    public boolean equals(Object that) {
-
 
19622
      if (that == null)
-
 
19623
        return false;
-
 
19624
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)
-
 
19625
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);
-
 
19626
      return false;
-
 
19627
    }
-
 
19628
 
-
 
19629
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {
-
 
19630
      if (that == null)
19283
      first = false;
19631
        return false;
-
 
19632
 
-
 
19633
      return true;
-
 
19634
    }
-
 
19635
 
-
 
19636
    @Override
-
 
19637
    public int hashCode() {
-
 
19638
      return 0;
-
 
19639
    }
-
 
19640
 
-
 
19641
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {
-
 
19642
      if (!getClass().equals(other.getClass())) {
-
 
19643
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19644
      }
-
 
19645
 
-
 
19646
      int lastComparison = 0;
-
 
19647
      getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;
-
 
19648
 
-
 
19649
      return 0;
-
 
19650
    }
-
 
19651
 
-
 
19652
    public void read(TProtocol iprot) throws TException {
-
 
19653
      TField field;
-
 
19654
      iprot.readStructBegin();
-
 
19655
      while (true)
-
 
19656
      {
-
 
19657
        field = iprot.readFieldBegin();
-
 
19658
        if (field.type == TType.STOP) { 
-
 
19659
          break;
-
 
19660
        }
-
 
19661
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
19662
        if (fieldId == null) {
-
 
19663
          TProtocolUtil.skip(iprot, field.type);
-
 
19664
        } else {
-
 
19665
          switch (fieldId) {
-
 
19666
          }
-
 
19667
          iprot.readFieldEnd();
-
 
19668
        }
-
 
19669
      }
-
 
19670
      iprot.readStructEnd();
-
 
19671
      validate();
-
 
19672
    }
-
 
19673
 
-
 
19674
    public void write(TProtocol oprot) throws TException {
-
 
19675
      validate();
-
 
19676
 
-
 
19677
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19678
      oprot.writeFieldStop();
-
 
19679
      oprot.writeStructEnd();
-
 
19680
    }
-
 
19681
 
-
 
19682
    @Override
-
 
19683
    public String toString() {
-
 
19684
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");
-
 
19685
      boolean first = true;
-
 
19686
 
19284
      sb.append(")");
19687
      sb.append(")");
19285
      return sb.toString();
19688
      return sb.toString();
19286
    }
19689
    }
19287
 
19690
 
19288
    public void validate() throws TException {
19691
    public void validate() throws TException {
19289
      // check for required fields
19692
      // check for required fields
19290
    }
19693
    }
19291
 
19694
 
19292
  }
19695
  }
19293
 
19696
 
19294
  public static class getLineItemsForOrder_args implements TBase<getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLineItemsForOrder_args>   {
19697
  public static class getNoOfCustomersWithSuccessfulTransaction_result implements TBase<getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<getNoOfCustomersWithSuccessfulTransaction_result>   {
19295
    private static final TStruct STRUCT_DESC = new TStruct("getLineItemsForOrder_args");
19698
    private static final TStruct STRUCT_DESC = new TStruct("getNoOfCustomersWithSuccessfulTransaction_result");
19296
 
19699
 
19297
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
19700
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
19298
 
19701
 
19299
    private long orderId;
19702
    private long success;
19300
 
19703
 
19301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19302
    public enum _Fields implements TFieldIdEnum {
19705
    public enum _Fields implements TFieldIdEnum {
19303
      ORDER_ID((short)1, "orderId");
19706
      SUCCESS((short)0, "success");
19304
 
19707
 
19305
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
19708
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
19306
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19307
 
19710
 
19308
      static {
19711
      static {
Line 19352... Line 19755...
19352
        return _fieldName;
19755
        return _fieldName;
19353
      }
19756
      }
19354
    }
19757
    }
19355
 
19758
 
19356
    // isset id assignments
19759
    // isset id assignments
19357
    private static final int __ORDERID_ISSET_ID = 0;
19760
    private static final int __SUCCESS_ISSET_ID = 0;
19358
    private BitSet __isset_bit_vector = new BitSet(1);
19761
    private BitSet __isset_bit_vector = new BitSet(1);
19359
 
19762
 
19360
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
19763
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
19361
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
19764
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
19362
          new FieldValueMetaData(TType.I64)));
19765
          new FieldValueMetaData(TType.I64)));
19363
    }});
19766
    }});
19364
 
19767
 
19365
    static {
19768
    static {
19366
      FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);
19769
      FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);
19367
    }
19770
    }
19368
 
19771
 
19369
    public getLineItemsForOrder_args() {
19772
    public getNoOfCustomersWithSuccessfulTransaction_result() {
19370
    }
19773
    }
19371
 
19774
 
19372
    public getLineItemsForOrder_args(
19775
    public getNoOfCustomersWithSuccessfulTransaction_result(
19373
      long orderId)
19776
      long success)
19374
    {
19777
    {
19375
      this();
19778
      this();
19376
      this.orderId = orderId;
19779
      this.success = success;
19377
      setOrderIdIsSet(true);
19780
      setSuccessIsSet(true);
19378
    }
19781
    }
19379
 
19782
 
19380
    /**
19783
    /**
19381
     * Performs a deep copy on <i>other</i>.
19784
     * Performs a deep copy on <i>other</i>.
19382
     */
19785
     */
19383
    public getLineItemsForOrder_args(getLineItemsForOrder_args other) {
19786
    public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {
19384
      __isset_bit_vector.clear();
19787
      __isset_bit_vector.clear();
19385
      __isset_bit_vector.or(other.__isset_bit_vector);
19788
      __isset_bit_vector.or(other.__isset_bit_vector);
19386
      this.orderId = other.orderId;
19789
      this.success = other.success;
19387
    }
19790
    }
19388
 
19791
 
19389
    public getLineItemsForOrder_args deepCopy() {
19792
    public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {
19390
      return new getLineItemsForOrder_args(this);
19793
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
19391
    }
19794
    }
19392
 
19795
 
19393
    @Deprecated
19796
    @Deprecated
19394
    public getLineItemsForOrder_args clone() {
19797
    public getNoOfCustomersWithSuccessfulTransaction_result clone() {
19395
      return new getLineItemsForOrder_args(this);
19798
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
19396
    }
19799
    }
19397
 
19800
 
19398
    public long getOrderId() {
19801
    public long getSuccess() {
19399
      return this.orderId;
19802
      return this.success;
19400
    }
19803
    }
19401
 
19804
 
19402
    public getLineItemsForOrder_args setOrderId(long orderId) {
19805
    public getNoOfCustomersWithSuccessfulTransaction_result setSuccess(long success) {
19403
      this.orderId = orderId;
19806
      this.success = success;
19404
      setOrderIdIsSet(true);
19807
      setSuccessIsSet(true);
19405
      return this;
19808
      return this;
19406
    }
19809
    }
19407
 
19810
 
19408
    public void unsetOrderId() {
19811
    public void unsetSuccess() {
19409
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
19812
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
19410
    }
19813
    }
19411
 
19814
 
19412
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
19815
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
19413
    public boolean isSetOrderId() {
19816
    public boolean isSetSuccess() {
19414
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
19817
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
19415
    }
19818
    }
19416
 
19819
 
19417
    public void setOrderIdIsSet(boolean value) {
19820
    public void setSuccessIsSet(boolean value) {
19418
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
19821
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
19419
    }
19822
    }
19420
 
19823
 
19421
    public void setFieldValue(_Fields field, Object value) {
19824
    public void setFieldValue(_Fields field, Object value) {
19422
      switch (field) {
19825
      switch (field) {
19423
      case ORDER_ID:
19826
      case SUCCESS:
19424
        if (value == null) {
19827
        if (value == null) {
19425
          unsetOrderId();
19828
          unsetSuccess();
19426
        } else {
19829
        } else {
19427
          setOrderId((Long)value);
19830
          setSuccess((Long)value);
19428
        }
19831
        }
19429
        break;
19832
        break;
19430
 
19833
 
19431
      }
19834
      }
19432
    }
19835
    }
Line 19435... Line 19838...
19435
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
19838
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
19436
    }
19839
    }
19437
 
19840
 
19438
    public Object getFieldValue(_Fields field) {
19841
    public Object getFieldValue(_Fields field) {
19439
      switch (field) {
19842
      switch (field) {
19440
      case ORDER_ID:
19843
      case SUCCESS:
19441
        return new Long(getOrderId());
19844
        return new Long(getSuccess());
19442
 
19845
 
19443
      }
19846
      }
19444
      throw new IllegalStateException();
19847
      throw new IllegalStateException();
19445
    }
19848
    }
19446
 
19849
 
Line 19449... Line 19852...
19449
    }
19852
    }
19450
 
19853
 
19451
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
19854
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
19452
    public boolean isSet(_Fields field) {
19855
    public boolean isSet(_Fields field) {
19453
      switch (field) {
19856
      switch (field) {
19454
      case ORDER_ID:
19857
      case SUCCESS:
19455
        return isSetOrderId();
19858
        return isSetSuccess();
19456
      }
19859
      }
19457
      throw new IllegalStateException();
19860
      throw new IllegalStateException();
19458
    }
19861
    }
19459
 
19862
 
19460
    public boolean isSet(int fieldID) {
19863
    public boolean isSet(int fieldID) {
Line 19463... Line 19866...
19463
 
19866
 
19464
    @Override
19867
    @Override
19465
    public boolean equals(Object that) {
19868
    public boolean equals(Object that) {
19466
      if (that == null)
19869
      if (that == null)
19467
        return false;
19870
        return false;
19468
      if (that instanceof getLineItemsForOrder_args)
19871
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)
19469
        return this.equals((getLineItemsForOrder_args)that);
19872
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);
19470
      return false;
19873
      return false;
19471
    }
19874
    }
19472
 
19875
 
19473
    public boolean equals(getLineItemsForOrder_args that) {
19876
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {
19474
      if (that == null)
19877
      if (that == null)
19475
        return false;
19878
        return false;
19476
 
19879
 
19477
      boolean this_present_orderId = true;
19880
      boolean this_present_success = true;
19478
      boolean that_present_orderId = true;
19881
      boolean that_present_success = true;
19479
      if (this_present_orderId || that_present_orderId) {
19882
      if (this_present_success || that_present_success) {
19480
        if (!(this_present_orderId && that_present_orderId))
19883
        if (!(this_present_success && that_present_success))
19481
          return false;
19884
          return false;
19482
        if (this.orderId != that.orderId)
19885
        if (this.success != that.success)
19483
          return false;
19886
          return false;
19484
      }
19887
      }
19485
 
19888
 
19486
      return true;
19889
      return true;
19487
    }
19890
    }
Line 19489... Line 19892...
19489
    @Override
19892
    @Override
19490
    public int hashCode() {
19893
    public int hashCode() {
19491
      return 0;
19894
      return 0;
19492
    }
19895
    }
19493
 
19896
 
19494
    public int compareTo(getLineItemsForOrder_args other) {
19897
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {
19495
      if (!getClass().equals(other.getClass())) {
19898
      if (!getClass().equals(other.getClass())) {
19496
        return getClass().getName().compareTo(other.getClass().getName());
19899
        return getClass().getName().compareTo(other.getClass().getName());
19497
      }
19900
      }
19498
 
19901
 
19499
      int lastComparison = 0;
19902
      int lastComparison = 0;
19500
      getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;
19903
      getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;
19501
 
19904
 
19502
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
19905
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
19503
      if (lastComparison != 0) {
19906
      if (lastComparison != 0) {
19504
        return lastComparison;
19907
        return lastComparison;
19505
      }
19908
      }
19506
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
19909
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
19507
      if (lastComparison != 0) {
19910
      if (lastComparison != 0) {
19508
        return lastComparison;
19911
        return lastComparison;
19509
      }
19912
      }
19510
      return 0;
19913
      return 0;
19511
    }
19914
    }
Line 19522... Line 19925...
19522
        _Fields fieldId = _Fields.findByThriftId(field.id);
19925
        _Fields fieldId = _Fields.findByThriftId(field.id);
19523
        if (fieldId == null) {
19926
        if (fieldId == null) {
19524
          TProtocolUtil.skip(iprot, field.type);
19927
          TProtocolUtil.skip(iprot, field.type);
19525
        } else {
19928
        } else {
19526
          switch (fieldId) {
19929
          switch (fieldId) {
19527
            case ORDER_ID:
19930
            case SUCCESS:
19528
              if (field.type == TType.I64) {
19931
              if (field.type == TType.I64) {
19529
                this.orderId = iprot.readI64();
19932
                this.success = iprot.readI64();
19530
                setOrderIdIsSet(true);
19933
                setSuccessIsSet(true);
19531
              } else { 
19934
              } else { 
19532
                TProtocolUtil.skip(iprot, field.type);
19935
                TProtocolUtil.skip(iprot, field.type);
19533
              }
19936
              }
19534
              break;
19937
              break;
19535
          }
19938
          }
Line 19539... Line 19942...
19539
      iprot.readStructEnd();
19942
      iprot.readStructEnd();
19540
      validate();
19943
      validate();
19541
    }
19944
    }
19542
 
19945
 
19543
    public void write(TProtocol oprot) throws TException {
19946
    public void write(TProtocol oprot) throws TException {
-
 
19947
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19948
 
-
 
19949
      if (this.isSetSuccess()) {
-
 
19950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19951
        oprot.writeI64(this.success);
-
 
19952
        oprot.writeFieldEnd();
-
 
19953
      }
-
 
19954
      oprot.writeFieldStop();
-
 
19955
      oprot.writeStructEnd();
-
 
19956
    }
-
 
19957
 
-
 
19958
    @Override
-
 
19959
    public String toString() {
-
 
19960
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");
-
 
19961
      boolean first = true;
-
 
19962
 
-
 
19963
      sb.append("success:");
-
 
19964
      sb.append(this.success);
-
 
19965
      first = false;
-
 
19966
      sb.append(")");
-
 
19967
      return sb.toString();
-
 
19968
    }
-
 
19969
 
-
 
19970
    public void validate() throws TException {
-
 
19971
      // check for required fields
-
 
19972
    }
-
 
19973
 
-
 
19974
  }
-
 
19975
 
-
 
19976
  public static class getValidOrdersAmountRange_args implements TBase<getValidOrdersAmountRange_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrdersAmountRange_args>   {
-
 
19977
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrdersAmountRange_args");
-
 
19978
 
-
 
19979
 
-
 
19980
 
-
 
19981
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19982
    public enum _Fields implements TFieldIdEnum {
-
 
19983
;
-
 
19984
 
-
 
19985
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
19986
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19987
 
-
 
19988
      static {
-
 
19989
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19990
          byId.put((int)field._thriftId, field);
-
 
19991
          byName.put(field.getFieldName(), field);
-
 
19992
        }
-
 
19993
      }
-
 
19994
 
-
 
19995
      /**
-
 
19996
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19997
       */
-
 
19998
      public static _Fields findByThriftId(int fieldId) {
-
 
19999
        return byId.get(fieldId);
-
 
20000
      }
-
 
20001
 
-
 
20002
      /**
-
 
20003
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20004
       * if it is not found.
-
 
20005
       */
-
 
20006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20007
        _Fields fields = findByThriftId(fieldId);
-
 
20008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20009
        return fields;
-
 
20010
      }
-
 
20011
 
-
 
20012
      /**
-
 
20013
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20014
       */
-
 
20015
      public static _Fields findByName(String name) {
-
 
20016
        return byName.get(name);
-
 
20017
      }
-
 
20018
 
-
 
20019
      private final short _thriftId;
-
 
20020
      private final String _fieldName;
-
 
20021
 
-
 
20022
      _Fields(short thriftId, String fieldName) {
-
 
20023
        _thriftId = thriftId;
-
 
20024
        _fieldName = fieldName;
-
 
20025
      }
-
 
20026
 
-
 
20027
      public short getThriftFieldId() {
-
 
20028
        return _thriftId;
-
 
20029
      }
-
 
20030
 
-
 
20031
      public String getFieldName() {
-
 
20032
        return _fieldName;
-
 
20033
      }
-
 
20034
    }
-
 
20035
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
20036
    }});
-
 
20037
 
-
 
20038
    static {
-
 
20039
      FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_args.class, metaDataMap);
-
 
20040
    }
-
 
20041
 
-
 
20042
    public getValidOrdersAmountRange_args() {
-
 
20043
    }
-
 
20044
 
-
 
20045
    /**
-
 
20046
     * Performs a deep copy on <i>other</i>.
-
 
20047
     */
-
 
20048
    public getValidOrdersAmountRange_args(getValidOrdersAmountRange_args other) {
-
 
20049
    }
-
 
20050
 
-
 
20051
    public getValidOrdersAmountRange_args deepCopy() {
-
 
20052
      return new getValidOrdersAmountRange_args(this);
-
 
20053
    }
-
 
20054
 
-
 
20055
    @Deprecated
-
 
20056
    public getValidOrdersAmountRange_args clone() {
-
 
20057
      return new getValidOrdersAmountRange_args(this);
-
 
20058
    }
-
 
20059
 
-
 
20060
    public void setFieldValue(_Fields field, Object value) {
-
 
20061
      switch (field) {
-
 
20062
      }
-
 
20063
    }
-
 
20064
 
-
 
20065
    public void setFieldValue(int fieldID, Object value) {
-
 
20066
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
20067
    }
-
 
20068
 
-
 
20069
    public Object getFieldValue(_Fields field) {
-
 
20070
      switch (field) {
-
 
20071
      }
-
 
20072
      throw new IllegalStateException();
-
 
20073
    }
-
 
20074
 
-
 
20075
    public Object getFieldValue(int fieldId) {
-
 
20076
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
20077
    }
-
 
20078
 
-
 
20079
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
20080
    public boolean isSet(_Fields field) {
-
 
20081
      switch (field) {
-
 
20082
      }
-
 
20083
      throw new IllegalStateException();
-
 
20084
    }
-
 
20085
 
-
 
20086
    public boolean isSet(int fieldID) {
-
 
20087
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
20088
    }
-
 
20089
 
-
 
20090
    @Override
-
 
20091
    public boolean equals(Object that) {
-
 
20092
      if (that == null)
-
 
20093
        return false;
-
 
20094
      if (that instanceof getValidOrdersAmountRange_args)
-
 
20095
        return this.equals((getValidOrdersAmountRange_args)that);
-
 
20096
      return false;
-
 
20097
    }
-
 
20098
 
-
 
20099
    public boolean equals(getValidOrdersAmountRange_args that) {
-
 
20100
      if (that == null)
-
 
20101
        return false;
-
 
20102
 
-
 
20103
      return true;
-
 
20104
    }
-
 
20105
 
-
 
20106
    @Override
-
 
20107
    public int hashCode() {
-
 
20108
      return 0;
-
 
20109
    }
-
 
20110
 
-
 
20111
    public int compareTo(getValidOrdersAmountRange_args other) {
-
 
20112
      if (!getClass().equals(other.getClass())) {
-
 
20113
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20114
      }
-
 
20115
 
-
 
20116
      int lastComparison = 0;
-
 
20117
      getValidOrdersAmountRange_args typedOther = (getValidOrdersAmountRange_args)other;
-
 
20118
 
-
 
20119
      return 0;
-
 
20120
    }
-
 
20121
 
-
 
20122
    public void read(TProtocol iprot) throws TException {
-
 
20123
      TField field;
-
 
20124
      iprot.readStructBegin();
-
 
20125
      while (true)
-
 
20126
      {
-
 
20127
        field = iprot.readFieldBegin();
-
 
20128
        if (field.type == TType.STOP) { 
-
 
20129
          break;
-
 
20130
        }
-
 
20131
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
20132
        if (fieldId == null) {
-
 
20133
          TProtocolUtil.skip(iprot, field.type);
-
 
20134
        } else {
-
 
20135
          switch (fieldId) {
-
 
20136
          }
-
 
20137
          iprot.readFieldEnd();
-
 
20138
        }
-
 
20139
      }
-
 
20140
      iprot.readStructEnd();
-
 
20141
      validate();
-
 
20142
    }
-
 
20143
 
-
 
20144
    public void write(TProtocol oprot) throws TException {
19544
      validate();
20145
      validate();
19545
 
20146
 
19546
      oprot.writeStructBegin(STRUCT_DESC);
20147
      oprot.writeStructBegin(STRUCT_DESC);
19547
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
19548
      oprot.writeI64(this.orderId);
-
 
19549
      oprot.writeFieldEnd();
-
 
19550
      oprot.writeFieldStop();
20148
      oprot.writeFieldStop();
19551
      oprot.writeStructEnd();
20149
      oprot.writeStructEnd();
19552
    }
20150
    }
19553
 
20151
 
19554
    @Override
20152
    @Override
19555
    public String toString() {
20153
    public String toString() {
19556
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");
20154
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_args(");
19557
      boolean first = true;
20155
      boolean first = true;
19558
 
20156
 
19559
      sb.append("orderId:");
-
 
19560
      sb.append(this.orderId);
-
 
19561
      first = false;
-
 
19562
      sb.append(")");
20157
      sb.append(")");
19563
      return sb.toString();
20158
      return sb.toString();
19564
    }
20159
    }
19565
 
20160
 
19566
    public void validate() throws TException {
20161
    public void validate() throws TException {
19567
      // check for required fields
20162
      // check for required fields
19568
    }
20163
    }
19569
 
20164
 
19570
  }
20165
  }
19571
 
20166
 
19572
  public static class getLineItemsForOrder_result implements TBase<getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLineItemsForOrder_result>   {
20167
  public static class getValidOrdersAmountRange_result implements TBase<getValidOrdersAmountRange_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrdersAmountRange_result>   {
19573
    private static final TStruct STRUCT_DESC = new TStruct("getLineItemsForOrder_result");
20168
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrdersAmountRange_result");
19574
 
20169
 
19575
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
20170
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
19576
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
19577
 
20171
 
19578
    private List<LineItem> success;
20172
    private List<Double> success;
19579
    private TransactionServiceException ex;
-
 
19580
 
20173
 
19581
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19582
    public enum _Fields implements TFieldIdEnum {
20175
    public enum _Fields implements TFieldIdEnum {
19583
      SUCCESS((short)0, "success"),
20176
      SUCCESS((short)0, "success");
19584
      EX((short)1, "ex");
-
 
19585
 
20177
 
19586
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20178
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
19587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20179
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19588
 
20180
 
19589
      static {
20181
      static {
Line 19637... Line 20229...
19637
    // isset id assignments
20229
    // isset id assignments
19638
 
20230
 
19639
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20231
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
19640
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
20232
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
19641
          new ListMetaData(TType.LIST, 
20233
          new ListMetaData(TType.LIST, 
19642
              new StructMetaData(TType.STRUCT, LineItem.class))));
-
 
19643
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
19644
          new FieldValueMetaData(TType.STRUCT)));
20234
              new FieldValueMetaData(TType.DOUBLE))));
19645
    }});
20235
    }});
19646
 
20236
 
19647
    static {
20237
    static {
19648
      FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);
20238
      FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_result.class, metaDataMap);
19649
    }
20239
    }
19650
 
20240
 
19651
    public getLineItemsForOrder_result() {
20241
    public getValidOrdersAmountRange_result() {
19652
    }
20242
    }
19653
 
20243
 
19654
    public getLineItemsForOrder_result(
20244
    public getValidOrdersAmountRange_result(
19655
      List<LineItem> success,
20245
      List<Double> success)
19656
      TransactionServiceException ex)
-
 
19657
    {
20246
    {
19658
      this();
20247
      this();
19659
      this.success = success;
20248
      this.success = success;
19660
      this.ex = ex;
-
 
19661
    }
20249
    }
19662
 
20250
 
19663
    /**
20251
    /**
19664
     * Performs a deep copy on <i>other</i>.
20252
     * Performs a deep copy on <i>other</i>.
19665
     */
20253
     */
19666
    public getLineItemsForOrder_result(getLineItemsForOrder_result other) {
20254
    public getValidOrdersAmountRange_result(getValidOrdersAmountRange_result other) {
19667
      if (other.isSetSuccess()) {
20255
      if (other.isSetSuccess()) {
19668
        List<LineItem> __this__success = new ArrayList<LineItem>();
20256
        List<Double> __this__success = new ArrayList<Double>();
19669
        for (LineItem other_element : other.success) {
20257
        for (Double other_element : other.success) {
19670
          __this__success.add(new LineItem(other_element));
20258
          __this__success.add(other_element);
19671
        }
20259
        }
19672
        this.success = __this__success;
20260
        this.success = __this__success;
19673
      }
20261
      }
19674
      if (other.isSetEx()) {
-
 
19675
        this.ex = new TransactionServiceException(other.ex);
-
 
19676
      }
-
 
19677
    }
20262
    }
19678
 
20263
 
19679
    public getLineItemsForOrder_result deepCopy() {
20264
    public getValidOrdersAmountRange_result deepCopy() {
19680
      return new getLineItemsForOrder_result(this);
20265
      return new getValidOrdersAmountRange_result(this);
19681
    }
20266
    }
19682
 
20267
 
19683
    @Deprecated
20268
    @Deprecated
19684
    public getLineItemsForOrder_result clone() {
20269
    public getValidOrdersAmountRange_result clone() {
19685
      return new getLineItemsForOrder_result(this);
20270
      return new getValidOrdersAmountRange_result(this);
19686
    }
20271
    }
19687
 
20272
 
19688
    public int getSuccessSize() {
20273
    public int getSuccessSize() {
19689
      return (this.success == null) ? 0 : this.success.size();
20274
      return (this.success == null) ? 0 : this.success.size();
19690
    }
20275
    }
19691
 
20276
 
19692
    public java.util.Iterator<LineItem> getSuccessIterator() {
20277
    public java.util.Iterator<Double> getSuccessIterator() {
19693
      return (this.success == null) ? null : this.success.iterator();
20278
      return (this.success == null) ? null : this.success.iterator();
19694
    }
20279
    }
19695
 
20280
 
19696
    public void addToSuccess(LineItem elem) {
20281
    public void addToSuccess(double elem) {
19697
      if (this.success == null) {
20282
      if (this.success == null) {
19698
        this.success = new ArrayList<LineItem>();
20283
        this.success = new ArrayList<Double>();
19699
      }
20284
      }
19700
      this.success.add(elem);
20285
      this.success.add(elem);
19701
    }
20286
    }
19702
 
20287
 
19703
    public List<LineItem> getSuccess() {
20288
    public List<Double> getSuccess() {
19704
      return this.success;
20289
      return this.success;
19705
    }
20290
    }
19706
 
20291
 
19707
    public getLineItemsForOrder_result setSuccess(List<LineItem> success) {
20292
    public getValidOrdersAmountRange_result setSuccess(List<Double> success) {
19708
      this.success = success;
20293
      this.success = success;
19709
      return this;
20294
      return this;
19710
    }
20295
    }
19711
 
20296
 
19712
    public void unsetSuccess() {
20297
    public void unsetSuccess() {
Line 19722... Line 20307...
19722
      if (!value) {
20307
      if (!value) {
19723
        this.success = null;
20308
        this.success = null;
19724
      }
20309
      }
19725
    }
20310
    }
19726
 
20311
 
19727
    public TransactionServiceException getEx() {
-
 
19728
      return this.ex;
-
 
19729
    }
-
 
19730
 
-
 
19731
    public getLineItemsForOrder_result setEx(TransactionServiceException ex) {
-
 
19732
      this.ex = ex;
-
 
19733
      return this;
-
 
19734
    }
-
 
19735
 
-
 
19736
    public void unsetEx() {
-
 
19737
      this.ex = null;
-
 
19738
    }
-
 
19739
 
-
 
19740
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
19741
    public boolean isSetEx() {
-
 
19742
      return this.ex != null;
-
 
19743
    }
-
 
19744
 
-
 
19745
    public void setExIsSet(boolean value) {
-
 
19746
      if (!value) {
-
 
19747
        this.ex = null;
-
 
19748
      }
-
 
19749
    }
-
 
19750
 
-
 
19751
    public void setFieldValue(_Fields field, Object value) {
20312
    public void setFieldValue(_Fields field, Object value) {
19752
      switch (field) {
20313
      switch (field) {
19753
      case SUCCESS:
20314
      case SUCCESS:
19754
        if (value == null) {
20315
        if (value == null) {
19755
          unsetSuccess();
20316
          unsetSuccess();
19756
        } else {
20317
        } else {
19757
          setSuccess((List<LineItem>)value);
20318
          setSuccess((List<Double>)value);
19758
        }
-
 
19759
        break;
-
 
19760
 
-
 
19761
      case EX:
-
 
19762
        if (value == null) {
-
 
19763
          unsetEx();
-
 
19764
        } else {
-
 
19765
          setEx((TransactionServiceException)value);
-
 
19766
        }
20319
        }
19767
        break;
20320
        break;
19768
 
20321
 
19769
      }
20322
      }
19770
    }
20323
    }
Line 19776... Line 20329...
19776
    public Object getFieldValue(_Fields field) {
20329
    public Object getFieldValue(_Fields field) {
19777
      switch (field) {
20330
      switch (field) {
19778
      case SUCCESS:
20331
      case SUCCESS:
19779
        return getSuccess();
20332
        return getSuccess();
19780
 
20333
 
19781
      case EX:
-
 
19782
        return getEx();
-
 
19783
 
-
 
19784
      }
20334
      }
19785
      throw new IllegalStateException();
20335
      throw new IllegalStateException();
19786
    }
20336
    }
19787
 
20337
 
19788
    public Object getFieldValue(int fieldId) {
20338
    public Object getFieldValue(int fieldId) {
Line 19792... Line 20342...
19792
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20342
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
19793
    public boolean isSet(_Fields field) {
20343
    public boolean isSet(_Fields field) {
19794
      switch (field) {
20344
      switch (field) {
19795
      case SUCCESS:
20345
      case SUCCESS:
19796
        return isSetSuccess();
20346
        return isSetSuccess();
19797
      case EX:
-
 
19798
        return isSetEx();
-
 
19799
      }
20347
      }
19800
      throw new IllegalStateException();
20348
      throw new IllegalStateException();
19801
    }
20349
    }
19802
 
20350
 
19803
    public boolean isSet(int fieldID) {
20351
    public boolean isSet(int fieldID) {
Line 19806... Line 20354...
19806
 
20354
 
19807
    @Override
20355
    @Override
19808
    public boolean equals(Object that) {
20356
    public boolean equals(Object that) {
19809
      if (that == null)
20357
      if (that == null)
19810
        return false;
20358
        return false;
19811
      if (that instanceof getLineItemsForOrder_result)
20359
      if (that instanceof getValidOrdersAmountRange_result)
19812
        return this.equals((getLineItemsForOrder_result)that);
20360
        return this.equals((getValidOrdersAmountRange_result)that);
19813
      return false;
20361
      return false;
19814
    }
20362
    }
19815
 
20363
 
19816
    public boolean equals(getLineItemsForOrder_result that) {
20364
    public boolean equals(getValidOrdersAmountRange_result that) {
19817
      if (that == null)
20365
      if (that == null)
19818
        return false;
20366
        return false;
19819
 
20367
 
19820
      boolean this_present_success = true && this.isSetSuccess();
20368
      boolean this_present_success = true && this.isSetSuccess();
19821
      boolean that_present_success = true && that.isSetSuccess();
20369
      boolean that_present_success = true && that.isSetSuccess();
Line 19824... Line 20372...
19824
          return false;
20372
          return false;
19825
        if (!this.success.equals(that.success))
20373
        if (!this.success.equals(that.success))
19826
          return false;
20374
          return false;
19827
      }
20375
      }
19828
 
20376
 
19829
      boolean this_present_ex = true && this.isSetEx();
-
 
19830
      boolean that_present_ex = true && that.isSetEx();
-
 
19831
      if (this_present_ex || that_present_ex) {
-
 
19832
        if (!(this_present_ex && that_present_ex))
-
 
19833
          return false;
-
 
19834
        if (!this.ex.equals(that.ex))
-
 
19835
          return false;
-
 
19836
      }
-
 
19837
 
-
 
19838
      return true;
20377
      return true;
19839
    }
20378
    }
19840
 
20379
 
19841
    @Override
20380
    @Override
19842
    public int hashCode() {
20381
    public int hashCode() {
19843
      return 0;
20382
      return 0;
19844
    }
20383
    }
19845
 
20384
 
19846
    public int compareTo(getLineItemsForOrder_result other) {
20385
    public int compareTo(getValidOrdersAmountRange_result other) {
19847
      if (!getClass().equals(other.getClass())) {
20386
      if (!getClass().equals(other.getClass())) {
19848
        return getClass().getName().compareTo(other.getClass().getName());
20387
        return getClass().getName().compareTo(other.getClass().getName());
19849
      }
20388
      }
19850
 
20389
 
19851
      int lastComparison = 0;
20390
      int lastComparison = 0;
19852
      getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;
20391
      getValidOrdersAmountRange_result typedOther = (getValidOrdersAmountRange_result)other;
19853
 
20392
 
19854
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
20393
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
19855
      if (lastComparison != 0) {
20394
      if (lastComparison != 0) {
19856
        return lastComparison;
20395
        return lastComparison;
19857
      }
20396
      }
19858
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
20397
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
19859
      if (lastComparison != 0) {
20398
      if (lastComparison != 0) {
19860
        return lastComparison;
20399
        return lastComparison;
19861
      }
20400
      }
19862
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
19863
      if (lastComparison != 0) {
-
 
19864
        return lastComparison;
-
 
19865
      }
-
 
19866
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
19867
      if (lastComparison != 0) {
-
 
19868
        return lastComparison;
-
 
19869
      }
-
 
19870
      return 0;
20401
      return 0;
19871
    }
20402
    }
19872
 
20403
 
19873
    public void read(TProtocol iprot) throws TException {
20404
    public void read(TProtocol iprot) throws TException {
19874
      TField field;
20405
      TField field;
Line 19885... Line 20416...
19885
        } else {
20416
        } else {
19886
          switch (fieldId) {
20417
          switch (fieldId) {
19887
            case SUCCESS:
20418
            case SUCCESS:
19888
              if (field.type == TType.LIST) {
20419
              if (field.type == TType.LIST) {
19889
                {
20420
                {
19890
                  TList _list44 = iprot.readListBegin();
20421
                  TList _list52 = iprot.readListBegin();
19891
                  this.success = new ArrayList<LineItem>(_list44.size);
20422
                  this.success = new ArrayList<Double>(_list52.size);
19892
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
20423
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
19893
                  {
20424
                  {
19894
                    LineItem _elem46;
20425
                    double _elem54;
19895
                    _elem46 = new LineItem();
-
 
19896
                    _elem46.read(iprot);
20426
                    _elem54 = iprot.readDouble();
19897
                    this.success.add(_elem46);
20427
                    this.success.add(_elem54);
19898
                  }
20428
                  }
19899
                  iprot.readListEnd();
20429
                  iprot.readListEnd();
19900
                }
20430
                }
19901
              } else { 
20431
              } else { 
19902
                TProtocolUtil.skip(iprot, field.type);
20432
                TProtocolUtil.skip(iprot, field.type);
19903
              }
20433
              }
19904
              break;
20434
              break;
19905
            case EX:
-
 
19906
              if (field.type == TType.STRUCT) {
-
 
19907
                this.ex = new TransactionServiceException();
-
 
19908
                this.ex.read(iprot);
-
 
19909
              } else { 
-
 
19910
                TProtocolUtil.skip(iprot, field.type);
-
 
19911
              }
-
 
19912
              break;
-
 
19913
          }
20435
          }
19914
          iprot.readFieldEnd();
20436
          iprot.readFieldEnd();
19915
        }
20437
        }
19916
      }
20438
      }
19917
      iprot.readStructEnd();
20439
      iprot.readStructEnd();
Line 19922... Line 20444...
19922
      oprot.writeStructBegin(STRUCT_DESC);
20444
      oprot.writeStructBegin(STRUCT_DESC);
19923
 
20445
 
19924
      if (this.isSetSuccess()) {
20446
      if (this.isSetSuccess()) {
19925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20447
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19926
        {
20448
        {
19927
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
20449
          oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
19928
          for (LineItem _iter47 : this.success)
20450
          for (double _iter55 : this.success)
19929
          {
20451
          {
19930
            _iter47.write(oprot);
20452
            oprot.writeDouble(_iter55);
19931
          }
20453
          }
19932
          oprot.writeListEnd();
20454
          oprot.writeListEnd();
19933
        }
20455
        }
19934
        oprot.writeFieldEnd();
20456
        oprot.writeFieldEnd();
19935
      } else if (this.isSetEx()) {
-
 
19936
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
19937
        this.ex.write(oprot);
-
 
19938
        oprot.writeFieldEnd();
-
 
19939
      }
20457
      }
19940
      oprot.writeFieldStop();
20458
      oprot.writeFieldStop();
19941
      oprot.writeStructEnd();
20459
      oprot.writeStructEnd();
19942
    }
20460
    }
19943
 
20461
 
19944
    @Override
20462
    @Override
19945
    public String toString() {
20463
    public String toString() {
19946
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");
20464
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_result(");
19947
      boolean first = true;
20465
      boolean first = true;
19948
 
20466
 
19949
      sb.append("success:");
20467
      sb.append("success:");
19950
      if (this.success == null) {
20468
      if (this.success == null) {
19951
        sb.append("null");
20469
        sb.append("null");
19952
      } else {
20470
      } else {
19953
        sb.append(this.success);
20471
        sb.append(this.success);
19954
      }
20472
      }
19955
      first = false;
20473
      first = false;
19956
      if (!first) sb.append(", ");
-
 
19957
      sb.append("ex:");
-
 
19958
      if (this.ex == null) {
-
 
19959
        sb.append("null");
-
 
19960
      } else {
-
 
19961
        sb.append(this.ex);
-
 
19962
      }
-
 
19963
      first = false;
-
 
19964
      sb.append(")");
20474
      sb.append(")");
19965
      return sb.toString();
20475
      return sb.toString();
19966
    }
20476
    }
19967
 
20477
 
19968
    public void validate() throws TException {
20478
    public void validate() throws TException {
19969
      // check for required fields
20479
      // check for required fields
19970
    }
20480
    }
19971
 
20481
 
19972
  }
20482
  }
19973
 
20483
 
19974
  public static class getOrderForCustomer_args implements TBase<getOrderForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrderForCustomer_args>   {
20484
  public static class getValidOrders_args implements TBase<getValidOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrders_args>   {
19975
    private static final TStruct STRUCT_DESC = new TStruct("getOrderForCustomer_args");
20485
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrders_args");
19976
 
20486
 
19977
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
20487
    private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)1);
19978
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
-
 
19979
 
20488
 
19980
    private long orderId;
20489
    private long limit;
19981
    private long customerId;
-
 
19982
 
20490
 
19983
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19984
    public enum _Fields implements TFieldIdEnum {
20492
    public enum _Fields implements TFieldIdEnum {
19985
      ORDER_ID((short)1, "orderId"),
20493
      LIMIT((short)1, "limit");
19986
      CUSTOMER_ID((short)2, "customerId");
-
 
19987
 
20494
 
19988
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20495
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
19989
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20496
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19990
 
20497
 
19991
      static {
20498
      static {
Line 20035... Line 20542...
20035
        return _fieldName;
20542
        return _fieldName;
20036
      }
20543
      }
20037
    }
20544
    }
20038
 
20545
 
20039
    // isset id assignments
20546
    // isset id assignments
20040
    private static final int __ORDERID_ISSET_ID = 0;
20547
    private static final int __LIMIT_ISSET_ID = 0;
20041
    private static final int __CUSTOMERID_ISSET_ID = 1;
-
 
20042
    private BitSet __isset_bit_vector = new BitSet(2);
20548
    private BitSet __isset_bit_vector = new BitSet(1);
20043
 
20549
 
20044
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20550
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20045
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
20551
      put(_Fields.LIMIT, new FieldMetaData("limit", TFieldRequirementType.DEFAULT, 
20046
          new FieldValueMetaData(TType.I64)));
-
 
20047
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
-
 
20048
          new FieldValueMetaData(TType.I64)));
20552
          new FieldValueMetaData(TType.I64)));
20049
    }});
20553
    }});
20050
 
20554
 
20051
    static {
20555
    static {
20052
      FieldMetaData.addStructMetaDataMap(getOrderForCustomer_args.class, metaDataMap);
20556
      FieldMetaData.addStructMetaDataMap(getValidOrders_args.class, metaDataMap);
20053
    }
20557
    }
20054
 
20558
 
20055
    public getOrderForCustomer_args() {
20559
    public getValidOrders_args() {
20056
    }
20560
    }
20057
 
20561
 
20058
    public getOrderForCustomer_args(
20562
    public getValidOrders_args(
20059
      long orderId,
20563
      long limit)
20060
      long customerId)
-
 
20061
    {
20564
    {
20062
      this();
20565
      this();
20063
      this.orderId = orderId;
20566
      this.limit = limit;
20064
      setOrderIdIsSet(true);
20567
      setLimitIsSet(true);
20065
      this.customerId = customerId;
-
 
20066
      setCustomerIdIsSet(true);
-
 
20067
    }
20568
    }
20068
 
20569
 
20069
    /**
20570
    /**
20070
     * Performs a deep copy on <i>other</i>.
20571
     * Performs a deep copy on <i>other</i>.
20071
     */
20572
     */
20072
    public getOrderForCustomer_args(getOrderForCustomer_args other) {
20573
    public getValidOrders_args(getValidOrders_args other) {
20073
      __isset_bit_vector.clear();
20574
      __isset_bit_vector.clear();
20074
      __isset_bit_vector.or(other.__isset_bit_vector);
20575
      __isset_bit_vector.or(other.__isset_bit_vector);
20075
      this.orderId = other.orderId;
20576
      this.limit = other.limit;
20076
      this.customerId = other.customerId;
-
 
20077
    }
20577
    }
20078
 
20578
 
20079
    public getOrderForCustomer_args deepCopy() {
20579
    public getValidOrders_args deepCopy() {
20080
      return new getOrderForCustomer_args(this);
20580
      return new getValidOrders_args(this);
20081
    }
20581
    }
20082
 
20582
 
20083
    @Deprecated
20583
    @Deprecated
20084
    public getOrderForCustomer_args clone() {
20584
    public getValidOrders_args clone() {
20085
      return new getOrderForCustomer_args(this);
20585
      return new getValidOrders_args(this);
20086
    }
-
 
20087
 
-
 
20088
    public long getOrderId() {
-
 
20089
      return this.orderId;
-
 
20090
    }
-
 
20091
 
-
 
20092
    public getOrderForCustomer_args setOrderId(long orderId) {
-
 
20093
      this.orderId = orderId;
-
 
20094
      setOrderIdIsSet(true);
-
 
20095
      return this;
-
 
20096
    }
-
 
20097
 
-
 
20098
    public void unsetOrderId() {
-
 
20099
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
20100
    }
-
 
20101
 
-
 
20102
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
20103
    public boolean isSetOrderId() {
-
 
20104
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
20105
    }
-
 
20106
 
-
 
20107
    public void setOrderIdIsSet(boolean value) {
-
 
20108
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
20109
    }
20586
    }
20110
 
20587
 
20111
    public long getCustomerId() {
20588
    public long getLimit() {
20112
      return this.customerId;
20589
      return this.limit;
20113
    }
20590
    }
20114
 
20591
 
20115
    public getOrderForCustomer_args setCustomerId(long customerId) {
20592
    public getValidOrders_args setLimit(long limit) {
20116
      this.customerId = customerId;
20593
      this.limit = limit;
20117
      setCustomerIdIsSet(true);
20594
      setLimitIsSet(true);
20118
      return this;
20595
      return this;
20119
    }
20596
    }
20120
 
20597
 
20121
    public void unsetCustomerId() {
20598
    public void unsetLimit() {
20122
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
20599
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
20123
    }
20600
    }
20124
 
20601
 
20125
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
20602
    /** Returns true if field limit is set (has been asigned a value) and false otherwise */
20126
    public boolean isSetCustomerId() {
20603
    public boolean isSetLimit() {
20127
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
20604
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
20128
    }
20605
    }
20129
 
20606
 
20130
    public void setCustomerIdIsSet(boolean value) {
20607
    public void setLimitIsSet(boolean value) {
20131
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
20608
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
20132
    }
20609
    }
20133
 
20610
 
20134
    public void setFieldValue(_Fields field, Object value) {
20611
    public void setFieldValue(_Fields field, Object value) {
20135
      switch (field) {
20612
      switch (field) {
20136
      case ORDER_ID:
20613
      case LIMIT:
20137
        if (value == null) {
-
 
20138
          unsetOrderId();
-
 
20139
        } else {
-
 
20140
          setOrderId((Long)value);
-
 
20141
        }
-
 
20142
        break;
-
 
20143
 
-
 
20144
      case CUSTOMER_ID:
-
 
20145
        if (value == null) {
20614
        if (value == null) {
20146
          unsetCustomerId();
20615
          unsetLimit();
20147
        } else {
20616
        } else {
20148
          setCustomerId((Long)value);
20617
          setLimit((Long)value);
20149
        }
20618
        }
20150
        break;
20619
        break;
20151
 
20620
 
20152
      }
20621
      }
20153
    }
20622
    }
Line 20156... Line 20625...
20156
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
20625
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
20157
    }
20626
    }
20158
 
20627
 
20159
    public Object getFieldValue(_Fields field) {
20628
    public Object getFieldValue(_Fields field) {
20160
      switch (field) {
20629
      switch (field) {
20161
      case ORDER_ID:
20630
      case LIMIT:
20162
        return new Long(getOrderId());
20631
        return new Long(getLimit());
20163
 
-
 
20164
      case CUSTOMER_ID:
-
 
20165
        return new Long(getCustomerId());
-
 
20166
 
20632
 
20167
      }
20633
      }
20168
      throw new IllegalStateException();
20634
      throw new IllegalStateException();
20169
    }
20635
    }
20170
 
20636
 
Line 20173... Line 20639...
20173
    }
20639
    }
20174
 
20640
 
20175
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20641
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20176
    public boolean isSet(_Fields field) {
20642
    public boolean isSet(_Fields field) {
20177
      switch (field) {
20643
      switch (field) {
20178
      case ORDER_ID:
20644
      case LIMIT:
20179
        return isSetOrderId();
20645
        return isSetLimit();
20180
      case CUSTOMER_ID:
-
 
20181
        return isSetCustomerId();
-
 
20182
      }
20646
      }
20183
      throw new IllegalStateException();
20647
      throw new IllegalStateException();
20184
    }
20648
    }
20185
 
20649
 
20186
    public boolean isSet(int fieldID) {
20650
    public boolean isSet(int fieldID) {
Line 20189... Line 20653...
20189
 
20653
 
20190
    @Override
20654
    @Override
20191
    public boolean equals(Object that) {
20655
    public boolean equals(Object that) {
20192
      if (that == null)
20656
      if (that == null)
20193
        return false;
20657
        return false;
20194
      if (that instanceof getOrderForCustomer_args)
20658
      if (that instanceof getValidOrders_args)
20195
        return this.equals((getOrderForCustomer_args)that);
20659
        return this.equals((getValidOrders_args)that);
20196
      return false;
20660
      return false;
20197
    }
20661
    }
20198
 
20662
 
20199
    public boolean equals(getOrderForCustomer_args that) {
20663
    public boolean equals(getValidOrders_args that) {
20200
      if (that == null)
20664
      if (that == null)
20201
        return false;
20665
        return false;
20202
 
20666
 
20203
      boolean this_present_orderId = true;
20667
      boolean this_present_limit = true;
20204
      boolean that_present_orderId = true;
20668
      boolean that_present_limit = true;
20205
      if (this_present_orderId || that_present_orderId) {
20669
      if (this_present_limit || that_present_limit) {
20206
        if (!(this_present_orderId && that_present_orderId))
20670
        if (!(this_present_limit && that_present_limit))
20207
          return false;
-
 
20208
        if (this.orderId != that.orderId)
-
 
20209
          return false;
-
 
20210
      }
-
 
20211
 
-
 
20212
      boolean this_present_customerId = true;
-
 
20213
      boolean that_present_customerId = true;
-
 
20214
      if (this_present_customerId || that_present_customerId) {
-
 
20215
        if (!(this_present_customerId && that_present_customerId))
-
 
20216
          return false;
20671
          return false;
20217
        if (this.customerId != that.customerId)
20672
        if (this.limit != that.limit)
20218
          return false;
20673
          return false;
20219
      }
20674
      }
20220
 
20675
 
20221
      return true;
20676
      return true;
20222
    }
20677
    }
Line 20224... Line 20679...
20224
    @Override
20679
    @Override
20225
    public int hashCode() {
20680
    public int hashCode() {
20226
      return 0;
20681
      return 0;
20227
    }
20682
    }
20228
 
20683
 
20229
    public int compareTo(getOrderForCustomer_args other) {
20684
    public int compareTo(getValidOrders_args other) {
20230
      if (!getClass().equals(other.getClass())) {
20685
      if (!getClass().equals(other.getClass())) {
20231
        return getClass().getName().compareTo(other.getClass().getName());
20686
        return getClass().getName().compareTo(other.getClass().getName());
20232
      }
20687
      }
20233
 
20688
 
20234
      int lastComparison = 0;
20689
      int lastComparison = 0;
20235
      getOrderForCustomer_args typedOther = (getOrderForCustomer_args)other;
20690
      getValidOrders_args typedOther = (getValidOrders_args)other;
20236
 
20691
 
20237
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
20692
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(isSetLimit());
20238
      if (lastComparison != 0) {
-
 
20239
        return lastComparison;
-
 
20240
      }
-
 
20241
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
20242
      if (lastComparison != 0) {
-
 
20243
        return lastComparison;
-
 
20244
      }
-
 
20245
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
-
 
20246
      if (lastComparison != 0) {
20693
      if (lastComparison != 0) {
20247
        return lastComparison;
20694
        return lastComparison;
20248
      }
20695
      }
20249
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
20696
      lastComparison = TBaseHelper.compareTo(limit, typedOther.limit);
20250
      if (lastComparison != 0) {
20697
      if (lastComparison != 0) {
20251
        return lastComparison;
20698
        return lastComparison;
20252
      }
20699
      }
20253
      return 0;
20700
      return 0;
20254
    }
20701
    }
Line 20265... Line 20712...
20265
        _Fields fieldId = _Fields.findByThriftId(field.id);
20712
        _Fields fieldId = _Fields.findByThriftId(field.id);
20266
        if (fieldId == null) {
20713
        if (fieldId == null) {
20267
          TProtocolUtil.skip(iprot, field.type);
20714
          TProtocolUtil.skip(iprot, field.type);
20268
        } else {
20715
        } else {
20269
          switch (fieldId) {
20716
          switch (fieldId) {
20270
            case ORDER_ID:
20717
            case LIMIT:
20271
              if (field.type == TType.I64) {
-
 
20272
                this.orderId = iprot.readI64();
-
 
20273
                setOrderIdIsSet(true);
-
 
20274
              } else { 
-
 
20275
                TProtocolUtil.skip(iprot, field.type);
-
 
20276
              }
-
 
20277
              break;
-
 
20278
            case CUSTOMER_ID:
-
 
20279
              if (field.type == TType.I64) {
20718
              if (field.type == TType.I64) {
20280
                this.customerId = iprot.readI64();
20719
                this.limit = iprot.readI64();
20281
                setCustomerIdIsSet(true);
20720
                setLimitIsSet(true);
20282
              } else { 
20721
              } else { 
20283
                TProtocolUtil.skip(iprot, field.type);
20722
                TProtocolUtil.skip(iprot, field.type);
20284
              }
20723
              }
20285
              break;
20724
              break;
20286
          }
20725
          }
Line 20293... Line 20732...
20293
 
20732
 
20294
    public void write(TProtocol oprot) throws TException {
20733
    public void write(TProtocol oprot) throws TException {
20295
      validate();
20734
      validate();
20296
 
20735
 
20297
      oprot.writeStructBegin(STRUCT_DESC);
20736
      oprot.writeStructBegin(STRUCT_DESC);
20298
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
20737
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
20299
      oprot.writeI64(this.orderId);
20738
      oprot.writeI64(this.limit);
20300
      oprot.writeFieldEnd();
-
 
20301
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
20302
      oprot.writeI64(this.customerId);
-
 
20303
      oprot.writeFieldEnd();
20739
      oprot.writeFieldEnd();
20304
      oprot.writeFieldStop();
20740
      oprot.writeFieldStop();
20305
      oprot.writeStructEnd();
20741
      oprot.writeStructEnd();
20306
    }
20742
    }
20307
 
20743
 
20308
    @Override
20744
    @Override
20309
    public String toString() {
20745
    public String toString() {
20310
      StringBuilder sb = new StringBuilder("getOrderForCustomer_args(");
20746
      StringBuilder sb = new StringBuilder("getValidOrders_args(");
20311
      boolean first = true;
20747
      boolean first = true;
20312
 
20748
 
20313
      sb.append("orderId:");
20749
      sb.append("limit:");
20314
      sb.append(this.orderId);
20750
      sb.append(this.limit);
20315
      first = false;
-
 
20316
      if (!first) sb.append(", ");
-
 
20317
      sb.append("customerId:");
-
 
20318
      sb.append(this.customerId);
-
 
20319
      first = false;
20751
      first = false;
20320
      sb.append(")");
20752
      sb.append(")");
20321
      return sb.toString();
20753
      return sb.toString();
20322
    }
20754
    }
20323
 
20755
 
Line 20325... Line 20757...
20325
      // check for required fields
20757
      // check for required fields
20326
    }
20758
    }
20327
 
20759
 
20328
  }
20760
  }
20329
 
20761
 
20330
  public static class getOrderForCustomer_result implements TBase<getOrderForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrderForCustomer_result>   {
20762
  public static class getValidOrders_result implements TBase<getValidOrders_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrders_result>   {
20331
    private static final TStruct STRUCT_DESC = new TStruct("getOrderForCustomer_result");
20763
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrders_result");
20332
 
20764
 
20333
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
20765
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
20334
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
20335
 
20766
 
20336
    private Order success;
20767
    private List<Order> success;
20337
    private TransactionServiceException ex;
-
 
20338
 
20768
 
20339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20340
    public enum _Fields implements TFieldIdEnum {
20770
    public enum _Fields implements TFieldIdEnum {
20341
      SUCCESS((short)0, "success"),
20771
      SUCCESS((short)0, "success");
20342
      EX((short)1, "ex");
-
 
20343
 
20772
 
20344
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20773
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20774
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20346
 
20775
 
20347
      static {
20776
      static {
Line 20394... Line 20823...
20394
 
20823
 
20395
    // isset id assignments
20824
    // isset id assignments
20396
 
20825
 
20397
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20826
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20398
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
20827
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
20399
          new StructMetaData(TType.STRUCT, Order.class)));
20828
          new ListMetaData(TType.LIST, 
20400
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
20401
          new FieldValueMetaData(TType.STRUCT)));
20829
              new StructMetaData(TType.STRUCT, Order.class))));
20402
    }});
20830
    }});
20403
 
20831
 
20404
    static {
20832
    static {
20405
      FieldMetaData.addStructMetaDataMap(getOrderForCustomer_result.class, metaDataMap);
20833
      FieldMetaData.addStructMetaDataMap(getValidOrders_result.class, metaDataMap);
20406
    }
20834
    }
20407
 
20835
 
20408
    public getOrderForCustomer_result() {
20836
    public getValidOrders_result() {
20409
    }
20837
    }
20410
 
20838
 
20411
    public getOrderForCustomer_result(
20839
    public getValidOrders_result(
20412
      Order success,
20840
      List<Order> success)
20413
      TransactionServiceException ex)
-
 
20414
    {
20841
    {
20415
      this();
20842
      this();
20416
      this.success = success;
20843
      this.success = success;
20417
      this.ex = ex;
-
 
20418
    }
20844
    }
20419
 
20845
 
20420
    /**
20846
    /**
20421
     * Performs a deep copy on <i>other</i>.
20847
     * Performs a deep copy on <i>other</i>.
20422
     */
20848
     */
20423
    public getOrderForCustomer_result(getOrderForCustomer_result other) {
20849
    public getValidOrders_result(getValidOrders_result other) {
20424
      if (other.isSetSuccess()) {
20850
      if (other.isSetSuccess()) {
-
 
20851
        List<Order> __this__success = new ArrayList<Order>();
-
 
20852
        for (Order other_element : other.success) {
20425
        this.success = new Order(other.success);
20853
          __this__success.add(new Order(other_element));
20426
      }
20854
        }
20427
      if (other.isSetEx()) {
-
 
20428
        this.ex = new TransactionServiceException(other.ex);
20855
        this.success = __this__success;
20429
      }
20856
      }
20430
    }
20857
    }
20431
 
20858
 
20432
    public getOrderForCustomer_result deepCopy() {
20859
    public getValidOrders_result deepCopy() {
20433
      return new getOrderForCustomer_result(this);
20860
      return new getValidOrders_result(this);
20434
    }
20861
    }
20435
 
20862
 
20436
    @Deprecated
20863
    @Deprecated
20437
    public getOrderForCustomer_result clone() {
20864
    public getValidOrders_result clone() {
20438
      return new getOrderForCustomer_result(this);
20865
      return new getValidOrders_result(this);
20439
    }
20866
    }
20440
 
20867
 
-
 
20868
    public int getSuccessSize() {
-
 
20869
      return (this.success == null) ? 0 : this.success.size();
-
 
20870
    }
-
 
20871
 
-
 
20872
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
20873
      return (this.success == null) ? null : this.success.iterator();
-
 
20874
    }
-
 
20875
 
-
 
20876
    public void addToSuccess(Order elem) {
-
 
20877
      if (this.success == null) {
-
 
20878
        this.success = new ArrayList<Order>();
-
 
20879
      }
-
 
20880
      this.success.add(elem);
-
 
20881
    }
-
 
20882
 
20441
    public Order getSuccess() {
20883
    public List<Order> getSuccess() {
20442
      return this.success;
20884
      return this.success;
20443
    }
20885
    }
20444
 
20886
 
20445
    public getOrderForCustomer_result setSuccess(Order success) {
20887
    public getValidOrders_result setSuccess(List<Order> success) {
20446
      this.success = success;
20888
      this.success = success;
20447
      return this;
20889
      return this;
20448
    }
20890
    }
20449
 
20891
 
20450
    public void unsetSuccess() {
20892
    public void unsetSuccess() {
Line 20460... Line 20902...
20460
      if (!value) {
20902
      if (!value) {
20461
        this.success = null;
20903
        this.success = null;
20462
      }
20904
      }
20463
    }
20905
    }
20464
 
20906
 
20465
    public TransactionServiceException getEx() {
-
 
20466
      return this.ex;
-
 
20467
    }
-
 
20468
 
-
 
20469
    public getOrderForCustomer_result setEx(TransactionServiceException ex) {
-
 
20470
      this.ex = ex;
-
 
20471
      return this;
-
 
20472
    }
-
 
20473
 
-
 
20474
    public void unsetEx() {
-
 
20475
      this.ex = null;
-
 
20476
    }
-
 
20477
 
-
 
20478
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
20479
    public boolean isSetEx() {
-
 
20480
      return this.ex != null;
-
 
20481
    }
-
 
20482
 
-
 
20483
    public void setExIsSet(boolean value) {
-
 
20484
      if (!value) {
-
 
20485
        this.ex = null;
-
 
20486
      }
-
 
20487
    }
-
 
20488
 
-
 
20489
    public void setFieldValue(_Fields field, Object value) {
20907
    public void setFieldValue(_Fields field, Object value) {
20490
      switch (field) {
20908
      switch (field) {
20491
      case SUCCESS:
20909
      case SUCCESS:
20492
        if (value == null) {
20910
        if (value == null) {
20493
          unsetSuccess();
20911
          unsetSuccess();
20494
        } else {
20912
        } else {
20495
          setSuccess((Order)value);
20913
          setSuccess((List<Order>)value);
20496
        }
-
 
20497
        break;
-
 
20498
 
-
 
20499
      case EX:
-
 
20500
        if (value == null) {
-
 
20501
          unsetEx();
-
 
20502
        } else {
-
 
20503
          setEx((TransactionServiceException)value);
-
 
20504
        }
20914
        }
20505
        break;
20915
        break;
20506
 
20916
 
20507
      }
20917
      }
20508
    }
20918
    }
Line 20514... Line 20924...
20514
    public Object getFieldValue(_Fields field) {
20924
    public Object getFieldValue(_Fields field) {
20515
      switch (field) {
20925
      switch (field) {
20516
      case SUCCESS:
20926
      case SUCCESS:
20517
        return getSuccess();
20927
        return getSuccess();
20518
 
20928
 
20519
      case EX:
-
 
20520
        return getEx();
-
 
20521
 
-
 
20522
      }
20929
      }
20523
      throw new IllegalStateException();
20930
      throw new IllegalStateException();
20524
    }
20931
    }
20525
 
20932
 
20526
    public Object getFieldValue(int fieldId) {
20933
    public Object getFieldValue(int fieldId) {
Line 20530... Line 20937...
20530
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20937
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20531
    public boolean isSet(_Fields field) {
20938
    public boolean isSet(_Fields field) {
20532
      switch (field) {
20939
      switch (field) {
20533
      case SUCCESS:
20940
      case SUCCESS:
20534
        return isSetSuccess();
20941
        return isSetSuccess();
20535
      case EX:
-
 
20536
        return isSetEx();
-
 
20537
      }
20942
      }
20538
      throw new IllegalStateException();
20943
      throw new IllegalStateException();
20539
    }
20944
    }
20540
 
20945
 
20541
    public boolean isSet(int fieldID) {
20946
    public boolean isSet(int fieldID) {
Line 20544... Line 20949...
20544
 
20949
 
20545
    @Override
20950
    @Override
20546
    public boolean equals(Object that) {
20951
    public boolean equals(Object that) {
20547
      if (that == null)
20952
      if (that == null)
20548
        return false;
20953
        return false;
20549
      if (that instanceof getOrderForCustomer_result)
20954
      if (that instanceof getValidOrders_result)
20550
        return this.equals((getOrderForCustomer_result)that);
20955
        return this.equals((getValidOrders_result)that);
20551
      return false;
20956
      return false;
20552
    }
20957
    }
20553
 
20958
 
20554
    public boolean equals(getOrderForCustomer_result that) {
20959
    public boolean equals(getValidOrders_result that) {
20555
      if (that == null)
20960
      if (that == null)
20556
        return false;
20961
        return false;
20557
 
20962
 
20558
      boolean this_present_success = true && this.isSetSuccess();
20963
      boolean this_present_success = true && this.isSetSuccess();
20559
      boolean that_present_success = true && that.isSetSuccess();
20964
      boolean that_present_success = true && that.isSetSuccess();
Line 20562... Line 20967...
20562
          return false;
20967
          return false;
20563
        if (!this.success.equals(that.success))
20968
        if (!this.success.equals(that.success))
20564
          return false;
20969
          return false;
20565
      }
20970
      }
20566
 
20971
 
20567
      boolean this_present_ex = true && this.isSetEx();
-
 
20568
      boolean that_present_ex = true && that.isSetEx();
-
 
20569
      if (this_present_ex || that_present_ex) {
-
 
20570
        if (!(this_present_ex && that_present_ex))
-
 
20571
          return false;
-
 
20572
        if (!this.ex.equals(that.ex))
-
 
20573
          return false;
-
 
20574
      }
-
 
20575
 
-
 
20576
      return true;
20972
      return true;
20577
    }
20973
    }
20578
 
20974
 
20579
    @Override
20975
    @Override
20580
    public int hashCode() {
20976
    public int hashCode() {
20581
      return 0;
20977
      return 0;
20582
    }
20978
    }
20583
 
20979
 
20584
    public int compareTo(getOrderForCustomer_result other) {
20980
    public int compareTo(getValidOrders_result other) {
20585
      if (!getClass().equals(other.getClass())) {
20981
      if (!getClass().equals(other.getClass())) {
20586
        return getClass().getName().compareTo(other.getClass().getName());
20982
        return getClass().getName().compareTo(other.getClass().getName());
20587
      }
20983
      }
20588
 
20984
 
20589
      int lastComparison = 0;
20985
      int lastComparison = 0;
20590
      getOrderForCustomer_result typedOther = (getOrderForCustomer_result)other;
20986
      getValidOrders_result typedOther = (getValidOrders_result)other;
20591
 
20987
 
20592
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
20988
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
20593
      if (lastComparison != 0) {
20989
      if (lastComparison != 0) {
20594
        return lastComparison;
20990
        return lastComparison;
20595
      }
20991
      }
20596
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
20992
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
20597
      if (lastComparison != 0) {
20993
      if (lastComparison != 0) {
20598
        return lastComparison;
20994
        return lastComparison;
20599
      }
20995
      }
20600
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
20601
      if (lastComparison != 0) {
-
 
20602
        return lastComparison;
-
 
20603
      }
-
 
20604
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
20605
      if (lastComparison != 0) {
-
 
20606
        return lastComparison;
-
 
20607
      }
-
 
20608
      return 0;
20996
      return 0;
20609
    }
20997
    }
20610
 
20998
 
20611
    public void read(TProtocol iprot) throws TException {
20999
    public void read(TProtocol iprot) throws TException {
20612
      TField field;
21000
      TField field;
Line 20621... Line 21009...
20621
        if (fieldId == null) {
21009
        if (fieldId == null) {
20622
          TProtocolUtil.skip(iprot, field.type);
21010
          TProtocolUtil.skip(iprot, field.type);
20623
        } else {
21011
        } else {
20624
          switch (fieldId) {
21012
          switch (fieldId) {
20625
            case SUCCESS:
21013
            case SUCCESS:
20626
              if (field.type == TType.STRUCT) {
21014
              if (field.type == TType.LIST) {
20627
                this.success = new Order();
21015
                {
20628
                this.success.read(iprot);
21016
                  TList _list56 = iprot.readListBegin();
20629
              } else { 
21017
                  this.success = new ArrayList<Order>(_list56.size);
20630
                TProtocolUtil.skip(iprot, field.type);
21018
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
20631
              }
21019
                  {
20632
              break;
21020
                    Order _elem58;
20633
            case EX:
21021
                    _elem58 = new Order();
20634
              if (field.type == TType.STRUCT) {
21022
                    _elem58.read(iprot);
20635
                this.ex = new TransactionServiceException();
21023
                    this.success.add(_elem58);
-
 
21024
                  }
20636
                this.ex.read(iprot);
21025
                  iprot.readListEnd();
-
 
21026
                }
20637
              } else { 
21027
              } else { 
20638
                TProtocolUtil.skip(iprot, field.type);
21028
                TProtocolUtil.skip(iprot, field.type);
20639
              }
21029
              }
20640
              break;
21030
              break;
20641
          }
21031
          }
Line 20649... Line 21039...
20649
    public void write(TProtocol oprot) throws TException {
21039
    public void write(TProtocol oprot) throws TException {
20650
      oprot.writeStructBegin(STRUCT_DESC);
21040
      oprot.writeStructBegin(STRUCT_DESC);
20651
 
21041
 
20652
      if (this.isSetSuccess()) {
21042
      if (this.isSetSuccess()) {
20653
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21043
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
21044
        {
20654
        this.success.write(oprot);
21045
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
20655
        oprot.writeFieldEnd();
21046
          for (Order _iter59 : this.success)
20656
      } else if (this.isSetEx()) {
21047
          {
20657
        oprot.writeFieldBegin(EX_FIELD_DESC);
21048
            _iter59.write(oprot);
-
 
21049
          }
20658
        this.ex.write(oprot);
21050
          oprot.writeListEnd();
-
 
21051
        }
20659
        oprot.writeFieldEnd();
21052
        oprot.writeFieldEnd();
20660
      }
21053
      }
20661
      oprot.writeFieldStop();
21054
      oprot.writeFieldStop();
20662
      oprot.writeStructEnd();
21055
      oprot.writeStructEnd();
20663
    }
21056
    }
20664
 
21057
 
20665
    @Override
21058
    @Override
20666
    public String toString() {
21059
    public String toString() {
20667
      StringBuilder sb = new StringBuilder("getOrderForCustomer_result(");
21060
      StringBuilder sb = new StringBuilder("getValidOrders_result(");
20668
      boolean first = true;
21061
      boolean first = true;
20669
 
21062
 
20670
      sb.append("success:");
21063
      sb.append("success:");
20671
      if (this.success == null) {
21064
      if (this.success == null) {
20672
        sb.append("null");
21065
        sb.append("null");
20673
      } else {
21066
      } else {
20674
        sb.append(this.success);
21067
        sb.append(this.success);
20675
      }
21068
      }
20676
      first = false;
21069
      first = false;
20677
      if (!first) sb.append(", ");
-
 
20678
      sb.append("ex:");
-
 
20679
      if (this.ex == null) {
-
 
20680
        sb.append("null");
-
 
20681
      } else {
-
 
20682
        sb.append(this.ex);
-
 
20683
      }
-
 
20684
      first = false;
-
 
20685
      sb.append(")");
21070
      sb.append(")");
20686
      return sb.toString();
21071
      return sb.toString();
20687
    }
21072
    }
20688
 
21073
 
20689
    public void validate() throws TException {
21074
    public void validate() throws TException {
Line 21286... Line 21671...
21286
        } else {
21671
        } else {
21287
          switch (fieldId) {
21672
          switch (fieldId) {
21288
            case SUCCESS:
21673
            case SUCCESS:
21289
              if (field.type == TType.LIST) {
21674
              if (field.type == TType.LIST) {
21290
                {
21675
                {
21291
                  TList _list48 = iprot.readListBegin();
21676
                  TList _list60 = iprot.readListBegin();
21292
                  this.success = new ArrayList<Order>(_list48.size);
21677
                  this.success = new ArrayList<Order>(_list60.size);
21293
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
21678
                  for (int _i61 = 0; _i61 < _list60.size; ++_i61)
21294
                  {
21679
                  {
21295
                    Order _elem50;
21680
                    Order _elem62;
21296
                    _elem50 = new Order();
21681
                    _elem62 = new Order();
21297
                    _elem50.read(iprot);
21682
                    _elem62.read(iprot);
21298
                    this.success.add(_elem50);
21683
                    this.success.add(_elem62);
21299
                  }
21684
                  }
21300
                  iprot.readListEnd();
21685
                  iprot.readListEnd();
21301
                }
21686
                }
21302
              } else { 
21687
              } else { 
21303
                TProtocolUtil.skip(iprot, field.type);
21688
                TProtocolUtil.skip(iprot, field.type);
Line 21324... Line 21709...
21324
 
21709
 
21325
      if (this.isSetSuccess()) {
21710
      if (this.isSetSuccess()) {
21326
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21711
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21327
        {
21712
        {
21328
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21713
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21329
          for (Order _iter51 : this.success)
21714
          for (Order _iter63 : this.success)
21330
          {
21715
          {
21331
            _iter51.write(oprot);
21716
            _iter63.write(oprot);
21332
          }
21717
          }
21333
          oprot.writeListEnd();
21718
          oprot.writeListEnd();
21334
        }
21719
        }
21335
        oprot.writeFieldEnd();
21720
        oprot.writeFieldEnd();
21336
      } else if (this.isSetEx()) {
21721
      } else if (this.isSetEx()) {
Line 22011... Line 22396...
22011
      // check for required fields
22396
      // check for required fields
22012
    }
22397
    }
22013
 
22398
 
22014
  }
22399
  }
22015
 
22400
 
22016
  public static class markOrdersAsManifested_args implements TBase<markOrdersAsManifested_args._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsManifested_args>   {
22401
  public static class verifyOrder_args implements TBase<verifyOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<verifyOrder_args>   {
22017
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsManifested_args");
22402
    private static final TStruct STRUCT_DESC = new TStruct("verifyOrder_args");
22018
 
22403
 
22019
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)1);
-
 
22020
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)2);
22404
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
22021
 
22405
 
22022
    private long warehouseId;
-
 
22023
    private long providerId;
22406
    private long orderId;
22024
 
22407
 
22025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22408
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22026
    public enum _Fields implements TFieldIdEnum {
22409
    public enum _Fields implements TFieldIdEnum {
22027
      WAREHOUSE_ID((short)1, "warehouseId"),
-
 
22028
      PROVIDER_ID((short)2, "providerId");
22410
      ORDER_ID((short)1, "orderId");
22029
 
22411
 
22030
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22412
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22031
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22413
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22032
 
22414
 
22033
      static {
22415
      static {
Line 22077... Line 22459...
22077
        return _fieldName;
22459
        return _fieldName;
22078
      }
22460
      }
22079
    }
22461
    }
22080
 
22462
 
22081
    // isset id assignments
22463
    // isset id assignments
22082
    private static final int __WAREHOUSEID_ISSET_ID = 0;
-
 
22083
    private static final int __PROVIDERID_ISSET_ID = 1;
22464
    private static final int __ORDERID_ISSET_ID = 0;
22084
    private BitSet __isset_bit_vector = new BitSet(2);
22465
    private BitSet __isset_bit_vector = new BitSet(1);
22085
 
22466
 
22086
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22467
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22087
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
22088
          new FieldValueMetaData(TType.I64)));
-
 
22089
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
22468
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
22090
          new FieldValueMetaData(TType.I64)));
22469
          new FieldValueMetaData(TType.I64)));
22091
    }});
22470
    }});
22092
 
22471
 
22093
    static {
22472
    static {
22094
      FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_args.class, metaDataMap);
22473
      FieldMetaData.addStructMetaDataMap(verifyOrder_args.class, metaDataMap);
22095
    }
22474
    }
22096
 
22475
 
22097
    public markOrdersAsManifested_args() {
22476
    public verifyOrder_args() {
22098
    }
22477
    }
22099
 
22478
 
22100
    public markOrdersAsManifested_args(
22479
    public verifyOrder_args(
22101
      long warehouseId,
-
 
22102
      long providerId)
22480
      long orderId)
22103
    {
22481
    {
22104
      this();
22482
      this();
22105
      this.warehouseId = warehouseId;
-
 
22106
      setWarehouseIdIsSet(true);
-
 
22107
      this.providerId = providerId;
22483
      this.orderId = orderId;
22108
      setProviderIdIsSet(true);
22484
      setOrderIdIsSet(true);
22109
    }
22485
    }
22110
 
22486
 
22111
    /**
22487
    /**
22112
     * Performs a deep copy on <i>other</i>.
22488
     * Performs a deep copy on <i>other</i>.
22113
     */
22489
     */
22114
    public markOrdersAsManifested_args(markOrdersAsManifested_args other) {
22490
    public verifyOrder_args(verifyOrder_args other) {
22115
      __isset_bit_vector.clear();
22491
      __isset_bit_vector.clear();
22116
      __isset_bit_vector.or(other.__isset_bit_vector);
22492
      __isset_bit_vector.or(other.__isset_bit_vector);
22117
      this.warehouseId = other.warehouseId;
-
 
22118
      this.providerId = other.providerId;
22493
      this.orderId = other.orderId;
22119
    }
22494
    }
22120
 
22495
 
22121
    public markOrdersAsManifested_args deepCopy() {
22496
    public verifyOrder_args deepCopy() {
22122
      return new markOrdersAsManifested_args(this);
22497
      return new verifyOrder_args(this);
22123
    }
22498
    }
22124
 
22499
 
22125
    @Deprecated
22500
    @Deprecated
22126
    public markOrdersAsManifested_args clone() {
22501
    public verifyOrder_args clone() {
22127
      return new markOrdersAsManifested_args(this);
22502
      return new verifyOrder_args(this);
22128
    }
-
 
22129
 
-
 
22130
    public long getWarehouseId() {
-
 
22131
      return this.warehouseId;
-
 
22132
    }
-
 
22133
 
-
 
22134
    public markOrdersAsManifested_args setWarehouseId(long warehouseId) {
-
 
22135
      this.warehouseId = warehouseId;
-
 
22136
      setWarehouseIdIsSet(true);
-
 
22137
      return this;
-
 
22138
    }
22503
    }
22139
 
22504
 
22140
    public void unsetWarehouseId() {
-
 
22141
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
22142
    }
-
 
22143
 
-
 
22144
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
-
 
22145
    public boolean isSetWarehouseId() {
-
 
22146
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
22147
    }
-
 
22148
 
-
 
22149
    public void setWarehouseIdIsSet(boolean value) {
-
 
22150
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
22151
    }
-
 
22152
 
-
 
22153
    public long getProviderId() {
22505
    public long getOrderId() {
22154
      return this.providerId;
22506
      return this.orderId;
22155
    }
22507
    }
22156
 
22508
 
22157
    public markOrdersAsManifested_args setProviderId(long providerId) {
22509
    public verifyOrder_args setOrderId(long orderId) {
22158
      this.providerId = providerId;
22510
      this.orderId = orderId;
22159
      setProviderIdIsSet(true);
22511
      setOrderIdIsSet(true);
22160
      return this;
22512
      return this;
22161
    }
22513
    }
22162
 
22514
 
22163
    public void unsetProviderId() {
22515
    public void unsetOrderId() {
22164
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
22516
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22165
    }
22517
    }
22166
 
22518
 
22167
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
22519
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
22168
    public boolean isSetProviderId() {
22520
    public boolean isSetOrderId() {
22169
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
22521
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22170
    }
22522
    }
22171
 
22523
 
22172
    public void setProviderIdIsSet(boolean value) {
22524
    public void setOrderIdIsSet(boolean value) {
22173
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
22525
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22174
    }
22526
    }
22175
 
22527
 
22176
    public void setFieldValue(_Fields field, Object value) {
22528
    public void setFieldValue(_Fields field, Object value) {
22177
      switch (field) {
22529
      switch (field) {
22178
      case WAREHOUSE_ID:
-
 
22179
        if (value == null) {
-
 
22180
          unsetWarehouseId();
-
 
22181
        } else {
-
 
22182
          setWarehouseId((Long)value);
-
 
22183
        }
-
 
22184
        break;
-
 
22185
 
-
 
22186
      case PROVIDER_ID:
22530
      case ORDER_ID:
22187
        if (value == null) {
22531
        if (value == null) {
22188
          unsetProviderId();
22532
          unsetOrderId();
22189
        } else {
22533
        } else {
22190
          setProviderId((Long)value);
22534
          setOrderId((Long)value);
22191
        }
22535
        }
22192
        break;
22536
        break;
22193
 
22537
 
22194
      }
22538
      }
22195
    }
22539
    }
Line 22198... Line 22542...
22198
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22542
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22199
    }
22543
    }
22200
 
22544
 
22201
    public Object getFieldValue(_Fields field) {
22545
    public Object getFieldValue(_Fields field) {
22202
      switch (field) {
22546
      switch (field) {
22203
      case WAREHOUSE_ID:
-
 
22204
        return new Long(getWarehouseId());
-
 
22205
 
-
 
22206
      case PROVIDER_ID:
22547
      case ORDER_ID:
22207
        return new Long(getProviderId());
22548
        return new Long(getOrderId());
22208
 
22549
 
22209
      }
22550
      }
22210
      throw new IllegalStateException();
22551
      throw new IllegalStateException();
22211
    }
22552
    }
22212
 
22553
 
Line 22215... Line 22556...
22215
    }
22556
    }
22216
 
22557
 
22217
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22558
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22218
    public boolean isSet(_Fields field) {
22559
    public boolean isSet(_Fields field) {
22219
      switch (field) {
22560
      switch (field) {
22220
      case WAREHOUSE_ID:
-
 
22221
        return isSetWarehouseId();
-
 
22222
      case PROVIDER_ID:
22561
      case ORDER_ID:
22223
        return isSetProviderId();
22562
        return isSetOrderId();
22224
      }
22563
      }
22225
      throw new IllegalStateException();
22564
      throw new IllegalStateException();
22226
    }
22565
    }
22227
 
22566
 
22228
    public boolean isSet(int fieldID) {
22567
    public boolean isSet(int fieldID) {
Line 22231... Line 22570...
22231
 
22570
 
22232
    @Override
22571
    @Override
22233
    public boolean equals(Object that) {
22572
    public boolean equals(Object that) {
22234
      if (that == null)
22573
      if (that == null)
22235
        return false;
22574
        return false;
22236
      if (that instanceof markOrdersAsManifested_args)
22575
      if (that instanceof verifyOrder_args)
22237
        return this.equals((markOrdersAsManifested_args)that);
22576
        return this.equals((verifyOrder_args)that);
22238
      return false;
22577
      return false;
22239
    }
22578
    }
22240
 
22579
 
22241
    public boolean equals(markOrdersAsManifested_args that) {
22580
    public boolean equals(verifyOrder_args that) {
22242
      if (that == null)
22581
      if (that == null)
22243
        return false;
22582
        return false;
22244
 
22583
 
22245
      boolean this_present_warehouseId = true;
-
 
22246
      boolean that_present_warehouseId = true;
-
 
22247
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
22248
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
22249
          return false;
-
 
22250
        if (this.warehouseId != that.warehouseId)
-
 
22251
          return false;
-
 
22252
      }
-
 
22253
 
-
 
22254
      boolean this_present_providerId = true;
22584
      boolean this_present_orderId = true;
22255
      boolean that_present_providerId = true;
22585
      boolean that_present_orderId = true;
22256
      if (this_present_providerId || that_present_providerId) {
22586
      if (this_present_orderId || that_present_orderId) {
22257
        if (!(this_present_providerId && that_present_providerId))
22587
        if (!(this_present_orderId && that_present_orderId))
22258
          return false;
22588
          return false;
22259
        if (this.providerId != that.providerId)
22589
        if (this.orderId != that.orderId)
22260
          return false;
22590
          return false;
22261
      }
22591
      }
22262
 
22592
 
22263
      return true;
22593
      return true;
22264
    }
22594
    }
Line 22266... Line 22596...
22266
    @Override
22596
    @Override
22267
    public int hashCode() {
22597
    public int hashCode() {
22268
      return 0;
22598
      return 0;
22269
    }
22599
    }
22270
 
22600
 
22271
    public int compareTo(markOrdersAsManifested_args other) {
22601
    public int compareTo(verifyOrder_args other) {
22272
      if (!getClass().equals(other.getClass())) {
22602
      if (!getClass().equals(other.getClass())) {
22273
        return getClass().getName().compareTo(other.getClass().getName());
22603
        return getClass().getName().compareTo(other.getClass().getName());
22274
      }
22604
      }
22275
 
22605
 
22276
      int lastComparison = 0;
22606
      int lastComparison = 0;
22277
      markOrdersAsManifested_args typedOther = (markOrdersAsManifested_args)other;
22607
      verifyOrder_args typedOther = (verifyOrder_args)other;
22278
 
22608
 
22279
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
-
 
22280
      if (lastComparison != 0) {
-
 
22281
        return lastComparison;
-
 
22282
      }
-
 
22283
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
-
 
22284
      if (lastComparison != 0) {
-
 
22285
        return lastComparison;
-
 
22286
      }
-
 
22287
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
22609
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
22288
      if (lastComparison != 0) {
22610
      if (lastComparison != 0) {
22289
        return lastComparison;
22611
        return lastComparison;
22290
      }
22612
      }
22291
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
22613
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
22292
      if (lastComparison != 0) {
22614
      if (lastComparison != 0) {
22293
        return lastComparison;
22615
        return lastComparison;
22294
      }
22616
      }
22295
      return 0;
22617
      return 0;
22296
    }
22618
    }
Line 22307... Line 22629...
22307
        _Fields fieldId = _Fields.findByThriftId(field.id);
22629
        _Fields fieldId = _Fields.findByThriftId(field.id);
22308
        if (fieldId == null) {
22630
        if (fieldId == null) {
22309
          TProtocolUtil.skip(iprot, field.type);
22631
          TProtocolUtil.skip(iprot, field.type);
22310
        } else {
22632
        } else {
22311
          switch (fieldId) {
22633
          switch (fieldId) {
22312
            case WAREHOUSE_ID:
-
 
22313
              if (field.type == TType.I64) {
-
 
22314
                this.warehouseId = iprot.readI64();
-
 
22315
                setWarehouseIdIsSet(true);
-
 
22316
              } else { 
-
 
22317
                TProtocolUtil.skip(iprot, field.type);
-
 
22318
              }
-
 
22319
              break;
-
 
22320
            case PROVIDER_ID:
22634
            case ORDER_ID:
22321
              if (field.type == TType.I64) {
22635
              if (field.type == TType.I64) {
22322
                this.providerId = iprot.readI64();
22636
                this.orderId = iprot.readI64();
22323
                setProviderIdIsSet(true);
22637
                setOrderIdIsSet(true);
22324
              } else { 
22638
              } else { 
22325
                TProtocolUtil.skip(iprot, field.type);
22639
                TProtocolUtil.skip(iprot, field.type);
22326
              }
22640
              }
22327
              break;
22641
              break;
22328
          }
22642
          }
Line 22335... Line 22649...
22335
 
22649
 
22336
    public void write(TProtocol oprot) throws TException {
22650
    public void write(TProtocol oprot) throws TException {
22337
      validate();
22651
      validate();
22338
 
22652
 
22339
      oprot.writeStructBegin(STRUCT_DESC);
22653
      oprot.writeStructBegin(STRUCT_DESC);
22340
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
22341
      oprot.writeI64(this.warehouseId);
-
 
22342
      oprot.writeFieldEnd();
-
 
22343
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
22654
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22344
      oprot.writeI64(this.providerId);
22655
      oprot.writeI64(this.orderId);
22345
      oprot.writeFieldEnd();
22656
      oprot.writeFieldEnd();
22346
      oprot.writeFieldStop();
22657
      oprot.writeFieldStop();
22347
      oprot.writeStructEnd();
22658
      oprot.writeStructEnd();
22348
    }
22659
    }
22349
 
22660
 
22350
    @Override
22661
    @Override
22351
    public String toString() {
22662
    public String toString() {
22352
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_args(");
22663
      StringBuilder sb = new StringBuilder("verifyOrder_args(");
22353
      boolean first = true;
22664
      boolean first = true;
22354
 
22665
 
22355
      sb.append("warehouseId:");
-
 
22356
      sb.append(this.warehouseId);
-
 
22357
      first = false;
-
 
22358
      if (!first) sb.append(", ");
-
 
22359
      sb.append("providerId:");
22666
      sb.append("orderId:");
22360
      sb.append(this.providerId);
22667
      sb.append(this.orderId);
22361
      first = false;
22668
      first = false;
22362
      sb.append(")");
22669
      sb.append(")");
22363
      return sb.toString();
22670
      return sb.toString();
22364
    }
22671
    }
22365
 
22672
 
Line 22367... Line 22674...
22367
      // check for required fields
22674
      // check for required fields
22368
    }
22675
    }
22369
 
22676
 
22370
  }
22677
  }
22371
 
22678
 
22372
  public static class markOrdersAsManifested_result implements TBase<markOrdersAsManifested_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsManifested_result>   {
22679
  public static class verifyOrder_result implements TBase<verifyOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<verifyOrder_result>   {
22373
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsManifested_result");
22680
    private static final TStruct STRUCT_DESC = new TStruct("verifyOrder_result");
22374
 
22681
 
22375
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
22682
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
22376
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
22683
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
22377
 
22684
 
22378
    private boolean success;
22685
    private boolean success;
Line 22444... Line 22751...
22444
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
22751
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
22445
          new FieldValueMetaData(TType.STRUCT)));
22752
          new FieldValueMetaData(TType.STRUCT)));
22446
    }});
22753
    }});
22447
 
22754
 
22448
    static {
22755
    static {
22449
      FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_result.class, metaDataMap);
22756
      FieldMetaData.addStructMetaDataMap(verifyOrder_result.class, metaDataMap);
22450
    }
22757
    }
22451
 
22758
 
22452
    public markOrdersAsManifested_result() {
22759
    public verifyOrder_result() {
22453
    }
22760
    }
22454
 
22761
 
22455
    public markOrdersAsManifested_result(
22762
    public verifyOrder_result(
22456
      boolean success,
22763
      boolean success,
22457
      TransactionServiceException ex)
22764
      TransactionServiceException ex)
22458
    {
22765
    {
22459
      this();
22766
      this();
22460
      this.success = success;
22767
      this.success = success;
Line 22463... Line 22770...
22463
    }
22770
    }
22464
 
22771
 
22465
    /**
22772
    /**
22466
     * Performs a deep copy on <i>other</i>.
22773
     * Performs a deep copy on <i>other</i>.
22467
     */
22774
     */
22468
    public markOrdersAsManifested_result(markOrdersAsManifested_result other) {
22775
    public verifyOrder_result(verifyOrder_result other) {
22469
      __isset_bit_vector.clear();
22776
      __isset_bit_vector.clear();
22470
      __isset_bit_vector.or(other.__isset_bit_vector);
22777
      __isset_bit_vector.or(other.__isset_bit_vector);
22471
      this.success = other.success;
22778
      this.success = other.success;
22472
      if (other.isSetEx()) {
22779
      if (other.isSetEx()) {
22473
        this.ex = new TransactionServiceException(other.ex);
22780
        this.ex = new TransactionServiceException(other.ex);
22474
      }
22781
      }
22475
    }
22782
    }
22476
 
22783
 
22477
    public markOrdersAsManifested_result deepCopy() {
22784
    public verifyOrder_result deepCopy() {
22478
      return new markOrdersAsManifested_result(this);
22785
      return new verifyOrder_result(this);
22479
    }
22786
    }
22480
 
22787
 
22481
    @Deprecated
22788
    @Deprecated
22482
    public markOrdersAsManifested_result clone() {
22789
    public verifyOrder_result clone() {
22483
      return new markOrdersAsManifested_result(this);
22790
      return new verifyOrder_result(this);
22484
    }
22791
    }
22485
 
22792
 
22486
    public boolean isSuccess() {
22793
    public boolean isSuccess() {
22487
      return this.success;
22794
      return this.success;
22488
    }
22795
    }
22489
 
22796
 
22490
    public markOrdersAsManifested_result setSuccess(boolean success) {
22797
    public verifyOrder_result setSuccess(boolean success) {
22491
      this.success = success;
22798
      this.success = success;
22492
      setSuccessIsSet(true);
22799
      setSuccessIsSet(true);
22493
      return this;
22800
      return this;
22494
    }
22801
    }
22495
 
22802
 
Line 22508... Line 22815...
22508
 
22815
 
22509
    public TransactionServiceException getEx() {
22816
    public TransactionServiceException getEx() {
22510
      return this.ex;
22817
      return this.ex;
22511
    }
22818
    }
22512
 
22819
 
22513
    public markOrdersAsManifested_result setEx(TransactionServiceException ex) {
22820
    public verifyOrder_result setEx(TransactionServiceException ex) {
22514
      this.ex = ex;
22821
      this.ex = ex;
22515
      return this;
22822
      return this;
22516
    }
22823
    }
22517
 
22824
 
22518
    public void unsetEx() {
22825
    public void unsetEx() {
Line 22588... Line 22895...
22588
 
22895
 
22589
    @Override
22896
    @Override
22590
    public boolean equals(Object that) {
22897
    public boolean equals(Object that) {
22591
      if (that == null)
22898
      if (that == null)
22592
        return false;
22899
        return false;
22593
      if (that instanceof markOrdersAsManifested_result)
22900
      if (that instanceof verifyOrder_result)
22594
        return this.equals((markOrdersAsManifested_result)that);
22901
        return this.equals((verifyOrder_result)that);
22595
      return false;
22902
      return false;
22596
    }
22903
    }
22597
 
22904
 
22598
    public boolean equals(markOrdersAsManifested_result that) {
22905
    public boolean equals(verifyOrder_result that) {
22599
      if (that == null)
22906
      if (that == null)
22600
        return false;
22907
        return false;
22601
 
22908
 
22602
      boolean this_present_success = true;
22909
      boolean this_present_success = true;
22603
      boolean that_present_success = true;
22910
      boolean that_present_success = true;
Line 22623... Line 22930...
22623
    @Override
22930
    @Override
22624
    public int hashCode() {
22931
    public int hashCode() {
22625
      return 0;
22932
      return 0;
22626
    }
22933
    }
22627
 
22934
 
22628
    public int compareTo(markOrdersAsManifested_result other) {
22935
    public int compareTo(verifyOrder_result other) {
22629
      if (!getClass().equals(other.getClass())) {
22936
      if (!getClass().equals(other.getClass())) {
22630
        return getClass().getName().compareTo(other.getClass().getName());
22937
        return getClass().getName().compareTo(other.getClass().getName());
22631
      }
22938
      }
22632
 
22939
 
22633
      int lastComparison = 0;
22940
      int lastComparison = 0;
22634
      markOrdersAsManifested_result typedOther = (markOrdersAsManifested_result)other;
22941
      verifyOrder_result typedOther = (verifyOrder_result)other;
22635
 
22942
 
22636
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
22943
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
22637
      if (lastComparison != 0) {
22944
      if (lastComparison != 0) {
22638
        return lastComparison;
22945
        return lastComparison;
22639
      }
22946
      }
Line 22706... Line 23013...
22706
      oprot.writeStructEnd();
23013
      oprot.writeStructEnd();
22707
    }
23014
    }
22708
 
23015
 
22709
    @Override
23016
    @Override
22710
    public String toString() {
23017
    public String toString() {
22711
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_result(");
23018
      StringBuilder sb = new StringBuilder("verifyOrder_result(");
22712
      boolean first = true;
23019
      boolean first = true;
22713
 
23020
 
22714
      sb.append("success:");
23021
      sb.append("success:");
22715
      sb.append(this.success);
23022
      sb.append(this.success);
22716
      first = false;
23023
      first = false;
Line 22730... Line 23037...
22730
      // check for required fields
23037
      // check for required fields
22731
    }
23038
    }
22732
 
23039
 
22733
  }
23040
  }
22734
 
23041
 
22735
  public static class markOrdersAsPickedUp_args implements TBase<markOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
23042
  public static class acceptOrder_args implements TBase<acceptOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<acceptOrder_args>   {
22736
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsPickedUp_args");
23043
    private static final TStruct STRUCT_DESC = new TStruct("acceptOrder_args");
22737
 
23044
 
22738
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
23045
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
22739
    private static final TField PICKUP_DETAILS_FIELD_DESC = new TField("pickupDetails", TType.MAP, (short)2);
-
 
22740
 
23046
 
22741
    private long providerId;
23047
    private long orderId;
22742
    private Map<String,String> pickupDetails;
-
 
22743
 
23048
 
22744
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22745
    public enum _Fields implements TFieldIdEnum {
23050
    public enum _Fields implements TFieldIdEnum {
22746
      PROVIDER_ID((short)1, "providerId"),
23051
      ORDER_ID((short)1, "orderId");
22747
      PICKUP_DETAILS((short)2, "pickupDetails");
-
 
22748
 
23052
 
22749
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23053
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
22750
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22751
 
23055
 
22752
      static {
23056
      static {
Line 22796... Line 23100...
22796
        return _fieldName;
23100
        return _fieldName;
22797
      }
23101
      }
22798
    }
23102
    }
22799
 
23103
 
22800
    // isset id assignments
23104
    // isset id assignments
22801
    private static final int __PROVIDERID_ISSET_ID = 0;
23105
    private static final int __ORDERID_ISSET_ID = 0;
22802
    private BitSet __isset_bit_vector = new BitSet(1);
23106
    private BitSet __isset_bit_vector = new BitSet(1);
22803
 
23107
 
22804
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23108
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
22805
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
23109
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
22806
          new FieldValueMetaData(TType.I64)));
23110
          new FieldValueMetaData(TType.I64)));
22807
      put(_Fields.PICKUP_DETAILS, new FieldMetaData("pickupDetails", TFieldRequirementType.DEFAULT, 
-
 
22808
          new MapMetaData(TType.MAP, 
-
 
22809
              new FieldValueMetaData(TType.STRING), 
-
 
22810
              new FieldValueMetaData(TType.STRING))));
-
 
22811
    }});
23111
    }});
22812
 
23112
 
22813
    static {
23113
    static {
22814
      FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_args.class, metaDataMap);
23114
      FieldMetaData.addStructMetaDataMap(acceptOrder_args.class, metaDataMap);
22815
    }
23115
    }
22816
 
23116
 
22817
    public markOrdersAsPickedUp_args() {
23117
    public acceptOrder_args() {
22818
    }
23118
    }
22819
 
23119
 
22820
    public markOrdersAsPickedUp_args(
23120
    public acceptOrder_args(
22821
      long providerId,
23121
      long orderId)
22822
      Map<String,String> pickupDetails)
-
 
22823
    {
23122
    {
22824
      this();
23123
      this();
22825
      this.providerId = providerId;
23124
      this.orderId = orderId;
22826
      setProviderIdIsSet(true);
23125
      setOrderIdIsSet(true);
22827
      this.pickupDetails = pickupDetails;
-
 
22828
    }
23126
    }
22829
 
23127
 
22830
    /**
23128
    /**
22831
     * Performs a deep copy on <i>other</i>.
23129
     * Performs a deep copy on <i>other</i>.
22832
     */
23130
     */
22833
    public markOrdersAsPickedUp_args(markOrdersAsPickedUp_args other) {
23131
    public acceptOrder_args(acceptOrder_args other) {
22834
      __isset_bit_vector.clear();
23132
      __isset_bit_vector.clear();
22835
      __isset_bit_vector.or(other.__isset_bit_vector);
23133
      __isset_bit_vector.or(other.__isset_bit_vector);
22836
      this.providerId = other.providerId;
23134
      this.orderId = other.orderId;
22837
      if (other.isSetPickupDetails()) {
-
 
22838
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
-
 
22839
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
-
 
22840
 
-
 
22841
          String other_element_key = other_element.getKey();
-
 
22842
          String other_element_value = other_element.getValue();
-
 
22843
 
-
 
22844
          String __this__pickupDetails_copy_key = other_element_key;
-
 
22845
 
-
 
22846
          String __this__pickupDetails_copy_value = other_element_value;
-
 
22847
 
-
 
22848
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
-
 
22849
        }
-
 
22850
        this.pickupDetails = __this__pickupDetails;
-
 
22851
      }
-
 
22852
    }
23135
    }
22853
 
23136
 
22854
    public markOrdersAsPickedUp_args deepCopy() {
23137
    public acceptOrder_args deepCopy() {
22855
      return new markOrdersAsPickedUp_args(this);
23138
      return new acceptOrder_args(this);
22856
    }
23139
    }
22857
 
23140
 
22858
    @Deprecated
23141
    @Deprecated
22859
    public markOrdersAsPickedUp_args clone() {
23142
    public acceptOrder_args clone() {
22860
      return new markOrdersAsPickedUp_args(this);
23143
      return new acceptOrder_args(this);
22861
    }
-
 
22862
 
-
 
22863
    public long getProviderId() {
-
 
22864
      return this.providerId;
-
 
22865
    }
-
 
22866
 
-
 
22867
    public markOrdersAsPickedUp_args setProviderId(long providerId) {
-
 
22868
      this.providerId = providerId;
-
 
22869
      setProviderIdIsSet(true);
-
 
22870
      return this;
-
 
22871
    }
-
 
22872
 
-
 
22873
    public void unsetProviderId() {
-
 
22874
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
22875
    }
-
 
22876
 
-
 
22877
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
22878
    public boolean isSetProviderId() {
-
 
22879
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
22880
    }
-
 
22881
 
-
 
22882
    public void setProviderIdIsSet(boolean value) {
-
 
22883
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
22884
    }
-
 
22885
 
-
 
22886
    public int getPickupDetailsSize() {
-
 
22887
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
-
 
22888
    }
-
 
22889
 
-
 
22890
    public void putToPickupDetails(String key, String val) {
-
 
22891
      if (this.pickupDetails == null) {
-
 
22892
        this.pickupDetails = new HashMap<String,String>();
-
 
22893
      }
-
 
22894
      this.pickupDetails.put(key, val);
-
 
22895
    }
23144
    }
22896
 
23145
 
22897
    public Map<String,String> getPickupDetails() {
23146
    public long getOrderId() {
22898
      return this.pickupDetails;
23147
      return this.orderId;
22899
    }
23148
    }
22900
 
23149
 
22901
    public markOrdersAsPickedUp_args setPickupDetails(Map<String,String> pickupDetails) {
23150
    public acceptOrder_args setOrderId(long orderId) {
22902
      this.pickupDetails = pickupDetails;
23151
      this.orderId = orderId;
-
 
23152
      setOrderIdIsSet(true);
22903
      return this;
23153
      return this;
22904
    }
23154
    }
22905
 
23155
 
22906
    public void unsetPickupDetails() {
23156
    public void unsetOrderId() {
22907
      this.pickupDetails = null;
23157
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22908
    }
23158
    }
22909
 
23159
 
22910
    /** Returns true if field pickupDetails is set (has been asigned a value) and false otherwise */
23160
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
22911
    public boolean isSetPickupDetails() {
23161
    public boolean isSetOrderId() {
22912
      return this.pickupDetails != null;
23162
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22913
    }
23163
    }
22914
 
23164
 
22915
    public void setPickupDetailsIsSet(boolean value) {
23165
    public void setOrderIdIsSet(boolean value) {
22916
      if (!value) {
-
 
22917
        this.pickupDetails = null;
23166
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22918
      }
-
 
22919
    }
23167
    }
22920
 
23168
 
22921
    public void setFieldValue(_Fields field, Object value) {
23169
    public void setFieldValue(_Fields field, Object value) {
22922
      switch (field) {
23170
      switch (field) {
22923
      case PROVIDER_ID:
23171
      case ORDER_ID:
22924
        if (value == null) {
-
 
22925
          unsetProviderId();
-
 
22926
        } else {
-
 
22927
          setProviderId((Long)value);
-
 
22928
        }
-
 
22929
        break;
-
 
22930
 
-
 
22931
      case PICKUP_DETAILS:
-
 
22932
        if (value == null) {
23172
        if (value == null) {
22933
          unsetPickupDetails();
23173
          unsetOrderId();
22934
        } else {
23174
        } else {
22935
          setPickupDetails((Map<String,String>)value);
23175
          setOrderId((Long)value);
22936
        }
23176
        }
22937
        break;
23177
        break;
22938
 
23178
 
22939
      }
23179
      }
22940
    }
23180
    }
Line 22943... Line 23183...
22943
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
23183
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22944
    }
23184
    }
22945
 
23185
 
22946
    public Object getFieldValue(_Fields field) {
23186
    public Object getFieldValue(_Fields field) {
22947
      switch (field) {
23187
      switch (field) {
22948
      case PROVIDER_ID:
23188
      case ORDER_ID:
22949
        return new Long(getProviderId());
23189
        return new Long(getOrderId());
22950
 
-
 
22951
      case PICKUP_DETAILS:
-
 
22952
        return getPickupDetails();
-
 
22953
 
23190
 
22954
      }
23191
      }
22955
      throw new IllegalStateException();
23192
      throw new IllegalStateException();
22956
    }
23193
    }
22957
 
23194
 
Line 22960... Line 23197...
22960
    }
23197
    }
22961
 
23198
 
22962
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23199
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22963
    public boolean isSet(_Fields field) {
23200
    public boolean isSet(_Fields field) {
22964
      switch (field) {
23201
      switch (field) {
22965
      case PROVIDER_ID:
23202
      case ORDER_ID:
22966
        return isSetProviderId();
23203
        return isSetOrderId();
22967
      case PICKUP_DETAILS:
-
 
22968
        return isSetPickupDetails();
-
 
22969
      }
23204
      }
22970
      throw new IllegalStateException();
23205
      throw new IllegalStateException();
22971
    }
23206
    }
22972
 
23207
 
22973
    public boolean isSet(int fieldID) {
23208
    public boolean isSet(int fieldID) {
Line 22976... Line 23211...
22976
 
23211
 
22977
    @Override
23212
    @Override
22978
    public boolean equals(Object that) {
23213
    public boolean equals(Object that) {
22979
      if (that == null)
23214
      if (that == null)
22980
        return false;
23215
        return false;
22981
      if (that instanceof markOrdersAsPickedUp_args)
23216
      if (that instanceof acceptOrder_args)
22982
        return this.equals((markOrdersAsPickedUp_args)that);
23217
        return this.equals((acceptOrder_args)that);
22983
      return false;
23218
      return false;
22984
    }
23219
    }
22985
 
23220
 
22986
    public boolean equals(markOrdersAsPickedUp_args that) {
23221
    public boolean equals(acceptOrder_args that) {
22987
      if (that == null)
23222
      if (that == null)
22988
        return false;
23223
        return false;
22989
 
23224
 
22990
      boolean this_present_providerId = true;
23225
      boolean this_present_orderId = true;
22991
      boolean that_present_providerId = true;
23226
      boolean that_present_orderId = true;
22992
      if (this_present_providerId || that_present_providerId) {
23227
      if (this_present_orderId || that_present_orderId) {
22993
        if (!(this_present_providerId && that_present_providerId))
23228
        if (!(this_present_orderId && that_present_orderId))
22994
          return false;
-
 
22995
        if (this.providerId != that.providerId)
-
 
22996
          return false;
-
 
22997
      }
-
 
22998
 
-
 
22999
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
-
 
23000
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
-
 
23001
      if (this_present_pickupDetails || that_present_pickupDetails) {
-
 
23002
        if (!(this_present_pickupDetails && that_present_pickupDetails))
-
 
23003
          return false;
23229
          return false;
23004
        if (!this.pickupDetails.equals(that.pickupDetails))
23230
        if (this.orderId != that.orderId)
23005
          return false;
23231
          return false;
23006
      }
23232
      }
23007
 
23233
 
23008
      return true;
23234
      return true;
23009
    }
23235
    }
Line 23011... Line 23237...
23011
    @Override
23237
    @Override
23012
    public int hashCode() {
23238
    public int hashCode() {
23013
      return 0;
23239
      return 0;
23014
    }
23240
    }
23015
 
23241
 
-
 
23242
    public int compareTo(acceptOrder_args other) {
-
 
23243
      if (!getClass().equals(other.getClass())) {
-
 
23244
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23245
      }
-
 
23246
 
-
 
23247
      int lastComparison = 0;
-
 
23248
      acceptOrder_args typedOther = (acceptOrder_args)other;
-
 
23249
 
-
 
23250
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
23251
      if (lastComparison != 0) {
-
 
23252
        return lastComparison;
-
 
23253
      }
-
 
23254
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
23255
      if (lastComparison != 0) {
-
 
23256
        return lastComparison;
-
 
23257
      }
-
 
23258
      return 0;
-
 
23259
    }
-
 
23260
 
23016
    public void read(TProtocol iprot) throws TException {
23261
    public void read(TProtocol iprot) throws TException {
23017
      TField field;
23262
      TField field;
23018
      iprot.readStructBegin();
23263
      iprot.readStructBegin();
23019
      while (true)
23264
      while (true)
23020
      {
23265
      {
Line 23025... Line 23270...
23025
        _Fields fieldId = _Fields.findByThriftId(field.id);
23270
        _Fields fieldId = _Fields.findByThriftId(field.id);
23026
        if (fieldId == null) {
23271
        if (fieldId == null) {
23027
          TProtocolUtil.skip(iprot, field.type);
23272
          TProtocolUtil.skip(iprot, field.type);
23028
        } else {
23273
        } else {
23029
          switch (fieldId) {
23274
          switch (fieldId) {
23030
            case PROVIDER_ID:
23275
            case ORDER_ID:
23031
              if (field.type == TType.I64) {
23276
              if (field.type == TType.I64) {
23032
                this.providerId = iprot.readI64();
23277
                this.orderId = iprot.readI64();
23033
                setProviderIdIsSet(true);
23278
                setOrderIdIsSet(true);
23034
              } else { 
-
 
23035
                TProtocolUtil.skip(iprot, field.type);
-
 
23036
              }
-
 
23037
              break;
-
 
23038
            case PICKUP_DETAILS:
-
 
23039
              if (field.type == TType.MAP) {
-
 
23040
                {
-
 
23041
                  TMap _map52 = iprot.readMapBegin();
-
 
23042
                  this.pickupDetails = new HashMap<String,String>(2*_map52.size);
-
 
23043
                  for (int _i53 = 0; _i53 < _map52.size; ++_i53)
-
 
23044
                  {
-
 
23045
                    String _key54;
-
 
23046
                    String _val55;
-
 
23047
                    _key54 = iprot.readString();
-
 
23048
                    _val55 = iprot.readString();
-
 
23049
                    this.pickupDetails.put(_key54, _val55);
-
 
23050
                  }
-
 
23051
                  iprot.readMapEnd();
-
 
23052
                }
-
 
23053
              } else { 
23279
              } else { 
23054
                TProtocolUtil.skip(iprot, field.type);
23280
                TProtocolUtil.skip(iprot, field.type);
23055
              }
23281
              }
23056
              break;
23282
              break;
23057
          }
23283
          }
Line 23064... Line 23290...
23064
 
23290
 
23065
    public void write(TProtocol oprot) throws TException {
23291
    public void write(TProtocol oprot) throws TException {
23066
      validate();
23292
      validate();
23067
 
23293
 
23068
      oprot.writeStructBegin(STRUCT_DESC);
23294
      oprot.writeStructBegin(STRUCT_DESC);
23069
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
23295
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23070
      oprot.writeI64(this.providerId);
23296
      oprot.writeI64(this.orderId);
23071
      oprot.writeFieldEnd();
23297
      oprot.writeFieldEnd();
23072
      if (this.pickupDetails != null) {
-
 
23073
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
-
 
23074
        {
-
 
23075
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
-
 
23076
          for (Map.Entry<String, String> _iter56 : this.pickupDetails.entrySet())
-
 
23077
          {
-
 
23078
            oprot.writeString(_iter56.getKey());
-
 
23079
            oprot.writeString(_iter56.getValue());
-
 
23080
          }
-
 
23081
          oprot.writeMapEnd();
-
 
23082
        }
-
 
23083
        oprot.writeFieldEnd();
-
 
23084
      }
-
 
23085
      oprot.writeFieldStop();
23298
      oprot.writeFieldStop();
23086
      oprot.writeStructEnd();
23299
      oprot.writeStructEnd();
23087
    }
23300
    }
23088
 
23301
 
23089
    @Override
23302
    @Override
23090
    public String toString() {
23303
    public String toString() {
23091
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_args(");
23304
      StringBuilder sb = new StringBuilder("acceptOrder_args(");
23092
      boolean first = true;
23305
      boolean first = true;
23093
 
23306
 
23094
      sb.append("providerId:");
23307
      sb.append("orderId:");
23095
      sb.append(this.providerId);
23308
      sb.append(this.orderId);
23096
      first = false;
-
 
23097
      if (!first) sb.append(", ");
-
 
23098
      sb.append("pickupDetails:");
-
 
23099
      if (this.pickupDetails == null) {
-
 
23100
        sb.append("null");
-
 
23101
      } else {
-
 
23102
        sb.append(this.pickupDetails);
-
 
23103
      }
-
 
23104
      first = false;
23309
      first = false;
23105
      sb.append(")");
23310
      sb.append(")");
23106
      return sb.toString();
23311
      return sb.toString();
23107
    }
23312
    }
23108
 
23313
 
Line 23110... Line 23315...
23110
      // check for required fields
23315
      // check for required fields
23111
    }
23316
    }
23112
 
23317
 
23113
  }
23318
  }
23114
 
23319
 
23115
  public static class markOrdersAsPickedUp_result implements TBase<markOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsPickedUp_result>   {
23320
  public static class acceptOrder_result implements TBase<acceptOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<acceptOrder_result>   {
23116
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsPickedUp_result");
23321
    private static final TStruct STRUCT_DESC = new TStruct("acceptOrder_result");
23117
 
23322
 
23118
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
23323
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
23119
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
23324
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
23120
 
23325
 
23121
    private List<Order> success;
23326
    private boolean success;
23122
    private TransactionServiceException ex;
23327
    private TransactionServiceException ex;
23123
 
23328
 
23124
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23125
    public enum _Fields implements TFieldIdEnum {
23330
    public enum _Fields implements TFieldIdEnum {
23126
      SUCCESS((short)0, "success"),
23331
      SUCCESS((short)0, "success"),
Line 23176... Line 23381...
23176
        return _fieldName;
23381
        return _fieldName;
23177
      }
23382
      }
23178
    }
23383
    }
23179
 
23384
 
23180
    // isset id assignments
23385
    // isset id assignments
-
 
23386
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
23387
    private BitSet __isset_bit_vector = new BitSet(1);
23181
 
23388
 
23182
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23389
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23183
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
23390
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
23184
          new ListMetaData(TType.LIST, 
23391
          new FieldValueMetaData(TType.BOOL)));
23185
              new StructMetaData(TType.STRUCT, Order.class))));
-
 
23186
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
23392
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
23187
          new FieldValueMetaData(TType.STRUCT)));
23393
          new FieldValueMetaData(TType.STRUCT)));
23188
    }});
23394
    }});
23189
 
23395
 
23190
    static {
23396
    static {
23191
      FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_result.class, metaDataMap);
23397
      FieldMetaData.addStructMetaDataMap(acceptOrder_result.class, metaDataMap);
23192
    }
23398
    }
23193
 
23399
 
23194
    public markOrdersAsPickedUp_result() {
23400
    public acceptOrder_result() {
23195
    }
23401
    }
23196
 
23402
 
23197
    public markOrdersAsPickedUp_result(
23403
    public acceptOrder_result(
23198
      List<Order> success,
23404
      boolean success,
23199
      TransactionServiceException ex)
23405
      TransactionServiceException ex)
23200
    {
23406
    {
23201
      this();
23407
      this();
23202
      this.success = success;
23408
      this.success = success;
-
 
23409
      setSuccessIsSet(true);
23203
      this.ex = ex;
23410
      this.ex = ex;
23204
    }
23411
    }
23205
 
23412
 
23206
    /**
23413
    /**
23207
     * Performs a deep copy on <i>other</i>.
23414
     * Performs a deep copy on <i>other</i>.
23208
     */
23415
     */
23209
    public markOrdersAsPickedUp_result(markOrdersAsPickedUp_result other) {
23416
    public acceptOrder_result(acceptOrder_result other) {
23210
      if (other.isSetSuccess()) {
23417
      __isset_bit_vector.clear();
23211
        List<Order> __this__success = new ArrayList<Order>();
-
 
23212
        for (Order other_element : other.success) {
-
 
23213
          __this__success.add(new Order(other_element));
23418
      __isset_bit_vector.or(other.__isset_bit_vector);
23214
        }
-
 
23215
        this.success = __this__success;
23419
      this.success = other.success;
23216
      }
-
 
23217
      if (other.isSetEx()) {
23420
      if (other.isSetEx()) {
23218
        this.ex = new TransactionServiceException(other.ex);
23421
        this.ex = new TransactionServiceException(other.ex);
23219
      }
23422
      }
23220
    }
23423
    }
23221
 
23424
 
23222
    public markOrdersAsPickedUp_result deepCopy() {
23425
    public acceptOrder_result deepCopy() {
23223
      return new markOrdersAsPickedUp_result(this);
23426
      return new acceptOrder_result(this);
23224
    }
23427
    }
23225
 
23428
 
23226
    @Deprecated
23429
    @Deprecated
23227
    public markOrdersAsPickedUp_result clone() {
23430
    public acceptOrder_result clone() {
23228
      return new markOrdersAsPickedUp_result(this);
23431
      return new acceptOrder_result(this);
23229
    }
-
 
23230
 
-
 
23231
    public int getSuccessSize() {
-
 
23232
      return (this.success == null) ? 0 : this.success.size();
-
 
23233
    }
-
 
23234
 
-
 
23235
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
23236
      return (this.success == null) ? null : this.success.iterator();
-
 
23237
    }
-
 
23238
 
-
 
23239
    public void addToSuccess(Order elem) {
-
 
23240
      if (this.success == null) {
-
 
23241
        this.success = new ArrayList<Order>();
-
 
23242
      }
-
 
23243
      this.success.add(elem);
-
 
23244
    }
23432
    }
23245
 
23433
 
23246
    public List<Order> getSuccess() {
23434
    public boolean isSuccess() {
23247
      return this.success;
23435
      return this.success;
23248
    }
23436
    }
23249
 
23437
 
23250
    public markOrdersAsPickedUp_result setSuccess(List<Order> success) {
23438
    public acceptOrder_result setSuccess(boolean success) {
23251
      this.success = success;
23439
      this.success = success;
-
 
23440
      setSuccessIsSet(true);
23252
      return this;
23441
      return this;
23253
    }
23442
    }
23254
 
23443
 
23255
    public void unsetSuccess() {
23444
    public void unsetSuccess() {
23256
      this.success = null;
23445
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
23257
    }
23446
    }
23258
 
23447
 
23259
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
23448
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
23260
    public boolean isSetSuccess() {
23449
    public boolean isSetSuccess() {
23261
      return this.success != null;
23450
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
23262
    }
23451
    }
23263
 
23452
 
23264
    public void setSuccessIsSet(boolean value) {
23453
    public void setSuccessIsSet(boolean value) {
23265
      if (!value) {
-
 
23266
        this.success = null;
23454
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
23267
      }
-
 
23268
    }
23455
    }
23269
 
23456
 
23270
    public TransactionServiceException getEx() {
23457
    public TransactionServiceException getEx() {
23271
      return this.ex;
23458
      return this.ex;
23272
    }
23459
    }
23273
 
23460
 
23274
    public markOrdersAsPickedUp_result setEx(TransactionServiceException ex) {
23461
    public acceptOrder_result setEx(TransactionServiceException ex) {
23275
      this.ex = ex;
23462
      this.ex = ex;
23276
      return this;
23463
      return this;
23277
    }
23464
    }
23278
 
23465
 
23279
    public void unsetEx() {
23466
    public void unsetEx() {
Line 23295... Line 23482...
23295
      switch (field) {
23482
      switch (field) {
23296
      case SUCCESS:
23483
      case SUCCESS:
23297
        if (value == null) {
23484
        if (value == null) {
23298
          unsetSuccess();
23485
          unsetSuccess();
23299
        } else {
23486
        } else {
23300
          setSuccess((List<Order>)value);
23487
          setSuccess((Boolean)value);
23301
        }
23488
        }
23302
        break;
23489
        break;
23303
 
23490
 
23304
      case EX:
23491
      case EX:
23305
        if (value == null) {
23492
        if (value == null) {
Line 23317... Line 23504...
23317
    }
23504
    }
23318
 
23505
 
23319
    public Object getFieldValue(_Fields field) {
23506
    public Object getFieldValue(_Fields field) {
23320
      switch (field) {
23507
      switch (field) {
23321
      case SUCCESS:
23508
      case SUCCESS:
23322
        return getSuccess();
23509
        return new Boolean(isSuccess());
23323
 
23510
 
23324
      case EX:
23511
      case EX:
23325
        return getEx();
23512
        return getEx();
23326
 
23513
 
23327
      }
23514
      }
Line 23349... Line 23536...
23349
 
23536
 
23350
    @Override
23537
    @Override
23351
    public boolean equals(Object that) {
23538
    public boolean equals(Object that) {
23352
      if (that == null)
23539
      if (that == null)
23353
        return false;
23540
        return false;
23354
      if (that instanceof markOrdersAsPickedUp_result)
23541
      if (that instanceof acceptOrder_result)
23355
        return this.equals((markOrdersAsPickedUp_result)that);
23542
        return this.equals((acceptOrder_result)that);
23356
      return false;
23543
      return false;
23357
    }
23544
    }
23358
 
23545
 
23359
    public boolean equals(markOrdersAsPickedUp_result that) {
23546
    public boolean equals(acceptOrder_result that) {
23360
      if (that == null)
23547
      if (that == null)
23361
        return false;
23548
        return false;
23362
 
23549
 
23363
      boolean this_present_success = true && this.isSetSuccess();
23550
      boolean this_present_success = true;
23364
      boolean that_present_success = true && that.isSetSuccess();
23551
      boolean that_present_success = true;
23365
      if (this_present_success || that_present_success) {
23552
      if (this_present_success || that_present_success) {
23366
        if (!(this_present_success && that_present_success))
23553
        if (!(this_present_success && that_present_success))
23367
          return false;
23554
          return false;
23368
        if (!this.success.equals(that.success))
23555
        if (this.success != that.success)
23369
          return false;
23556
          return false;
23370
      }
23557
      }
23371
 
23558
 
23372
      boolean this_present_ex = true && this.isSetEx();
23559
      boolean this_present_ex = true && this.isSetEx();
23373
      boolean that_present_ex = true && that.isSetEx();
23560
      boolean that_present_ex = true && that.isSetEx();
Line 23384... Line 23571...
23384
    @Override
23571
    @Override
23385
    public int hashCode() {
23572
    public int hashCode() {
23386
      return 0;
23573
      return 0;
23387
    }
23574
    }
23388
 
23575
 
23389
    public int compareTo(markOrdersAsPickedUp_result other) {
23576
    public int compareTo(acceptOrder_result other) {
23390
      if (!getClass().equals(other.getClass())) {
23577
      if (!getClass().equals(other.getClass())) {
23391
        return getClass().getName().compareTo(other.getClass().getName());
23578
        return getClass().getName().compareTo(other.getClass().getName());
23392
      }
23579
      }
23393
 
23580
 
23394
      int lastComparison = 0;
23581
      int lastComparison = 0;
23395
      markOrdersAsPickedUp_result typedOther = (markOrdersAsPickedUp_result)other;
23582
      acceptOrder_result typedOther = (acceptOrder_result)other;
23396
 
23583
 
23397
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
23584
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
23398
      if (lastComparison != 0) {
23585
      if (lastComparison != 0) {
23399
        return lastComparison;
23586
        return lastComparison;
23400
      }
23587
      }
Line 23426... Line 23613...
23426
        if (fieldId == null) {
23613
        if (fieldId == null) {
23427
          TProtocolUtil.skip(iprot, field.type);
23614
          TProtocolUtil.skip(iprot, field.type);
23428
        } else {
23615
        } else {
23429
          switch (fieldId) {
23616
          switch (fieldId) {
23430
            case SUCCESS:
23617
            case SUCCESS:
23431
              if (field.type == TType.LIST) {
23618
              if (field.type == TType.BOOL) {
23432
                {
-
 
23433
                  TList _list57 = iprot.readListBegin();
23619
                this.success = iprot.readBool();
23434
                  this.success = new ArrayList<Order>(_list57.size);
-
 
23435
                  for (int _i58 = 0; _i58 < _list57.size; ++_i58)
-
 
23436
                  {
-
 
23437
                    Order _elem59;
-
 
23438
                    _elem59 = new Order();
-
 
23439
                    _elem59.read(iprot);
23620
                setSuccessIsSet(true);
23440
                    this.success.add(_elem59);
-
 
23441
                  }
-
 
23442
                  iprot.readListEnd();
-
 
23443
                }
-
 
23444
              } else { 
23621
              } else { 
23445
                TProtocolUtil.skip(iprot, field.type);
23622
                TProtocolUtil.skip(iprot, field.type);
23446
              }
23623
              }
23447
              break;
23624
              break;
23448
            case EX:
23625
            case EX:
Line 23464... Line 23641...
23464
    public void write(TProtocol oprot) throws TException {
23641
    public void write(TProtocol oprot) throws TException {
23465
      oprot.writeStructBegin(STRUCT_DESC);
23642
      oprot.writeStructBegin(STRUCT_DESC);
23466
 
23643
 
23467
      if (this.isSetSuccess()) {
23644
      if (this.isSetSuccess()) {
23468
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23645
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23469
        {
-
 
23470
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
23471
          for (Order _iter60 : this.success)
23646
        oprot.writeBool(this.success);
23472
          {
-
 
23473
            _iter60.write(oprot);
-
 
23474
          }
-
 
23475
          oprot.writeListEnd();
-
 
23476
        }
-
 
23477
        oprot.writeFieldEnd();
23647
        oprot.writeFieldEnd();
23478
      } else if (this.isSetEx()) {
23648
      } else if (this.isSetEx()) {
23479
        oprot.writeFieldBegin(EX_FIELD_DESC);
23649
        oprot.writeFieldBegin(EX_FIELD_DESC);
23480
        this.ex.write(oprot);
23650
        this.ex.write(oprot);
23481
        oprot.writeFieldEnd();
23651
        oprot.writeFieldEnd();
Line 23484... Line 23654...
23484
      oprot.writeStructEnd();
23654
      oprot.writeStructEnd();
23485
    }
23655
    }
23486
 
23656
 
23487
    @Override
23657
    @Override
23488
    public String toString() {
23658
    public String toString() {
23489
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_result(");
23659
      StringBuilder sb = new StringBuilder("acceptOrder_result(");
23490
      boolean first = true;
23660
      boolean first = true;
23491
 
23661
 
23492
      sb.append("success:");
23662
      sb.append("success:");
23493
      if (this.success == null) {
-
 
23494
        sb.append("null");
-
 
23495
      } else {
-
 
23496
        sb.append(this.success);
23663
      sb.append(this.success);
23497
      }
-
 
23498
      first = false;
23664
      first = false;
23499
      if (!first) sb.append(", ");
23665
      if (!first) sb.append(", ");
23500
      sb.append("ex:");
23666
      sb.append("ex:");
23501
      if (this.ex == null) {
23667
      if (this.ex == null) {
23502
        sb.append("null");
23668
        sb.append("null");
Line 23512... Line 23678...
23512
      // check for required fields
23678
      // check for required fields
23513
    }
23679
    }
23514
 
23680
 
23515
  }
23681
  }
23516
 
23682
 
23517
  public static class markOrdersAsDelivered_args implements TBase<markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
23683
  public static class billOrder_args implements TBase<billOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<billOrder_args>   {
23518
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsDelivered_args");
23684
    private static final TStruct STRUCT_DESC = new TStruct("billOrder_args");
23519
 
23685
 
23520
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
23686
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
23521
    private static final TField DELIVERED_ORDERS_FIELD_DESC = new TField("deliveredOrders", TType.MAP, (short)2);
-
 
23522
 
23687
 
23523
    private long providerId;
23688
    private long orderId;
23524
    private Map<String,String> deliveredOrders;
-
 
23525
 
23689
 
23526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23527
    public enum _Fields implements TFieldIdEnum {
23691
    public enum _Fields implements TFieldIdEnum {
23528
      PROVIDER_ID((short)1, "providerId"),
23692
      ORDER_ID((short)1, "orderId");
23529
      DELIVERED_ORDERS((short)2, "deliveredOrders");
-
 
23530
 
23693
 
23531
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23694
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23532
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23533
 
23696
 
23534
      static {
23697
      static {
Line 23578... Line 23741...
23578
        return _fieldName;
23741
        return _fieldName;
23579
      }
23742
      }
23580
    }
23743
    }
23581
 
23744
 
23582
    // isset id assignments
23745
    // isset id assignments
23583
    private static final int __PROVIDERID_ISSET_ID = 0;
23746
    private static final int __ORDERID_ISSET_ID = 0;
23584
    private BitSet __isset_bit_vector = new BitSet(1);
23747
    private BitSet __isset_bit_vector = new BitSet(1);
23585
 
23748
 
23586
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23749
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
23587
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
23750
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
23588
          new FieldValueMetaData(TType.I64)));
23751
          new FieldValueMetaData(TType.I64)));
23589
      put(_Fields.DELIVERED_ORDERS, new FieldMetaData("deliveredOrders", TFieldRequirementType.DEFAULT, 
-
 
23590
          new MapMetaData(TType.MAP, 
-
 
23591
              new FieldValueMetaData(TType.STRING), 
-
 
23592
              new FieldValueMetaData(TType.STRING))));
-
 
23593
    }});
23752
    }});
23594
 
23753
 
23595
    static {
23754
    static {
23596
      FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);
23755
      FieldMetaData.addStructMetaDataMap(billOrder_args.class, metaDataMap);
23597
    }
23756
    }
23598
 
23757
 
23599
    public markOrdersAsDelivered_args() {
23758
    public billOrder_args() {
23600
    }
23759
    }
23601
 
23760
 
23602
    public markOrdersAsDelivered_args(
23761
    public billOrder_args(
23603
      long providerId,
23762
      long orderId)
23604
      Map<String,String> deliveredOrders)
-
 
23605
    {
23763
    {
23606
      this();
23764
      this();
23607
      this.providerId = providerId;
23765
      this.orderId = orderId;
23608
      setProviderIdIsSet(true);
23766
      setOrderIdIsSet(true);
23609
      this.deliveredOrders = deliveredOrders;
-
 
23610
    }
23767
    }
23611
 
23768
 
23612
    /**
23769
    /**
23613
     * Performs a deep copy on <i>other</i>.
23770
     * Performs a deep copy on <i>other</i>.
23614
     */
23771
     */
23615
    public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {
23772
    public billOrder_args(billOrder_args other) {
23616
      __isset_bit_vector.clear();
23773
      __isset_bit_vector.clear();
23617
      __isset_bit_vector.or(other.__isset_bit_vector);
23774
      __isset_bit_vector.or(other.__isset_bit_vector);
23618
      this.providerId = other.providerId;
23775
      this.orderId = other.orderId;
23619
      if (other.isSetDeliveredOrders()) {
-
 
23620
        Map<String,String> __this__deliveredOrders = new HashMap<String,String>();
-
 
23621
        for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {
-
 
23622
 
-
 
23623
          String other_element_key = other_element.getKey();
-
 
23624
          String other_element_value = other_element.getValue();
-
 
23625
 
-
 
23626
          String __this__deliveredOrders_copy_key = other_element_key;
-
 
23627
 
-
 
23628
          String __this__deliveredOrders_copy_value = other_element_value;
-
 
23629
 
-
 
23630
          __this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);
-
 
23631
        }
-
 
23632
        this.deliveredOrders = __this__deliveredOrders;
-
 
23633
      }
-
 
23634
    }
23776
    }
23635
 
23777
 
23636
    public markOrdersAsDelivered_args deepCopy() {
23778
    public billOrder_args deepCopy() {
23637
      return new markOrdersAsDelivered_args(this);
23779
      return new billOrder_args(this);
23638
    }
23780
    }
23639
 
23781
 
23640
    @Deprecated
23782
    @Deprecated
23641
    public markOrdersAsDelivered_args clone() {
23783
    public billOrder_args clone() {
23642
      return new markOrdersAsDelivered_args(this);
23784
      return new billOrder_args(this);
23643
    }
-
 
23644
 
-
 
23645
    public long getProviderId() {
-
 
23646
      return this.providerId;
-
 
23647
    }
-
 
23648
 
-
 
23649
    public markOrdersAsDelivered_args setProviderId(long providerId) {
-
 
23650
      this.providerId = providerId;
-
 
23651
      setProviderIdIsSet(true);
-
 
23652
      return this;
-
 
23653
    }
-
 
23654
 
-
 
23655
    public void unsetProviderId() {
-
 
23656
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
23657
    }
-
 
23658
 
-
 
23659
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
23660
    public boolean isSetProviderId() {
-
 
23661
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
23662
    }
-
 
23663
 
-
 
23664
    public void setProviderIdIsSet(boolean value) {
-
 
23665
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
23666
    }
-
 
23667
 
-
 
23668
    public int getDeliveredOrdersSize() {
-
 
23669
      return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();
-
 
23670
    }
-
 
23671
 
-
 
23672
    public void putToDeliveredOrders(String key, String val) {
-
 
23673
      if (this.deliveredOrders == null) {
-
 
23674
        this.deliveredOrders = new HashMap<String,String>();
-
 
23675
      }
-
 
23676
      this.deliveredOrders.put(key, val);
-
 
23677
    }
23785
    }
23678
 
23786
 
23679
    public Map<String,String> getDeliveredOrders() {
23787
    public long getOrderId() {
23680
      return this.deliveredOrders;
23788
      return this.orderId;
23681
    }
23789
    }
23682
 
23790
 
23683
    public markOrdersAsDelivered_args setDeliveredOrders(Map<String,String> deliveredOrders) {
23791
    public billOrder_args setOrderId(long orderId) {
23684
      this.deliveredOrders = deliveredOrders;
23792
      this.orderId = orderId;
-
 
23793
      setOrderIdIsSet(true);
23685
      return this;
23794
      return this;
23686
    }
23795
    }
23687
 
23796
 
23688
    public void unsetDeliveredOrders() {
23797
    public void unsetOrderId() {
23689
      this.deliveredOrders = null;
23798
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23690
    }
23799
    }
23691
 
23800
 
23692
    /** Returns true if field deliveredOrders is set (has been asigned a value) and false otherwise */
23801
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
23693
    public boolean isSetDeliveredOrders() {
23802
    public boolean isSetOrderId() {
23694
      return this.deliveredOrders != null;
23803
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23695
    }
23804
    }
23696
 
23805
 
23697
    public void setDeliveredOrdersIsSet(boolean value) {
23806
    public void setOrderIdIsSet(boolean value) {
23698
      if (!value) {
-
 
23699
        this.deliveredOrders = null;
23807
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23700
      }
-
 
23701
    }
23808
    }
23702
 
23809
 
23703
    public void setFieldValue(_Fields field, Object value) {
23810
    public void setFieldValue(_Fields field, Object value) {
23704
      switch (field) {
23811
      switch (field) {
23705
      case PROVIDER_ID:
23812
      case ORDER_ID:
23706
        if (value == null) {
-
 
23707
          unsetProviderId();
-
 
23708
        } else {
-
 
23709
          setProviderId((Long)value);
-
 
23710
        }
-
 
23711
        break;
-
 
23712
 
-
 
23713
      case DELIVERED_ORDERS:
-
 
23714
        if (value == null) {
23813
        if (value == null) {
23715
          unsetDeliveredOrders();
23814
          unsetOrderId();
23716
        } else {
23815
        } else {
23717
          setDeliveredOrders((Map<String,String>)value);
23816
          setOrderId((Long)value);
23718
        }
23817
        }
23719
        break;
23818
        break;
23720
 
23819
 
23721
      }
23820
      }
23722
    }
23821
    }
Line 23725... Line 23824...
23725
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
23824
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
23726
    }
23825
    }
23727
 
23826
 
23728
    public Object getFieldValue(_Fields field) {
23827
    public Object getFieldValue(_Fields field) {
23729
      switch (field) {
23828
      switch (field) {
23730
      case PROVIDER_ID:
23829
      case ORDER_ID:
23731
        return new Long(getProviderId());
23830
        return new Long(getOrderId());
23732
 
-
 
23733
      case DELIVERED_ORDERS:
-
 
23734
        return getDeliveredOrders();
-
 
23735
 
23831
 
23736
      }
23832
      }
23737
      throw new IllegalStateException();
23833
      throw new IllegalStateException();
23738
    }
23834
    }
23739
 
23835
 
Line 23742... Line 23838...
23742
    }
23838
    }
23743
 
23839
 
23744
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23840
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
23745
    public boolean isSet(_Fields field) {
23841
    public boolean isSet(_Fields field) {
23746
      switch (field) {
23842
      switch (field) {
23747
      case PROVIDER_ID:
23843
      case ORDER_ID:
23748
        return isSetProviderId();
23844
        return isSetOrderId();
23749
      case DELIVERED_ORDERS:
-
 
23750
        return isSetDeliveredOrders();
-
 
23751
      }
23845
      }
23752
      throw new IllegalStateException();
23846
      throw new IllegalStateException();
23753
    }
23847
    }
23754
 
23848
 
23755
    public boolean isSet(int fieldID) {
23849
    public boolean isSet(int fieldID) {
Line 23758... Line 23852...
23758
 
23852
 
23759
    @Override
23853
    @Override
23760
    public boolean equals(Object that) {
23854
    public boolean equals(Object that) {
23761
      if (that == null)
23855
      if (that == null)
23762
        return false;
23856
        return false;
23763
      if (that instanceof markOrdersAsDelivered_args)
23857
      if (that instanceof billOrder_args)
23764
        return this.equals((markOrdersAsDelivered_args)that);
23858
        return this.equals((billOrder_args)that);
23765
      return false;
23859
      return false;
23766
    }
23860
    }
23767
 
23861
 
23768
    public boolean equals(markOrdersAsDelivered_args that) {
23862
    public boolean equals(billOrder_args that) {
23769
      if (that == null)
23863
      if (that == null)
23770
        return false;
23864
        return false;
23771
 
23865
 
23772
      boolean this_present_providerId = true;
23866
      boolean this_present_orderId = true;
23773
      boolean that_present_providerId = true;
23867
      boolean that_present_orderId = true;
23774
      if (this_present_providerId || that_present_providerId) {
23868
      if (this_present_orderId || that_present_orderId) {
23775
        if (!(this_present_providerId && that_present_providerId))
23869
        if (!(this_present_orderId && that_present_orderId))
23776
          return false;
-
 
23777
        if (this.providerId != that.providerId)
-
 
23778
          return false;
-
 
23779
      }
-
 
23780
 
-
 
23781
      boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();
-
 
23782
      boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();
-
 
23783
      if (this_present_deliveredOrders || that_present_deliveredOrders) {
-
 
23784
        if (!(this_present_deliveredOrders && that_present_deliveredOrders))
-
 
23785
          return false;
23870
          return false;
23786
        if (!this.deliveredOrders.equals(that.deliveredOrders))
23871
        if (this.orderId != that.orderId)
23787
          return false;
23872
          return false;
23788
      }
23873
      }
23789
 
23874
 
23790
      return true;
23875
      return true;
23791
    }
23876
    }
Line 23793... Line 23878...
23793
    @Override
23878
    @Override
23794
    public int hashCode() {
23879
    public int hashCode() {
23795
      return 0;
23880
      return 0;
23796
    }
23881
    }
23797
 
23882
 
-
 
23883
    public int compareTo(billOrder_args other) {
-
 
23884
      if (!getClass().equals(other.getClass())) {
-
 
23885
        return getClass().getName().compareTo(other.getClass().getName());
-
 
23886
      }
-
 
23887
 
-
 
23888
      int lastComparison = 0;
-
 
23889
      billOrder_args typedOther = (billOrder_args)other;
-
 
23890
 
-
 
23891
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
23892
      if (lastComparison != 0) {
-
 
23893
        return lastComparison;
-
 
23894
      }
-
 
23895
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
23896
      if (lastComparison != 0) {
-
 
23897
        return lastComparison;
-
 
23898
      }
-
 
23899
      return 0;
-
 
23900
    }
-
 
23901
 
23798
    public void read(TProtocol iprot) throws TException {
23902
    public void read(TProtocol iprot) throws TException {
23799
      TField field;
23903
      TField field;
23800
      iprot.readStructBegin();
23904
      iprot.readStructBegin();
23801
      while (true)
23905
      while (true)
23802
      {
23906
      {
Line 23807... Line 23911...
23807
        _Fields fieldId = _Fields.findByThriftId(field.id);
23911
        _Fields fieldId = _Fields.findByThriftId(field.id);
23808
        if (fieldId == null) {
23912
        if (fieldId == null) {
23809
          TProtocolUtil.skip(iprot, field.type);
23913
          TProtocolUtil.skip(iprot, field.type);
23810
        } else {
23914
        } else {
23811
          switch (fieldId) {
23915
          switch (fieldId) {
23812
            case PROVIDER_ID:
23916
            case ORDER_ID:
23813
              if (field.type == TType.I64) {
23917
              if (field.type == TType.I64) {
23814
                this.providerId = iprot.readI64();
23918
                this.orderId = iprot.readI64();
23815
                setProviderIdIsSet(true);
23919
                setOrderIdIsSet(true);
23816
              } else { 
-
 
23817
                TProtocolUtil.skip(iprot, field.type);
-
 
23818
              }
-
 
23819
              break;
-
 
23820
            case DELIVERED_ORDERS:
-
 
23821
              if (field.type == TType.MAP) {
-
 
23822
                {
-
 
23823
                  TMap _map61 = iprot.readMapBegin();
-
 
23824
                  this.deliveredOrders = new HashMap<String,String>(2*_map61.size);
-
 
23825
                  for (int _i62 = 0; _i62 < _map61.size; ++_i62)
-
 
23826
                  {
-
 
23827
                    String _key63;
-
 
23828
                    String _val64;
-
 
23829
                    _key63 = iprot.readString();
-
 
23830
                    _val64 = iprot.readString();
-
 
23831
                    this.deliveredOrders.put(_key63, _val64);
-
 
23832
                  }
-
 
23833
                  iprot.readMapEnd();
-
 
23834
                }
-
 
23835
              } else { 
23920
              } else { 
23836
                TProtocolUtil.skip(iprot, field.type);
23921
                TProtocolUtil.skip(iprot, field.type);
23837
              }
23922
              }
23838
              break;
23923
              break;
23839
          }
23924
          }
Line 23846... Line 23931...
23846
 
23931
 
23847
    public void write(TProtocol oprot) throws TException {
23932
    public void write(TProtocol oprot) throws TException {
23848
      validate();
23933
      validate();
23849
 
23934
 
23850
      oprot.writeStructBegin(STRUCT_DESC);
23935
      oprot.writeStructBegin(STRUCT_DESC);
23851
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
23936
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23852
      oprot.writeI64(this.providerId);
23937
      oprot.writeI64(this.orderId);
23853
      oprot.writeFieldEnd();
23938
      oprot.writeFieldEnd();
23854
      if (this.deliveredOrders != null) {
-
 
23855
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
-
 
23856
        {
-
 
23857
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
-
 
23858
          for (Map.Entry<String, String> _iter65 : this.deliveredOrders.entrySet())
-
 
23859
          {
-
 
23860
            oprot.writeString(_iter65.getKey());
-
 
23861
            oprot.writeString(_iter65.getValue());
-
 
23862
          }
-
 
23863
          oprot.writeMapEnd();
-
 
23864
        }
-
 
23865
        oprot.writeFieldEnd();
-
 
23866
      }
-
 
23867
      oprot.writeFieldStop();
23939
      oprot.writeFieldStop();
23868
      oprot.writeStructEnd();
23940
      oprot.writeStructEnd();
23869
    }
23941
    }
23870
 
23942
 
23871
    @Override
23943
    @Override
23872
    public String toString() {
23944
    public String toString() {
23873
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");
23945
      StringBuilder sb = new StringBuilder("billOrder_args(");
23874
      boolean first = true;
23946
      boolean first = true;
23875
 
23947
 
23876
      sb.append("providerId:");
23948
      sb.append("orderId:");
23877
      sb.append(this.providerId);
23949
      sb.append(this.orderId);
23878
      first = false;
-
 
23879
      if (!first) sb.append(", ");
-
 
23880
      sb.append("deliveredOrders:");
-
 
23881
      if (this.deliveredOrders == null) {
-
 
23882
        sb.append("null");
-
 
23883
      } else {
-
 
23884
        sb.append(this.deliveredOrders);
-
 
23885
      }
-
 
23886
      first = false;
23950
      first = false;
23887
      sb.append(")");
23951
      sb.append(")");
23888
      return sb.toString();
23952
      return sb.toString();
23889
    }
23953
    }
23890
 
23954
 
Line 23892... Line 23956...
23892
      // check for required fields
23956
      // check for required fields
23893
    }
23957
    }
23894
 
23958
 
23895
  }
23959
  }
23896
 
23960
 
23897
  public static class markOrdersAsDelivered_result implements TBase<markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsDelivered_result>   {
23961
  public static class billOrder_result implements TBase<billOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<billOrder_result>   {
23898
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsDelivered_result");
23962
    private static final TStruct STRUCT_DESC = new TStruct("billOrder_result");
23899
 
23963
 
-
 
23964
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
23900
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
23965
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
23901
 
23966
 
-
 
23967
    private boolean success;
23902
    private TransactionServiceException ex;
23968
    private TransactionServiceException ex;
23903
 
23969
 
23904
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23970
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23905
    public enum _Fields implements TFieldIdEnum {
23971
    public enum _Fields implements TFieldIdEnum {
-
 
23972
      SUCCESS((short)0, "success"),
23906
      EX((short)1, "ex");
23973
      EX((short)1, "ex");
23907
 
23974
 
23908
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23975
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
23909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23976
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23910
 
23977
 
Line 23955... Line 24022...
23955
        return _fieldName;
24022
        return _fieldName;
23956
      }
24023
      }
23957
    }
24024
    }
23958
 
24025
 
23959
    // isset id assignments
24026
    // isset id assignments
-
 
24027
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
24028
    private BitSet __isset_bit_vector = new BitSet(1);
23960
 
24029
 
23961
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
24030
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
24031
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
24032
          new FieldValueMetaData(TType.BOOL)));
23962
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
24033
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
23963
          new FieldValueMetaData(TType.STRUCT)));
24034
          new FieldValueMetaData(TType.STRUCT)));
23964
    }});
24035
    }});
23965
 
24036
 
23966
    static {
24037
    static {
23967
      FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);
24038
      FieldMetaData.addStructMetaDataMap(billOrder_result.class, metaDataMap);
23968
    }
24039
    }
23969
 
24040
 
23970
    public markOrdersAsDelivered_result() {
24041
    public billOrder_result() {
23971
    }
24042
    }
23972
 
24043
 
23973
    public markOrdersAsDelivered_result(
24044
    public billOrder_result(
-
 
24045
      boolean success,
23974
      TransactionServiceException ex)
24046
      TransactionServiceException ex)
23975
    {
24047
    {
23976
      this();
24048
      this();
-
 
24049
      this.success = success;
-
 
24050
      setSuccessIsSet(true);
23977
      this.ex = ex;
24051
      this.ex = ex;
23978
    }
24052
    }
23979
 
24053
 
23980
    /**
24054
    /**
23981
     * Performs a deep copy on <i>other</i>.
24055
     * Performs a deep copy on <i>other</i>.
23982
     */
24056
     */
23983
    public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {
24057
    public billOrder_result(billOrder_result other) {
-
 
24058
      __isset_bit_vector.clear();
-
 
24059
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
24060
      this.success = other.success;
23984
      if (other.isSetEx()) {
24061
      if (other.isSetEx()) {
23985
        this.ex = new TransactionServiceException(other.ex);
24062
        this.ex = new TransactionServiceException(other.ex);
23986
      }
24063
      }
23987
    }
24064
    }
23988
 
24065
 
23989
    public markOrdersAsDelivered_result deepCopy() {
24066
    public billOrder_result deepCopy() {
23990
      return new markOrdersAsDelivered_result(this);
24067
      return new billOrder_result(this);
23991
    }
24068
    }
23992
 
24069
 
23993
    @Deprecated
24070
    @Deprecated
23994
    public markOrdersAsDelivered_result clone() {
24071
    public billOrder_result clone() {
23995
      return new markOrdersAsDelivered_result(this);
24072
      return new billOrder_result(this);
-
 
24073
    }
-
 
24074
 
-
 
24075
    public boolean isSuccess() {
-
 
24076
      return this.success;
-
 
24077
    }
-
 
24078
 
-
 
24079
    public billOrder_result setSuccess(boolean success) {
-
 
24080
      this.success = success;
-
 
24081
      setSuccessIsSet(true);
-
 
24082
      return this;
-
 
24083
    }
-
 
24084
 
-
 
24085
    public void unsetSuccess() {
-
 
24086
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
24087
    }
-
 
24088
 
-
 
24089
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
24090
    public boolean isSetSuccess() {
-
 
24091
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
24092
    }
-
 
24093
 
-
 
24094
    public void setSuccessIsSet(boolean value) {
-
 
24095
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
23996
    }
24096
    }
23997
 
24097
 
23998
    public TransactionServiceException getEx() {
24098
    public TransactionServiceException getEx() {
23999
      return this.ex;
24099
      return this.ex;
24000
    }
24100
    }
24001
 
24101
 
24002
    public markOrdersAsDelivered_result setEx(TransactionServiceException ex) {
24102
    public billOrder_result setEx(TransactionServiceException ex) {
24003
      this.ex = ex;
24103
      this.ex = ex;
24004
      return this;
24104
      return this;
24005
    }
24105
    }
24006
 
24106
 
24007
    public void unsetEx() {
24107
    public void unsetEx() {
Line 24019... Line 24119...
24019
      }
24119
      }
24020
    }
24120
    }
24021
 
24121
 
24022
    public void setFieldValue(_Fields field, Object value) {
24122
    public void setFieldValue(_Fields field, Object value) {
24023
      switch (field) {
24123
      switch (field) {
-
 
24124
      case SUCCESS:
-
 
24125
        if (value == null) {
-
 
24126
          unsetSuccess();
-
 
24127
        } else {
-
 
24128
          setSuccess((Boolean)value);
-
 
24129
        }
-
 
24130
        break;
-
 
24131
 
24024
      case EX:
24132
      case EX:
24025
        if (value == null) {
24133
        if (value == null) {
24026
          unsetEx();
24134
          unsetEx();
24027
        } else {
24135
        } else {
24028
          setEx((TransactionServiceException)value);
24136
          setEx((TransactionServiceException)value);
Line 24036... Line 24144...
24036
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24144
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24037
    }
24145
    }
24038
 
24146
 
24039
    public Object getFieldValue(_Fields field) {
24147
    public Object getFieldValue(_Fields field) {
24040
      switch (field) {
24148
      switch (field) {
-
 
24149
      case SUCCESS:
-
 
24150
        return new Boolean(isSuccess());
-
 
24151
 
24041
      case EX:
24152
      case EX:
24042
        return getEx();
24153
        return getEx();
24043
 
24154
 
24044
      }
24155
      }
24045
      throw new IllegalStateException();
24156
      throw new IllegalStateException();
Line 24050... Line 24161...
24050
    }
24161
    }
24051
 
24162
 
24052
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24163
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24053
    public boolean isSet(_Fields field) {
24164
    public boolean isSet(_Fields field) {
24054
      switch (field) {
24165
      switch (field) {
-
 
24166
      case SUCCESS:
-
 
24167
        return isSetSuccess();
24055
      case EX:
24168
      case EX:
24056
        return isSetEx();
24169
        return isSetEx();
24057
      }
24170
      }
24058
      throw new IllegalStateException();
24171
      throw new IllegalStateException();
24059
    }
24172
    }
Line 24064... Line 24177...
24064
 
24177
 
24065
    @Override
24178
    @Override
24066
    public boolean equals(Object that) {
24179
    public boolean equals(Object that) {
24067
      if (that == null)
24180
      if (that == null)
24068
        return false;
24181
        return false;
24069
      if (that instanceof markOrdersAsDelivered_result)
24182
      if (that instanceof billOrder_result)
24070
        return this.equals((markOrdersAsDelivered_result)that);
24183
        return this.equals((billOrder_result)that);
24071
      return false;
24184
      return false;
24072
    }
24185
    }
24073
 
24186
 
24074
    public boolean equals(markOrdersAsDelivered_result that) {
24187
    public boolean equals(billOrder_result that) {
24075
      if (that == null)
24188
      if (that == null)
24076
        return false;
24189
        return false;
24077
 
24190
 
-
 
24191
      boolean this_present_success = true;
-
 
24192
      boolean that_present_success = true;
-
 
24193
      if (this_present_success || that_present_success) {
-
 
24194
        if (!(this_present_success && that_present_success))
-
 
24195
          return false;
-
 
24196
        if (this.success != that.success)
-
 
24197
          return false;
-
 
24198
      }
-
 
24199
 
24078
      boolean this_present_ex = true && this.isSetEx();
24200
      boolean this_present_ex = true && this.isSetEx();
24079
      boolean that_present_ex = true && that.isSetEx();
24201
      boolean that_present_ex = true && that.isSetEx();
24080
      if (this_present_ex || that_present_ex) {
24202
      if (this_present_ex || that_present_ex) {
24081
        if (!(this_present_ex && that_present_ex))
24203
        if (!(this_present_ex && that_present_ex))
24082
          return false;
24204
          return false;
Line 24090... Line 24212...
24090
    @Override
24212
    @Override
24091
    public int hashCode() {
24213
    public int hashCode() {
24092
      return 0;
24214
      return 0;
24093
    }
24215
    }
24094
 
24216
 
24095
    public int compareTo(markOrdersAsDelivered_result other) {
24217
    public int compareTo(billOrder_result other) {
24096
      if (!getClass().equals(other.getClass())) {
24218
      if (!getClass().equals(other.getClass())) {
24097
        return getClass().getName().compareTo(other.getClass().getName());
24219
        return getClass().getName().compareTo(other.getClass().getName());
24098
      }
24220
      }
24099
 
24221
 
24100
      int lastComparison = 0;
24222
      int lastComparison = 0;
24101
      markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;
24223
      billOrder_result typedOther = (billOrder_result)other;
24102
 
24224
 
-
 
24225
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
24226
      if (lastComparison != 0) {
-
 
24227
        return lastComparison;
-
 
24228
      }
-
 
24229
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
24230
      if (lastComparison != 0) {
-
 
24231
        return lastComparison;
-
 
24232
      }
24103
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
24233
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
24104
      if (lastComparison != 0) {
24234
      if (lastComparison != 0) {
24105
        return lastComparison;
24235
        return lastComparison;
24106
      }
24236
      }
24107
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
24237
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
Line 24123... Line 24253...
24123
        _Fields fieldId = _Fields.findByThriftId(field.id);
24253
        _Fields fieldId = _Fields.findByThriftId(field.id);
24124
        if (fieldId == null) {
24254
        if (fieldId == null) {
24125
          TProtocolUtil.skip(iprot, field.type);
24255
          TProtocolUtil.skip(iprot, field.type);
24126
        } else {
24256
        } else {
24127
          switch (fieldId) {
24257
          switch (fieldId) {
-
 
24258
            case SUCCESS:
-
 
24259
              if (field.type == TType.BOOL) {
-
 
24260
                this.success = iprot.readBool();
-
 
24261
                setSuccessIsSet(true);
-
 
24262
              } else { 
-
 
24263
                TProtocolUtil.skip(iprot, field.type);
-
 
24264
              }
-
 
24265
              break;
24128
            case EX:
24266
            case EX:
24129
              if (field.type == TType.STRUCT) {
24267
              if (field.type == TType.STRUCT) {
24130
                this.ex = new TransactionServiceException();
24268
                this.ex = new TransactionServiceException();
24131
                this.ex.read(iprot);
24269
                this.ex.read(iprot);
24132
              } else { 
24270
              } else { 
Line 24142... Line 24280...
24142
    }
24280
    }
24143
 
24281
 
24144
    public void write(TProtocol oprot) throws TException {
24282
    public void write(TProtocol oprot) throws TException {
24145
      oprot.writeStructBegin(STRUCT_DESC);
24283
      oprot.writeStructBegin(STRUCT_DESC);
24146
 
24284
 
-
 
24285
      if (this.isSetSuccess()) {
-
 
24286
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
24287
        oprot.writeBool(this.success);
-
 
24288
        oprot.writeFieldEnd();
24147
      if (this.isSetEx()) {
24289
      } else if (this.isSetEx()) {
24148
        oprot.writeFieldBegin(EX_FIELD_DESC);
24290
        oprot.writeFieldBegin(EX_FIELD_DESC);
24149
        this.ex.write(oprot);
24291
        this.ex.write(oprot);
24150
        oprot.writeFieldEnd();
24292
        oprot.writeFieldEnd();
24151
      }
24293
      }
24152
      oprot.writeFieldStop();
24294
      oprot.writeFieldStop();
24153
      oprot.writeStructEnd();
24295
      oprot.writeStructEnd();
24154
    }
24296
    }
24155
 
24297
 
24156
    @Override
24298
    @Override
24157
    public String toString() {
24299
    public String toString() {
24158
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");
24300
      StringBuilder sb = new StringBuilder("billOrder_result(");
24159
      boolean first = true;
24301
      boolean first = true;
24160
 
24302
 
-
 
24303
      sb.append("success:");
-
 
24304
      sb.append(this.success);
-
 
24305
      first = false;
-
 
24306
      if (!first) sb.append(", ");
24161
      sb.append("ex:");
24307
      sb.append("ex:");
24162
      if (this.ex == null) {
24308
      if (this.ex == null) {
24163
        sb.append("null");
24309
        sb.append("null");
24164
      } else {
24310
      } else {
24165
        sb.append(this.ex);
24311
        sb.append(this.ex);
Line 24173... Line 24319...
24173
      // check for required fields
24319
      // check for required fields
24174
    }
24320
    }
24175
 
24321
 
24176
  }
24322
  }
24177
 
24323
 
24178
  public static class markOrdersAsFailed_args implements TBase<markOrdersAsFailed_args._Fields>, java.io.Serializable, Cloneable   {
24324
  public static class addBillingDetails_args implements TBase<addBillingDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<addBillingDetails_args>   {
24179
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsFailed_args");
24325
    private static final TStruct STRUCT_DESC = new TStruct("addBillingDetails_args");
24180
 
24326
 
24181
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
24327
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
24182
    private static final TField RETURNED_ORDERS_FIELD_DESC = new TField("returnedOrders", TType.MAP, (short)2);
24328
    private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)2);
-
 
24329
    private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)3);
24183
 
24330
 
24184
    private long providerId;
24331
    private long orderId;
24185
    private Map<String,String> returnedOrders;
24332
    private String invoice_number;
-
 
24333
    private String billed_by;
24186
 
24334
 
24187
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24335
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24188
    public enum _Fields implements TFieldIdEnum {
24336
    public enum _Fields implements TFieldIdEnum {
24189
      PROVIDER_ID((short)1, "providerId"),
24337
      ORDER_ID((short)1, "orderId"),
24190
      RETURNED_ORDERS((short)2, "returnedOrders");
24338
      INVOICE_NUMBER((short)2, "invoice_number"),
-
 
24339
      BILLED_BY((short)3, "billed_by");
24191
 
24340
 
24192
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
24341
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
24193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24342
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24194
 
24343
 
24195
      static {
24344
      static {
Line 24239... Line 24388...
24239
        return _fieldName;
24388
        return _fieldName;
24240
      }
24389
      }
24241
    }
24390
    }
24242
 
24391
 
24243
    // isset id assignments
24392
    // isset id assignments
24244
    private static final int __PROVIDERID_ISSET_ID = 0;
24393
    private static final int __ORDERID_ISSET_ID = 0;
24245
    private BitSet __isset_bit_vector = new BitSet(1);
24394
    private BitSet __isset_bit_vector = new BitSet(1);
24246
 
24395
 
24247
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
24396
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
24248
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
24397
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
24249
          new FieldValueMetaData(TType.I64)));
24398
          new FieldValueMetaData(TType.I64)));
24250
      put(_Fields.RETURNED_ORDERS, new FieldMetaData("returnedOrders", TFieldRequirementType.DEFAULT, 
24399
      put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoice_number", TFieldRequirementType.DEFAULT, 
24251
          new MapMetaData(TType.MAP, 
24400
          new FieldValueMetaData(TType.STRING)));
24252
              new FieldValueMetaData(TType.STRING), 
24401
      put(_Fields.BILLED_BY, new FieldMetaData("billed_by", TFieldRequirementType.DEFAULT, 
24253
              new FieldValueMetaData(TType.STRING))));
24402
          new FieldValueMetaData(TType.STRING)));
24254
    }});
24403
    }});
24255
 
24404
 
24256
    static {
24405
    static {
24257
      FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_args.class, metaDataMap);
24406
      FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
24258
    }
24407
    }
24259
 
24408
 
24260
    public markOrdersAsFailed_args() {
24409
    public addBillingDetails_args() {
24261
    }
24410
    }
24262
 
24411
 
24263
    public markOrdersAsFailed_args(
24412
    public addBillingDetails_args(
24264
      long providerId,
24413
      long orderId,
24265
      Map<String,String> returnedOrders)
24414
      String invoice_number,
-
 
24415
      String billed_by)
24266
    {
24416
    {
24267
      this();
24417
      this();
24268
      this.providerId = providerId;
24418
      this.orderId = orderId;
24269
      setProviderIdIsSet(true);
24419
      setOrderIdIsSet(true);
24270
      this.returnedOrders = returnedOrders;
24420
      this.invoice_number = invoice_number;
-
 
24421
      this.billed_by = billed_by;
24271
    }
24422
    }
24272
 
24423
 
24273
    /**
24424
    /**
24274
     * Performs a deep copy on <i>other</i>.
24425
     * Performs a deep copy on <i>other</i>.
24275
     */
24426
     */
24276
    public markOrdersAsFailed_args(markOrdersAsFailed_args other) {
24427
    public addBillingDetails_args(addBillingDetails_args other) {
24277
      __isset_bit_vector.clear();
24428
      __isset_bit_vector.clear();
24278
      __isset_bit_vector.or(other.__isset_bit_vector);
24429
      __isset_bit_vector.or(other.__isset_bit_vector);
24279
      this.providerId = other.providerId;
24430
      this.orderId = other.orderId;
24280
      if (other.isSetReturnedOrders()) {
24431
      if (other.isSetInvoice_number()) {
24281
        Map<String,String> __this__returnedOrders = new HashMap<String,String>();
-
 
24282
        for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {
-
 
24283
 
-
 
24284
          String other_element_key = other_element.getKey();
24432
        this.invoice_number = other.invoice_number;
24285
          String other_element_value = other_element.getValue();
-
 
24286
 
-
 
24287
          String __this__returnedOrders_copy_key = other_element_key;
-
 
24288
 
-
 
24289
          String __this__returnedOrders_copy_value = other_element_value;
-
 
24290
 
-
 
24291
          __this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);
-
 
24292
        }
24433
      }
-
 
24434
      if (other.isSetBilled_by()) {
24293
        this.returnedOrders = __this__returnedOrders;
24435
        this.billed_by = other.billed_by;
24294
      }
24436
      }
24295
    }
24437
    }
24296
 
24438
 
24297
    public markOrdersAsFailed_args deepCopy() {
24439
    public addBillingDetails_args deepCopy() {
24298
      return new markOrdersAsFailed_args(this);
24440
      return new addBillingDetails_args(this);
24299
    }
24441
    }
24300
 
24442
 
24301
    @Deprecated
24443
    @Deprecated
24302
    public markOrdersAsFailed_args clone() {
24444
    public addBillingDetails_args clone() {
24303
      return new markOrdersAsFailed_args(this);
24445
      return new addBillingDetails_args(this);
24304
    }
24446
    }
24305
 
24447
 
24306
    public long getProviderId() {
24448
    public long getOrderId() {
24307
      return this.providerId;
24449
      return this.orderId;
24308
    }
24450
    }
24309
 
24451
 
24310
    public markOrdersAsFailed_args setProviderId(long providerId) {
24452
    public addBillingDetails_args setOrderId(long orderId) {
24311
      this.providerId = providerId;
24453
      this.orderId = orderId;
24312
      setProviderIdIsSet(true);
24454
      setOrderIdIsSet(true);
24313
      return this;
24455
      return this;
24314
    }
24456
    }
24315
 
24457
 
24316
    public void unsetProviderId() {
24458
    public void unsetOrderId() {
24317
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
24459
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24318
    }
24460
    }
24319
 
24461
 
24320
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
24462
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
24321
    public boolean isSetProviderId() {
24463
    public boolean isSetOrderId() {
24322
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
24464
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24323
    }
24465
    }
24324
 
24466
 
24325
    public void setProviderIdIsSet(boolean value) {
24467
    public void setOrderIdIsSet(boolean value) {
24326
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
24468
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24327
    }
24469
    }
24328
 
24470
 
24329
    public int getReturnedOrdersSize() {
24471
    public String getInvoice_number() {
24330
      return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();
24472
      return this.invoice_number;
24331
    }
24473
    }
24332
 
24474
 
-
 
24475
    public addBillingDetails_args setInvoice_number(String invoice_number) {
-
 
24476
      this.invoice_number = invoice_number;
-
 
24477
      return this;
-
 
24478
    }
-
 
24479
 
24333
    public void putToReturnedOrders(String key, String val) {
24480
    public void unsetInvoice_number() {
24334
      if (this.returnedOrders == null) {
24481
      this.invoice_number = null;
-
 
24482
    }
-
 
24483
 
-
 
24484
    /** Returns true if field invoice_number is set (has been asigned a value) and false otherwise */
-
 
24485
    public boolean isSetInvoice_number() {
-
 
24486
      return this.invoice_number != null;
-
 
24487
    }
-
 
24488
 
-
 
24489
    public void setInvoice_numberIsSet(boolean value) {
-
 
24490
      if (!value) {
24335
        this.returnedOrders = new HashMap<String,String>();
24491
        this.invoice_number = null;
24336
      }
24492
      }
24337
      this.returnedOrders.put(key, val);
-
 
24338
    }
24493
    }
24339
 
24494
 
24340
    public Map<String,String> getReturnedOrders() {
24495
    public String getBilled_by() {
24341
      return this.returnedOrders;
24496
      return this.billed_by;
24342
    }
24497
    }
24343
 
24498
 
24344
    public markOrdersAsFailed_args setReturnedOrders(Map<String,String> returnedOrders) {
24499
    public addBillingDetails_args setBilled_by(String billed_by) {
24345
      this.returnedOrders = returnedOrders;
24500
      this.billed_by = billed_by;
24346
      return this;
24501
      return this;
24347
    }
24502
    }
24348
 
24503
 
24349
    public void unsetReturnedOrders() {
24504
    public void unsetBilled_by() {
24350
      this.returnedOrders = null;
24505
      this.billed_by = null;
24351
    }
24506
    }
24352
 
24507
 
24353
    /** Returns true if field returnedOrders is set (has been asigned a value) and false otherwise */
24508
    /** Returns true if field billed_by is set (has been asigned a value) and false otherwise */
24354
    public boolean isSetReturnedOrders() {
24509
    public boolean isSetBilled_by() {
24355
      return this.returnedOrders != null;
24510
      return this.billed_by != null;
24356
    }
24511
    }
24357
 
24512
 
24358
    public void setReturnedOrdersIsSet(boolean value) {
24513
    public void setBilled_byIsSet(boolean value) {
24359
      if (!value) {
24514
      if (!value) {
24360
        this.returnedOrders = null;
24515
        this.billed_by = null;
24361
      }
24516
      }
24362
    }
24517
    }
24363
 
24518
 
24364
    public void setFieldValue(_Fields field, Object value) {
24519
    public void setFieldValue(_Fields field, Object value) {
24365
      switch (field) {
24520
      switch (field) {
24366
      case PROVIDER_ID:
24521
      case ORDER_ID:
24367
        if (value == null) {
24522
        if (value == null) {
24368
          unsetProviderId();
24523
          unsetOrderId();
24369
        } else {
24524
        } else {
24370
          setProviderId((Long)value);
24525
          setOrderId((Long)value);
24371
        }
24526
        }
24372
        break;
24527
        break;
24373
 
24528
 
24374
      case RETURNED_ORDERS:
24529
      case INVOICE_NUMBER:
24375
        if (value == null) {
24530
        if (value == null) {
24376
          unsetReturnedOrders();
24531
          unsetInvoice_number();
24377
        } else {
24532
        } else {
24378
          setReturnedOrders((Map<String,String>)value);
24533
          setInvoice_number((String)value);
-
 
24534
        }
-
 
24535
        break;
-
 
24536
 
-
 
24537
      case BILLED_BY:
-
 
24538
        if (value == null) {
-
 
24539
          unsetBilled_by();
-
 
24540
        } else {
-
 
24541
          setBilled_by((String)value);
24379
        }
24542
        }
24380
        break;
24543
        break;
24381
 
24544
 
24382
      }
24545
      }
24383
    }
24546
    }
Line 24386... Line 24549...
24386
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24549
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24387
    }
24550
    }
24388
 
24551
 
24389
    public Object getFieldValue(_Fields field) {
24552
    public Object getFieldValue(_Fields field) {
24390
      switch (field) {
24553
      switch (field) {
24391
      case PROVIDER_ID:
24554
      case ORDER_ID:
24392
        return new Long(getProviderId());
24555
        return new Long(getOrderId());
24393
 
24556
 
24394
      case RETURNED_ORDERS:
24557
      case INVOICE_NUMBER:
24395
        return getReturnedOrders();
24558
        return getInvoice_number();
-
 
24559
 
-
 
24560
      case BILLED_BY:
-
 
24561
        return getBilled_by();
24396
 
24562
 
24397
      }
24563
      }
24398
      throw new IllegalStateException();
24564
      throw new IllegalStateException();
24399
    }
24565
    }
24400
 
24566
 
Line 24403... Line 24569...
24403
    }
24569
    }
24404
 
24570
 
24405
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24571
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24406
    public boolean isSet(_Fields field) {
24572
    public boolean isSet(_Fields field) {
24407
      switch (field) {
24573
      switch (field) {
24408
      case PROVIDER_ID:
24574
      case ORDER_ID:
24409
        return isSetProviderId();
24575
        return isSetOrderId();
24410
      case RETURNED_ORDERS:
24576
      case INVOICE_NUMBER:
24411
        return isSetReturnedOrders();
24577
        return isSetInvoice_number();
-
 
24578
      case BILLED_BY:
-
 
24579
        return isSetBilled_by();
24412
      }
24580
      }
24413
      throw new IllegalStateException();
24581
      throw new IllegalStateException();
24414
    }
24582
    }
24415
 
24583
 
24416
    public boolean isSet(int fieldID) {
24584
    public boolean isSet(int fieldID) {
Line 24419... Line 24587...
24419
 
24587
 
24420
    @Override
24588
    @Override
24421
    public boolean equals(Object that) {
24589
    public boolean equals(Object that) {
24422
      if (that == null)
24590
      if (that == null)
24423
        return false;
24591
        return false;
24424
      if (that instanceof markOrdersAsFailed_args)
24592
      if (that instanceof addBillingDetails_args)
24425
        return this.equals((markOrdersAsFailed_args)that);
24593
        return this.equals((addBillingDetails_args)that);
24426
      return false;
24594
      return false;
24427
    }
24595
    }
24428
 
24596
 
24429
    public boolean equals(markOrdersAsFailed_args that) {
24597
    public boolean equals(addBillingDetails_args that) {
24430
      if (that == null)
24598
      if (that == null)
24431
        return false;
24599
        return false;
24432
 
24600
 
24433
      boolean this_present_providerId = true;
24601
      boolean this_present_orderId = true;
24434
      boolean that_present_providerId = true;
24602
      boolean that_present_orderId = true;
24435
      if (this_present_providerId || that_present_providerId) {
24603
      if (this_present_orderId || that_present_orderId) {
24436
        if (!(this_present_providerId && that_present_providerId))
24604
        if (!(this_present_orderId && that_present_orderId))
24437
          return false;
24605
          return false;
24438
        if (this.providerId != that.providerId)
24606
        if (this.orderId != that.orderId)
24439
          return false;
24607
          return false;
24440
      }
24608
      }
24441
 
24609
 
24442
      boolean this_present_returnedOrders = true && this.isSetReturnedOrders();
24610
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
24443
      boolean that_present_returnedOrders = true && that.isSetReturnedOrders();
24611
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
24444
      if (this_present_returnedOrders || that_present_returnedOrders) {
24612
      if (this_present_invoice_number || that_present_invoice_number) {
24445
        if (!(this_present_returnedOrders && that_present_returnedOrders))
24613
        if (!(this_present_invoice_number && that_present_invoice_number))
24446
          return false;
24614
          return false;
24447
        if (!this.returnedOrders.equals(that.returnedOrders))
24615
        if (!this.invoice_number.equals(that.invoice_number))
-
 
24616
          return false;
-
 
24617
      }
-
 
24618
 
-
 
24619
      boolean this_present_billed_by = true && this.isSetBilled_by();
-
 
24620
      boolean that_present_billed_by = true && that.isSetBilled_by();
-
 
24621
      if (this_present_billed_by || that_present_billed_by) {
-
 
24622
        if (!(this_present_billed_by && that_present_billed_by))
-
 
24623
          return false;
-
 
24624
        if (!this.billed_by.equals(that.billed_by))
24448
          return false;
24625
          return false;
24449
      }
24626
      }
24450
 
24627
 
24451
      return true;
24628
      return true;
24452
    }
24629
    }
Line 24454... Line 24631...
24454
    @Override
24631
    @Override
24455
    public int hashCode() {
24632
    public int hashCode() {
24456
      return 0;
24633
      return 0;
24457
    }
24634
    }
24458
 
24635
 
-
 
24636
    public int compareTo(addBillingDetails_args other) {
-
 
24637
      if (!getClass().equals(other.getClass())) {
-
 
24638
        return getClass().getName().compareTo(other.getClass().getName());
-
 
24639
      }
-
 
24640
 
-
 
24641
      int lastComparison = 0;
-
 
24642
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
-
 
24643
 
-
 
24644
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
24645
      if (lastComparison != 0) {
-
 
24646
        return lastComparison;
-
 
24647
      }
-
 
24648
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
24649
      if (lastComparison != 0) {
-
 
24650
        return lastComparison;
-
 
24651
      }
-
 
24652
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(isSetInvoice_number());
-
 
24653
      if (lastComparison != 0) {
-
 
24654
        return lastComparison;
-
 
24655
      }
-
 
24656
      lastComparison = TBaseHelper.compareTo(invoice_number, typedOther.invoice_number);
-
 
24657
      if (lastComparison != 0) {
-
 
24658
        return lastComparison;
-
 
24659
      }
-
 
24660
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(isSetBilled_by());
-
 
24661
      if (lastComparison != 0) {
-
 
24662
        return lastComparison;
-
 
24663
      }
-
 
24664
      lastComparison = TBaseHelper.compareTo(billed_by, typedOther.billed_by);
-
 
24665
      if (lastComparison != 0) {
-
 
24666
        return lastComparison;
-
 
24667
      }
-
 
24668
      return 0;
-
 
24669
    }
-
 
24670
 
24459
    public void read(TProtocol iprot) throws TException {
24671
    public void read(TProtocol iprot) throws TException {
24460
      TField field;
24672
      TField field;
24461
      iprot.readStructBegin();
24673
      iprot.readStructBegin();
24462
      while (true)
24674
      while (true)
24463
      {
24675
      {
Line 24468... Line 24680...
24468
        _Fields fieldId = _Fields.findByThriftId(field.id);
24680
        _Fields fieldId = _Fields.findByThriftId(field.id);
24469
        if (fieldId == null) {
24681
        if (fieldId == null) {
24470
          TProtocolUtil.skip(iprot, field.type);
24682
          TProtocolUtil.skip(iprot, field.type);
24471
        } else {
24683
        } else {
24472
          switch (fieldId) {
24684
          switch (fieldId) {
24473
            case PROVIDER_ID:
24685
            case ORDER_ID:
24474
              if (field.type == TType.I64) {
24686
              if (field.type == TType.I64) {
24475
                this.providerId = iprot.readI64();
24687
                this.orderId = iprot.readI64();
24476
                setProviderIdIsSet(true);
24688
                setOrderIdIsSet(true);
24477
              } else { 
24689
              } else { 
24478
                TProtocolUtil.skip(iprot, field.type);
24690
                TProtocolUtil.skip(iprot, field.type);
24479
              }
24691
              }
24480
              break;
24692
              break;
24481
            case RETURNED_ORDERS:
24693
            case INVOICE_NUMBER:
24482
              if (field.type == TType.MAP) {
24694
              if (field.type == TType.STRING) {
24483
                {
-
 
24484
                  TMap _map66 = iprot.readMapBegin();
24695
                this.invoice_number = iprot.readString();
24485
                  this.returnedOrders = new HashMap<String,String>(2*_map66.size);
24696
              } else { 
24486
                  for (int _i67 = 0; _i67 < _map66.size; ++_i67)
24697
                TProtocolUtil.skip(iprot, field.type);
24487
                  {
24698
              }
24488
                    String _key68;
24699
              break;
24489
                    String _val69;
24700
            case BILLED_BY:
24490
                    _key68 = iprot.readString();
24701
              if (field.type == TType.STRING) {
24491
                    _val69 = iprot.readString();
24702
                this.billed_by = iprot.readString();
24492
                    this.returnedOrders.put(_key68, _val69);
-
 
24493
                  }
-
 
24494
                  iprot.readMapEnd();
-
 
24495
                }
-
 
24496
              } else { 
24703
              } else { 
24497
                TProtocolUtil.skip(iprot, field.type);
24704
                TProtocolUtil.skip(iprot, field.type);
24498
              }
24705
              }
24499
              break;
24706
              break;
24500
          }
24707
          }
Line 24507... Line 24714...
24507
 
24714
 
24508
    public void write(TProtocol oprot) throws TException {
24715
    public void write(TProtocol oprot) throws TException {
24509
      validate();
24716
      validate();
24510
 
24717
 
24511
      oprot.writeStructBegin(STRUCT_DESC);
24718
      oprot.writeStructBegin(STRUCT_DESC);
24512
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
24719
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24513
      oprot.writeI64(this.providerId);
24720
      oprot.writeI64(this.orderId);
24514
      oprot.writeFieldEnd();
24721
      oprot.writeFieldEnd();
24515
      if (this.returnedOrders != null) {
24722
      if (this.invoice_number != null) {
24516
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
24723
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
24517
        {
-
 
24518
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
24724
        oprot.writeString(this.invoice_number);
24519
          for (Map.Entry<String, String> _iter70 : this.returnedOrders.entrySet())
24725
        oprot.writeFieldEnd();
24520
          {
24726
      }
24521
            oprot.writeString(_iter70.getKey());
24727
      if (this.billed_by != null) {
24522
            oprot.writeString(_iter70.getValue());
24728
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
24523
          }
-
 
24524
          oprot.writeMapEnd();
24729
        oprot.writeString(this.billed_by);
24525
        }
-
 
24526
        oprot.writeFieldEnd();
24730
        oprot.writeFieldEnd();
24527
      }
24731
      }
24528
      oprot.writeFieldStop();
24732
      oprot.writeFieldStop();
24529
      oprot.writeStructEnd();
24733
      oprot.writeStructEnd();
24530
    }
24734
    }
24531
 
24735
 
24532
    @Override
24736
    @Override
24533
    public String toString() {
24737
    public String toString() {
24534
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_args(");
24738
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
24535
      boolean first = true;
24739
      boolean first = true;
24536
 
24740
 
24537
      sb.append("providerId:");
24741
      sb.append("orderId:");
24538
      sb.append(this.providerId);
24742
      sb.append(this.orderId);
24539
      first = false;
24743
      first = false;
24540
      if (!first) sb.append(", ");
24744
      if (!first) sb.append(", ");
24541
      sb.append("returnedOrders:");
24745
      sb.append("invoice_number:");
24542
      if (this.returnedOrders == null) {
24746
      if (this.invoice_number == null) {
24543
        sb.append("null");
24747
        sb.append("null");
24544
      } else {
24748
      } else {
24545
        sb.append(this.returnedOrders);
24749
        sb.append(this.invoice_number);
-
 
24750
      }
-
 
24751
      first = false;
-
 
24752
      if (!first) sb.append(", ");
-
 
24753
      sb.append("billed_by:");
-
 
24754
      if (this.billed_by == null) {
-
 
24755
        sb.append("null");
-
 
24756
      } else {
-
 
24757
        sb.append(this.billed_by);
24546
      }
24758
      }
24547
      first = false;
24759
      first = false;
24548
      sb.append(")");
24760
      sb.append(")");
24549
      return sb.toString();
24761
      return sb.toString();
24550
    }
24762
    }
Line 24553... Line 24765...
24553
      // check for required fields
24765
      // check for required fields
24554
    }
24766
    }
24555
 
24767
 
24556
  }
24768
  }
24557
 
24769
 
24558
  public static class markOrdersAsFailed_result implements TBase<markOrdersAsFailed_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsFailed_result>   {
24770
  public static class addBillingDetails_result implements TBase<addBillingDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<addBillingDetails_result>   {
24559
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsFailed_result");
24771
    private static final TStruct STRUCT_DESC = new TStruct("addBillingDetails_result");
24560
 
24772
 
-
 
24773
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
24561
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
24774
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
24562
 
24775
 
-
 
24776
    private boolean success;
24563
    private TransactionServiceException ex;
24777
    private TransactionServiceException ex;
24564
 
24778
 
24565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24566
    public enum _Fields implements TFieldIdEnum {
24780
    public enum _Fields implements TFieldIdEnum {
-
 
24781
      SUCCESS((short)0, "success"),
24567
      EX((short)1, "ex");
24782
      EX((short)1, "ex");
24568
 
24783
 
24569
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
24784
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
24570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24785
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24571
 
24786
 
Line 24616... Line 24831...
24616
        return _fieldName;
24831
        return _fieldName;
24617
      }
24832
      }
24618
    }
24833
    }
24619
 
24834
 
24620
    // isset id assignments
24835
    // isset id assignments
-
 
24836
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
24837
    private BitSet __isset_bit_vector = new BitSet(1);
24621
 
24838
 
24622
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
24839
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
24840
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
24841
          new FieldValueMetaData(TType.BOOL)));
24623
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
24842
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
24624
          new FieldValueMetaData(TType.STRUCT)));
24843
          new FieldValueMetaData(TType.STRUCT)));
24625
    }});
24844
    }});
24626
 
24845
 
24627
    static {
24846
    static {
24628
      FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_result.class, metaDataMap);
24847
      FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
24629
    }
24848
    }
24630
 
24849
 
24631
    public markOrdersAsFailed_result() {
24850
    public addBillingDetails_result() {
24632
    }
24851
    }
24633
 
24852
 
24634
    public markOrdersAsFailed_result(
24853
    public addBillingDetails_result(
-
 
24854
      boolean success,
24635
      TransactionServiceException ex)
24855
      TransactionServiceException ex)
24636
    {
24856
    {
24637
      this();
24857
      this();
-
 
24858
      this.success = success;
-
 
24859
      setSuccessIsSet(true);
24638
      this.ex = ex;
24860
      this.ex = ex;
24639
    }
24861
    }
24640
 
24862
 
24641
    /**
24863
    /**
24642
     * Performs a deep copy on <i>other</i>.
24864
     * Performs a deep copy on <i>other</i>.
24643
     */
24865
     */
24644
    public markOrdersAsFailed_result(markOrdersAsFailed_result other) {
24866
    public addBillingDetails_result(addBillingDetails_result other) {
-
 
24867
      __isset_bit_vector.clear();
-
 
24868
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
24869
      this.success = other.success;
24645
      if (other.isSetEx()) {
24870
      if (other.isSetEx()) {
24646
        this.ex = new TransactionServiceException(other.ex);
24871
        this.ex = new TransactionServiceException(other.ex);
24647
      }
24872
      }
24648
    }
24873
    }
24649
 
24874
 
24650
    public markOrdersAsFailed_result deepCopy() {
24875
    public addBillingDetails_result deepCopy() {
24651
      return new markOrdersAsFailed_result(this);
24876
      return new addBillingDetails_result(this);
24652
    }
24877
    }
24653
 
24878
 
24654
    @Deprecated
24879
    @Deprecated
24655
    public markOrdersAsFailed_result clone() {
24880
    public addBillingDetails_result clone() {
24656
      return new markOrdersAsFailed_result(this);
24881
      return new addBillingDetails_result(this);
-
 
24882
    }
-
 
24883
 
-
 
24884
    public boolean isSuccess() {
-
 
24885
      return this.success;
-
 
24886
    }
-
 
24887
 
-
 
24888
    public addBillingDetails_result setSuccess(boolean success) {
-
 
24889
      this.success = success;
-
 
24890
      setSuccessIsSet(true);
-
 
24891
      return this;
-
 
24892
    }
-
 
24893
 
-
 
24894
    public void unsetSuccess() {
-
 
24895
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
24896
    }
-
 
24897
 
-
 
24898
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
24899
    public boolean isSetSuccess() {
-
 
24900
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
24901
    }
-
 
24902
 
-
 
24903
    public void setSuccessIsSet(boolean value) {
-
 
24904
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
24657
    }
24905
    }
24658
 
24906
 
24659
    public TransactionServiceException getEx() {
24907
    public TransactionServiceException getEx() {
24660
      return this.ex;
24908
      return this.ex;
24661
    }
24909
    }
24662
 
24910
 
24663
    public markOrdersAsFailed_result setEx(TransactionServiceException ex) {
24911
    public addBillingDetails_result setEx(TransactionServiceException ex) {
24664
      this.ex = ex;
24912
      this.ex = ex;
24665
      return this;
24913
      return this;
24666
    }
24914
    }
24667
 
24915
 
24668
    public void unsetEx() {
24916
    public void unsetEx() {
Line 24680... Line 24928...
24680
      }
24928
      }
24681
    }
24929
    }
24682
 
24930
 
24683
    public void setFieldValue(_Fields field, Object value) {
24931
    public void setFieldValue(_Fields field, Object value) {
24684
      switch (field) {
24932
      switch (field) {
-
 
24933
      case SUCCESS:
-
 
24934
        if (value == null) {
-
 
24935
          unsetSuccess();
-
 
24936
        } else {
-
 
24937
          setSuccess((Boolean)value);
-
 
24938
        }
-
 
24939
        break;
-
 
24940
 
24685
      case EX:
24941
      case EX:
24686
        if (value == null) {
24942
        if (value == null) {
24687
          unsetEx();
24943
          unsetEx();
24688
        } else {
24944
        } else {
24689
          setEx((TransactionServiceException)value);
24945
          setEx((TransactionServiceException)value);
Line 24697... Line 24953...
24697
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24953
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
24698
    }
24954
    }
24699
 
24955
 
24700
    public Object getFieldValue(_Fields field) {
24956
    public Object getFieldValue(_Fields field) {
24701
      switch (field) {
24957
      switch (field) {
-
 
24958
      case SUCCESS:
-
 
24959
        return new Boolean(isSuccess());
-
 
24960
 
24702
      case EX:
24961
      case EX:
24703
        return getEx();
24962
        return getEx();
24704
 
24963
 
24705
      }
24964
      }
24706
      throw new IllegalStateException();
24965
      throw new IllegalStateException();
Line 24711... Line 24970...
24711
    }
24970
    }
24712
 
24971
 
24713
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24972
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
24714
    public boolean isSet(_Fields field) {
24973
    public boolean isSet(_Fields field) {
24715
      switch (field) {
24974
      switch (field) {
-
 
24975
      case SUCCESS:
-
 
24976
        return isSetSuccess();
24716
      case EX:
24977
      case EX:
24717
        return isSetEx();
24978
        return isSetEx();
24718
      }
24979
      }
24719
      throw new IllegalStateException();
24980
      throw new IllegalStateException();
24720
    }
24981
    }
Line 24725... Line 24986...
24725
 
24986
 
24726
    @Override
24987
    @Override
24727
    public boolean equals(Object that) {
24988
    public boolean equals(Object that) {
24728
      if (that == null)
24989
      if (that == null)
24729
        return false;
24990
        return false;
24730
      if (that instanceof markOrdersAsFailed_result)
24991
      if (that instanceof addBillingDetails_result)
24731
        return this.equals((markOrdersAsFailed_result)that);
24992
        return this.equals((addBillingDetails_result)that);
24732
      return false;
24993
      return false;
24733
    }
24994
    }
24734
 
24995
 
24735
    public boolean equals(markOrdersAsFailed_result that) {
24996
    public boolean equals(addBillingDetails_result that) {
24736
      if (that == null)
24997
      if (that == null)
24737
        return false;
24998
        return false;
24738
 
24999
 
-
 
25000
      boolean this_present_success = true;
-
 
25001
      boolean that_present_success = true;
-
 
25002
      if (this_present_success || that_present_success) {
-
 
25003
        if (!(this_present_success && that_present_success))
-
 
25004
          return false;
-
 
25005
        if (this.success != that.success)
-
 
25006
          return false;
-
 
25007
      }
-
 
25008
 
24739
      boolean this_present_ex = true && this.isSetEx();
25009
      boolean this_present_ex = true && this.isSetEx();
24740
      boolean that_present_ex = true && that.isSetEx();
25010
      boolean that_present_ex = true && that.isSetEx();
24741
      if (this_present_ex || that_present_ex) {
25011
      if (this_present_ex || that_present_ex) {
24742
        if (!(this_present_ex && that_present_ex))
25012
        if (!(this_present_ex && that_present_ex))
24743
          return false;
25013
          return false;
Line 24751... Line 25021...
24751
    @Override
25021
    @Override
24752
    public int hashCode() {
25022
    public int hashCode() {
24753
      return 0;
25023
      return 0;
24754
    }
25024
    }
24755
 
25025
 
24756
    public int compareTo(markOrdersAsFailed_result other) {
25026
    public int compareTo(addBillingDetails_result other) {
24757
      if (!getClass().equals(other.getClass())) {
25027
      if (!getClass().equals(other.getClass())) {
24758
        return getClass().getName().compareTo(other.getClass().getName());
25028
        return getClass().getName().compareTo(other.getClass().getName());
24759
      }
25029
      }
24760
 
25030
 
24761
      int lastComparison = 0;
25031
      int lastComparison = 0;
24762
      markOrdersAsFailed_result typedOther = (markOrdersAsFailed_result)other;
25032
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
24763
 
25033
 
-
 
25034
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
25035
      if (lastComparison != 0) {
-
 
25036
        return lastComparison;
-
 
25037
      }
-
 
25038
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
25039
      if (lastComparison != 0) {
-
 
25040
        return lastComparison;
-
 
25041
      }
24764
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
25042
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
24765
      if (lastComparison != 0) {
25043
      if (lastComparison != 0) {
24766
        return lastComparison;
25044
        return lastComparison;
24767
      }
25045
      }
24768
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
25046
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
Line 24784... Line 25062...
24784
        _Fields fieldId = _Fields.findByThriftId(field.id);
25062
        _Fields fieldId = _Fields.findByThriftId(field.id);
24785
        if (fieldId == null) {
25063
        if (fieldId == null) {
24786
          TProtocolUtil.skip(iprot, field.type);
25064
          TProtocolUtil.skip(iprot, field.type);
24787
        } else {
25065
        } else {
24788
          switch (fieldId) {
25066
          switch (fieldId) {
-
 
25067
            case SUCCESS:
-
 
25068
              if (field.type == TType.BOOL) {
-
 
25069
                this.success = iprot.readBool();
-
 
25070
                setSuccessIsSet(true);
-
 
25071
              } else { 
-
 
25072
                TProtocolUtil.skip(iprot, field.type);
-
 
25073
              }
-
 
25074
              break;
24789
            case EX:
25075
            case EX:
24790
              if (field.type == TType.STRUCT) {
25076
              if (field.type == TType.STRUCT) {
24791
                this.ex = new TransactionServiceException();
25077
                this.ex = new TransactionServiceException();
24792
                this.ex.read(iprot);
25078
                this.ex.read(iprot);
24793
              } else { 
25079
              } else { 
Line 24803... Line 25089...
24803
    }
25089
    }
24804
 
25090
 
24805
    public void write(TProtocol oprot) throws TException {
25091
    public void write(TProtocol oprot) throws TException {
24806
      oprot.writeStructBegin(STRUCT_DESC);
25092
      oprot.writeStructBegin(STRUCT_DESC);
24807
 
25093
 
-
 
25094
      if (this.isSetSuccess()) {
-
 
25095
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
25096
        oprot.writeBool(this.success);
-
 
25097
        oprot.writeFieldEnd();
24808
      if (this.isSetEx()) {
25098
      } else if (this.isSetEx()) {
24809
        oprot.writeFieldBegin(EX_FIELD_DESC);
25099
        oprot.writeFieldBegin(EX_FIELD_DESC);
24810
        this.ex.write(oprot);
25100
        this.ex.write(oprot);
24811
        oprot.writeFieldEnd();
25101
        oprot.writeFieldEnd();
24812
      }
25102
      }
24813
      oprot.writeFieldStop();
25103
      oprot.writeFieldStop();
24814
      oprot.writeStructEnd();
25104
      oprot.writeStructEnd();
24815
    }
25105
    }
24816
 
25106
 
24817
    @Override
25107
    @Override
24818
    public String toString() {
25108
    public String toString() {
24819
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_result(");
25109
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
24820
      boolean first = true;
25110
      boolean first = true;
24821
 
25111
 
-
 
25112
      sb.append("success:");
-
 
25113
      sb.append(this.success);
-
 
25114
      first = false;
-
 
25115
      if (!first) sb.append(", ");
24822
      sb.append("ex:");
25116
      sb.append("ex:");
24823
      if (this.ex == null) {
25117
      if (this.ex == null) {
24824
        sb.append("null");
25118
        sb.append("null");
24825
      } else {
25119
      } else {
24826
        sb.append(this.ex);
25120
        sb.append(this.ex);
Line 24834... Line 25128...
24834
      // check for required fields
25128
      // check for required fields
24835
    }
25129
    }
24836
 
25130
 
24837
  }
25131
  }
24838
 
25132
 
24839
  public static class updateNonDeliveryReason_args implements TBase<updateNonDeliveryReason_args._Fields>, java.io.Serializable, Cloneable   {
25133
  public static class addJacketNumber_args implements TBase<addJacketNumber_args._Fields>, java.io.Serializable, Cloneable, Comparable<addJacketNumber_args>   {
24840
    private static final TStruct STRUCT_DESC = new TStruct("updateNonDeliveryReason_args");
25134
    private static final TStruct STRUCT_DESC = new TStruct("addJacketNumber_args");
24841
 
25135
 
24842
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
25136
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
25137
    private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacketNumber", TType.I64, (short)2);
24843
    private static final TField UNDELIVERED_ORDERS_FIELD_DESC = new TField("undeliveredOrders", TType.MAP, (short)2);
25138
    private static final TField IMEI_NUMBER_FIELD_DESC = new TField("imeiNumber", TType.I64, (short)3);
-
 
25139
    private static final TField ITEM_NUMBER_FIELD_DESC = new TField("itemNumber", TType.STRING, (short)4);
-
 
25140
    private static final TField BILLED_BY_FIELD_DESC = new TField("billedBy", TType.STRING, (short)5);
-
 
25141
    private static final TField BILLING_TYPE_FIELD_DESC = new TField("billingType", TType.I64, (short)6);
24844
 
25142
 
24845
    private long providerId;
25143
    private long orderId;
-
 
25144
    private long jacketNumber;
-
 
25145
    private long imeiNumber;
24846
    private Map<String,String> undeliveredOrders;
25146
    private String itemNumber;
-
 
25147
    private String billedBy;
-
 
25148
    private long billingType;
24847
 
25149
 
24848
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24849
    public enum _Fields implements TFieldIdEnum {
25151
    public enum _Fields implements TFieldIdEnum {
24850
      PROVIDER_ID((short)1, "providerId"),
25152
      ORDER_ID((short)1, "orderId"),
-
 
25153
      JACKET_NUMBER((short)2, "jacketNumber"),
-
 
25154
      IMEI_NUMBER((short)3, "imeiNumber"),
-
 
25155
      ITEM_NUMBER((short)4, "itemNumber"),
-
 
25156
      BILLED_BY((short)5, "billedBy"),
24851
      UNDELIVERED_ORDERS((short)2, "undeliveredOrders");
25157
      BILLING_TYPE((short)6, "billingType");
24852
 
25158
 
24853
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25159
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
24854
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24855
 
25161
 
24856
      static {
25162
      static {
Line 24900... Line 25206...
24900
        return _fieldName;
25206
        return _fieldName;
24901
      }
25207
      }
24902
    }
25208
    }
24903
 
25209
 
24904
    // isset id assignments
25210
    // isset id assignments
24905
    private static final int __PROVIDERID_ISSET_ID = 0;
25211
    private static final int __ORDERID_ISSET_ID = 0;
-
 
25212
    private static final int __JACKETNUMBER_ISSET_ID = 1;
-
 
25213
    private static final int __IMEINUMBER_ISSET_ID = 2;
-
 
25214
    private static final int __BILLINGTYPE_ISSET_ID = 3;
24906
    private BitSet __isset_bit_vector = new BitSet(1);
25215
    private BitSet __isset_bit_vector = new BitSet(4);
24907
 
25216
 
24908
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
25217
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
24909
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
25218
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
25219
          new FieldValueMetaData(TType.I64)));
-
 
25220
      put(_Fields.JACKET_NUMBER, new FieldMetaData("jacketNumber", TFieldRequirementType.DEFAULT, 
-
 
25221
          new FieldValueMetaData(TType.I64)));
-
 
25222
      put(_Fields.IMEI_NUMBER, new FieldMetaData("imeiNumber", TFieldRequirementType.DEFAULT, 
-
 
25223
          new FieldValueMetaData(TType.I64)));
-
 
25224
      put(_Fields.ITEM_NUMBER, new FieldMetaData("itemNumber", TFieldRequirementType.DEFAULT, 
-
 
25225
          new FieldValueMetaData(TType.STRING)));
-
 
25226
      put(_Fields.BILLED_BY, new FieldMetaData("billedBy", TFieldRequirementType.DEFAULT, 
-
 
25227
          new FieldValueMetaData(TType.STRING)));
-
 
25228
      put(_Fields.BILLING_TYPE, new FieldMetaData("billingType", TFieldRequirementType.DEFAULT, 
24910
          new FieldValueMetaData(TType.I64)));
25229
          new FieldValueMetaData(TType.I64)));
24911
      put(_Fields.UNDELIVERED_ORDERS, new FieldMetaData("undeliveredOrders", TFieldRequirementType.DEFAULT, 
-
 
24912
          new MapMetaData(TType.MAP, 
-
 
24913
              new FieldValueMetaData(TType.STRING), 
-
 
24914
              new FieldValueMetaData(TType.STRING))));
-
 
24915
    }});
25230
    }});
24916
 
25231
 
24917
    static {
25232
    static {
24918
      FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_args.class, metaDataMap);
25233
      FieldMetaData.addStructMetaDataMap(addJacketNumber_args.class, metaDataMap);
24919
    }
25234
    }
24920
 
25235
 
24921
    public updateNonDeliveryReason_args() {
25236
    public addJacketNumber_args() {
24922
    }
25237
    }
24923
 
25238
 
24924
    public updateNonDeliveryReason_args(
25239
    public addJacketNumber_args(
24925
      long providerId,
25240
      long orderId,
-
 
25241
      long jacketNumber,
-
 
25242
      long imeiNumber,
24926
      Map<String,String> undeliveredOrders)
25243
      String itemNumber,
-
 
25244
      String billedBy,
-
 
25245
      long billingType)
24927
    {
25246
    {
24928
      this();
25247
      this();
24929
      this.providerId = providerId;
25248
      this.orderId = orderId;
24930
      setProviderIdIsSet(true);
25249
      setOrderIdIsSet(true);
-
 
25250
      this.jacketNumber = jacketNumber;
-
 
25251
      setJacketNumberIsSet(true);
-
 
25252
      this.imeiNumber = imeiNumber;
-
 
25253
      setImeiNumberIsSet(true);
24931
      this.undeliveredOrders = undeliveredOrders;
25254
      this.itemNumber = itemNumber;
-
 
25255
      this.billedBy = billedBy;
-
 
25256
      this.billingType = billingType;
-
 
25257
      setBillingTypeIsSet(true);
24932
    }
25258
    }
24933
 
25259
 
24934
    /**
25260
    /**
24935
     * Performs a deep copy on <i>other</i>.
25261
     * Performs a deep copy on <i>other</i>.
24936
     */
25262
     */
24937
    public updateNonDeliveryReason_args(updateNonDeliveryReason_args other) {
25263
    public addJacketNumber_args(addJacketNumber_args other) {
24938
      __isset_bit_vector.clear();
25264
      __isset_bit_vector.clear();
24939
      __isset_bit_vector.or(other.__isset_bit_vector);
25265
      __isset_bit_vector.or(other.__isset_bit_vector);
24940
      this.providerId = other.providerId;
25266
      this.orderId = other.orderId;
-
 
25267
      this.jacketNumber = other.jacketNumber;
-
 
25268
      this.imeiNumber = other.imeiNumber;
24941
      if (other.isSetUndeliveredOrders()) {
25269
      if (other.isSetItemNumber()) {
24942
        Map<String,String> __this__undeliveredOrders = new HashMap<String,String>();
25270
        this.itemNumber = other.itemNumber;
-
 
25271
      }
-
 
25272
      if (other.isSetBilledBy()) {
-
 
25273
        this.billedBy = other.billedBy;
-
 
25274
      }
24943
        for (Map.Entry<String, String> other_element : other.undeliveredOrders.entrySet()) {
25275
      this.billingType = other.billingType;
-
 
25276
    }
24944
 
25277
 
24945
          String other_element_key = other_element.getKey();
25278
    public addJacketNumber_args deepCopy() {
24946
          String other_element_value = other_element.getValue();
25279
      return new addJacketNumber_args(this);
-
 
25280
    }
24947
 
25281
 
-
 
25282
    @Deprecated
-
 
25283
    public addJacketNumber_args clone() {
24948
          String __this__undeliveredOrders_copy_key = other_element_key;
25284
      return new addJacketNumber_args(this);
-
 
25285
    }
24949
 
25286
 
-
 
25287
    public long getOrderId() {
24950
          String __this__undeliveredOrders_copy_value = other_element_value;
25288
      return this.orderId;
-
 
25289
    }
24951
 
25290
 
24952
          __this__undeliveredOrders.put(__this__undeliveredOrders_copy_key, __this__undeliveredOrders_copy_value);
25291
    public addJacketNumber_args setOrderId(long orderId) {
24953
        }
25292
      this.orderId = orderId;
24954
        this.undeliveredOrders = __this__undeliveredOrders;
25293
      setOrderIdIsSet(true);
24955
      }
25294
      return this;
24956
    }
25295
    }
24957
 
25296
 
24958
    public updateNonDeliveryReason_args deepCopy() {
25297
    public void unsetOrderId() {
24959
      return new updateNonDeliveryReason_args(this);
25298
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24960
    }
25299
    }
24961
 
25300
 
24962
    @Deprecated
25301
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
24963
    public updateNonDeliveryReason_args clone() {
25302
    public boolean isSetOrderId() {
24964
      return new updateNonDeliveryReason_args(this);
25303
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24965
    }
25304
    }
24966
 
25305
 
24967
    public long getProviderId() {
25306
    public void setOrderIdIsSet(boolean value) {
24968
      return this.providerId;
25307
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24969
    }
25308
    }
24970
 
25309
 
-
 
25310
    public long getJacketNumber() {
-
 
25311
      return this.jacketNumber;
-
 
25312
    }
-
 
25313
 
24971
    public updateNonDeliveryReason_args setProviderId(long providerId) {
25314
    public addJacketNumber_args setJacketNumber(long jacketNumber) {
24972
      this.providerId = providerId;
25315
      this.jacketNumber = jacketNumber;
24973
      setProviderIdIsSet(true);
25316
      setJacketNumberIsSet(true);
24974
      return this;
25317
      return this;
24975
    }
25318
    }
24976
 
25319
 
24977
    public void unsetProviderId() {
25320
    public void unsetJacketNumber() {
24978
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
25321
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
24979
    }
25322
    }
24980
 
25323
 
24981
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
25324
    /** Returns true if field jacketNumber is set (has been asigned a value) and false otherwise */
24982
    public boolean isSetProviderId() {
25325
    public boolean isSetJacketNumber() {
24983
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
25326
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
24984
    }
25327
    }
24985
 
25328
 
24986
    public void setProviderIdIsSet(boolean value) {
25329
    public void setJacketNumberIsSet(boolean value) {
24987
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
25330
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
24988
    }
25331
    }
24989
 
25332
 
24990
    public int getUndeliveredOrdersSize() {
25333
    public long getImeiNumber() {
24991
      return (this.undeliveredOrders == null) ? 0 : this.undeliveredOrders.size();
25334
      return this.imeiNumber;
24992
    }
25335
    }
24993
 
25336
 
-
 
25337
    public addJacketNumber_args setImeiNumber(long imeiNumber) {
-
 
25338
      this.imeiNumber = imeiNumber;
-
 
25339
      setImeiNumberIsSet(true);
-
 
25340
      return this;
-
 
25341
    }
-
 
25342
 
-
 
25343
    public void unsetImeiNumber() {
-
 
25344
      __isset_bit_vector.clear(__IMEINUMBER_ISSET_ID);
-
 
25345
    }
-
 
25346
 
-
 
25347
    /** Returns true if field imeiNumber is set (has been asigned a value) and false otherwise */
-
 
25348
    public boolean isSetImeiNumber() {
-
 
25349
      return __isset_bit_vector.get(__IMEINUMBER_ISSET_ID);
-
 
25350
    }
-
 
25351
 
24994
    public void putToUndeliveredOrders(String key, String val) {
25352
    public void setImeiNumberIsSet(boolean value) {
-
 
25353
      __isset_bit_vector.set(__IMEINUMBER_ISSET_ID, value);
-
 
25354
    }
-
 
25355
 
-
 
25356
    public String getItemNumber() {
-
 
25357
      return this.itemNumber;
-
 
25358
    }
-
 
25359
 
-
 
25360
    public addJacketNumber_args setItemNumber(String itemNumber) {
-
 
25361
      this.itemNumber = itemNumber;
-
 
25362
      return this;
-
 
25363
    }
-
 
25364
 
-
 
25365
    public void unsetItemNumber() {
24995
      if (this.undeliveredOrders == null) {
25366
      this.itemNumber = null;
-
 
25367
    }
-
 
25368
 
-
 
25369
    /** Returns true if field itemNumber is set (has been asigned a value) and false otherwise */
-
 
25370
    public boolean isSetItemNumber() {
-
 
25371
      return this.itemNumber != null;
-
 
25372
    }
-
 
25373
 
-
 
25374
    public void setItemNumberIsSet(boolean value) {
-
 
25375
      if (!value) {
24996
        this.undeliveredOrders = new HashMap<String,String>();
25376
        this.itemNumber = null;
24997
      }
25377
      }
24998
      this.undeliveredOrders.put(key, val);
-
 
24999
    }
25378
    }
25000
 
25379
 
25001
    public Map<String,String> getUndeliveredOrders() {
25380
    public String getBilledBy() {
25002
      return this.undeliveredOrders;
25381
      return this.billedBy;
25003
    }
25382
    }
25004
 
25383
 
25005
    public updateNonDeliveryReason_args setUndeliveredOrders(Map<String,String> undeliveredOrders) {
25384
    public addJacketNumber_args setBilledBy(String billedBy) {
25006
      this.undeliveredOrders = undeliveredOrders;
25385
      this.billedBy = billedBy;
25007
      return this;
25386
      return this;
25008
    }
25387
    }
25009
 
25388
 
25010
    public void unsetUndeliveredOrders() {
25389
    public void unsetBilledBy() {
25011
      this.undeliveredOrders = null;
25390
      this.billedBy = null;
25012
    }
25391
    }
25013
 
25392
 
25014
    /** Returns true if field undeliveredOrders is set (has been asigned a value) and false otherwise */
25393
    /** Returns true if field billedBy is set (has been asigned a value) and false otherwise */
25015
    public boolean isSetUndeliveredOrders() {
25394
    public boolean isSetBilledBy() {
25016
      return this.undeliveredOrders != null;
25395
      return this.billedBy != null;
25017
    }
25396
    }
25018
 
25397
 
25019
    public void setUndeliveredOrdersIsSet(boolean value) {
25398
    public void setBilledByIsSet(boolean value) {
25020
      if (!value) {
25399
      if (!value) {
25021
        this.undeliveredOrders = null;
25400
        this.billedBy = null;
25022
      }
25401
      }
25023
    }
25402
    }
25024
 
25403
 
-
 
25404
    public long getBillingType() {
-
 
25405
      return this.billingType;
-
 
25406
    }
-
 
25407
 
-
 
25408
    public addJacketNumber_args setBillingType(long billingType) {
-
 
25409
      this.billingType = billingType;
-
 
25410
      setBillingTypeIsSet(true);
-
 
25411
      return this;
-
 
25412
    }
-
 
25413
 
-
 
25414
    public void unsetBillingType() {
-
 
25415
      __isset_bit_vector.clear(__BILLINGTYPE_ISSET_ID);
-
 
25416
    }
-
 
25417
 
-
 
25418
    /** Returns true if field billingType is set (has been asigned a value) and false otherwise */
-
 
25419
    public boolean isSetBillingType() {
-
 
25420
      return __isset_bit_vector.get(__BILLINGTYPE_ISSET_ID);
-
 
25421
    }
-
 
25422
 
-
 
25423
    public void setBillingTypeIsSet(boolean value) {
-
 
25424
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
-
 
25425
    }
-
 
25426
 
25025
    public void setFieldValue(_Fields field, Object value) {
25427
    public void setFieldValue(_Fields field, Object value) {
25026
      switch (field) {
25428
      switch (field) {
25027
      case PROVIDER_ID:
25429
      case ORDER_ID:
25028
        if (value == null) {
25430
        if (value == null) {
25029
          unsetProviderId();
25431
          unsetOrderId();
25030
        } else {
25432
        } else {
25031
          setProviderId((Long)value);
25433
          setOrderId((Long)value);
25032
        }
25434
        }
25033
        break;
25435
        break;
25034
 
25436
 
25035
      case UNDELIVERED_ORDERS:
25437
      case JACKET_NUMBER:
25036
        if (value == null) {
25438
        if (value == null) {
25037
          unsetUndeliveredOrders();
25439
          unsetJacketNumber();
25038
        } else {
25440
        } else {
-
 
25441
          setJacketNumber((Long)value);
-
 
25442
        }
-
 
25443
        break;
-
 
25444
 
-
 
25445
      case IMEI_NUMBER:
-
 
25446
        if (value == null) {
-
 
25447
          unsetImeiNumber();
-
 
25448
        } else {
-
 
25449
          setImeiNumber((Long)value);
-
 
25450
        }
-
 
25451
        break;
-
 
25452
 
-
 
25453
      case ITEM_NUMBER:
-
 
25454
        if (value == null) {
-
 
25455
          unsetItemNumber();
-
 
25456
        } else {
25039
          setUndeliveredOrders((Map<String,String>)value);
25457
          setItemNumber((String)value);
-
 
25458
        }
-
 
25459
        break;
-
 
25460
 
-
 
25461
      case BILLED_BY:
-
 
25462
        if (value == null) {
-
 
25463
          unsetBilledBy();
-
 
25464
        } else {
-
 
25465
          setBilledBy((String)value);
-
 
25466
        }
-
 
25467
        break;
-
 
25468
 
-
 
25469
      case BILLING_TYPE:
-
 
25470
        if (value == null) {
-
 
25471
          unsetBillingType();
-
 
25472
        } else {
-
 
25473
          setBillingType((Long)value);
25040
        }
25474
        }
25041
        break;
25475
        break;
25042
 
25476
 
25043
      }
25477
      }
25044
    }
25478
    }
Line 25047... Line 25481...
25047
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
25481
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
25048
    }
25482
    }
25049
 
25483
 
25050
    public Object getFieldValue(_Fields field) {
25484
    public Object getFieldValue(_Fields field) {
25051
      switch (field) {
25485
      switch (field) {
25052
      case PROVIDER_ID:
25486
      case ORDER_ID:
25053
        return new Long(getProviderId());
25487
        return new Long(getOrderId());
25054
 
25488
 
-
 
25489
      case JACKET_NUMBER:
-
 
25490
        return new Long(getJacketNumber());
-
 
25491
 
-
 
25492
      case IMEI_NUMBER:
-
 
25493
        return new Long(getImeiNumber());
-
 
25494
 
25055
      case UNDELIVERED_ORDERS:
25495
      case ITEM_NUMBER:
25056
        return getUndeliveredOrders();
25496
        return getItemNumber();
-
 
25497
 
-
 
25498
      case BILLED_BY:
-
 
25499
        return getBilledBy();
-
 
25500
 
-
 
25501
      case BILLING_TYPE:
-
 
25502
        return new Long(getBillingType());
25057
 
25503
 
25058
      }
25504
      }
25059
      throw new IllegalStateException();
25505
      throw new IllegalStateException();
25060
    }
25506
    }
25061
 
25507
 
Line 25064... Line 25510...
25064
    }
25510
    }
25065
 
25511
 
25066
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
25512
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
25067
    public boolean isSet(_Fields field) {
25513
    public boolean isSet(_Fields field) {
25068
      switch (field) {
25514
      switch (field) {
25069
      case PROVIDER_ID:
25515
      case ORDER_ID:
25070
        return isSetProviderId();
25516
        return isSetOrderId();
-
 
25517
      case JACKET_NUMBER:
-
 
25518
        return isSetJacketNumber();
25071
      case UNDELIVERED_ORDERS:
25519
      case IMEI_NUMBER:
25072
        return isSetUndeliveredOrders();
25520
        return isSetImeiNumber();
-
 
25521
      case ITEM_NUMBER:
-
 
25522
        return isSetItemNumber();
-
 
25523
      case BILLED_BY:
-
 
25524
        return isSetBilledBy();
-
 
25525
      case BILLING_TYPE:
-
 
25526
        return isSetBillingType();
25073
      }
25527
      }
25074
      throw new IllegalStateException();
25528
      throw new IllegalStateException();
25075
    }
25529
    }
25076
 
25530
 
25077
    public boolean isSet(int fieldID) {
25531
    public boolean isSet(int fieldID) {
Line 25080... Line 25534...
25080
 
25534
 
25081
    @Override
25535
    @Override
25082
    public boolean equals(Object that) {
25536
    public boolean equals(Object that) {
25083
      if (that == null)
25537
      if (that == null)
25084
        return false;
25538
        return false;
25085
      if (that instanceof updateNonDeliveryReason_args)
25539
      if (that instanceof addJacketNumber_args)
25086
        return this.equals((updateNonDeliveryReason_args)that);
25540
        return this.equals((addJacketNumber_args)that);
25087
      return false;
25541
      return false;
25088
    }
25542
    }
25089
 
25543
 
25090
    public boolean equals(updateNonDeliveryReason_args that) {
25544
    public boolean equals(addJacketNumber_args that) {
25091
      if (that == null)
25545
      if (that == null)
25092
        return false;
25546
        return false;
25093
 
25547
 
25094
      boolean this_present_providerId = true;
25548
      boolean this_present_orderId = true;
25095
      boolean that_present_providerId = true;
25549
      boolean that_present_orderId = true;
25096
      if (this_present_providerId || that_present_providerId) {
25550
      if (this_present_orderId || that_present_orderId) {
25097
        if (!(this_present_providerId && that_present_providerId))
25551
        if (!(this_present_orderId && that_present_orderId))
25098
          return false;
25552
          return false;
25099
        if (this.providerId != that.providerId)
25553
        if (this.orderId != that.orderId)
25100
          return false;
25554
          return false;
25101
      }
25555
      }
25102
 
25556
 
25103
      boolean this_present_undeliveredOrders = true && this.isSetUndeliveredOrders();
25557
      boolean this_present_jacketNumber = true;
25104
      boolean that_present_undeliveredOrders = true && that.isSetUndeliveredOrders();
25558
      boolean that_present_jacketNumber = true;
25105
      if (this_present_undeliveredOrders || that_present_undeliveredOrders) {
25559
      if (this_present_jacketNumber || that_present_jacketNumber) {
25106
        if (!(this_present_undeliveredOrders && that_present_undeliveredOrders))
25560
        if (!(this_present_jacketNumber && that_present_jacketNumber))
25107
          return false;
25561
          return false;
-
 
25562
        if (this.jacketNumber != that.jacketNumber)
-
 
25563
          return false;
-
 
25564
      }
-
 
25565
 
-
 
25566
      boolean this_present_imeiNumber = true;
-
 
25567
      boolean that_present_imeiNumber = true;
-
 
25568
      if (this_present_imeiNumber || that_present_imeiNumber) {
-
 
25569
        if (!(this_present_imeiNumber && that_present_imeiNumber))
-
 
25570
          return false;
-
 
25571
        if (this.imeiNumber != that.imeiNumber)
-
 
25572
          return false;
-
 
25573
      }
-
 
25574
 
-
 
25575
      boolean this_present_itemNumber = true && this.isSetItemNumber();
-
 
25576
      boolean that_present_itemNumber = true && that.isSetItemNumber();
-
 
25577
      if (this_present_itemNumber || that_present_itemNumber) {
-
 
25578
        if (!(this_present_itemNumber && that_present_itemNumber))
-
 
25579
          return false;
25108
        if (!this.undeliveredOrders.equals(that.undeliveredOrders))
25580
        if (!this.itemNumber.equals(that.itemNumber))
-
 
25581
          return false;
-
 
25582
      }
-
 
25583
 
-
 
25584
      boolean this_present_billedBy = true && this.isSetBilledBy();
-
 
25585
      boolean that_present_billedBy = true && that.isSetBilledBy();
-
 
25586
      if (this_present_billedBy || that_present_billedBy) {
-
 
25587
        if (!(this_present_billedBy && that_present_billedBy))
-
 
25588
          return false;
-
 
25589
        if (!this.billedBy.equals(that.billedBy))
-
 
25590
          return false;
-
 
25591
      }
-
 
25592
 
-
 
25593
      boolean this_present_billingType = true;
-
 
25594
      boolean that_present_billingType = true;
-
 
25595
      if (this_present_billingType || that_present_billingType) {
-
 
25596
        if (!(this_present_billingType && that_present_billingType))
-
 
25597
          return false;
-
 
25598
        if (this.billingType != that.billingType)
25109
          return false;
25599
          return false;
25110
      }
25600
      }
25111
 
25601
 
25112
      return true;
25602
      return true;
25113
    }
25603
    }
Line 25115... Line 25605...
25115
    @Override
25605
    @Override
25116
    public int hashCode() {
25606
    public int hashCode() {
25117
      return 0;
25607
      return 0;
25118
    }
25608
    }
25119
 
25609
 
-
 
25610
    public int compareTo(addJacketNumber_args other) {
-
 
25611
      if (!getClass().equals(other.getClass())) {
-
 
25612
        return getClass().getName().compareTo(other.getClass().getName());
-
 
25613
      }
-
 
25614
 
-
 
25615
      int lastComparison = 0;
-
 
25616
      addJacketNumber_args typedOther = (addJacketNumber_args)other;
-
 
25617
 
-
 
25618
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
25619
      if (lastComparison != 0) {
-
 
25620
        return lastComparison;
-
 
25621
      }
-
 
25622
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
25623
      if (lastComparison != 0) {
-
 
25624
        return lastComparison;
-
 
25625
      }
-
 
25626
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(isSetJacketNumber());
-
 
25627
      if (lastComparison != 0) {
-
 
25628
        return lastComparison;
-
 
25629
      }
-
 
25630
      lastComparison = TBaseHelper.compareTo(jacketNumber, typedOther.jacketNumber);
-
 
25631
      if (lastComparison != 0) {
-
 
25632
        return lastComparison;
-
 
25633
      }
-
 
25634
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(isSetImeiNumber());
-
 
25635
      if (lastComparison != 0) {
-
 
25636
        return lastComparison;
-
 
25637
      }
-
 
25638
      lastComparison = TBaseHelper.compareTo(imeiNumber, typedOther.imeiNumber);
-
 
25639
      if (lastComparison != 0) {
-
 
25640
        return lastComparison;
-
 
25641
      }
-
 
25642
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(isSetItemNumber());
-
 
25643
      if (lastComparison != 0) {
-
 
25644
        return lastComparison;
-
 
25645
      }
-
 
25646
      lastComparison = TBaseHelper.compareTo(itemNumber, typedOther.itemNumber);
-
 
25647
      if (lastComparison != 0) {
-
 
25648
        return lastComparison;
-
 
25649
      }
-
 
25650
      lastComparison = Boolean.valueOf(isSetBilledBy()).compareTo(isSetBilledBy());
-
 
25651
      if (lastComparison != 0) {
-
 
25652
        return lastComparison;
-
 
25653
      }
-
 
25654
      lastComparison = TBaseHelper.compareTo(billedBy, typedOther.billedBy);
-
 
25655
      if (lastComparison != 0) {
-
 
25656
        return lastComparison;
-
 
25657
      }
-
 
25658
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(isSetBillingType());
-
 
25659
      if (lastComparison != 0) {
-
 
25660
        return lastComparison;
-
 
25661
      }
-
 
25662
      lastComparison = TBaseHelper.compareTo(billingType, typedOther.billingType);
-
 
25663
      if (lastComparison != 0) {
-
 
25664
        return lastComparison;
-
 
25665
      }
-
 
25666
      return 0;
-
 
25667
    }
-
 
25668
 
25120
    public void read(TProtocol iprot) throws TException {
25669
    public void read(TProtocol iprot) throws TException {
25121
      TField field;
25670
      TField field;
25122
      iprot.readStructBegin();
25671
      iprot.readStructBegin();
25123
      while (true)
25672
      while (true)
25124
      {
25673
      {
Line 25129... Line 25678...
25129
        _Fields fieldId = _Fields.findByThriftId(field.id);
25678
        _Fields fieldId = _Fields.findByThriftId(field.id);
25130
        if (fieldId == null) {
25679
        if (fieldId == null) {
25131
          TProtocolUtil.skip(iprot, field.type);
25680
          TProtocolUtil.skip(iprot, field.type);
25132
        } else {
25681
        } else {
25133
          switch (fieldId) {
25682
          switch (fieldId) {
25134
            case PROVIDER_ID:
25683
            case ORDER_ID:
25135
              if (field.type == TType.I64) {
25684
              if (field.type == TType.I64) {
25136
                this.providerId = iprot.readI64();
25685
                this.orderId = iprot.readI64();
25137
                setProviderIdIsSet(true);
25686
                setOrderIdIsSet(true);
25138
              } else { 
25687
              } else { 
25139
                TProtocolUtil.skip(iprot, field.type);
25688
                TProtocolUtil.skip(iprot, field.type);
25140
              }
25689
              }
25141
              break;
25690
              break;
25142
            case UNDELIVERED_ORDERS:
25691
            case JACKET_NUMBER:
25143
              if (field.type == TType.MAP) {
25692
              if (field.type == TType.I64) {
-
 
25693
                this.jacketNumber = iprot.readI64();
-
 
25694
                setJacketNumberIsSet(true);
-
 
25695
              } else { 
-
 
25696
                TProtocolUtil.skip(iprot, field.type);
25144
                {
25697
              }
-
 
25698
              break;
-
 
25699
            case IMEI_NUMBER:
-
 
25700
              if (field.type == TType.I64) {
25145
                  TMap _map71 = iprot.readMapBegin();
25701
                this.imeiNumber = iprot.readI64();
25146
                  this.undeliveredOrders = new HashMap<String,String>(2*_map71.size);
25702
                setImeiNumberIsSet(true);
-
 
25703
              } else { 
25147
                  for (int _i72 = 0; _i72 < _map71.size; ++_i72)
25704
                TProtocolUtil.skip(iprot, field.type);
25148
                  {
25705
              }
25149
                    String _key73;
25706
              break;
25150
                    String _val74;
25707
            case ITEM_NUMBER:
25151
                    _key73 = iprot.readString();
25708
              if (field.type == TType.STRING) {
25152
                    _val74 = iprot.readString();
25709
                this.itemNumber = iprot.readString();
-
 
25710
              } else { 
25153
                    this.undeliveredOrders.put(_key73, _val74);
25711
                TProtocolUtil.skip(iprot, field.type);
25154
                  }
25712
              }
-
 
25713
              break;
-
 
25714
            case BILLED_BY:
-
 
25715
              if (field.type == TType.STRING) {
25155
                  iprot.readMapEnd();
25716
                this.billedBy = iprot.readString();
-
 
25717
              } else { 
-
 
25718
                TProtocolUtil.skip(iprot, field.type);
25156
                }
25719
              }
-
 
25720
              break;
-
 
25721
            case BILLING_TYPE:
-
 
25722
              if (field.type == TType.I64) {
-
 
25723
                this.billingType = iprot.readI64();
-
 
25724
                setBillingTypeIsSet(true);
25157
              } else { 
25725
              } else { 
25158
                TProtocolUtil.skip(iprot, field.type);
25726
                TProtocolUtil.skip(iprot, field.type);
25159
              }
25727
              }
25160
              break;
25728
              break;
25161
          }
25729
          }
Line 25168... Line 25736...
25168
 
25736
 
25169
    public void write(TProtocol oprot) throws TException {
25737
    public void write(TProtocol oprot) throws TException {
25170
      validate();
25738
      validate();
25171
 
25739
 
25172
      oprot.writeStructBegin(STRUCT_DESC);
25740
      oprot.writeStructBegin(STRUCT_DESC);
25173
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
25741
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
25174
      oprot.writeI64(this.providerId);
25742
      oprot.writeI64(this.orderId);
25175
      oprot.writeFieldEnd();
25743
      oprot.writeFieldEnd();
25176
      if (this.undeliveredOrders != null) {
25744
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
25177
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
25745
      oprot.writeI64(this.jacketNumber);
25178
        {
25746
      oprot.writeFieldEnd();
25179
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.undeliveredOrders.size()));
25747
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
25180
          for (Map.Entry<String, String> _iter75 : this.undeliveredOrders.entrySet())
25748
      oprot.writeI64(this.imeiNumber);
-
 
25749
      oprot.writeFieldEnd();
25181
          {
25750
      if (this.itemNumber != null) {
25182
            oprot.writeString(_iter75.getKey());
25751
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
25183
            oprot.writeString(_iter75.getValue());
25752
        oprot.writeString(this.itemNumber);
25184
          }
-
 
25185
          oprot.writeMapEnd();
25753
        oprot.writeFieldEnd();
25186
        }
25754
      }
-
 
25755
      if (this.billedBy != null) {
-
 
25756
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
-
 
25757
        oprot.writeString(this.billedBy);
25187
        oprot.writeFieldEnd();
25758
        oprot.writeFieldEnd();
25188
      }
25759
      }
-
 
25760
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
-
 
25761
      oprot.writeI64(this.billingType);
-
 
25762
      oprot.writeFieldEnd();
25189
      oprot.writeFieldStop();
25763
      oprot.writeFieldStop();
25190
      oprot.writeStructEnd();
25764
      oprot.writeStructEnd();
25191
    }
25765
    }
25192
 
25766
 
25193
    @Override
25767
    @Override
25194
    public String toString() {
25768
    public String toString() {
25195
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_args(");
25769
      StringBuilder sb = new StringBuilder("addJacketNumber_args(");
25196
      boolean first = true;
25770
      boolean first = true;
25197
 
25771
 
25198
      sb.append("providerId:");
25772
      sb.append("orderId:");
25199
      sb.append(this.providerId);
25773
      sb.append(this.orderId);
25200
      first = false;
25774
      first = false;
25201
      if (!first) sb.append(", ");
25775
      if (!first) sb.append(", ");
-
 
25776
      sb.append("jacketNumber:");
-
 
25777
      sb.append(this.jacketNumber);
-
 
25778
      first = false;
-
 
25779
      if (!first) sb.append(", ");
25202
      sb.append("undeliveredOrders:");
25780
      sb.append("imeiNumber:");
-
 
25781
      sb.append(this.imeiNumber);
-
 
25782
      first = false;
-
 
25783
      if (!first) sb.append(", ");
-
 
25784
      sb.append("itemNumber:");
25203
      if (this.undeliveredOrders == null) {
25785
      if (this.itemNumber == null) {
25204
        sb.append("null");
25786
        sb.append("null");
25205
      } else {
25787
      } else {
25206
        sb.append(this.undeliveredOrders);
25788
        sb.append(this.itemNumber);
25207
      }
25789
      }
25208
      first = false;
25790
      first = false;
-
 
25791
      if (!first) sb.append(", ");
-
 
25792
      sb.append("billedBy:");
-
 
25793
      if (this.billedBy == null) {
-
 
25794
        sb.append("null");
-
 
25795
      } else {
-
 
25796
        sb.append(this.billedBy);
-
 
25797
      }
-
 
25798
      first = false;
-
 
25799
      if (!first) sb.append(", ");
-
 
25800
      sb.append("billingType:");
-
 
25801
      sb.append(this.billingType);
-
 
25802
      first = false;
25209
      sb.append(")");
25803
      sb.append(")");
25210
      return sb.toString();
25804
      return sb.toString();
25211
    }
25805
    }
25212
 
25806
 
25213
    public void validate() throws TException {
25807
    public void validate() throws TException {
25214
      // check for required fields
25808
      // check for required fields
25215
    }
25809
    }
25216
 
25810
 
25217
  }
25811
  }
25218
 
25812
 
25219
  public static class updateNonDeliveryReason_result implements TBase<updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateNonDeliveryReason_result>   {
25813
  public static class addJacketNumber_result implements TBase<addJacketNumber_result._Fields>, java.io.Serializable, Cloneable, Comparable<addJacketNumber_result>   {
25220
    private static final TStruct STRUCT_DESC = new TStruct("updateNonDeliveryReason_result");
25814
    private static final TStruct STRUCT_DESC = new TStruct("addJacketNumber_result");
25221
 
25815
 
-
 
25816
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
25222
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
25817
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
25223
 
25818
 
-
 
25819
    private boolean success;
25224
    private TransactionServiceException ex;
25820
    private TransactionServiceException ex;
25225
 
25821
 
25226
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25227
    public enum _Fields implements TFieldIdEnum {
25823
    public enum _Fields implements TFieldIdEnum {
-
 
25824
      SUCCESS((short)0, "success"),
25228
      EX((short)1, "ex");
25825
      EX((short)1, "ex");
25229
 
25826
 
25230
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25827
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25231
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25232
 
25829
 
Line 25277... Line 25874...
25277
        return _fieldName;
25874
        return _fieldName;
25278
      }
25875
      }
25279
    }
25876
    }
25280
 
25877
 
25281
    // isset id assignments
25878
    // isset id assignments
-
 
25879
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
25880
    private BitSet __isset_bit_vector = new BitSet(1);
25282
 
25881
 
25283
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
25882
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
25883
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
25884
          new FieldValueMetaData(TType.BOOL)));
25284
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
25885
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
25285
          new FieldValueMetaData(TType.STRUCT)));
25886
          new FieldValueMetaData(TType.STRUCT)));
25286
    }});
25887
    }});
25287
 
25888
 
25288
    static {
25889
    static {
25289
      FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
25890
      FieldMetaData.addStructMetaDataMap(addJacketNumber_result.class, metaDataMap);
25290
    }
25891
    }
25291
 
25892
 
25292
    public updateNonDeliveryReason_result() {
25893
    public addJacketNumber_result() {
25293
    }
25894
    }
25294
 
25895
 
25295
    public updateNonDeliveryReason_result(
25896
    public addJacketNumber_result(
-
 
25897
      boolean success,
25296
      TransactionServiceException ex)
25898
      TransactionServiceException ex)
25297
    {
25899
    {
25298
      this();
25900
      this();
-
 
25901
      this.success = success;
-
 
25902
      setSuccessIsSet(true);
25299
      this.ex = ex;
25903
      this.ex = ex;
25300
    }
25904
    }
25301
 
25905
 
25302
    /**
25906
    /**
25303
     * Performs a deep copy on <i>other</i>.
25907
     * Performs a deep copy on <i>other</i>.
25304
     */
25908
     */
25305
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
25909
    public addJacketNumber_result(addJacketNumber_result other) {
-
 
25910
      __isset_bit_vector.clear();
-
 
25911
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
25912
      this.success = other.success;
25306
      if (other.isSetEx()) {
25913
      if (other.isSetEx()) {
25307
        this.ex = new TransactionServiceException(other.ex);
25914
        this.ex = new TransactionServiceException(other.ex);
25308
      }
25915
      }
25309
    }
25916
    }
25310
 
25917
 
25311
    public updateNonDeliveryReason_result deepCopy() {
25918
    public addJacketNumber_result deepCopy() {
25312
      return new updateNonDeliveryReason_result(this);
25919
      return new addJacketNumber_result(this);
25313
    }
25920
    }
25314
 
25921
 
25315
    @Deprecated
25922
    @Deprecated
25316
    public updateNonDeliveryReason_result clone() {
25923
    public addJacketNumber_result clone() {
25317
      return new updateNonDeliveryReason_result(this);
25924
      return new addJacketNumber_result(this);
-
 
25925
    }
-
 
25926
 
-
 
25927
    public boolean isSuccess() {
-
 
25928
      return this.success;
-
 
25929
    }
-
 
25930
 
-
 
25931
    public addJacketNumber_result setSuccess(boolean success) {
-
 
25932
      this.success = success;
-
 
25933
      setSuccessIsSet(true);
-
 
25934
      return this;
-
 
25935
    }
-
 
25936
 
-
 
25937
    public void unsetSuccess() {
-
 
25938
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
25939
    }
-
 
25940
 
-
 
25941
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
25942
    public boolean isSetSuccess() {
-
 
25943
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
25944
    }
-
 
25945
 
-
 
25946
    public void setSuccessIsSet(boolean value) {
-
 
25947
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
25318
    }
25948
    }
25319
 
25949
 
25320
    public TransactionServiceException getEx() {
25950
    public TransactionServiceException getEx() {
25321
      return this.ex;
25951
      return this.ex;
25322
    }
25952
    }
25323
 
25953
 
25324
    public updateNonDeliveryReason_result setEx(TransactionServiceException ex) {
25954
    public addJacketNumber_result setEx(TransactionServiceException ex) {
25325
      this.ex = ex;
25955
      this.ex = ex;
25326
      return this;
25956
      return this;
25327
    }
25957
    }
25328
 
25958
 
25329
    public void unsetEx() {
25959
    public void unsetEx() {
Line 25341... Line 25971...
25341
      }
25971
      }
25342
    }
25972
    }
25343
 
25973
 
25344
    public void setFieldValue(_Fields field, Object value) {
25974
    public void setFieldValue(_Fields field, Object value) {
25345
      switch (field) {
25975
      switch (field) {
-
 
25976
      case SUCCESS:
-
 
25977
        if (value == null) {
-
 
25978
          unsetSuccess();
-
 
25979
        } else {
-
 
25980
          setSuccess((Boolean)value);
-
 
25981
        }
-
 
25982
        break;
-
 
25983
 
25346
      case EX:
25984
      case EX:
25347
        if (value == null) {
25985
        if (value == null) {
25348
          unsetEx();
25986
          unsetEx();
25349
        } else {
25987
        } else {
25350
          setEx((TransactionServiceException)value);
25988
          setEx((TransactionServiceException)value);
Line 25358... Line 25996...
25358
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
25996
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
25359
    }
25997
    }
25360
 
25998
 
25361
    public Object getFieldValue(_Fields field) {
25999
    public Object getFieldValue(_Fields field) {
25362
      switch (field) {
26000
      switch (field) {
-
 
26001
      case SUCCESS:
-
 
26002
        return new Boolean(isSuccess());
-
 
26003
 
25363
      case EX:
26004
      case EX:
25364
        return getEx();
26005
        return getEx();
25365
 
26006
 
25366
      }
26007
      }
25367
      throw new IllegalStateException();
26008
      throw new IllegalStateException();
Line 25372... Line 26013...
25372
    }
26013
    }
25373
 
26014
 
25374
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26015
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
25375
    public boolean isSet(_Fields field) {
26016
    public boolean isSet(_Fields field) {
25376
      switch (field) {
26017
      switch (field) {
-
 
26018
      case SUCCESS:
-
 
26019
        return isSetSuccess();
25377
      case EX:
26020
      case EX:
25378
        return isSetEx();
26021
        return isSetEx();
25379
      }
26022
      }
25380
      throw new IllegalStateException();
26023
      throw new IllegalStateException();
25381
    }
26024
    }
Line 25386... Line 26029...
25386
 
26029
 
25387
    @Override
26030
    @Override
25388
    public boolean equals(Object that) {
26031
    public boolean equals(Object that) {
25389
      if (that == null)
26032
      if (that == null)
25390
        return false;
26033
        return false;
25391
      if (that instanceof updateNonDeliveryReason_result)
26034
      if (that instanceof addJacketNumber_result)
25392
        return this.equals((updateNonDeliveryReason_result)that);
26035
        return this.equals((addJacketNumber_result)that);
25393
      return false;
26036
      return false;
25394
    }
26037
    }
25395
 
26038
 
25396
    public boolean equals(updateNonDeliveryReason_result that) {
26039
    public boolean equals(addJacketNumber_result that) {
25397
      if (that == null)
26040
      if (that == null)
25398
        return false;
26041
        return false;
25399
 
26042
 
-
 
26043
      boolean this_present_success = true;
-
 
26044
      boolean that_present_success = true;
-
 
26045
      if (this_present_success || that_present_success) {
-
 
26046
        if (!(this_present_success && that_present_success))
-
 
26047
          return false;
-
 
26048
        if (this.success != that.success)
-
 
26049
          return false;
-
 
26050
      }
-
 
26051
 
25400
      boolean this_present_ex = true && this.isSetEx();
26052
      boolean this_present_ex = true && this.isSetEx();
25401
      boolean that_present_ex = true && that.isSetEx();
26053
      boolean that_present_ex = true && that.isSetEx();
25402
      if (this_present_ex || that_present_ex) {
26054
      if (this_present_ex || that_present_ex) {
25403
        if (!(this_present_ex && that_present_ex))
26055
        if (!(this_present_ex && that_present_ex))
25404
          return false;
26056
          return false;
Line 25412... Line 26064...
25412
    @Override
26064
    @Override
25413
    public int hashCode() {
26065
    public int hashCode() {
25414
      return 0;
26066
      return 0;
25415
    }
26067
    }
25416
 
26068
 
25417
    public int compareTo(updateNonDeliveryReason_result other) {
26069
    public int compareTo(addJacketNumber_result other) {
25418
      if (!getClass().equals(other.getClass())) {
26070
      if (!getClass().equals(other.getClass())) {
25419
        return getClass().getName().compareTo(other.getClass().getName());
26071
        return getClass().getName().compareTo(other.getClass().getName());
25420
      }
26072
      }
25421
 
26073
 
25422
      int lastComparison = 0;
26074
      int lastComparison = 0;
25423
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
26075
      addJacketNumber_result typedOther = (addJacketNumber_result)other;
25424
 
26076
 
-
 
26077
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
26078
      if (lastComparison != 0) {
-
 
26079
        return lastComparison;
-
 
26080
      }
-
 
26081
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
26082
      if (lastComparison != 0) {
-
 
26083
        return lastComparison;
-
 
26084
      }
25425
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
26085
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
25426
      if (lastComparison != 0) {
26086
      if (lastComparison != 0) {
25427
        return lastComparison;
26087
        return lastComparison;
25428
      }
26088
      }
25429
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
26089
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
Line 25445... Line 26105...
25445
        _Fields fieldId = _Fields.findByThriftId(field.id);
26105
        _Fields fieldId = _Fields.findByThriftId(field.id);
25446
        if (fieldId == null) {
26106
        if (fieldId == null) {
25447
          TProtocolUtil.skip(iprot, field.type);
26107
          TProtocolUtil.skip(iprot, field.type);
25448
        } else {
26108
        } else {
25449
          switch (fieldId) {
26109
          switch (fieldId) {
-
 
26110
            case SUCCESS:
-
 
26111
              if (field.type == TType.BOOL) {
-
 
26112
                this.success = iprot.readBool();
-
 
26113
                setSuccessIsSet(true);
-
 
26114
              } else { 
-
 
26115
                TProtocolUtil.skip(iprot, field.type);
-
 
26116
              }
-
 
26117
              break;
25450
            case EX:
26118
            case EX:
25451
              if (field.type == TType.STRUCT) {
26119
              if (field.type == TType.STRUCT) {
25452
                this.ex = new TransactionServiceException();
26120
                this.ex = new TransactionServiceException();
25453
                this.ex.read(iprot);
26121
                this.ex.read(iprot);
25454
              } else { 
26122
              } else { 
Line 25464... Line 26132...
25464
    }
26132
    }
25465
 
26133
 
25466
    public void write(TProtocol oprot) throws TException {
26134
    public void write(TProtocol oprot) throws TException {
25467
      oprot.writeStructBegin(STRUCT_DESC);
26135
      oprot.writeStructBegin(STRUCT_DESC);
25468
 
26136
 
-
 
26137
      if (this.isSetSuccess()) {
-
 
26138
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
26139
        oprot.writeBool(this.success);
-
 
26140
        oprot.writeFieldEnd();
25469
      if (this.isSetEx()) {
26141
      } else if (this.isSetEx()) {
25470
        oprot.writeFieldBegin(EX_FIELD_DESC);
26142
        oprot.writeFieldBegin(EX_FIELD_DESC);
25471
        this.ex.write(oprot);
26143
        this.ex.write(oprot);
25472
        oprot.writeFieldEnd();
26144
        oprot.writeFieldEnd();
25473
      }
26145
      }
25474
      oprot.writeFieldStop();
26146
      oprot.writeFieldStop();
25475
      oprot.writeStructEnd();
26147
      oprot.writeStructEnd();
25476
    }
26148
    }
25477
 
26149
 
25478
    @Override
26150
    @Override
25479
    public String toString() {
26151
    public String toString() {
25480
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
26152
      StringBuilder sb = new StringBuilder("addJacketNumber_result(");
25481
      boolean first = true;
26153
      boolean first = true;
25482
 
26154
 
-
 
26155
      sb.append("success:");
-
 
26156
      sb.append(this.success);
-
 
26157
      first = false;
-
 
26158
      if (!first) sb.append(", ");
25483
      sb.append("ex:");
26159
      sb.append("ex:");
25484
      if (this.ex == null) {
26160
      if (this.ex == null) {
25485
        sb.append("null");
26161
        sb.append("null");
25486
      } else {
26162
      } else {
25487
        sb.append(this.ex);
26163
        sb.append(this.ex);
Line 25495... Line 26171...
25495
      // check for required fields
26171
      // check for required fields
25496
    }
26172
    }
25497
 
26173
 
25498
  }
26174
  }
25499
 
26175
 
25500
  public static class getUndeliveredOrders_args implements TBase<getUndeliveredOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUndeliveredOrders_args>   {
26176
  public static class markOrdersAsManifested_args implements TBase<markOrdersAsManifested_args._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsManifested_args>   {
25501
    private static final TStruct STRUCT_DESC = new TStruct("getUndeliveredOrders_args");
26177
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsManifested_args");
25502
 
26178
 
-
 
26179
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)1);
25503
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
26180
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)2);
25504
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)2);
26181
    private static final TField COD_FIELD_DESC = new TField("cod", TType.BOOL, (short)3);
25505
 
26182
 
25506
    private long providerId;
-
 
25507
    private long warehouseId;
26183
    private long warehouseId;
-
 
26184
    private long providerId;
-
 
26185
    private boolean cod;
25508
 
26186
 
25509
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26187
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25510
    public enum _Fields implements TFieldIdEnum {
26188
    public enum _Fields implements TFieldIdEnum {
-
 
26189
      WAREHOUSE_ID((short)1, "warehouseId"),
25511
      PROVIDER_ID((short)1, "providerId"),
26190
      PROVIDER_ID((short)2, "providerId"),
25512
      WAREHOUSE_ID((short)2, "warehouseId");
26191
      COD((short)3, "cod");
25513
 
26192
 
25514
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26193
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25515
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25516
 
26195
 
25517
      static {
26196
      static {
Line 25561... Line 26240...
25561
        return _fieldName;
26240
        return _fieldName;
25562
      }
26241
      }
25563
    }
26242
    }
25564
 
26243
 
25565
    // isset id assignments
26244
    // isset id assignments
-
 
26245
    private static final int __WAREHOUSEID_ISSET_ID = 0;
25566
    private static final int __PROVIDERID_ISSET_ID = 0;
26246
    private static final int __PROVIDERID_ISSET_ID = 1;
25567
    private static final int __WAREHOUSEID_ISSET_ID = 1;
26247
    private static final int __COD_ISSET_ID = 2;
25568
    private BitSet __isset_bit_vector = new BitSet(2);
26248
    private BitSet __isset_bit_vector = new BitSet(3);
25569
 
26249
 
25570
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26250
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
25571
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
25572
          new FieldValueMetaData(TType.I64)));
-
 
25573
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
26251
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
25574
          new FieldValueMetaData(TType.I64)));
26252
          new FieldValueMetaData(TType.I64)));
-
 
26253
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
26254
          new FieldValueMetaData(TType.I64)));
-
 
26255
      put(_Fields.COD, new FieldMetaData("cod", TFieldRequirementType.DEFAULT, 
-
 
26256
          new FieldValueMetaData(TType.BOOL)));
25575
    }});
26257
    }});
25576
 
26258
 
25577
    static {
26259
    static {
25578
      FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_args.class, metaDataMap);
26260
      FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_args.class, metaDataMap);
25579
    }
26261
    }
25580
 
26262
 
25581
    public getUndeliveredOrders_args() {
26263
    public markOrdersAsManifested_args() {
25582
    }
26264
    }
25583
 
26265
 
25584
    public getUndeliveredOrders_args(
26266
    public markOrdersAsManifested_args(
-
 
26267
      long warehouseId,
25585
      long providerId,
26268
      long providerId,
25586
      long warehouseId)
26269
      boolean cod)
25587
    {
26270
    {
25588
      this();
26271
      this();
25589
      this.providerId = providerId;
-
 
25590
      setProviderIdIsSet(true);
-
 
25591
      this.warehouseId = warehouseId;
26272
      this.warehouseId = warehouseId;
25592
      setWarehouseIdIsSet(true);
26273
      setWarehouseIdIsSet(true);
-
 
26274
      this.providerId = providerId;
-
 
26275
      setProviderIdIsSet(true);
-
 
26276
      this.cod = cod;
-
 
26277
      setCodIsSet(true);
25593
    }
26278
    }
25594
 
26279
 
25595
    /**
26280
    /**
25596
     * Performs a deep copy on <i>other</i>.
26281
     * Performs a deep copy on <i>other</i>.
25597
     */
26282
     */
25598
    public getUndeliveredOrders_args(getUndeliveredOrders_args other) {
26283
    public markOrdersAsManifested_args(markOrdersAsManifested_args other) {
25599
      __isset_bit_vector.clear();
26284
      __isset_bit_vector.clear();
25600
      __isset_bit_vector.or(other.__isset_bit_vector);
26285
      __isset_bit_vector.or(other.__isset_bit_vector);
25601
      this.providerId = other.providerId;
-
 
25602
      this.warehouseId = other.warehouseId;
26286
      this.warehouseId = other.warehouseId;
-
 
26287
      this.providerId = other.providerId;
-
 
26288
      this.cod = other.cod;
25603
    }
26289
    }
25604
 
26290
 
25605
    public getUndeliveredOrders_args deepCopy() {
26291
    public markOrdersAsManifested_args deepCopy() {
25606
      return new getUndeliveredOrders_args(this);
26292
      return new markOrdersAsManifested_args(this);
25607
    }
26293
    }
25608
 
26294
 
25609
    @Deprecated
26295
    @Deprecated
25610
    public getUndeliveredOrders_args clone() {
26296
    public markOrdersAsManifested_args clone() {
25611
      return new getUndeliveredOrders_args(this);
26297
      return new markOrdersAsManifested_args(this);
-
 
26298
    }
-
 
26299
 
-
 
26300
    public long getWarehouseId() {
-
 
26301
      return this.warehouseId;
-
 
26302
    }
-
 
26303
 
-
 
26304
    public markOrdersAsManifested_args setWarehouseId(long warehouseId) {
-
 
26305
      this.warehouseId = warehouseId;
-
 
26306
      setWarehouseIdIsSet(true);
-
 
26307
      return this;
-
 
26308
    }
-
 
26309
 
-
 
26310
    public void unsetWarehouseId() {
-
 
26311
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
26312
    }
-
 
26313
 
-
 
26314
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
-
 
26315
    public boolean isSetWarehouseId() {
-
 
26316
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
26317
    }
-
 
26318
 
-
 
26319
    public void setWarehouseIdIsSet(boolean value) {
-
 
26320
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25612
    }
26321
    }
25613
 
26322
 
25614
    public long getProviderId() {
26323
    public long getProviderId() {
25615
      return this.providerId;
26324
      return this.providerId;
25616
    }
26325
    }
25617
 
26326
 
25618
    public getUndeliveredOrders_args setProviderId(long providerId) {
26327
    public markOrdersAsManifested_args setProviderId(long providerId) {
25619
      this.providerId = providerId;
26328
      this.providerId = providerId;
25620
      setProviderIdIsSet(true);
26329
      setProviderIdIsSet(true);
25621
      return this;
26330
      return this;
25622
    }
26331
    }
25623
 
26332
 
Line 25632... Line 26341...
25632
 
26341
 
25633
    public void setProviderIdIsSet(boolean value) {
26342
    public void setProviderIdIsSet(boolean value) {
25634
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
26343
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
25635
    }
26344
    }
25636
 
26345
 
25637
    public long getWarehouseId() {
26346
    public boolean isCod() {
25638
      return this.warehouseId;
26347
      return this.cod;
25639
    }
26348
    }
25640
 
26349
 
25641
    public getUndeliveredOrders_args setWarehouseId(long warehouseId) {
26350
    public markOrdersAsManifested_args setCod(boolean cod) {
25642
      this.warehouseId = warehouseId;
26351
      this.cod = cod;
25643
      setWarehouseIdIsSet(true);
26352
      setCodIsSet(true);
25644
      return this;
26353
      return this;
25645
    }
26354
    }
25646
 
26355
 
25647
    public void unsetWarehouseId() {
26356
    public void unsetCod() {
25648
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26357
      __isset_bit_vector.clear(__COD_ISSET_ID);
25649
    }
26358
    }
25650
 
26359
 
25651
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
26360
    /** Returns true if field cod is set (has been asigned a value) and false otherwise */
25652
    public boolean isSetWarehouseId() {
26361
    public boolean isSetCod() {
25653
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26362
      return __isset_bit_vector.get(__COD_ISSET_ID);
25654
    }
26363
    }
25655
 
26364
 
25656
    public void setWarehouseIdIsSet(boolean value) {
26365
    public void setCodIsSet(boolean value) {
25657
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26366
      __isset_bit_vector.set(__COD_ISSET_ID, value);
25658
    }
26367
    }
25659
 
26368
 
25660
    public void setFieldValue(_Fields field, Object value) {
26369
    public void setFieldValue(_Fields field, Object value) {
25661
      switch (field) {
26370
      switch (field) {
-
 
26371
      case WAREHOUSE_ID:
-
 
26372
        if (value == null) {
-
 
26373
          unsetWarehouseId();
-
 
26374
        } else {
-
 
26375
          setWarehouseId((Long)value);
-
 
26376
        }
-
 
26377
        break;
-
 
26378
 
25662
      case PROVIDER_ID:
26379
      case PROVIDER_ID:
25663
        if (value == null) {
26380
        if (value == null) {
25664
          unsetProviderId();
26381
          unsetProviderId();
25665
        } else {
26382
        } else {
25666
          setProviderId((Long)value);
26383
          setProviderId((Long)value);
25667
        }
26384
        }
25668
        break;
26385
        break;
25669
 
26386
 
25670
      case WAREHOUSE_ID:
26387
      case COD:
25671
        if (value == null) {
26388
        if (value == null) {
25672
          unsetWarehouseId();
26389
          unsetCod();
25673
        } else {
26390
        } else {
25674
          setWarehouseId((Long)value);
26391
          setCod((Boolean)value);
25675
        }
26392
        }
25676
        break;
26393
        break;
25677
 
26394
 
25678
      }
26395
      }
25679
    }
26396
    }
Line 25682... Line 26399...
25682
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
26399
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
25683
    }
26400
    }
25684
 
26401
 
25685
    public Object getFieldValue(_Fields field) {
26402
    public Object getFieldValue(_Fields field) {
25686
      switch (field) {
26403
      switch (field) {
-
 
26404
      case WAREHOUSE_ID:
-
 
26405
        return new Long(getWarehouseId());
-
 
26406
 
25687
      case PROVIDER_ID:
26407
      case PROVIDER_ID:
25688
        return new Long(getProviderId());
26408
        return new Long(getProviderId());
25689
 
26409
 
25690
      case WAREHOUSE_ID:
26410
      case COD:
25691
        return new Long(getWarehouseId());
26411
        return new Boolean(isCod());
25692
 
26412
 
25693
      }
26413
      }
25694
      throw new IllegalStateException();
26414
      throw new IllegalStateException();
25695
    }
26415
    }
25696
 
26416
 
Line 25699... Line 26419...
25699
    }
26419
    }
25700
 
26420
 
25701
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26421
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
25702
    public boolean isSet(_Fields field) {
26422
    public boolean isSet(_Fields field) {
25703
      switch (field) {
26423
      switch (field) {
25704
      case PROVIDER_ID:
-
 
25705
        return isSetProviderId();
-
 
25706
      case WAREHOUSE_ID:
26424
      case WAREHOUSE_ID:
25707
        return isSetWarehouseId();
26425
        return isSetWarehouseId();
-
 
26426
      case PROVIDER_ID:
-
 
26427
        return isSetProviderId();
-
 
26428
      case COD:
-
 
26429
        return isSetCod();
25708
      }
26430
      }
25709
      throw new IllegalStateException();
26431
      throw new IllegalStateException();
25710
    }
26432
    }
25711
 
26433
 
25712
    public boolean isSet(int fieldID) {
26434
    public boolean isSet(int fieldID) {
Line 25715... Line 26437...
25715
 
26437
 
25716
    @Override
26438
    @Override
25717
    public boolean equals(Object that) {
26439
    public boolean equals(Object that) {
25718
      if (that == null)
26440
      if (that == null)
25719
        return false;
26441
        return false;
25720
      if (that instanceof getUndeliveredOrders_args)
26442
      if (that instanceof markOrdersAsManifested_args)
25721
        return this.equals((getUndeliveredOrders_args)that);
26443
        return this.equals((markOrdersAsManifested_args)that);
25722
      return false;
26444
      return false;
25723
    }
26445
    }
25724
 
26446
 
25725
    public boolean equals(getUndeliveredOrders_args that) {
26447
    public boolean equals(markOrdersAsManifested_args that) {
25726
      if (that == null)
26448
      if (that == null)
25727
        return false;
26449
        return false;
25728
 
26450
 
-
 
26451
      boolean this_present_warehouseId = true;
-
 
26452
      boolean that_present_warehouseId = true;
-
 
26453
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
26454
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
26455
          return false;
-
 
26456
        if (this.warehouseId != that.warehouseId)
-
 
26457
          return false;
-
 
26458
      }
-
 
26459
 
25729
      boolean this_present_providerId = true;
26460
      boolean this_present_providerId = true;
25730
      boolean that_present_providerId = true;
26461
      boolean that_present_providerId = true;
25731
      if (this_present_providerId || that_present_providerId) {
26462
      if (this_present_providerId || that_present_providerId) {
25732
        if (!(this_present_providerId && that_present_providerId))
26463
        if (!(this_present_providerId && that_present_providerId))
25733
          return false;
26464
          return false;
25734
        if (this.providerId != that.providerId)
26465
        if (this.providerId != that.providerId)
25735
          return false;
26466
          return false;
25736
      }
26467
      }
25737
 
26468
 
25738
      boolean this_present_warehouseId = true;
26469
      boolean this_present_cod = true;
25739
      boolean that_present_warehouseId = true;
26470
      boolean that_present_cod = true;
25740
      if (this_present_warehouseId || that_present_warehouseId) {
26471
      if (this_present_cod || that_present_cod) {
25741
        if (!(this_present_warehouseId && that_present_warehouseId))
26472
        if (!(this_present_cod && that_present_cod))
25742
          return false;
26473
          return false;
25743
        if (this.warehouseId != that.warehouseId)
26474
        if (this.cod != that.cod)
25744
          return false;
26475
          return false;
25745
      }
26476
      }
25746
 
26477
 
25747
      return true;
26478
      return true;
25748
    }
26479
    }
Line 25750... Line 26481...
25750
    @Override
26481
    @Override
25751
    public int hashCode() {
26482
    public int hashCode() {
25752
      return 0;
26483
      return 0;
25753
    }
26484
    }
25754
 
26485
 
25755
    public int compareTo(getUndeliveredOrders_args other) {
26486
    public int compareTo(markOrdersAsManifested_args other) {
25756
      if (!getClass().equals(other.getClass())) {
26487
      if (!getClass().equals(other.getClass())) {
25757
        return getClass().getName().compareTo(other.getClass().getName());
26488
        return getClass().getName().compareTo(other.getClass().getName());
25758
      }
26489
      }
25759
 
26490
 
25760
      int lastComparison = 0;
26491
      int lastComparison = 0;
25761
      getUndeliveredOrders_args typedOther = (getUndeliveredOrders_args)other;
26492
      markOrdersAsManifested_args typedOther = (markOrdersAsManifested_args)other;
25762
 
26493
 
-
 
26494
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
-
 
26495
      if (lastComparison != 0) {
-
 
26496
        return lastComparison;
-
 
26497
      }
-
 
26498
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
-
 
26499
      if (lastComparison != 0) {
-
 
26500
        return lastComparison;
-
 
26501
      }
25763
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
26502
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
25764
      if (lastComparison != 0) {
26503
      if (lastComparison != 0) {
25765
        return lastComparison;
26504
        return lastComparison;
25766
      }
26505
      }
25767
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
26506
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
25768
      if (lastComparison != 0) {
26507
      if (lastComparison != 0) {
25769
        return lastComparison;
26508
        return lastComparison;
25770
      }
26509
      }
25771
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
26510
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(isSetCod());
25772
      if (lastComparison != 0) {
26511
      if (lastComparison != 0) {
25773
        return lastComparison;
26512
        return lastComparison;
25774
      }
26513
      }
25775
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
26514
      lastComparison = TBaseHelper.compareTo(cod, typedOther.cod);
25776
      if (lastComparison != 0) {
26515
      if (lastComparison != 0) {
25777
        return lastComparison;
26516
        return lastComparison;
25778
      }
26517
      }
25779
      return 0;
26518
      return 0;
25780
    }
26519
    }
Line 25791... Line 26530...
25791
        _Fields fieldId = _Fields.findByThriftId(field.id);
26530
        _Fields fieldId = _Fields.findByThriftId(field.id);
25792
        if (fieldId == null) {
26531
        if (fieldId == null) {
25793
          TProtocolUtil.skip(iprot, field.type);
26532
          TProtocolUtil.skip(iprot, field.type);
25794
        } else {
26533
        } else {
25795
          switch (fieldId) {
26534
          switch (fieldId) {
-
 
26535
            case WAREHOUSE_ID:
-
 
26536
              if (field.type == TType.I64) {
-
 
26537
                this.warehouseId = iprot.readI64();
-
 
26538
                setWarehouseIdIsSet(true);
-
 
26539
              } else { 
-
 
26540
                TProtocolUtil.skip(iprot, field.type);
-
 
26541
              }
-
 
26542
              break;
25796
            case PROVIDER_ID:
26543
            case PROVIDER_ID:
25797
              if (field.type == TType.I64) {
26544
              if (field.type == TType.I64) {
25798
                this.providerId = iprot.readI64();
26545
                this.providerId = iprot.readI64();
25799
                setProviderIdIsSet(true);
26546
                setProviderIdIsSet(true);
25800
              } else { 
26547
              } else { 
25801
                TProtocolUtil.skip(iprot, field.type);
26548
                TProtocolUtil.skip(iprot, field.type);
25802
              }
26549
              }
25803
              break;
26550
              break;
25804
            case WAREHOUSE_ID:
26551
            case COD:
25805
              if (field.type == TType.I64) {
26552
              if (field.type == TType.BOOL) {
25806
                this.warehouseId = iprot.readI64();
26553
                this.cod = iprot.readBool();
25807
                setWarehouseIdIsSet(true);
26554
                setCodIsSet(true);
25808
              } else { 
26555
              } else { 
25809
                TProtocolUtil.skip(iprot, field.type);
26556
                TProtocolUtil.skip(iprot, field.type);
25810
              }
26557
              }
25811
              break;
26558
              break;
25812
          }
26559
          }
Line 25819... Line 26566...
25819
 
26566
 
25820
    public void write(TProtocol oprot) throws TException {
26567
    public void write(TProtocol oprot) throws TException {
25821
      validate();
26568
      validate();
25822
 
26569
 
25823
      oprot.writeStructBegin(STRUCT_DESC);
26570
      oprot.writeStructBegin(STRUCT_DESC);
-
 
26571
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
26572
      oprot.writeI64(this.warehouseId);
-
 
26573
      oprot.writeFieldEnd();
25824
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
26574
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
25825
      oprot.writeI64(this.providerId);
26575
      oprot.writeI64(this.providerId);
25826
      oprot.writeFieldEnd();
26576
      oprot.writeFieldEnd();
25827
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26577
      oprot.writeFieldBegin(COD_FIELD_DESC);
25828
      oprot.writeI64(this.warehouseId);
26578
      oprot.writeBool(this.cod);
25829
      oprot.writeFieldEnd();
26579
      oprot.writeFieldEnd();
25830
      oprot.writeFieldStop();
26580
      oprot.writeFieldStop();
25831
      oprot.writeStructEnd();
26581
      oprot.writeStructEnd();
25832
    }
26582
    }
25833
 
26583
 
25834
    @Override
26584
    @Override
25835
    public String toString() {
26585
    public String toString() {
25836
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_args(");
26586
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_args(");
25837
      boolean first = true;
26587
      boolean first = true;
25838
 
26588
 
-
 
26589
      sb.append("warehouseId:");
-
 
26590
      sb.append(this.warehouseId);
-
 
26591
      first = false;
-
 
26592
      if (!first) sb.append(", ");
25839
      sb.append("providerId:");
26593
      sb.append("providerId:");
25840
      sb.append(this.providerId);
26594
      sb.append(this.providerId);
25841
      first = false;
26595
      first = false;
25842
      if (!first) sb.append(", ");
26596
      if (!first) sb.append(", ");
25843
      sb.append("warehouseId:");
26597
      sb.append("cod:");
25844
      sb.append(this.warehouseId);
26598
      sb.append(this.cod);
25845
      first = false;
26599
      first = false;
25846
      sb.append(")");
26600
      sb.append(")");
25847
      return sb.toString();
26601
      return sb.toString();
25848
    }
26602
    }
25849
 
26603
 
Line 25851... Line 26605...
25851
      // check for required fields
26605
      // check for required fields
25852
    }
26606
    }
25853
 
26607
 
25854
  }
26608
  }
25855
 
26609
 
25856
  public static class getUndeliveredOrders_result implements TBase<getUndeliveredOrders_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUndeliveredOrders_result>   {
26610
  public static class markOrdersAsManifested_result implements TBase<markOrdersAsManifested_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsManifested_result>   {
25857
    private static final TStruct STRUCT_DESC = new TStruct("getUndeliveredOrders_result");
26611
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsManifested_result");
25858
 
26612
 
25859
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
26613
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
26614
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
25860
 
26615
 
25861
    private List<Order> success;
26616
    private boolean success;
-
 
26617
    private TransactionServiceException ex;
25862
 
26618
 
25863
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25864
    public enum _Fields implements TFieldIdEnum {
26620
    public enum _Fields implements TFieldIdEnum {
25865
      SUCCESS((short)0, "success");
26621
      SUCCESS((short)0, "success"),
-
 
26622
      EX((short)1, "ex");
25866
 
26623
 
25867
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26624
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
25868
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25869
 
26626
 
25870
      static {
26627
      static {
Line 25914... Line 26671...
25914
        return _fieldName;
26671
        return _fieldName;
25915
      }
26672
      }
25916
    }
26673
    }
25917
 
26674
 
25918
    // isset id assignments
26675
    // isset id assignments
-
 
26676
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
26677
    private BitSet __isset_bit_vector = new BitSet(1);
25919
 
26678
 
25920
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26679
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
25921
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
26680
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
25922
          new ListMetaData(TType.LIST, 
26681
          new FieldValueMetaData(TType.BOOL)));
-
 
26682
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
25923
              new StructMetaData(TType.STRUCT, Order.class))));
26683
          new FieldValueMetaData(TType.STRUCT)));
25924
    }});
26684
    }});
25925
 
26685
 
25926
    static {
26686
    static {
25927
      FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_result.class, metaDataMap);
26687
      FieldMetaData.addStructMetaDataMap(markOrdersAsManifested_result.class, metaDataMap);
25928
    }
26688
    }
25929
 
26689
 
25930
    public getUndeliveredOrders_result() {
26690
    public markOrdersAsManifested_result() {
25931
    }
26691
    }
25932
 
26692
 
25933
    public getUndeliveredOrders_result(
26693
    public markOrdersAsManifested_result(
25934
      List<Order> success)
26694
      boolean success,
-
 
26695
      TransactionServiceException ex)
25935
    {
26696
    {
25936
      this();
26697
      this();
25937
      this.success = success;
26698
      this.success = success;
-
 
26699
      setSuccessIsSet(true);
-
 
26700
      this.ex = ex;
25938
    }
26701
    }
25939
 
26702
 
25940
    /**
26703
    /**
25941
     * Performs a deep copy on <i>other</i>.
26704
     * Performs a deep copy on <i>other</i>.
25942
     */
26705
     */
25943
    public getUndeliveredOrders_result(getUndeliveredOrders_result other) {
26706
    public markOrdersAsManifested_result(markOrdersAsManifested_result other) {
25944
      if (other.isSetSuccess()) {
26707
      __isset_bit_vector.clear();
25945
        List<Order> __this__success = new ArrayList<Order>();
26708
      __isset_bit_vector.or(other.__isset_bit_vector);
25946
        for (Order other_element : other.success) {
26709
      this.success = other.success;
25947
          __this__success.add(new Order(other_element));
26710
      if (other.isSetEx()) {
25948
        }
-
 
25949
        this.success = __this__success;
26711
        this.ex = new TransactionServiceException(other.ex);
25950
      }
26712
      }
25951
    }
26713
    }
25952
 
26714
 
25953
    public getUndeliveredOrders_result deepCopy() {
26715
    public markOrdersAsManifested_result deepCopy() {
25954
      return new getUndeliveredOrders_result(this);
26716
      return new markOrdersAsManifested_result(this);
25955
    }
26717
    }
25956
 
26718
 
25957
    @Deprecated
26719
    @Deprecated
25958
    public getUndeliveredOrders_result clone() {
26720
    public markOrdersAsManifested_result clone() {
25959
      return new getUndeliveredOrders_result(this);
26721
      return new markOrdersAsManifested_result(this);
25960
    }
-
 
25961
 
-
 
25962
    public int getSuccessSize() {
-
 
25963
      return (this.success == null) ? 0 : this.success.size();
-
 
25964
    }
-
 
25965
 
-
 
25966
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
25967
      return (this.success == null) ? null : this.success.iterator();
-
 
25968
    }
-
 
25969
 
-
 
25970
    public void addToSuccess(Order elem) {
-
 
25971
      if (this.success == null) {
-
 
25972
        this.success = new ArrayList<Order>();
-
 
25973
      }
-
 
25974
      this.success.add(elem);
-
 
25975
    }
26722
    }
25976
 
26723
 
25977
    public List<Order> getSuccess() {
26724
    public boolean isSuccess() {
25978
      return this.success;
26725
      return this.success;
25979
    }
26726
    }
25980
 
26727
 
25981
    public getUndeliveredOrders_result setSuccess(List<Order> success) {
26728
    public markOrdersAsManifested_result setSuccess(boolean success) {
25982
      this.success = success;
26729
      this.success = success;
-
 
26730
      setSuccessIsSet(true);
25983
      return this;
26731
      return this;
25984
    }
26732
    }
25985
 
26733
 
25986
    public void unsetSuccess() {
26734
    public void unsetSuccess() {
25987
      this.success = null;
26735
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
25988
    }
26736
    }
25989
 
26737
 
25990
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
26738
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
25991
    public boolean isSetSuccess() {
26739
    public boolean isSetSuccess() {
25992
      return this.success != null;
26740
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
25993
    }
26741
    }
25994
 
26742
 
25995
    public void setSuccessIsSet(boolean value) {
26743
    public void setSuccessIsSet(boolean value) {
-
 
26744
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
26745
    }
-
 
26746
 
-
 
26747
    public TransactionServiceException getEx() {
-
 
26748
      return this.ex;
-
 
26749
    }
-
 
26750
 
-
 
26751
    public markOrdersAsManifested_result setEx(TransactionServiceException ex) {
-
 
26752
      this.ex = ex;
-
 
26753
      return this;
-
 
26754
    }
-
 
26755
 
-
 
26756
    public void unsetEx() {
-
 
26757
      this.ex = null;
-
 
26758
    }
-
 
26759
 
-
 
26760
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
26761
    public boolean isSetEx() {
-
 
26762
      return this.ex != null;
-
 
26763
    }
-
 
26764
 
-
 
26765
    public void setExIsSet(boolean value) {
25996
      if (!value) {
26766
      if (!value) {
25997
        this.success = null;
26767
        this.ex = null;
25998
      }
26768
      }
25999
    }
26769
    }
26000
 
26770
 
26001
    public void setFieldValue(_Fields field, Object value) {
26771
    public void setFieldValue(_Fields field, Object value) {
26002
      switch (field) {
26772
      switch (field) {
26003
      case SUCCESS:
26773
      case SUCCESS:
26004
        if (value == null) {
26774
        if (value == null) {
26005
          unsetSuccess();
26775
          unsetSuccess();
26006
        } else {
26776
        } else {
26007
          setSuccess((List<Order>)value);
26777
          setSuccess((Boolean)value);
-
 
26778
        }
-
 
26779
        break;
-
 
26780
 
-
 
26781
      case EX:
-
 
26782
        if (value == null) {
-
 
26783
          unsetEx();
-
 
26784
        } else {
-
 
26785
          setEx((TransactionServiceException)value);
26008
        }
26786
        }
26009
        break;
26787
        break;
26010
 
26788
 
26011
      }
26789
      }
26012
    }
26790
    }
Line 26016... Line 26794...
26016
    }
26794
    }
26017
 
26795
 
26018
    public Object getFieldValue(_Fields field) {
26796
    public Object getFieldValue(_Fields field) {
26019
      switch (field) {
26797
      switch (field) {
26020
      case SUCCESS:
26798
      case SUCCESS:
-
 
26799
        return new Boolean(isSuccess());
-
 
26800
 
-
 
26801
      case EX:
26021
        return getSuccess();
26802
        return getEx();
26022
 
26803
 
26023
      }
26804
      }
26024
      throw new IllegalStateException();
26805
      throw new IllegalStateException();
26025
    }
26806
    }
26026
 
26807
 
Line 26031... Line 26812...
26031
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26812
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26032
    public boolean isSet(_Fields field) {
26813
    public boolean isSet(_Fields field) {
26033
      switch (field) {
26814
      switch (field) {
26034
      case SUCCESS:
26815
      case SUCCESS:
26035
        return isSetSuccess();
26816
        return isSetSuccess();
-
 
26817
      case EX:
-
 
26818
        return isSetEx();
26036
      }
26819
      }
26037
      throw new IllegalStateException();
26820
      throw new IllegalStateException();
26038
    }
26821
    }
26039
 
26822
 
26040
    public boolean isSet(int fieldID) {
26823
    public boolean isSet(int fieldID) {
Line 26043... Line 26826...
26043
 
26826
 
26044
    @Override
26827
    @Override
26045
    public boolean equals(Object that) {
26828
    public boolean equals(Object that) {
26046
      if (that == null)
26829
      if (that == null)
26047
        return false;
26830
        return false;
26048
      if (that instanceof getUndeliveredOrders_result)
26831
      if (that instanceof markOrdersAsManifested_result)
26049
        return this.equals((getUndeliveredOrders_result)that);
26832
        return this.equals((markOrdersAsManifested_result)that);
26050
      return false;
26833
      return false;
26051
    }
26834
    }
26052
 
26835
 
26053
    public boolean equals(getUndeliveredOrders_result that) {
26836
    public boolean equals(markOrdersAsManifested_result that) {
26054
      if (that == null)
26837
      if (that == null)
26055
        return false;
26838
        return false;
26056
 
26839
 
26057
      boolean this_present_success = true && this.isSetSuccess();
26840
      boolean this_present_success = true;
26058
      boolean that_present_success = true && that.isSetSuccess();
26841
      boolean that_present_success = true;
26059
      if (this_present_success || that_present_success) {
26842
      if (this_present_success || that_present_success) {
26060
        if (!(this_present_success && that_present_success))
26843
        if (!(this_present_success && that_present_success))
26061
          return false;
26844
          return false;
26062
        if (!this.success.equals(that.success))
26845
        if (this.success != that.success)
-
 
26846
          return false;
-
 
26847
      }
-
 
26848
 
-
 
26849
      boolean this_present_ex = true && this.isSetEx();
-
 
26850
      boolean that_present_ex = true && that.isSetEx();
-
 
26851
      if (this_present_ex || that_present_ex) {
-
 
26852
        if (!(this_present_ex && that_present_ex))
-
 
26853
          return false;
-
 
26854
        if (!this.ex.equals(that.ex))
26063
          return false;
26855
          return false;
26064
      }
26856
      }
26065
 
26857
 
26066
      return true;
26858
      return true;
26067
    }
26859
    }
Line 26069... Line 26861...
26069
    @Override
26861
    @Override
26070
    public int hashCode() {
26862
    public int hashCode() {
26071
      return 0;
26863
      return 0;
26072
    }
26864
    }
26073
 
26865
 
26074
    public int compareTo(getUndeliveredOrders_result other) {
26866
    public int compareTo(markOrdersAsManifested_result other) {
26075
      if (!getClass().equals(other.getClass())) {
26867
      if (!getClass().equals(other.getClass())) {
26076
        return getClass().getName().compareTo(other.getClass().getName());
26868
        return getClass().getName().compareTo(other.getClass().getName());
26077
      }
26869
      }
26078
 
26870
 
26079
      int lastComparison = 0;
26871
      int lastComparison = 0;
26080
      getUndeliveredOrders_result typedOther = (getUndeliveredOrders_result)other;
26872
      markOrdersAsManifested_result typedOther = (markOrdersAsManifested_result)other;
26081
 
26873
 
26082
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
26874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
26083
      if (lastComparison != 0) {
26875
      if (lastComparison != 0) {
26084
        return lastComparison;
26876
        return lastComparison;
26085
      }
26877
      }
26086
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
26878
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
26087
      if (lastComparison != 0) {
26879
      if (lastComparison != 0) {
26088
        return lastComparison;
26880
        return lastComparison;
26089
      }
26881
      }
-
 
26882
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
26883
      if (lastComparison != 0) {
-
 
26884
        return lastComparison;
-
 
26885
      }
-
 
26886
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
26887
      if (lastComparison != 0) {
-
 
26888
        return lastComparison;
-
 
26889
      }
26090
      return 0;
26890
      return 0;
26091
    }
26891
    }
26092
 
26892
 
26093
    public void read(TProtocol iprot) throws TException {
26893
    public void read(TProtocol iprot) throws TException {
26094
      TField field;
26894
      TField field;
Line 26103... Line 26903...
26103
        if (fieldId == null) {
26903
        if (fieldId == null) {
26104
          TProtocolUtil.skip(iprot, field.type);
26904
          TProtocolUtil.skip(iprot, field.type);
26105
        } else {
26905
        } else {
26106
          switch (fieldId) {
26906
          switch (fieldId) {
26107
            case SUCCESS:
26907
            case SUCCESS:
26108
              if (field.type == TType.LIST) {
26908
              if (field.type == TType.BOOL) {
26109
                {
26909
                this.success = iprot.readBool();
26110
                  TList _list76 = iprot.readListBegin();
26910
                setSuccessIsSet(true);
26111
                  this.success = new ArrayList<Order>(_list76.size);
26911
              } else { 
26112
                  for (int _i77 = 0; _i77 < _list76.size; ++_i77)
26912
                TProtocolUtil.skip(iprot, field.type);
26113
                  {
26913
              }
26114
                    Order _elem78;
26914
              break;
26115
                    _elem78 = new Order();
26915
            case EX:
26116
                    _elem78.read(iprot);
26916
              if (field.type == TType.STRUCT) {
26117
                    this.success.add(_elem78);
26917
                this.ex = new TransactionServiceException();
26118
                  }
-
 
26119
                  iprot.readListEnd();
26918
                this.ex.read(iprot);
26120
                }
-
 
26121
              } else { 
26919
              } else { 
26122
                TProtocolUtil.skip(iprot, field.type);
26920
                TProtocolUtil.skip(iprot, field.type);
26123
              }
26921
              }
26124
              break;
26922
              break;
26125
          }
26923
          }
Line 26133... Line 26931...
26133
    public void write(TProtocol oprot) throws TException {
26931
    public void write(TProtocol oprot) throws TException {
26134
      oprot.writeStructBegin(STRUCT_DESC);
26932
      oprot.writeStructBegin(STRUCT_DESC);
26135
 
26933
 
26136
      if (this.isSetSuccess()) {
26934
      if (this.isSetSuccess()) {
26137
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26935
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26138
        {
-
 
26139
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
26140
          for (Order _iter79 : this.success)
26936
        oprot.writeBool(this.success);
26141
          {
-
 
26142
            _iter79.write(oprot);
26937
        oprot.writeFieldEnd();
26143
          }
26938
      } else if (this.isSetEx()) {
26144
          oprot.writeListEnd();
26939
        oprot.writeFieldBegin(EX_FIELD_DESC);
26145
        }
26940
        this.ex.write(oprot);
26146
        oprot.writeFieldEnd();
26941
        oprot.writeFieldEnd();
26147
      }
26942
      }
26148
      oprot.writeFieldStop();
26943
      oprot.writeFieldStop();
26149
      oprot.writeStructEnd();
26944
      oprot.writeStructEnd();
26150
    }
26945
    }
26151
 
26946
 
26152
    @Override
26947
    @Override
26153
    public String toString() {
26948
    public String toString() {
26154
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_result(");
26949
      StringBuilder sb = new StringBuilder("markOrdersAsManifested_result(");
26155
      boolean first = true;
26950
      boolean first = true;
26156
 
26951
 
26157
      sb.append("success:");
26952
      sb.append("success:");
-
 
26953
      sb.append(this.success);
-
 
26954
      first = false;
-
 
26955
      if (!first) sb.append(", ");
-
 
26956
      sb.append("ex:");
26158
      if (this.success == null) {
26957
      if (this.ex == null) {
26159
        sb.append("null");
26958
        sb.append("null");
26160
      } else {
26959
      } else {
26161
        sb.append(this.success);
26960
        sb.append(this.ex);
26162
      }
26961
      }
26163
      first = false;
26962
      first = false;
26164
      sb.append(")");
26963
      sb.append(")");
26165
      return sb.toString();
26964
      return sb.toString();
26166
    }
26965
    }
Line 26169... Line 26968...
26169
      // check for required fields
26968
      // check for required fields
26170
    }
26969
    }
26171
 
26970
 
26172
  }
26971
  }
26173
 
26972
 
26174
  public static class getAlerts_args implements TBase<getAlerts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_args>   {
26973
  public static class markOrdersAsPickedUp_args implements TBase<markOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable   {
26175
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_args");
26974
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsPickedUp_args");
26176
 
26975
 
26177
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
26976
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
26178
    private static final TField VALID_FIELD_DESC = new TField("valid", TType.BOOL, (short)2);
26977
    private static final TField PICKUP_DETAILS_FIELD_DESC = new TField("pickupDetails", TType.MAP, (short)2);
26179
 
26978
 
26180
    private long orderId;
26979
    private long providerId;
26181
    private boolean valid;
26980
    private Map<String,String> pickupDetails;
26182
 
26981
 
26183
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26184
    public enum _Fields implements TFieldIdEnum {
26983
    public enum _Fields implements TFieldIdEnum {
26185
      ORDER_ID((short)1, "orderId"),
26984
      PROVIDER_ID((short)1, "providerId"),
26186
      VALID((short)2, "valid");
26985
      PICKUP_DETAILS((short)2, "pickupDetails");
26187
 
26986
 
26188
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26987
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26189
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26190
 
26989
 
26191
      static {
26990
      static {
Line 26235... Line 27034...
26235
        return _fieldName;
27034
        return _fieldName;
26236
      }
27035
      }
26237
    }
27036
    }
26238
 
27037
 
26239
    // isset id assignments
27038
    // isset id assignments
26240
    private static final int __ORDERID_ISSET_ID = 0;
27039
    private static final int __PROVIDERID_ISSET_ID = 0;
26241
    private static final int __VALID_ISSET_ID = 1;
-
 
26242
    private BitSet __isset_bit_vector = new BitSet(2);
27040
    private BitSet __isset_bit_vector = new BitSet(1);
26243
 
27041
 
26244
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27042
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26245
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
27043
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
26246
          new FieldValueMetaData(TType.I64)));
27044
          new FieldValueMetaData(TType.I64)));
26247
      put(_Fields.VALID, new FieldMetaData("valid", TFieldRequirementType.DEFAULT, 
27045
      put(_Fields.PICKUP_DETAILS, new FieldMetaData("pickupDetails", TFieldRequirementType.DEFAULT, 
-
 
27046
          new MapMetaData(TType.MAP, 
-
 
27047
              new FieldValueMetaData(TType.STRING), 
26248
          new FieldValueMetaData(TType.BOOL)));
27048
              new FieldValueMetaData(TType.STRING))));
26249
    }});
27049
    }});
26250
 
27050
 
26251
    static {
27051
    static {
26252
      FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);
27052
      FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_args.class, metaDataMap);
26253
    }
27053
    }
26254
 
27054
 
26255
    public getAlerts_args() {
27055
    public markOrdersAsPickedUp_args() {
26256
    }
27056
    }
26257
 
27057
 
26258
    public getAlerts_args(
27058
    public markOrdersAsPickedUp_args(
26259
      long orderId,
27059
      long providerId,
26260
      boolean valid)
27060
      Map<String,String> pickupDetails)
26261
    {
27061
    {
26262
      this();
27062
      this();
26263
      this.orderId = orderId;
27063
      this.providerId = providerId;
26264
      setOrderIdIsSet(true);
27064
      setProviderIdIsSet(true);
26265
      this.valid = valid;
27065
      this.pickupDetails = pickupDetails;
26266
      setValidIsSet(true);
-
 
26267
    }
27066
    }
26268
 
27067
 
26269
    /**
27068
    /**
26270
     * Performs a deep copy on <i>other</i>.
27069
     * Performs a deep copy on <i>other</i>.
26271
     */
27070
     */
26272
    public getAlerts_args(getAlerts_args other) {
27071
    public markOrdersAsPickedUp_args(markOrdersAsPickedUp_args other) {
26273
      __isset_bit_vector.clear();
27072
      __isset_bit_vector.clear();
26274
      __isset_bit_vector.or(other.__isset_bit_vector);
27073
      __isset_bit_vector.or(other.__isset_bit_vector);
26275
      this.orderId = other.orderId;
27074
      this.providerId = other.providerId;
-
 
27075
      if (other.isSetPickupDetails()) {
-
 
27076
        Map<String,String> __this__pickupDetails = new HashMap<String,String>();
-
 
27077
        for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {
-
 
27078
 
-
 
27079
          String other_element_key = other_element.getKey();
-
 
27080
          String other_element_value = other_element.getValue();
-
 
27081
 
-
 
27082
          String __this__pickupDetails_copy_key = other_element_key;
-
 
27083
 
-
 
27084
          String __this__pickupDetails_copy_value = other_element_value;
-
 
27085
 
-
 
27086
          __this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);
-
 
27087
        }
26276
      this.valid = other.valid;
27088
        this.pickupDetails = __this__pickupDetails;
-
 
27089
      }
26277
    }
27090
    }
26278
 
27091
 
26279
    public getAlerts_args deepCopy() {
27092
    public markOrdersAsPickedUp_args deepCopy() {
26280
      return new getAlerts_args(this);
27093
      return new markOrdersAsPickedUp_args(this);
26281
    }
27094
    }
26282
 
27095
 
26283
    @Deprecated
27096
    @Deprecated
26284
    public getAlerts_args clone() {
27097
    public markOrdersAsPickedUp_args clone() {
26285
      return new getAlerts_args(this);
27098
      return new markOrdersAsPickedUp_args(this);
26286
    }
27099
    }
26287
 
27100
 
26288
    public long getOrderId() {
27101
    public long getProviderId() {
26289
      return this.orderId;
27102
      return this.providerId;
26290
    }
27103
    }
26291
 
27104
 
26292
    public getAlerts_args setOrderId(long orderId) {
27105
    public markOrdersAsPickedUp_args setProviderId(long providerId) {
26293
      this.orderId = orderId;
27106
      this.providerId = providerId;
26294
      setOrderIdIsSet(true);
27107
      setProviderIdIsSet(true);
26295
      return this;
27108
      return this;
26296
    }
27109
    }
26297
 
27110
 
26298
    public void unsetOrderId() {
27111
    public void unsetProviderId() {
26299
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
27112
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
26300
    }
27113
    }
26301
 
27114
 
26302
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
27115
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
26303
    public boolean isSetOrderId() {
27116
    public boolean isSetProviderId() {
26304
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
27117
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
26305
    }
27118
    }
26306
 
27119
 
26307
    public void setOrderIdIsSet(boolean value) {
27120
    public void setProviderIdIsSet(boolean value) {
26308
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
27121
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
26309
    }
27122
    }
26310
 
27123
 
26311
    public boolean isValid() {
27124
    public int getPickupDetailsSize() {
26312
      return this.valid;
27125
      return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();
26313
    }
27126
    }
26314
 
27127
 
26315
    public getAlerts_args setValid(boolean valid) {
27128
    public void putToPickupDetails(String key, String val) {
-
 
27129
      if (this.pickupDetails == null) {
-
 
27130
        this.pickupDetails = new HashMap<String,String>();
-
 
27131
      }
26316
      this.valid = valid;
27132
      this.pickupDetails.put(key, val);
-
 
27133
    }
-
 
27134
 
-
 
27135
    public Map<String,String> getPickupDetails() {
26317
      setValidIsSet(true);
27136
      return this.pickupDetails;
-
 
27137
    }
-
 
27138
 
-
 
27139
    public markOrdersAsPickedUp_args setPickupDetails(Map<String,String> pickupDetails) {
-
 
27140
      this.pickupDetails = pickupDetails;
26318
      return this;
27141
      return this;
26319
    }
27142
    }
26320
 
27143
 
26321
    public void unsetValid() {
27144
    public void unsetPickupDetails() {
26322
      __isset_bit_vector.clear(__VALID_ISSET_ID);
27145
      this.pickupDetails = null;
26323
    }
27146
    }
26324
 
27147
 
26325
    /** Returns true if field valid is set (has been asigned a value) and false otherwise */
27148
    /** Returns true if field pickupDetails is set (has been asigned a value) and false otherwise */
26326
    public boolean isSetValid() {
27149
    public boolean isSetPickupDetails() {
26327
      return __isset_bit_vector.get(__VALID_ISSET_ID);
27150
      return this.pickupDetails != null;
26328
    }
27151
    }
26329
 
27152
 
26330
    public void setValidIsSet(boolean value) {
27153
    public void setPickupDetailsIsSet(boolean value) {
-
 
27154
      if (!value) {
26331
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
27155
        this.pickupDetails = null;
-
 
27156
      }
26332
    }
27157
    }
26333
 
27158
 
26334
    public void setFieldValue(_Fields field, Object value) {
27159
    public void setFieldValue(_Fields field, Object value) {
26335
      switch (field) {
27160
      switch (field) {
26336
      case ORDER_ID:
27161
      case PROVIDER_ID:
26337
        if (value == null) {
27162
        if (value == null) {
26338
          unsetOrderId();
27163
          unsetProviderId();
26339
        } else {
27164
        } else {
26340
          setOrderId((Long)value);
27165
          setProviderId((Long)value);
26341
        }
27166
        }
26342
        break;
27167
        break;
26343
 
27168
 
26344
      case VALID:
27169
      case PICKUP_DETAILS:
26345
        if (value == null) {
27170
        if (value == null) {
26346
          unsetValid();
27171
          unsetPickupDetails();
26347
        } else {
27172
        } else {
26348
          setValid((Boolean)value);
27173
          setPickupDetails((Map<String,String>)value);
26349
        }
27174
        }
26350
        break;
27175
        break;
26351
 
27176
 
26352
      }
27177
      }
26353
    }
27178
    }
Line 26356... Line 27181...
26356
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
27181
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
26357
    }
27182
    }
26358
 
27183
 
26359
    public Object getFieldValue(_Fields field) {
27184
    public Object getFieldValue(_Fields field) {
26360
      switch (field) {
27185
      switch (field) {
26361
      case ORDER_ID:
27186
      case PROVIDER_ID:
26362
        return new Long(getOrderId());
27187
        return new Long(getProviderId());
26363
 
27188
 
26364
      case VALID:
27189
      case PICKUP_DETAILS:
26365
        return new Boolean(isValid());
27190
        return getPickupDetails();
26366
 
27191
 
26367
      }
27192
      }
26368
      throw new IllegalStateException();
27193
      throw new IllegalStateException();
26369
    }
27194
    }
26370
 
27195
 
Line 26373... Line 27198...
26373
    }
27198
    }
26374
 
27199
 
26375
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27200
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26376
    public boolean isSet(_Fields field) {
27201
    public boolean isSet(_Fields field) {
26377
      switch (field) {
27202
      switch (field) {
26378
      case ORDER_ID:
27203
      case PROVIDER_ID:
26379
        return isSetOrderId();
27204
        return isSetProviderId();
26380
      case VALID:
27205
      case PICKUP_DETAILS:
26381
        return isSetValid();
27206
        return isSetPickupDetails();
26382
      }
27207
      }
26383
      throw new IllegalStateException();
27208
      throw new IllegalStateException();
26384
    }
27209
    }
26385
 
27210
 
26386
    public boolean isSet(int fieldID) {
27211
    public boolean isSet(int fieldID) {
Line 26389... Line 27214...
26389
 
27214
 
26390
    @Override
27215
    @Override
26391
    public boolean equals(Object that) {
27216
    public boolean equals(Object that) {
26392
      if (that == null)
27217
      if (that == null)
26393
        return false;
27218
        return false;
26394
      if (that instanceof getAlerts_args)
27219
      if (that instanceof markOrdersAsPickedUp_args)
26395
        return this.equals((getAlerts_args)that);
27220
        return this.equals((markOrdersAsPickedUp_args)that);
26396
      return false;
27221
      return false;
26397
    }
27222
    }
26398
 
27223
 
26399
    public boolean equals(getAlerts_args that) {
27224
    public boolean equals(markOrdersAsPickedUp_args that) {
26400
      if (that == null)
27225
      if (that == null)
26401
        return false;
27226
        return false;
26402
 
27227
 
26403
      boolean this_present_orderId = true;
27228
      boolean this_present_providerId = true;
26404
      boolean that_present_orderId = true;
27229
      boolean that_present_providerId = true;
26405
      if (this_present_orderId || that_present_orderId) {
27230
      if (this_present_providerId || that_present_providerId) {
26406
        if (!(this_present_orderId && that_present_orderId))
27231
        if (!(this_present_providerId && that_present_providerId))
26407
          return false;
27232
          return false;
26408
        if (this.orderId != that.orderId)
27233
        if (this.providerId != that.providerId)
26409
          return false;
27234
          return false;
26410
      }
27235
      }
26411
 
27236
 
26412
      boolean this_present_valid = true;
27237
      boolean this_present_pickupDetails = true && this.isSetPickupDetails();
26413
      boolean that_present_valid = true;
27238
      boolean that_present_pickupDetails = true && that.isSetPickupDetails();
26414
      if (this_present_valid || that_present_valid) {
27239
      if (this_present_pickupDetails || that_present_pickupDetails) {
26415
        if (!(this_present_valid && that_present_valid))
27240
        if (!(this_present_pickupDetails && that_present_pickupDetails))
26416
          return false;
27241
          return false;
26417
        if (this.valid != that.valid)
27242
        if (!this.pickupDetails.equals(that.pickupDetails))
26418
          return false;
27243
          return false;
26419
      }
27244
      }
26420
 
27245
 
26421
      return true;
27246
      return true;
26422
    }
27247
    }
Line 26424... Line 27249...
26424
    @Override
27249
    @Override
26425
    public int hashCode() {
27250
    public int hashCode() {
26426
      return 0;
27251
      return 0;
26427
    }
27252
    }
26428
 
27253
 
26429
    public int compareTo(getAlerts_args other) {
-
 
26430
      if (!getClass().equals(other.getClass())) {
-
 
26431
        return getClass().getName().compareTo(other.getClass().getName());
-
 
26432
      }
-
 
26433
 
-
 
26434
      int lastComparison = 0;
-
 
26435
      getAlerts_args typedOther = (getAlerts_args)other;
-
 
26436
 
-
 
26437
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
26438
      if (lastComparison != 0) {
-
 
26439
        return lastComparison;
-
 
26440
      }
-
 
26441
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
26442
      if (lastComparison != 0) {
-
 
26443
        return lastComparison;
-
 
26444
      }
-
 
26445
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(isSetValid());
-
 
26446
      if (lastComparison != 0) {
-
 
26447
        return lastComparison;
-
 
26448
      }
-
 
26449
      lastComparison = TBaseHelper.compareTo(valid, typedOther.valid);
-
 
26450
      if (lastComparison != 0) {
-
 
26451
        return lastComparison;
-
 
26452
      }
-
 
26453
      return 0;
-
 
26454
    }
-
 
26455
 
-
 
26456
    public void read(TProtocol iprot) throws TException {
27254
    public void read(TProtocol iprot) throws TException {
26457
      TField field;
27255
      TField field;
26458
      iprot.readStructBegin();
27256
      iprot.readStructBegin();
26459
      while (true)
27257
      while (true)
26460
      {
27258
      {
Line 26465... Line 27263...
26465
        _Fields fieldId = _Fields.findByThriftId(field.id);
27263
        _Fields fieldId = _Fields.findByThriftId(field.id);
26466
        if (fieldId == null) {
27264
        if (fieldId == null) {
26467
          TProtocolUtil.skip(iprot, field.type);
27265
          TProtocolUtil.skip(iprot, field.type);
26468
        } else {
27266
        } else {
26469
          switch (fieldId) {
27267
          switch (fieldId) {
26470
            case ORDER_ID:
27268
            case PROVIDER_ID:
26471
              if (field.type == TType.I64) {
27269
              if (field.type == TType.I64) {
26472
                this.orderId = iprot.readI64();
27270
                this.providerId = iprot.readI64();
26473
                setOrderIdIsSet(true);
27271
                setProviderIdIsSet(true);
26474
              } else { 
27272
              } else { 
26475
                TProtocolUtil.skip(iprot, field.type);
27273
                TProtocolUtil.skip(iprot, field.type);
26476
              }
27274
              }
26477
              break;
27275
              break;
26478
            case VALID:
27276
            case PICKUP_DETAILS:
26479
              if (field.type == TType.BOOL) {
27277
              if (field.type == TType.MAP) {
-
 
27278
                {
-
 
27279
                  TMap _map64 = iprot.readMapBegin();
-
 
27280
                  this.pickupDetails = new HashMap<String,String>(2*_map64.size);
-
 
27281
                  for (int _i65 = 0; _i65 < _map64.size; ++_i65)
-
 
27282
                  {
-
 
27283
                    String _key66;
-
 
27284
                    String _val67;
-
 
27285
                    _key66 = iprot.readString();
26480
                this.valid = iprot.readBool();
27286
                    _val67 = iprot.readString();
-
 
27287
                    this.pickupDetails.put(_key66, _val67);
-
 
27288
                  }
26481
                setValidIsSet(true);
27289
                  iprot.readMapEnd();
-
 
27290
                }
26482
              } else { 
27291
              } else { 
26483
                TProtocolUtil.skip(iprot, field.type);
27292
                TProtocolUtil.skip(iprot, field.type);
26484
              }
27293
              }
26485
              break;
27294
              break;
26486
          }
27295
          }
Line 26493... Line 27302...
26493
 
27302
 
26494
    public void write(TProtocol oprot) throws TException {
27303
    public void write(TProtocol oprot) throws TException {
26495
      validate();
27304
      validate();
26496
 
27305
 
26497
      oprot.writeStructBegin(STRUCT_DESC);
27306
      oprot.writeStructBegin(STRUCT_DESC);
26498
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
27307
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
26499
      oprot.writeI64(this.orderId);
27308
      oprot.writeI64(this.providerId);
26500
      oprot.writeFieldEnd();
-
 
26501
      oprot.writeFieldBegin(VALID_FIELD_DESC);
-
 
26502
      oprot.writeBool(this.valid);
-
 
26503
      oprot.writeFieldEnd();
27309
      oprot.writeFieldEnd();
-
 
27310
      if (this.pickupDetails != null) {
-
 
27311
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
-
 
27312
        {
-
 
27313
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
-
 
27314
          for (Map.Entry<String, String> _iter68 : this.pickupDetails.entrySet())
-
 
27315
          {
-
 
27316
            oprot.writeString(_iter68.getKey());
-
 
27317
            oprot.writeString(_iter68.getValue());
-
 
27318
          }
-
 
27319
          oprot.writeMapEnd();
-
 
27320
        }
-
 
27321
        oprot.writeFieldEnd();
-
 
27322
      }
26504
      oprot.writeFieldStop();
27323
      oprot.writeFieldStop();
26505
      oprot.writeStructEnd();
27324
      oprot.writeStructEnd();
26506
    }
27325
    }
26507
 
27326
 
26508
    @Override
27327
    @Override
26509
    public String toString() {
27328
    public String toString() {
26510
      StringBuilder sb = new StringBuilder("getAlerts_args(");
27329
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_args(");
26511
      boolean first = true;
27330
      boolean first = true;
26512
 
27331
 
26513
      sb.append("orderId:");
27332
      sb.append("providerId:");
26514
      sb.append(this.orderId);
27333
      sb.append(this.providerId);
26515
      first = false;
27334
      first = false;
26516
      if (!first) sb.append(", ");
27335
      if (!first) sb.append(", ");
-
 
27336
      sb.append("pickupDetails:");
-
 
27337
      if (this.pickupDetails == null) {
26517
      sb.append("valid:");
27338
        sb.append("null");
-
 
27339
      } else {
26518
      sb.append(this.valid);
27340
        sb.append(this.pickupDetails);
-
 
27341
      }
26519
      first = false;
27342
      first = false;
26520
      sb.append(")");
27343
      sb.append(")");
26521
      return sb.toString();
27344
      return sb.toString();
26522
    }
27345
    }
26523
 
27346
 
Line 26525... Line 27348...
26525
      // check for required fields
27348
      // check for required fields
26526
    }
27349
    }
26527
 
27350
 
26528
  }
27351
  }
26529
 
27352
 
26530
  public static class getAlerts_result implements TBase<getAlerts_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_result>   {
27353
  public static class markOrdersAsPickedUp_result implements TBase<markOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsPickedUp_result>   {
26531
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_result");
27354
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsPickedUp_result");
26532
 
27355
 
26533
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
27356
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
27357
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
26534
 
27358
 
26535
    private List<Alert> success;
27359
    private List<Order> success;
-
 
27360
    private TransactionServiceException ex;
26536
 
27361
 
26537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27362
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26538
    public enum _Fields implements TFieldIdEnum {
27363
    public enum _Fields implements TFieldIdEnum {
26539
      SUCCESS((short)0, "success");
27364
      SUCCESS((short)0, "success"),
-
 
27365
      EX((short)1, "ex");
26540
 
27366
 
26541
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27367
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27368
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26543
 
27369
 
26544
      static {
27370
      static {
Line 26592... Line 27418...
26592
    // isset id assignments
27418
    // isset id assignments
26593
 
27419
 
26594
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27420
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26595
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
27421
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
26596
          new ListMetaData(TType.LIST, 
27422
          new ListMetaData(TType.LIST, 
26597
              new StructMetaData(TType.STRUCT, Alert.class))));
27423
              new StructMetaData(TType.STRUCT, Order.class))));
-
 
27424
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
27425
          new FieldValueMetaData(TType.STRUCT)));
26598
    }});
27426
    }});
26599
 
27427
 
26600
    static {
27428
    static {
26601
      FieldMetaData.addStructMetaDataMap(getAlerts_result.class, metaDataMap);
27429
      FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_result.class, metaDataMap);
26602
    }
27430
    }
26603
 
27431
 
26604
    public getAlerts_result() {
27432
    public markOrdersAsPickedUp_result() {
26605
    }
27433
    }
26606
 
27434
 
26607
    public getAlerts_result(
27435
    public markOrdersAsPickedUp_result(
26608
      List<Alert> success)
27436
      List<Order> success,
-
 
27437
      TransactionServiceException ex)
26609
    {
27438
    {
26610
      this();
27439
      this();
26611
      this.success = success;
27440
      this.success = success;
-
 
27441
      this.ex = ex;
26612
    }
27442
    }
26613
 
27443
 
26614
    /**
27444
    /**
26615
     * Performs a deep copy on <i>other</i>.
27445
     * Performs a deep copy on <i>other</i>.
26616
     */
27446
     */
26617
    public getAlerts_result(getAlerts_result other) {
27447
    public markOrdersAsPickedUp_result(markOrdersAsPickedUp_result other) {
26618
      if (other.isSetSuccess()) {
27448
      if (other.isSetSuccess()) {
26619
        List<Alert> __this__success = new ArrayList<Alert>();
27449
        List<Order> __this__success = new ArrayList<Order>();
26620
        for (Alert other_element : other.success) {
27450
        for (Order other_element : other.success) {
26621
          __this__success.add(new Alert(other_element));
27451
          __this__success.add(new Order(other_element));
26622
        }
27452
        }
26623
        this.success = __this__success;
27453
        this.success = __this__success;
26624
      }
27454
      }
-
 
27455
      if (other.isSetEx()) {
-
 
27456
        this.ex = new TransactionServiceException(other.ex);
-
 
27457
      }
26625
    }
27458
    }
26626
 
27459
 
26627
    public getAlerts_result deepCopy() {
27460
    public markOrdersAsPickedUp_result deepCopy() {
26628
      return new getAlerts_result(this);
27461
      return new markOrdersAsPickedUp_result(this);
26629
    }
27462
    }
26630
 
27463
 
26631
    @Deprecated
27464
    @Deprecated
26632
    public getAlerts_result clone() {
27465
    public markOrdersAsPickedUp_result clone() {
26633
      return new getAlerts_result(this);
27466
      return new markOrdersAsPickedUp_result(this);
26634
    }
27467
    }
26635
 
27468
 
26636
    public int getSuccessSize() {
27469
    public int getSuccessSize() {
26637
      return (this.success == null) ? 0 : this.success.size();
27470
      return (this.success == null) ? 0 : this.success.size();
26638
    }
27471
    }
26639
 
27472
 
26640
    public java.util.Iterator<Alert> getSuccessIterator() {
27473
    public java.util.Iterator<Order> getSuccessIterator() {
26641
      return (this.success == null) ? null : this.success.iterator();
27474
      return (this.success == null) ? null : this.success.iterator();
26642
    }
27475
    }
26643
 
27476
 
26644
    public void addToSuccess(Alert elem) {
27477
    public void addToSuccess(Order elem) {
26645
      if (this.success == null) {
27478
      if (this.success == null) {
26646
        this.success = new ArrayList<Alert>();
27479
        this.success = new ArrayList<Order>();
26647
      }
27480
      }
26648
      this.success.add(elem);
27481
      this.success.add(elem);
26649
    }
27482
    }
26650
 
27483
 
26651
    public List<Alert> getSuccess() {
27484
    public List<Order> getSuccess() {
26652
      return this.success;
27485
      return this.success;
26653
    }
27486
    }
26654
 
27487
 
26655
    public getAlerts_result setSuccess(List<Alert> success) {
27488
    public markOrdersAsPickedUp_result setSuccess(List<Order> success) {
26656
      this.success = success;
27489
      this.success = success;
26657
      return this;
27490
      return this;
26658
    }
27491
    }
26659
 
27492
 
26660
    public void unsetSuccess() {
27493
    public void unsetSuccess() {
Line 26670... Line 27503...
26670
      if (!value) {
27503
      if (!value) {
26671
        this.success = null;
27504
        this.success = null;
26672
      }
27505
      }
26673
    }
27506
    }
26674
 
27507
 
-
 
27508
    public TransactionServiceException getEx() {
-
 
27509
      return this.ex;
-
 
27510
    }
-
 
27511
 
-
 
27512
    public markOrdersAsPickedUp_result setEx(TransactionServiceException ex) {
-
 
27513
      this.ex = ex;
-
 
27514
      return this;
-
 
27515
    }
-
 
27516
 
-
 
27517
    public void unsetEx() {
-
 
27518
      this.ex = null;
-
 
27519
    }
-
 
27520
 
-
 
27521
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
27522
    public boolean isSetEx() {
-
 
27523
      return this.ex != null;
-
 
27524
    }
-
 
27525
 
-
 
27526
    public void setExIsSet(boolean value) {
-
 
27527
      if (!value) {
-
 
27528
        this.ex = null;
-
 
27529
      }
-
 
27530
    }
-
 
27531
 
26675
    public void setFieldValue(_Fields field, Object value) {
27532
    public void setFieldValue(_Fields field, Object value) {
26676
      switch (field) {
27533
      switch (field) {
26677
      case SUCCESS:
27534
      case SUCCESS:
26678
        if (value == null) {
27535
        if (value == null) {
26679
          unsetSuccess();
27536
          unsetSuccess();
26680
        } else {
27537
        } else {
26681
          setSuccess((List<Alert>)value);
27538
          setSuccess((List<Order>)value);
-
 
27539
        }
-
 
27540
        break;
-
 
27541
 
-
 
27542
      case EX:
-
 
27543
        if (value == null) {
-
 
27544
          unsetEx();
-
 
27545
        } else {
-
 
27546
          setEx((TransactionServiceException)value);
26682
        }
27547
        }
26683
        break;
27548
        break;
26684
 
27549
 
26685
      }
27550
      }
26686
    }
27551
    }
Line 26692... Line 27557...
26692
    public Object getFieldValue(_Fields field) {
27557
    public Object getFieldValue(_Fields field) {
26693
      switch (field) {
27558
      switch (field) {
26694
      case SUCCESS:
27559
      case SUCCESS:
26695
        return getSuccess();
27560
        return getSuccess();
26696
 
27561
 
-
 
27562
      case EX:
-
 
27563
        return getEx();
-
 
27564
 
26697
      }
27565
      }
26698
      throw new IllegalStateException();
27566
      throw new IllegalStateException();
26699
    }
27567
    }
26700
 
27568
 
26701
    public Object getFieldValue(int fieldId) {
27569
    public Object getFieldValue(int fieldId) {
Line 26705... Line 27573...
26705
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27573
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
26706
    public boolean isSet(_Fields field) {
27574
    public boolean isSet(_Fields field) {
26707
      switch (field) {
27575
      switch (field) {
26708
      case SUCCESS:
27576
      case SUCCESS:
26709
        return isSetSuccess();
27577
        return isSetSuccess();
-
 
27578
      case EX:
-
 
27579
        return isSetEx();
26710
      }
27580
      }
26711
      throw new IllegalStateException();
27581
      throw new IllegalStateException();
26712
    }
27582
    }
26713
 
27583
 
26714
    public boolean isSet(int fieldID) {
27584
    public boolean isSet(int fieldID) {
Line 26717... Line 27587...
26717
 
27587
 
26718
    @Override
27588
    @Override
26719
    public boolean equals(Object that) {
27589
    public boolean equals(Object that) {
26720
      if (that == null)
27590
      if (that == null)
26721
        return false;
27591
        return false;
26722
      if (that instanceof getAlerts_result)
27592
      if (that instanceof markOrdersAsPickedUp_result)
26723
        return this.equals((getAlerts_result)that);
27593
        return this.equals((markOrdersAsPickedUp_result)that);
26724
      return false;
27594
      return false;
26725
    }
27595
    }
26726
 
27596
 
26727
    public boolean equals(getAlerts_result that) {
27597
    public boolean equals(markOrdersAsPickedUp_result that) {
26728
      if (that == null)
27598
      if (that == null)
26729
        return false;
27599
        return false;
26730
 
27600
 
26731
      boolean this_present_success = true && this.isSetSuccess();
27601
      boolean this_present_success = true && this.isSetSuccess();
26732
      boolean that_present_success = true && that.isSetSuccess();
27602
      boolean that_present_success = true && that.isSetSuccess();
Line 26735... Line 27605...
26735
          return false;
27605
          return false;
26736
        if (!this.success.equals(that.success))
27606
        if (!this.success.equals(that.success))
26737
          return false;
27607
          return false;
26738
      }
27608
      }
26739
 
27609
 
-
 
27610
      boolean this_present_ex = true && this.isSetEx();
-
 
27611
      boolean that_present_ex = true && that.isSetEx();
-
 
27612
      if (this_present_ex || that_present_ex) {
-
 
27613
        if (!(this_present_ex && that_present_ex))
-
 
27614
          return false;
-
 
27615
        if (!this.ex.equals(that.ex))
-
 
27616
          return false;
-
 
27617
      }
-
 
27618
 
26740
      return true;
27619
      return true;
26741
    }
27620
    }
26742
 
27621
 
26743
    @Override
27622
    @Override
26744
    public int hashCode() {
27623
    public int hashCode() {
26745
      return 0;
27624
      return 0;
26746
    }
27625
    }
26747
 
27626
 
26748
    public int compareTo(getAlerts_result other) {
27627
    public int compareTo(markOrdersAsPickedUp_result other) {
26749
      if (!getClass().equals(other.getClass())) {
27628
      if (!getClass().equals(other.getClass())) {
26750
        return getClass().getName().compareTo(other.getClass().getName());
27629
        return getClass().getName().compareTo(other.getClass().getName());
26751
      }
27630
      }
26752
 
27631
 
26753
      int lastComparison = 0;
27632
      int lastComparison = 0;
26754
      getAlerts_result typedOther = (getAlerts_result)other;
27633
      markOrdersAsPickedUp_result typedOther = (markOrdersAsPickedUp_result)other;
26755
 
27634
 
26756
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
27635
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
26757
      if (lastComparison != 0) {
27636
      if (lastComparison != 0) {
26758
        return lastComparison;
27637
        return lastComparison;
26759
      }
27638
      }
26760
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
27639
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
26761
      if (lastComparison != 0) {
27640
      if (lastComparison != 0) {
26762
        return lastComparison;
27641
        return lastComparison;
26763
      }
27642
      }
-
 
27643
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
27644
      if (lastComparison != 0) {
-
 
27645
        return lastComparison;
-
 
27646
      }
-
 
27647
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
27648
      if (lastComparison != 0) {
-
 
27649
        return lastComparison;
-
 
27650
      }
26764
      return 0;
27651
      return 0;
26765
    }
27652
    }
26766
 
27653
 
26767
    public void read(TProtocol iprot) throws TException {
27654
    public void read(TProtocol iprot) throws TException {
26768
      TField field;
27655
      TField field;
Line 26779... Line 27666...
26779
        } else {
27666
        } else {
26780
          switch (fieldId) {
27667
          switch (fieldId) {
26781
            case SUCCESS:
27668
            case SUCCESS:
26782
              if (field.type == TType.LIST) {
27669
              if (field.type == TType.LIST) {
26783
                {
27670
                {
26784
                  TList _list80 = iprot.readListBegin();
27671
                  TList _list69 = iprot.readListBegin();
26785
                  this.success = new ArrayList<Alert>(_list80.size);
27672
                  this.success = new ArrayList<Order>(_list69.size);
26786
                  for (int _i81 = 0; _i81 < _list80.size; ++_i81)
27673
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
26787
                  {
27674
                  {
26788
                    Alert _elem82;
27675
                    Order _elem71;
26789
                    _elem82 = new Alert();
27676
                    _elem71 = new Order();
26790
                    _elem82.read(iprot);
27677
                    _elem71.read(iprot);
26791
                    this.success.add(_elem82);
27678
                    this.success.add(_elem71);
26792
                  }
27679
                  }
26793
                  iprot.readListEnd();
27680
                  iprot.readListEnd();
26794
                }
27681
                }
26795
              } else { 
27682
              } else { 
26796
                TProtocolUtil.skip(iprot, field.type);
27683
                TProtocolUtil.skip(iprot, field.type);
26797
              }
27684
              }
26798
              break;
27685
              break;
-
 
27686
            case EX:
-
 
27687
              if (field.type == TType.STRUCT) {
-
 
27688
                this.ex = new TransactionServiceException();
-
 
27689
                this.ex.read(iprot);
-
 
27690
              } else { 
-
 
27691
                TProtocolUtil.skip(iprot, field.type);
-
 
27692
              }
-
 
27693
              break;
26799
          }
27694
          }
26800
          iprot.readFieldEnd();
27695
          iprot.readFieldEnd();
26801
        }
27696
        }
26802
      }
27697
      }
26803
      iprot.readStructEnd();
27698
      iprot.readStructEnd();
Line 26809... Line 27704...
26809
 
27704
 
26810
      if (this.isSetSuccess()) {
27705
      if (this.isSetSuccess()) {
26811
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27706
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26812
        {
27707
        {
26813
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
27708
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
26814
          for (Alert _iter83 : this.success)
27709
          for (Order _iter72 : this.success)
26815
          {
27710
          {
26816
            _iter83.write(oprot);
27711
            _iter72.write(oprot);
26817
          }
27712
          }
26818
          oprot.writeListEnd();
27713
          oprot.writeListEnd();
26819
        }
27714
        }
26820
        oprot.writeFieldEnd();
27715
        oprot.writeFieldEnd();
-
 
27716
      } else if (this.isSetEx()) {
-
 
27717
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
27718
        this.ex.write(oprot);
-
 
27719
        oprot.writeFieldEnd();
26821
      }
27720
      }
26822
      oprot.writeFieldStop();
27721
      oprot.writeFieldStop();
26823
      oprot.writeStructEnd();
27722
      oprot.writeStructEnd();
26824
    }
27723
    }
26825
 
27724
 
26826
    @Override
27725
    @Override
26827
    public String toString() {
27726
    public String toString() {
26828
      StringBuilder sb = new StringBuilder("getAlerts_result(");
27727
      StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_result(");
26829
      boolean first = true;
27728
      boolean first = true;
26830
 
27729
 
26831
      sb.append("success:");
27730
      sb.append("success:");
26832
      if (this.success == null) {
27731
      if (this.success == null) {
26833
        sb.append("null");
27732
        sb.append("null");
26834
      } else {
27733
      } else {
26835
        sb.append(this.success);
27734
        sb.append(this.success);
26836
      }
27735
      }
26837
      first = false;
27736
      first = false;
-
 
27737
      if (!first) sb.append(", ");
-
 
27738
      sb.append("ex:");
-
 
27739
      if (this.ex == null) {
-
 
27740
        sb.append("null");
-
 
27741
      } else {
-
 
27742
        sb.append(this.ex);
-
 
27743
      }
-
 
27744
      first = false;
26838
      sb.append(")");
27745
      sb.append(")");
26839
      return sb.toString();
27746
      return sb.toString();
26840
    }
27747
    }
26841
 
27748
 
26842
    public void validate() throws TException {
27749
    public void validate() throws TException {
26843
      // check for required fields
27750
      // check for required fields
26844
    }
27751
    }
26845
 
27752
 
26846
  }
27753
  }
26847
 
27754
 
26848
  public static class setAlert_args implements TBase<setAlert_args._Fields>, java.io.Serializable, Cloneable, Comparable<setAlert_args>   {
27755
  public static class markOrdersAsDelivered_args implements TBase<markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
26849
    private static final TStruct STRUCT_DESC = new TStruct("setAlert_args");
27756
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsDelivered_args");
26850
 
27757
 
26851
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
27758
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
26852
    private static final TField UNSET_FIELD_DESC = new TField("unset", TType.BOOL, (short)2);
27759
    private static final TField DELIVERED_ORDERS_FIELD_DESC = new TField("deliveredOrders", TType.MAP, (short)2);
26853
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I64, (short)3);
-
 
26854
    private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)4);
-
 
26855
 
27760
 
26856
    private long orderId;
27761
    private long providerId;
26857
    private boolean unset;
-
 
26858
    private long type;
-
 
26859
    private String comment;
27762
    private Map<String,String> deliveredOrders;
26860
 
27763
 
26861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27764
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26862
    public enum _Fields implements TFieldIdEnum {
27765
    public enum _Fields implements TFieldIdEnum {
26863
      ORDER_ID((short)1, "orderId"),
27766
      PROVIDER_ID((short)1, "providerId"),
26864
      UNSET((short)2, "unset"),
-
 
26865
      TYPE((short)3, "type"),
-
 
26866
      COMMENT((short)4, "comment");
27767
      DELIVERED_ORDERS((short)2, "deliveredOrders");
26867
 
27768
 
26868
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27769
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
26869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26870
 
27771
 
26871
      static {
27772
      static {
Line 26915... Line 27816...
26915
        return _fieldName;
27816
        return _fieldName;
26916
      }
27817
      }
26917
    }
27818
    }
26918
 
27819
 
26919
    // isset id assignments
27820
    // isset id assignments
26920
    private static final int __ORDERID_ISSET_ID = 0;
27821
    private static final int __PROVIDERID_ISSET_ID = 0;
26921
    private static final int __UNSET_ISSET_ID = 1;
-
 
26922
    private static final int __TYPE_ISSET_ID = 2;
-
 
26923
    private BitSet __isset_bit_vector = new BitSet(3);
27822
    private BitSet __isset_bit_vector = new BitSet(1);
26924
 
27823
 
26925
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27824
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
26926
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
27825
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
26927
          new FieldValueMetaData(TType.I64)));
-
 
26928
      put(_Fields.UNSET, new FieldMetaData("unset", TFieldRequirementType.DEFAULT, 
-
 
26929
          new FieldValueMetaData(TType.BOOL)));
-
 
26930
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
26931
          new FieldValueMetaData(TType.I64)));
27826
          new FieldValueMetaData(TType.I64)));
26932
      put(_Fields.COMMENT, new FieldMetaData("comment", TFieldRequirementType.DEFAULT, 
27827
      put(_Fields.DELIVERED_ORDERS, new FieldMetaData("deliveredOrders", TFieldRequirementType.DEFAULT, 
-
 
27828
          new MapMetaData(TType.MAP, 
-
 
27829
              new FieldValueMetaData(TType.STRING), 
26933
          new FieldValueMetaData(TType.STRING)));
27830
              new FieldValueMetaData(TType.STRING))));
26934
    }});
27831
    }});
26935
 
27832
 
26936
    static {
27833
    static {
26937
      FieldMetaData.addStructMetaDataMap(setAlert_args.class, metaDataMap);
27834
      FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);
26938
    }
27835
    }
26939
 
27836
 
26940
    public setAlert_args() {
27837
    public markOrdersAsDelivered_args() {
26941
    }
27838
    }
26942
 
27839
 
26943
    public setAlert_args(
27840
    public markOrdersAsDelivered_args(
26944
      long orderId,
27841
      long providerId,
26945
      boolean unset,
-
 
26946
      long type,
-
 
26947
      String comment)
27842
      Map<String,String> deliveredOrders)
26948
    {
27843
    {
26949
      this();
27844
      this();
26950
      this.orderId = orderId;
27845
      this.providerId = providerId;
26951
      setOrderIdIsSet(true);
27846
      setProviderIdIsSet(true);
26952
      this.unset = unset;
-
 
26953
      setUnsetIsSet(true);
-
 
26954
      this.type = type;
-
 
26955
      setTypeIsSet(true);
-
 
26956
      this.comment = comment;
27847
      this.deliveredOrders = deliveredOrders;
26957
    }
27848
    }
26958
 
27849
 
26959
    /**
27850
    /**
26960
     * Performs a deep copy on <i>other</i>.
27851
     * Performs a deep copy on <i>other</i>.
26961
     */
27852
     */
26962
    public setAlert_args(setAlert_args other) {
27853
    public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {
26963
      __isset_bit_vector.clear();
27854
      __isset_bit_vector.clear();
26964
      __isset_bit_vector.or(other.__isset_bit_vector);
27855
      __isset_bit_vector.or(other.__isset_bit_vector);
26965
      this.orderId = other.orderId;
27856
      this.providerId = other.providerId;
26966
      this.unset = other.unset;
-
 
26967
      this.type = other.type;
-
 
26968
      if (other.isSetComment()) {
27857
      if (other.isSetDeliveredOrders()) {
26969
        this.comment = other.comment;
27858
        Map<String,String> __this__deliveredOrders = new HashMap<String,String>();
26970
      }
-
 
26971
    }
-
 
26972
 
-
 
26973
    public setAlert_args deepCopy() {
-
 
26974
      return new setAlert_args(this);
27859
        for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {
26975
    }
-
 
26976
 
27860
 
26977
    @Deprecated
-
 
26978
    public setAlert_args clone() {
27861
          String other_element_key = other_element.getKey();
26979
      return new setAlert_args(this);
27862
          String other_element_value = other_element.getValue();
26980
    }
-
 
26981
 
27863
 
26982
    public long getOrderId() {
-
 
26983
      return this.orderId;
27864
          String __this__deliveredOrders_copy_key = other_element_key;
26984
    }
-
 
26985
 
27865
 
26986
    public setAlert_args setOrderId(long orderId) {
27866
          String __this__deliveredOrders_copy_value = other_element_value;
26987
      this.orderId = orderId;
-
 
26988
      setOrderIdIsSet(true);
-
 
26989
      return this;
-
 
26990
    }
-
 
26991
 
27867
 
-
 
27868
          __this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);
26992
    public void unsetOrderId() {
27869
        }
26993
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
27870
        this.deliveredOrders = __this__deliveredOrders;
-
 
27871
      }
26994
    }
27872
    }
26995
 
27873
 
26996
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
26997
    public boolean isSetOrderId() {
27874
    public markOrdersAsDelivered_args deepCopy() {
26998
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
27875
      return new markOrdersAsDelivered_args(this);
26999
    }
27876
    }
27000
 
27877
 
-
 
27878
    @Deprecated
27001
    public void setOrderIdIsSet(boolean value) {
27879
    public markOrdersAsDelivered_args clone() {
27002
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
27880
      return new markOrdersAsDelivered_args(this);
27003
    }
27881
    }
27004
 
27882
 
27005
    public boolean isUnset() {
27883
    public long getProviderId() {
27006
      return this.unset;
27884
      return this.providerId;
27007
    }
27885
    }
27008
 
27886
 
27009
    public setAlert_args setUnset(boolean unset) {
27887
    public markOrdersAsDelivered_args setProviderId(long providerId) {
27010
      this.unset = unset;
27888
      this.providerId = providerId;
27011
      setUnsetIsSet(true);
27889
      setProviderIdIsSet(true);
27012
      return this;
27890
      return this;
27013
    }
27891
    }
27014
 
27892
 
27015
    public void unsetUnset() {
27893
    public void unsetProviderId() {
27016
      __isset_bit_vector.clear(__UNSET_ISSET_ID);
27894
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
27017
    }
-
 
27018
 
-
 
27019
    /** Returns true if field unset is set (has been asigned a value) and false otherwise */
-
 
27020
    public boolean isSetUnset() {
-
 
27021
      return __isset_bit_vector.get(__UNSET_ISSET_ID);
-
 
27022
    }
-
 
27023
 
-
 
27024
    public void setUnsetIsSet(boolean value) {
-
 
27025
      __isset_bit_vector.set(__UNSET_ISSET_ID, value);
-
 
27026
    }
-
 
27027
 
-
 
27028
    public long getType() {
-
 
27029
      return this.type;
-
 
27030
    }
27895
    }
27031
 
27896
 
27032
    public setAlert_args setType(long type) {
27897
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
27033
      this.type = type;
-
 
27034
      setTypeIsSet(true);
27898
    public boolean isSetProviderId() {
27035
      return this;
27899
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
27036
    }
27900
    }
27037
 
27901
 
27038
    public void unsetType() {
27902
    public void setProviderIdIsSet(boolean value) {
27039
      __isset_bit_vector.clear(__TYPE_ISSET_ID);
27903
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
27040
    }
27904
    }
27041
 
27905
 
27042
    /** Returns true if field type is set (has been asigned a value) and false otherwise */
-
 
27043
    public boolean isSetType() {
27906
    public int getDeliveredOrdersSize() {
27044
      return __isset_bit_vector.get(__TYPE_ISSET_ID);
27907
      return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();
27045
    }
27908
    }
27046
 
27909
 
27047
    public void setTypeIsSet(boolean value) {
27910
    public void putToDeliveredOrders(String key, String val) {
-
 
27911
      if (this.deliveredOrders == null) {
-
 
27912
        this.deliveredOrders = new HashMap<String,String>();
-
 
27913
      }
27048
      __isset_bit_vector.set(__TYPE_ISSET_ID, value);
27914
      this.deliveredOrders.put(key, val);
27049
    }
27915
    }
27050
 
27916
 
27051
    public String getComment() {
27917
    public Map<String,String> getDeliveredOrders() {
27052
      return this.comment;
27918
      return this.deliveredOrders;
27053
    }
27919
    }
27054
 
27920
 
27055
    public setAlert_args setComment(String comment) {
27921
    public markOrdersAsDelivered_args setDeliveredOrders(Map<String,String> deliveredOrders) {
27056
      this.comment = comment;
27922
      this.deliveredOrders = deliveredOrders;
27057
      return this;
27923
      return this;
27058
    }
27924
    }
27059
 
27925
 
27060
    public void unsetComment() {
27926
    public void unsetDeliveredOrders() {
27061
      this.comment = null;
27927
      this.deliveredOrders = null;
27062
    }
27928
    }
27063
 
27929
 
27064
    /** Returns true if field comment is set (has been asigned a value) and false otherwise */
27930
    /** Returns true if field deliveredOrders is set (has been asigned a value) and false otherwise */
27065
    public boolean isSetComment() {
27931
    public boolean isSetDeliveredOrders() {
27066
      return this.comment != null;
27932
      return this.deliveredOrders != null;
27067
    }
27933
    }
27068
 
27934
 
27069
    public void setCommentIsSet(boolean value) {
27935
    public void setDeliveredOrdersIsSet(boolean value) {
27070
      if (!value) {
27936
      if (!value) {
27071
        this.comment = null;
27937
        this.deliveredOrders = null;
27072
      }
27938
      }
27073
    }
27939
    }
27074
 
27940
 
27075
    public void setFieldValue(_Fields field, Object value) {
27941
    public void setFieldValue(_Fields field, Object value) {
27076
      switch (field) {
27942
      switch (field) {
27077
      case ORDER_ID:
27943
      case PROVIDER_ID:
27078
        if (value == null) {
-
 
27079
          unsetOrderId();
-
 
27080
        } else {
-
 
27081
          setOrderId((Long)value);
-
 
27082
        }
-
 
27083
        break;
-
 
27084
 
-
 
27085
      case UNSET:
-
 
27086
        if (value == null) {
-
 
27087
          unsetUnset();
-
 
27088
        } else {
-
 
27089
          setUnset((Boolean)value);
-
 
27090
        }
-
 
27091
        break;
-
 
27092
 
-
 
27093
      case TYPE:
-
 
27094
        if (value == null) {
27944
        if (value == null) {
27095
          unsetType();
27945
          unsetProviderId();
27096
        } else {
27946
        } else {
27097
          setType((Long)value);
27947
          setProviderId((Long)value);
27098
        }
27948
        }
27099
        break;
27949
        break;
27100
 
27950
 
27101
      case COMMENT:
27951
      case DELIVERED_ORDERS:
27102
        if (value == null) {
27952
        if (value == null) {
27103
          unsetComment();
27953
          unsetDeliveredOrders();
27104
        } else {
27954
        } else {
27105
          setComment((String)value);
27955
          setDeliveredOrders((Map<String,String>)value);
27106
        }
27956
        }
27107
        break;
27957
        break;
27108
 
27958
 
27109
      }
27959
      }
27110
    }
27960
    }
Line 27113... Line 27963...
27113
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
27963
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
27114
    }
27964
    }
27115
 
27965
 
27116
    public Object getFieldValue(_Fields field) {
27966
    public Object getFieldValue(_Fields field) {
27117
      switch (field) {
27967
      switch (field) {
27118
      case ORDER_ID:
27968
      case PROVIDER_ID:
27119
        return new Long(getOrderId());
27969
        return new Long(getProviderId());
27120
 
-
 
27121
      case UNSET:
-
 
27122
        return new Boolean(isUnset());
-
 
27123
 
-
 
27124
      case TYPE:
-
 
27125
        return new Long(getType());
-
 
27126
 
27970
 
27127
      case COMMENT:
27971
      case DELIVERED_ORDERS:
27128
        return getComment();
27972
        return getDeliveredOrders();
27129
 
27973
 
27130
      }
27974
      }
27131
      throw new IllegalStateException();
27975
      throw new IllegalStateException();
27132
    }
27976
    }
27133
 
27977
 
Line 27136... Line 27980...
27136
    }
27980
    }
27137
 
27981
 
27138
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27982
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27139
    public boolean isSet(_Fields field) {
27983
    public boolean isSet(_Fields field) {
27140
      switch (field) {
27984
      switch (field) {
27141
      case ORDER_ID:
27985
      case PROVIDER_ID:
27142
        return isSetOrderId();
27986
        return isSetProviderId();
27143
      case UNSET:
-
 
27144
        return isSetUnset();
-
 
27145
      case TYPE:
-
 
27146
        return isSetType();
-
 
27147
      case COMMENT:
27987
      case DELIVERED_ORDERS:
27148
        return isSetComment();
27988
        return isSetDeliveredOrders();
27149
      }
27989
      }
27150
      throw new IllegalStateException();
27990
      throw new IllegalStateException();
27151
    }
27991
    }
27152
 
27992
 
27153
    public boolean isSet(int fieldID) {
27993
    public boolean isSet(int fieldID) {
Line 27156... Line 27996...
27156
 
27996
 
27157
    @Override
27997
    @Override
27158
    public boolean equals(Object that) {
27998
    public boolean equals(Object that) {
27159
      if (that == null)
27999
      if (that == null)
27160
        return false;
28000
        return false;
27161
      if (that instanceof setAlert_args)
28001
      if (that instanceof markOrdersAsDelivered_args)
27162
        return this.equals((setAlert_args)that);
28002
        return this.equals((markOrdersAsDelivered_args)that);
27163
      return false;
28003
      return false;
27164
    }
28004
    }
27165
 
28005
 
27166
    public boolean equals(setAlert_args that) {
28006
    public boolean equals(markOrdersAsDelivered_args that) {
27167
      if (that == null)
28007
      if (that == null)
27168
        return false;
28008
        return false;
27169
 
28009
 
27170
      boolean this_present_orderId = true;
28010
      boolean this_present_providerId = true;
27171
      boolean that_present_orderId = true;
28011
      boolean that_present_providerId = true;
27172
      if (this_present_orderId || that_present_orderId) {
28012
      if (this_present_providerId || that_present_providerId) {
27173
        if (!(this_present_orderId && that_present_orderId))
28013
        if (!(this_present_providerId && that_present_providerId))
27174
          return false;
-
 
27175
        if (this.orderId != that.orderId)
-
 
27176
          return false;
-
 
27177
      }
-
 
27178
 
-
 
27179
      boolean this_present_unset = true;
-
 
27180
      boolean that_present_unset = true;
-
 
27181
      if (this_present_unset || that_present_unset) {
-
 
27182
        if (!(this_present_unset && that_present_unset))
-
 
27183
          return false;
-
 
27184
        if (this.unset != that.unset)
-
 
27185
          return false;
-
 
27186
      }
-
 
27187
 
-
 
27188
      boolean this_present_type = true;
-
 
27189
      boolean that_present_type = true;
-
 
27190
      if (this_present_type || that_present_type) {
-
 
27191
        if (!(this_present_type && that_present_type))
-
 
27192
          return false;
28014
          return false;
27193
        if (this.type != that.type)
28015
        if (this.providerId != that.providerId)
27194
          return false;
28016
          return false;
27195
      }
28017
      }
27196
 
28018
 
27197
      boolean this_present_comment = true && this.isSetComment();
28019
      boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();
27198
      boolean that_present_comment = true && that.isSetComment();
28020
      boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();
27199
      if (this_present_comment || that_present_comment) {
28021
      if (this_present_deliveredOrders || that_present_deliveredOrders) {
27200
        if (!(this_present_comment && that_present_comment))
28022
        if (!(this_present_deliveredOrders && that_present_deliveredOrders))
27201
          return false;
28023
          return false;
27202
        if (!this.comment.equals(that.comment))
28024
        if (!this.deliveredOrders.equals(that.deliveredOrders))
27203
          return false;
28025
          return false;
27204
      }
28026
      }
27205
 
28027
 
27206
      return true;
28028
      return true;
27207
    }
28029
    }
Line 27209... Line 28031...
27209
    @Override
28031
    @Override
27210
    public int hashCode() {
28032
    public int hashCode() {
27211
      return 0;
28033
      return 0;
27212
    }
28034
    }
27213
 
28035
 
27214
    public int compareTo(setAlert_args other) {
-
 
27215
      if (!getClass().equals(other.getClass())) {
-
 
27216
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27217
      }
-
 
27218
 
-
 
27219
      int lastComparison = 0;
-
 
27220
      setAlert_args typedOther = (setAlert_args)other;
-
 
27221
 
-
 
27222
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
27223
      if (lastComparison != 0) {
-
 
27224
        return lastComparison;
-
 
27225
      }
-
 
27226
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
27227
      if (lastComparison != 0) {
-
 
27228
        return lastComparison;
-
 
27229
      }
-
 
27230
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(isSetUnset());
-
 
27231
      if (lastComparison != 0) {
-
 
27232
        return lastComparison;
-
 
27233
      }
-
 
27234
      lastComparison = TBaseHelper.compareTo(unset, typedOther.unset);
-
 
27235
      if (lastComparison != 0) {
-
 
27236
        return lastComparison;
-
 
27237
      }
-
 
27238
      lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
-
 
27239
      if (lastComparison != 0) {
-
 
27240
        return lastComparison;
-
 
27241
      }
-
 
27242
      lastComparison = TBaseHelper.compareTo(type, typedOther.type);
-
 
27243
      if (lastComparison != 0) {
-
 
27244
        return lastComparison;
-
 
27245
      }
-
 
27246
      lastComparison = Boolean.valueOf(isSetComment()).compareTo(isSetComment());
-
 
27247
      if (lastComparison != 0) {
-
 
27248
        return lastComparison;
-
 
27249
      }
-
 
27250
      lastComparison = TBaseHelper.compareTo(comment, typedOther.comment);
-
 
27251
      if (lastComparison != 0) {
-
 
27252
        return lastComparison;
-
 
27253
      }
-
 
27254
      return 0;
-
 
27255
    }
-
 
27256
 
-
 
27257
    public void read(TProtocol iprot) throws TException {
28036
    public void read(TProtocol iprot) throws TException {
27258
      TField field;
28037
      TField field;
27259
      iprot.readStructBegin();
28038
      iprot.readStructBegin();
27260
      while (true)
28039
      while (true)
27261
      {
28040
      {
Line 27266... Line 28045...
27266
        _Fields fieldId = _Fields.findByThriftId(field.id);
28045
        _Fields fieldId = _Fields.findByThriftId(field.id);
27267
        if (fieldId == null) {
28046
        if (fieldId == null) {
27268
          TProtocolUtil.skip(iprot, field.type);
28047
          TProtocolUtil.skip(iprot, field.type);
27269
        } else {
28048
        } else {
27270
          switch (fieldId) {
28049
          switch (fieldId) {
27271
            case ORDER_ID:
28050
            case PROVIDER_ID:
27272
              if (field.type == TType.I64) {
-
 
27273
                this.orderId = iprot.readI64();
-
 
27274
                setOrderIdIsSet(true);
-
 
27275
              } else { 
-
 
27276
                TProtocolUtil.skip(iprot, field.type);
-
 
27277
              }
-
 
27278
              break;
-
 
27279
            case UNSET:
-
 
27280
              if (field.type == TType.BOOL) {
-
 
27281
                this.unset = iprot.readBool();
-
 
27282
                setUnsetIsSet(true);
-
 
27283
              } else { 
-
 
27284
                TProtocolUtil.skip(iprot, field.type);
-
 
27285
              }
-
 
27286
              break;
-
 
27287
            case TYPE:
-
 
27288
              if (field.type == TType.I64) {
28051
              if (field.type == TType.I64) {
27289
                this.type = iprot.readI64();
28052
                this.providerId = iprot.readI64();
27290
                setTypeIsSet(true);
28053
                setProviderIdIsSet(true);
27291
              } else { 
28054
              } else { 
27292
                TProtocolUtil.skip(iprot, field.type);
28055
                TProtocolUtil.skip(iprot, field.type);
27293
              }
28056
              }
27294
              break;
28057
              break;
27295
            case COMMENT:
28058
            case DELIVERED_ORDERS:
27296
              if (field.type == TType.STRING) {
28059
              if (field.type == TType.MAP) {
-
 
28060
                {
-
 
28061
                  TMap _map73 = iprot.readMapBegin();
-
 
28062
                  this.deliveredOrders = new HashMap<String,String>(2*_map73.size);
-
 
28063
                  for (int _i74 = 0; _i74 < _map73.size; ++_i74)
-
 
28064
                  {
-
 
28065
                    String _key75;
-
 
28066
                    String _val76;
-
 
28067
                    _key75 = iprot.readString();
27297
                this.comment = iprot.readString();
28068
                    _val76 = iprot.readString();
-
 
28069
                    this.deliveredOrders.put(_key75, _val76);
-
 
28070
                  }
-
 
28071
                  iprot.readMapEnd();
-
 
28072
                }
27298
              } else { 
28073
              } else { 
27299
                TProtocolUtil.skip(iprot, field.type);
28074
                TProtocolUtil.skip(iprot, field.type);
27300
              }
28075
              }
27301
              break;
28076
              break;
27302
          }
28077
          }
Line 27309... Line 28084...
27309
 
28084
 
27310
    public void write(TProtocol oprot) throws TException {
28085
    public void write(TProtocol oprot) throws TException {
27311
      validate();
28086
      validate();
27312
 
28087
 
27313
      oprot.writeStructBegin(STRUCT_DESC);
28088
      oprot.writeStructBegin(STRUCT_DESC);
27314
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
28089
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
27315
      oprot.writeI64(this.orderId);
28090
      oprot.writeI64(this.providerId);
27316
      oprot.writeFieldEnd();
-
 
27317
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
-
 
27318
      oprot.writeBool(this.unset);
-
 
27319
      oprot.writeFieldEnd();
-
 
27320
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
27321
      oprot.writeI64(this.type);
-
 
27322
      oprot.writeFieldEnd();
28091
      oprot.writeFieldEnd();
27323
      if (this.comment != null) {
28092
      if (this.deliveredOrders != null) {
27324
        oprot.writeFieldBegin(COMMENT_FIELD_DESC);
28093
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
-
 
28094
        {
-
 
28095
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
-
 
28096
          for (Map.Entry<String, String> _iter77 : this.deliveredOrders.entrySet())
-
 
28097
          {
27325
        oprot.writeString(this.comment);
28098
            oprot.writeString(_iter77.getKey());
-
 
28099
            oprot.writeString(_iter77.getValue());
-
 
28100
          }
-
 
28101
          oprot.writeMapEnd();
-
 
28102
        }
27326
        oprot.writeFieldEnd();
28103
        oprot.writeFieldEnd();
27327
      }
28104
      }
27328
      oprot.writeFieldStop();
28105
      oprot.writeFieldStop();
27329
      oprot.writeStructEnd();
28106
      oprot.writeStructEnd();
27330
    }
28107
    }
27331
 
28108
 
27332
    @Override
28109
    @Override
27333
    public String toString() {
28110
    public String toString() {
27334
      StringBuilder sb = new StringBuilder("setAlert_args(");
28111
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");
27335
      boolean first = true;
28112
      boolean first = true;
27336
 
28113
 
27337
      sb.append("orderId:");
28114
      sb.append("providerId:");
27338
      sb.append(this.orderId);
28115
      sb.append(this.providerId);
27339
      first = false;
-
 
27340
      if (!first) sb.append(", ");
-
 
27341
      sb.append("unset:");
-
 
27342
      sb.append(this.unset);
-
 
27343
      first = false;
-
 
27344
      if (!first) sb.append(", ");
-
 
27345
      sb.append("type:");
-
 
27346
      sb.append(this.type);
-
 
27347
      first = false;
28116
      first = false;
27348
      if (!first) sb.append(", ");
28117
      if (!first) sb.append(", ");
27349
      sb.append("comment:");
28118
      sb.append("deliveredOrders:");
27350
      if (this.comment == null) {
28119
      if (this.deliveredOrders == null) {
27351
        sb.append("null");
28120
        sb.append("null");
27352
      } else {
28121
      } else {
27353
        sb.append(this.comment);
28122
        sb.append(this.deliveredOrders);
27354
      }
28123
      }
27355
      first = false;
28124
      first = false;
27356
      sb.append(")");
28125
      sb.append(")");
27357
      return sb.toString();
28126
      return sb.toString();
27358
    }
28127
    }
Line 27361... Line 28130...
27361
      // check for required fields
28130
      // check for required fields
27362
    }
28131
    }
27363
 
28132
 
27364
  }
28133
  }
27365
 
28134
 
27366
  public static class setAlert_result implements TBase<setAlert_result._Fields>, java.io.Serializable, Cloneable, Comparable<setAlert_result>   {
28135
  public static class markOrdersAsDelivered_result implements TBase<markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsDelivered_result>   {
27367
    private static final TStruct STRUCT_DESC = new TStruct("setAlert_result");
28136
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsDelivered_result");
27368
 
28137
 
-
 
28138
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
27369
 
28139
 
-
 
28140
    private TransactionServiceException ex;
27370
 
28141
 
27371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28142
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27372
    public enum _Fields implements TFieldIdEnum {
28143
    public enum _Fields implements TFieldIdEnum {
27373
;
-
 
-
 
28144
      EX((short)1, "ex");
27374
 
28145
 
27375
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28146
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27377
 
28148
 
27378
      static {
28149
      static {
Line 27420... Line 28191...
27420
 
28191
 
27421
      public String getFieldName() {
28192
      public String getFieldName() {
27422
        return _fieldName;
28193
        return _fieldName;
27423
      }
28194
      }
27424
    }
28195
    }
-
 
28196
 
-
 
28197
    // isset id assignments
-
 
28198
 
27425
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28199
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28200
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
28201
          new FieldValueMetaData(TType.STRUCT)));
27426
    }});
28202
    }});
27427
 
28203
 
27428
    static {
28204
    static {
27429
      FieldMetaData.addStructMetaDataMap(setAlert_result.class, metaDataMap);
28205
      FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);
27430
    }
28206
    }
27431
 
28207
 
27432
    public setAlert_result() {
28208
    public markOrdersAsDelivered_result() {
-
 
28209
    }
-
 
28210
 
-
 
28211
    public markOrdersAsDelivered_result(
-
 
28212
      TransactionServiceException ex)
-
 
28213
    {
-
 
28214
      this();
-
 
28215
      this.ex = ex;
27433
    }
28216
    }
27434
 
28217
 
27435
    /**
28218
    /**
27436
     * Performs a deep copy on <i>other</i>.
28219
     * Performs a deep copy on <i>other</i>.
27437
     */
28220
     */
27438
    public setAlert_result(setAlert_result other) {
28221
    public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {
27439
    }
-
 
27440
 
-
 
27441
    public setAlert_result deepCopy() {
-
 
27442
      return new setAlert_result(this);
-
 
27443
    }
-
 
27444
 
-
 
27445
    @Deprecated
-
 
27446
    public setAlert_result clone() {
28222
      if (other.isSetEx()) {
27447
      return new setAlert_result(this);
28223
        this.ex = new TransactionServiceException(other.ex);
27448
    }
-
 
27449
 
-
 
27450
    public void setFieldValue(_Fields field, Object value) {
-
 
27451
      switch (field) {
-
 
27452
      }
-
 
27453
    }
-
 
27454
 
-
 
27455
    public void setFieldValue(int fieldID, Object value) {
-
 
27456
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
27457
    }
-
 
27458
 
-
 
27459
    public Object getFieldValue(_Fields field) {
-
 
27460
      switch (field) {
-
 
27461
      }
28224
      }
27462
      throw new IllegalStateException();
-
 
27463
    }
28225
    }
27464
 
28226
 
27465
    public Object getFieldValue(int fieldId) {
28227
    public markOrdersAsDelivered_result deepCopy() {
27466
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
28228
      return new markOrdersAsDelivered_result(this);
27467
    }
28229
    }
27468
 
28230
 
27469
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27470
    public boolean isSet(_Fields field) {
28231
    @Deprecated
27471
      switch (field) {
28232
    public markOrdersAsDelivered_result clone() {
27472
      }
-
 
27473
      throw new IllegalStateException();
28233
      return new markOrdersAsDelivered_result(this);
27474
    }
28234
    }
27475
 
28235
 
27476
    public boolean isSet(int fieldID) {
28236
    public TransactionServiceException getEx() {
27477
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
28237
      return this.ex;
27478
    }
28238
    }
27479
 
28239
 
27480
    @Override
-
 
27481
    public boolean equals(Object that) {
28240
    public markOrdersAsDelivered_result setEx(TransactionServiceException ex) {
27482
      if (that == null)
-
 
27483
        return false;
28241
      this.ex = ex;
27484
      if (that instanceof setAlert_result)
-
 
27485
        return this.equals((setAlert_result)that);
-
 
27486
      return false;
28242
      return this;
27487
    }
28243
    }
27488
 
28244
 
27489
    public boolean equals(setAlert_result that) {
28245
    public void unsetEx() {
27490
      if (that == null)
28246
      this.ex = null;
27491
        return false;
-
 
27492
 
-
 
27493
      return true;
-
 
27494
    }
28247
    }
27495
 
28248
 
27496
    @Override
28249
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
27497
    public int hashCode() {
28250
    public boolean isSetEx() {
27498
      return 0;
28251
      return this.ex != null;
27499
    }
28252
    }
27500
 
28253
 
27501
    public int compareTo(setAlert_result other) {
28254
    public void setExIsSet(boolean value) {
27502
      if (!getClass().equals(other.getClass())) {
28255
      if (!value) {
27503
        return getClass().getName().compareTo(other.getClass().getName());
28256
        this.ex = null;
27504
      }
28257
      }
27505
 
-
 
27506
      int lastComparison = 0;
-
 
27507
      setAlert_result typedOther = (setAlert_result)other;
-
 
27508
 
-
 
27509
      return 0;
-
 
27510
    }
28258
    }
27511
 
28259
 
27512
    public void read(TProtocol iprot) throws TException {
28260
    public void setFieldValue(_Fields field, Object value) {
27513
      TField field;
28261
      switch (field) {
27514
      iprot.readStructBegin();
-
 
27515
      while (true)
28262
      case EX:
27516
      {
-
 
27517
        field = iprot.readFieldBegin();
-
 
27518
        if (field.type == TType.STOP) { 
28263
        if (value == null) {
27519
          break;
28264
          unsetEx();
27520
        }
-
 
27521
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27522
        if (fieldId == null) {
-
 
27523
          TProtocolUtil.skip(iprot, field.type);
-
 
27524
        } else {
28265
        } else {
27525
          switch (fieldId) {
-
 
27526
          }
-
 
27527
          iprot.readFieldEnd();
-
 
27528
        }
-
 
27529
      }
-
 
27530
      iprot.readStructEnd();
-
 
27531
      validate();
-
 
27532
    }
-
 
27533
 
-
 
27534
    public void write(TProtocol oprot) throws TException {
-
 
27535
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27536
 
-
 
27537
      oprot.writeFieldStop();
-
 
27538
      oprot.writeStructEnd();
-
 
27539
    }
-
 
27540
 
-
 
27541
    @Override
-
 
27542
    public String toString() {
-
 
27543
      StringBuilder sb = new StringBuilder("setAlert_result(");
-
 
27544
      boolean first = true;
-
 
27545
 
-
 
27546
      sb.append(")");
-
 
27547
      return sb.toString();
-
 
27548
    }
-
 
27549
 
-
 
27550
    public void validate() throws TException {
-
 
27551
      // check for required fields
-
 
27552
    }
-
 
27553
 
-
 
27554
  }
-
 
27555
 
-
 
27556
  public static class getValidOrderCount_args implements TBase<getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrderCount_args>   {
-
 
27557
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrderCount_args");
-
 
27558
 
-
 
27559
 
-
 
27560
 
-
 
27561
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27562
    public enum _Fields implements TFieldIdEnum {
-
 
27563
;
-
 
27564
 
-
 
27565
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
27566
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27567
 
-
 
27568
      static {
-
 
27569
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27570
          byId.put((int)field._thriftId, field);
-
 
27571
          byName.put(field.getFieldName(), field);
28266
          setEx((TransactionServiceException)value);
27572
        }
28267
        }
27573
      }
-
 
27574
 
-
 
27575
      /**
-
 
27576
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27577
       */
28268
        break;
27578
      public static _Fields findByThriftId(int fieldId) {
-
 
27579
        return byId.get(fieldId);
-
 
27580
      }
-
 
27581
 
-
 
27582
      /**
-
 
27583
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27584
       * if it is not found.
-
 
27585
       */
-
 
27586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27587
        _Fields fields = findByThriftId(fieldId);
-
 
27588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27589
        return fields;
-
 
27590
      }
-
 
27591
 
-
 
27592
      /**
-
 
27593
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27594
       */
-
 
27595
      public static _Fields findByName(String name) {
-
 
27596
        return byName.get(name);
-
 
27597
      }
-
 
27598
 
-
 
27599
      private final short _thriftId;
-
 
27600
      private final String _fieldName;
-
 
27601
 
-
 
27602
      _Fields(short thriftId, String fieldName) {
-
 
27603
        _thriftId = thriftId;
-
 
27604
        _fieldName = fieldName;
-
 
27605
      }
-
 
27606
 
-
 
27607
      public short getThriftFieldId() {
-
 
27608
        return _thriftId;
-
 
27609
      }
-
 
27610
 
28269
 
27611
      public String getFieldName() {
-
 
27612
        return _fieldName;
-
 
27613
      }
-
 
27614
    }
-
 
27615
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
27616
    }});
-
 
27617
 
-
 
27618
    static {
-
 
27619
      FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);
-
 
27620
    }
-
 
27621
 
-
 
27622
    public getValidOrderCount_args() {
-
 
27623
    }
-
 
27624
 
-
 
27625
    /**
-
 
27626
     * Performs a deep copy on <i>other</i>.
-
 
27627
     */
-
 
27628
    public getValidOrderCount_args(getValidOrderCount_args other) {
-
 
27629
    }
-
 
27630
 
-
 
27631
    public getValidOrderCount_args deepCopy() {
-
 
27632
      return new getValidOrderCount_args(this);
-
 
27633
    }
-
 
27634
 
-
 
27635
    @Deprecated
-
 
27636
    public getValidOrderCount_args clone() {
-
 
27637
      return new getValidOrderCount_args(this);
-
 
27638
    }
-
 
27639
 
-
 
27640
    public void setFieldValue(_Fields field, Object value) {
-
 
27641
      switch (field) {
-
 
27642
      }
28270
      }
27643
    }
28271
    }
27644
 
28272
 
27645
    public void setFieldValue(int fieldID, Object value) {
28273
    public void setFieldValue(int fieldID, Object value) {
27646
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28274
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
27647
    }
28275
    }
27648
 
28276
 
27649
    public Object getFieldValue(_Fields field) {
28277
    public Object getFieldValue(_Fields field) {
27650
      switch (field) {
28278
      switch (field) {
-
 
28279
      case EX:
-
 
28280
        return getEx();
-
 
28281
 
27651
      }
28282
      }
27652
      throw new IllegalStateException();
28283
      throw new IllegalStateException();
27653
    }
28284
    }
27654
 
28285
 
27655
    public Object getFieldValue(int fieldId) {
28286
    public Object getFieldValue(int fieldId) {
Line 27657... Line 28288...
27657
    }
28288
    }
27658
 
28289
 
27659
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28290
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
27660
    public boolean isSet(_Fields field) {
28291
    public boolean isSet(_Fields field) {
27661
      switch (field) {
28292
      switch (field) {
-
 
28293
      case EX:
-
 
28294
        return isSetEx();
27662
      }
28295
      }
27663
      throw new IllegalStateException();
28296
      throw new IllegalStateException();
27664
    }
28297
    }
27665
 
28298
 
27666
    public boolean isSet(int fieldID) {
28299
    public boolean isSet(int fieldID) {
Line 27669... Line 28302...
27669
 
28302
 
27670
    @Override
28303
    @Override
27671
    public boolean equals(Object that) {
28304
    public boolean equals(Object that) {
27672
      if (that == null)
28305
      if (that == null)
27673
        return false;
28306
        return false;
27674
      if (that instanceof getValidOrderCount_args)
28307
      if (that instanceof markOrdersAsDelivered_result)
27675
        return this.equals((getValidOrderCount_args)that);
28308
        return this.equals((markOrdersAsDelivered_result)that);
27676
      return false;
28309
      return false;
27677
    }
28310
    }
27678
 
28311
 
27679
    public boolean equals(getValidOrderCount_args that) {
28312
    public boolean equals(markOrdersAsDelivered_result that) {
27680
      if (that == null)
28313
      if (that == null)
27681
        return false;
28314
        return false;
27682
 
28315
 
-
 
28316
      boolean this_present_ex = true && this.isSetEx();
-
 
28317
      boolean that_present_ex = true && that.isSetEx();
-
 
28318
      if (this_present_ex || that_present_ex) {
-
 
28319
        if (!(this_present_ex && that_present_ex))
-
 
28320
          return false;
-
 
28321
        if (!this.ex.equals(that.ex))
-
 
28322
          return false;
-
 
28323
      }
-
 
28324
 
27683
      return true;
28325
      return true;
27684
    }
28326
    }
27685
 
28327
 
27686
    @Override
28328
    @Override
27687
    public int hashCode() {
28329
    public int hashCode() {
27688
      return 0;
28330
      return 0;
27689
    }
28331
    }
27690
 
28332
 
27691
    public int compareTo(getValidOrderCount_args other) {
28333
    public int compareTo(markOrdersAsDelivered_result other) {
27692
      if (!getClass().equals(other.getClass())) {
28334
      if (!getClass().equals(other.getClass())) {
27693
        return getClass().getName().compareTo(other.getClass().getName());
28335
        return getClass().getName().compareTo(other.getClass().getName());
27694
      }
28336
      }
27695
 
28337
 
27696
      int lastComparison = 0;
28338
      int lastComparison = 0;
27697
      getValidOrderCount_args typedOther = (getValidOrderCount_args)other;
28339
      markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;
27698
 
28340
 
-
 
28341
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
28342
      if (lastComparison != 0) {
-
 
28343
        return lastComparison;
-
 
28344
      }
-
 
28345
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
28346
      if (lastComparison != 0) {
-
 
28347
        return lastComparison;
-
 
28348
      }
27699
      return 0;
28349
      return 0;
27700
    }
28350
    }
27701
 
28351
 
27702
    public void read(TProtocol iprot) throws TException {
28352
    public void read(TProtocol iprot) throws TException {
27703
      TField field;
28353
      TField field;
Line 27711... Line 28361...
27711
        _Fields fieldId = _Fields.findByThriftId(field.id);
28361
        _Fields fieldId = _Fields.findByThriftId(field.id);
27712
        if (fieldId == null) {
28362
        if (fieldId == null) {
27713
          TProtocolUtil.skip(iprot, field.type);
28363
          TProtocolUtil.skip(iprot, field.type);
27714
        } else {
28364
        } else {
27715
          switch (fieldId) {
28365
          switch (fieldId) {
-
 
28366
            case EX:
-
 
28367
              if (field.type == TType.STRUCT) {
-
 
28368
                this.ex = new TransactionServiceException();
-
 
28369
                this.ex.read(iprot);
-
 
28370
              } else { 
-
 
28371
                TProtocolUtil.skip(iprot, field.type);
-
 
28372
              }
-
 
28373
              break;
27716
          }
28374
          }
27717
          iprot.readFieldEnd();
28375
          iprot.readFieldEnd();
27718
        }
28376
        }
27719
      }
28377
      }
27720
      iprot.readStructEnd();
28378
      iprot.readStructEnd();
27721
      validate();
28379
      validate();
27722
    }
28380
    }
27723
 
28381
 
27724
    public void write(TProtocol oprot) throws TException {
28382
    public void write(TProtocol oprot) throws TException {
27725
      validate();
-
 
27726
 
-
 
27727
      oprot.writeStructBegin(STRUCT_DESC);
28383
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28384
 
-
 
28385
      if (this.isSetEx()) {
-
 
28386
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
28387
        this.ex.write(oprot);
-
 
28388
        oprot.writeFieldEnd();
-
 
28389
      }
27728
      oprot.writeFieldStop();
28390
      oprot.writeFieldStop();
27729
      oprot.writeStructEnd();
28391
      oprot.writeStructEnd();
27730
    }
28392
    }
27731
 
28393
 
27732
    @Override
28394
    @Override
27733
    public String toString() {
28395
    public String toString() {
27734
      StringBuilder sb = new StringBuilder("getValidOrderCount_args(");
28396
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");
27735
      boolean first = true;
28397
      boolean first = true;
27736
 
28398
 
-
 
28399
      sb.append("ex:");
-
 
28400
      if (this.ex == null) {
-
 
28401
        sb.append("null");
-
 
28402
      } else {
-
 
28403
        sb.append(this.ex);
-
 
28404
      }
-
 
28405
      first = false;
27737
      sb.append(")");
28406
      sb.append(")");
27738
      return sb.toString();
28407
      return sb.toString();
27739
    }
28408
    }
27740
 
28409
 
27741
    public void validate() throws TException {
28410
    public void validate() throws TException {
27742
      // check for required fields
28411
      // check for required fields
27743
    }
28412
    }
27744
 
28413
 
27745
  }
28414
  }
27746
 
28415
 
27747
  public static class getValidOrderCount_result implements TBase<getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrderCount_result>   {
28416
  public static class markOrdersAsFailed_args implements TBase<markOrdersAsFailed_args._Fields>, java.io.Serializable, Cloneable   {
27748
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrderCount_result");
28417
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsFailed_args");
27749
 
28418
 
27750
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
28419
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
-
 
28420
    private static final TField RETURNED_ORDERS_FIELD_DESC = new TField("returnedOrders", TType.MAP, (short)2);
27751
 
28421
 
27752
    private long success;
28422
    private long providerId;
-
 
28423
    private Map<String,String> returnedOrders;
27753
 
28424
 
27754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27755
    public enum _Fields implements TFieldIdEnum {
28426
    public enum _Fields implements TFieldIdEnum {
27756
      SUCCESS((short)0, "success");
28427
      PROVIDER_ID((short)1, "providerId"),
-
 
28428
      RETURNED_ORDERS((short)2, "returnedOrders");
27757
 
28429
 
27758
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28430
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
27759
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28431
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27760
 
28432
 
27761
      static {
28433
      static {
Line 27805... Line 28477...
27805
        return _fieldName;
28477
        return _fieldName;
27806
      }
28478
      }
27807
    }
28479
    }
27808
 
28480
 
27809
    // isset id assignments
28481
    // isset id assignments
27810
    private static final int __SUCCESS_ISSET_ID = 0;
28482
    private static final int __PROVIDERID_ISSET_ID = 0;
27811
    private BitSet __isset_bit_vector = new BitSet(1);
28483
    private BitSet __isset_bit_vector = new BitSet(1);
27812
 
28484
 
27813
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28485
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
27814
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
28486
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
27815
          new FieldValueMetaData(TType.I64)));
28487
          new FieldValueMetaData(TType.I64)));
-
 
28488
      put(_Fields.RETURNED_ORDERS, new FieldMetaData("returnedOrders", TFieldRequirementType.DEFAULT, 
-
 
28489
          new MapMetaData(TType.MAP, 
-
 
28490
              new FieldValueMetaData(TType.STRING), 
-
 
28491
              new FieldValueMetaData(TType.STRING))));
27816
    }});
28492
    }});
27817
 
28493
 
27818
    static {
28494
    static {
27819
      FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);
28495
      FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_args.class, metaDataMap);
27820
    }
28496
    }
27821
 
28497
 
27822
    public getValidOrderCount_result() {
28498
    public markOrdersAsFailed_args() {
27823
    }
28499
    }
27824
 
28500
 
27825
    public getValidOrderCount_result(
28501
    public markOrdersAsFailed_args(
27826
      long success)
28502
      long providerId,
-
 
28503
      Map<String,String> returnedOrders)
27827
    {
28504
    {
27828
      this();
28505
      this();
27829
      this.success = success;
28506
      this.providerId = providerId;
27830
      setSuccessIsSet(true);
28507
      setProviderIdIsSet(true);
-
 
28508
      this.returnedOrders = returnedOrders;
27831
    }
28509
    }
27832
 
28510
 
27833
    /**
28511
    /**
27834
     * Performs a deep copy on <i>other</i>.
28512
     * Performs a deep copy on <i>other</i>.
27835
     */
28513
     */
27836
    public getValidOrderCount_result(getValidOrderCount_result other) {
28514
    public markOrdersAsFailed_args(markOrdersAsFailed_args other) {
27837
      __isset_bit_vector.clear();
28515
      __isset_bit_vector.clear();
27838
      __isset_bit_vector.or(other.__isset_bit_vector);
28516
      __isset_bit_vector.or(other.__isset_bit_vector);
27839
      this.success = other.success;
28517
      this.providerId = other.providerId;
27840
    }
-
 
27841
 
-
 
27842
    public getValidOrderCount_result deepCopy() {
28518
      if (other.isSetReturnedOrders()) {
27843
      return new getValidOrderCount_result(this);
-
 
27844
    }
-
 
27845
 
-
 
27846
    @Deprecated
-
 
27847
    public getValidOrderCount_result clone() {
-
 
27848
      return new getValidOrderCount_result(this);
28519
        Map<String,String> __this__returnedOrders = new HashMap<String,String>();
27849
    }
-
 
27850
 
-
 
27851
    public long getSuccess() {
-
 
27852
      return this.success;
-
 
27853
    }
-
 
27854
 
-
 
27855
    public getValidOrderCount_result setSuccess(long success) {
28520
        for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {
27856
      this.success = success;
-
 
27857
      setSuccessIsSet(true);
-
 
27858
      return this;
-
 
27859
    }
-
 
27860
 
28521
 
27861
    public void unsetSuccess() {
28522
          String other_element_key = other_element.getKey();
27862
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28523
          String other_element_value = other_element.getValue();
27863
    }
-
 
27864
 
28524
 
27865
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
27866
    public boolean isSetSuccess() {
-
 
27867
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28525
          String __this__returnedOrders_copy_key = other_element_key;
27868
    }
-
 
27869
 
28526
 
27870
    public void setSuccessIsSet(boolean value) {
-
 
27871
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28527
          String __this__returnedOrders_copy_value = other_element_value;
27872
    }
-
 
27873
 
28528
 
27874
    public void setFieldValue(_Fields field, Object value) {
28529
          __this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);
27875
      switch (field) {
-
 
27876
      case SUCCESS:
-
 
27877
        if (value == null) {
-
 
27878
          unsetSuccess();
-
 
27879
        } else {
-
 
27880
          setSuccess((Long)value);
-
 
27881
        }
28530
        }
27882
        break;
28531
        this.returnedOrders = __this__returnedOrders;
27883
 
-
 
27884
      }
28532
      }
27885
    }
28533
    }
27886
 
28534
 
27887
    public void setFieldValue(int fieldID, Object value) {
28535
    public markOrdersAsFailed_args deepCopy() {
27888
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28536
      return new markOrdersAsFailed_args(this);
27889
    }
28537
    }
27890
 
28538
 
27891
    public Object getFieldValue(_Fields field) {
-
 
27892
      switch (field) {
28539
    @Deprecated
27893
      case SUCCESS:
-
 
27894
        return new Long(getSuccess());
28540
    public markOrdersAsFailed_args clone() {
27895
 
-
 
27896
      }
-
 
27897
      throw new IllegalStateException();
28541
      return new markOrdersAsFailed_args(this);
27898
    }
28542
    }
27899
 
28543
 
27900
    public Object getFieldValue(int fieldId) {
28544
    public long getProviderId() {
27901
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
28545
      return this.providerId;
27902
    }
28546
    }
27903
 
28547
 
27904
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
27905
    public boolean isSet(_Fields field) {
28548
    public markOrdersAsFailed_args setProviderId(long providerId) {
27906
      switch (field) {
28549
      this.providerId = providerId;
27907
      case SUCCESS:
28550
      setProviderIdIsSet(true);
27908
        return isSetSuccess();
28551
      return this;
27909
      }
-
 
27910
      throw new IllegalStateException();
-
 
27911
    }
28552
    }
27912
 
28553
 
27913
    public boolean isSet(int fieldID) {
28554
    public void unsetProviderId() {
27914
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
28555
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
27915
    }
28556
    }
27916
 
28557
 
27917
    @Override
28558
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
27918
    public boolean equals(Object that) {
28559
    public boolean isSetProviderId() {
27919
      if (that == null)
-
 
27920
        return false;
-
 
27921
      if (that instanceof getValidOrderCount_result)
-
 
27922
        return this.equals((getValidOrderCount_result)that);
28560
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
27923
      return false;
-
 
27924
    }
28561
    }
27925
 
28562
 
27926
    public boolean equals(getValidOrderCount_result that) {
28563
    public void setProviderIdIsSet(boolean value) {
27927
      if (that == null)
-
 
27928
        return false;
-
 
27929
 
-
 
27930
      boolean this_present_success = true;
-
 
27931
      boolean that_present_success = true;
-
 
27932
      if (this_present_success || that_present_success) {
-
 
27933
        if (!(this_present_success && that_present_success))
28564
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
27934
          return false;
-
 
27935
        if (this.success != that.success)
-
 
27936
          return false;
-
 
27937
      }
-
 
27938
 
-
 
27939
      return true;
-
 
27940
    }
28565
    }
27941
 
28566
 
27942
    @Override
-
 
27943
    public int hashCode() {
28567
    public int getReturnedOrdersSize() {
27944
      return 0;
28568
      return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();
27945
    }
28569
    }
27946
 
28570
 
27947
    public int compareTo(getValidOrderCount_result other) {
28571
    public void putToReturnedOrders(String key, String val) {
27948
      if (!getClass().equals(other.getClass())) {
-
 
27949
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27950
      }
-
 
27951
 
-
 
27952
      int lastComparison = 0;
-
 
27953
      getValidOrderCount_result typedOther = (getValidOrderCount_result)other;
-
 
27954
 
-
 
27955
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
27956
      if (lastComparison != 0) {
-
 
27957
        return lastComparison;
-
 
27958
      }
-
 
27959
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
27960
      if (lastComparison != 0) {
28572
      if (this.returnedOrders == null) {
27961
        return lastComparison;
28573
        this.returnedOrders = new HashMap<String,String>();
27962
      }
28574
      }
27963
      return 0;
28575
      this.returnedOrders.put(key, val);
27964
    }
28576
    }
27965
 
28577
 
27966
    public void read(TProtocol iprot) throws TException {
28578
    public Map<String,String> getReturnedOrders() {
27967
      TField field;
-
 
27968
      iprot.readStructBegin();
-
 
27969
      while (true)
-
 
27970
      {
-
 
27971
        field = iprot.readFieldBegin();
-
 
27972
        if (field.type == TType.STOP) { 
-
 
27973
          break;
-
 
27974
        }
-
 
27975
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
27976
        if (fieldId == null) {
-
 
27977
          TProtocolUtil.skip(iprot, field.type);
-
 
27978
        } else {
-
 
27979
          switch (fieldId) {
-
 
27980
            case SUCCESS:
-
 
27981
              if (field.type == TType.I64) {
-
 
27982
                this.success = iprot.readI64();
-
 
27983
                setSuccessIsSet(true);
-
 
27984
              } else { 
-
 
27985
                TProtocolUtil.skip(iprot, field.type);
-
 
27986
              }
-
 
27987
              break;
-
 
27988
          }
-
 
27989
          iprot.readFieldEnd();
28579
      return this.returnedOrders;
27990
        }
-
 
27991
      }
-
 
27992
      iprot.readStructEnd();
-
 
27993
      validate();
-
 
27994
    }
28580
    }
27995
 
28581
 
27996
    public void write(TProtocol oprot) throws TException {
28582
    public markOrdersAsFailed_args setReturnedOrders(Map<String,String> returnedOrders) {
27997
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27998
 
-
 
27999
      if (this.isSetSuccess()) {
-
 
28000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
28001
        oprot.writeI64(this.success);
28583
      this.returnedOrders = returnedOrders;
28002
        oprot.writeFieldEnd();
-
 
28003
      }
-
 
28004
      oprot.writeFieldStop();
-
 
28005
      oprot.writeStructEnd();
28584
      return this;
28006
    }
28585
    }
28007
 
28586
 
28008
    @Override
-
 
28009
    public String toString() {
28587
    public void unsetReturnedOrders() {
28010
      StringBuilder sb = new StringBuilder("getValidOrderCount_result(");
-
 
28011
      boolean first = true;
-
 
28012
 
-
 
28013
      sb.append("success:");
-
 
28014
      sb.append(this.success);
-
 
28015
      first = false;
-
 
28016
      sb.append(")");
-
 
28017
      return sb.toString();
28588
      this.returnedOrders = null;
28018
    }
28589
    }
28019
 
28590
 
-
 
28591
    /** Returns true if field returnedOrders is set (has been asigned a value) and false otherwise */
28020
    public void validate() throws TException {
28592
    public boolean isSetReturnedOrders() {
28021
      // check for required fields
28593
      return this.returnedOrders != null;
28022
    }
28594
    }
28023
 
28595
 
28024
  }
-
 
28025
 
-
 
28026
  public static class getNoOfCustomersWithSuccessfulTransaction_args implements TBase<getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getNoOfCustomersWithSuccessfulTransaction_args>   {
-
 
28027
    private static final TStruct STRUCT_DESC = new TStruct("getNoOfCustomersWithSuccessfulTransaction_args");
-
 
28028
 
-
 
28029
 
-
 
28030
 
-
 
28031
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28032
    public enum _Fields implements TFieldIdEnum {
28596
    public void setReturnedOrdersIsSet(boolean value) {
28033
;
-
 
28034
 
-
 
28035
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28037
 
-
 
28038
      static {
28597
      if (!value) {
28039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28040
          byId.put((int)field._thriftId, field);
-
 
28041
          byName.put(field.getFieldName(), field);
-
 
28042
        }
-
 
28043
      }
-
 
28044
 
-
 
28045
      /**
-
 
28046
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28047
       */
-
 
28048
      public static _Fields findByThriftId(int fieldId) {
-
 
28049
        return byId.get(fieldId);
-
 
28050
      }
-
 
28051
 
-
 
28052
      /**
-
 
28053
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28054
       * if it is not found.
-
 
28055
       */
-
 
28056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28057
        _Fields fields = findByThriftId(fieldId);
-
 
28058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28059
        return fields;
-
 
28060
      }
-
 
28061
 
-
 
28062
      /**
-
 
28063
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28064
       */
-
 
28065
      public static _Fields findByName(String name) {
-
 
28066
        return byName.get(name);
28598
        this.returnedOrders = null;
28067
      }
-
 
28068
 
-
 
28069
      private final short _thriftId;
-
 
28070
      private final String _fieldName;
-
 
28071
 
-
 
28072
      _Fields(short thriftId, String fieldName) {
-
 
28073
        _thriftId = thriftId;
-
 
28074
        _fieldName = fieldName;
-
 
28075
      }
-
 
28076
 
-
 
28077
      public short getThriftFieldId() {
-
 
28078
        return _thriftId;
-
 
28079
      }
-
 
28080
 
-
 
28081
      public String getFieldName() {
-
 
28082
        return _fieldName;
-
 
28083
      }
28599
      }
28084
    }
28600
    }
28085
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28086
    }});
-
 
28087
 
-
 
28088
    static {
-
 
28089
      FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);
-
 
28090
    }
-
 
28091
 
-
 
28092
    public getNoOfCustomersWithSuccessfulTransaction_args() {
-
 
28093
    }
-
 
28094
 
-
 
28095
    /**
-
 
28096
     * Performs a deep copy on <i>other</i>.
-
 
28097
     */
-
 
28098
    public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {
-
 
28099
    }
-
 
28100
 
-
 
28101
    public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {
-
 
28102
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
-
 
28103
    }
-
 
28104
 
-
 
28105
    @Deprecated
-
 
28106
    public getNoOfCustomersWithSuccessfulTransaction_args clone() {
-
 
28107
      return new getNoOfCustomersWithSuccessfulTransaction_args(this);
-
 
28108
    }
-
 
28109
 
28601
 
28110
    public void setFieldValue(_Fields field, Object value) {
28602
    public void setFieldValue(_Fields field, Object value) {
28111
      switch (field) {
28603
      switch (field) {
-
 
28604
      case PROVIDER_ID:
-
 
28605
        if (value == null) {
-
 
28606
          unsetProviderId();
-
 
28607
        } else {
-
 
28608
          setProviderId((Long)value);
-
 
28609
        }
-
 
28610
        break;
-
 
28611
 
-
 
28612
      case RETURNED_ORDERS:
-
 
28613
        if (value == null) {
-
 
28614
          unsetReturnedOrders();
-
 
28615
        } else {
-
 
28616
          setReturnedOrders((Map<String,String>)value);
-
 
28617
        }
-
 
28618
        break;
-
 
28619
 
28112
      }
28620
      }
28113
    }
28621
    }
28114
 
28622
 
28115
    public void setFieldValue(int fieldID, Object value) {
28623
    public void setFieldValue(int fieldID, Object value) {
28116
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28624
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28117
    }
28625
    }
28118
 
28626
 
28119
    public Object getFieldValue(_Fields field) {
28627
    public Object getFieldValue(_Fields field) {
28120
      switch (field) {
28628
      switch (field) {
-
 
28629
      case PROVIDER_ID:
-
 
28630
        return new Long(getProviderId());
-
 
28631
 
-
 
28632
      case RETURNED_ORDERS:
-
 
28633
        return getReturnedOrders();
-
 
28634
 
28121
      }
28635
      }
28122
      throw new IllegalStateException();
28636
      throw new IllegalStateException();
28123
    }
28637
    }
28124
 
28638
 
28125
    public Object getFieldValue(int fieldId) {
28639
    public Object getFieldValue(int fieldId) {
Line 28127... Line 28641...
28127
    }
28641
    }
28128
 
28642
 
28129
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28643
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28130
    public boolean isSet(_Fields field) {
28644
    public boolean isSet(_Fields field) {
28131
      switch (field) {
28645
      switch (field) {
-
 
28646
      case PROVIDER_ID:
-
 
28647
        return isSetProviderId();
-
 
28648
      case RETURNED_ORDERS:
-
 
28649
        return isSetReturnedOrders();
28132
      }
28650
      }
28133
      throw new IllegalStateException();
28651
      throw new IllegalStateException();
28134
    }
28652
    }
28135
 
28653
 
28136
    public boolean isSet(int fieldID) {
28654
    public boolean isSet(int fieldID) {
Line 28139... Line 28657...
28139
 
28657
 
28140
    @Override
28658
    @Override
28141
    public boolean equals(Object that) {
28659
    public boolean equals(Object that) {
28142
      if (that == null)
28660
      if (that == null)
28143
        return false;
28661
        return false;
28144
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)
28662
      if (that instanceof markOrdersAsFailed_args)
28145
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);
28663
        return this.equals((markOrdersAsFailed_args)that);
28146
      return false;
28664
      return false;
28147
    }
28665
    }
28148
 
28666
 
28149
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {
28667
    public boolean equals(markOrdersAsFailed_args that) {
28150
      if (that == null)
28668
      if (that == null)
28151
        return false;
28669
        return false;
28152
 
28670
 
-
 
28671
      boolean this_present_providerId = true;
-
 
28672
      boolean that_present_providerId = true;
-
 
28673
      if (this_present_providerId || that_present_providerId) {
-
 
28674
        if (!(this_present_providerId && that_present_providerId))
-
 
28675
          return false;
-
 
28676
        if (this.providerId != that.providerId)
-
 
28677
          return false;
-
 
28678
      }
-
 
28679
 
-
 
28680
      boolean this_present_returnedOrders = true && this.isSetReturnedOrders();
-
 
28681
      boolean that_present_returnedOrders = true && that.isSetReturnedOrders();
-
 
28682
      if (this_present_returnedOrders || that_present_returnedOrders) {
-
 
28683
        if (!(this_present_returnedOrders && that_present_returnedOrders))
-
 
28684
          return false;
-
 
28685
        if (!this.returnedOrders.equals(that.returnedOrders))
-
 
28686
          return false;
-
 
28687
      }
-
 
28688
 
28153
      return true;
28689
      return true;
28154
    }
28690
    }
28155
 
28691
 
28156
    @Override
28692
    @Override
28157
    public int hashCode() {
28693
    public int hashCode() {
28158
      return 0;
28694
      return 0;
28159
    }
28695
    }
28160
 
28696
 
28161
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {
-
 
28162
      if (!getClass().equals(other.getClass())) {
-
 
28163
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28164
      }
-
 
28165
 
-
 
28166
      int lastComparison = 0;
-
 
28167
      getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;
-
 
28168
 
-
 
28169
      return 0;
-
 
28170
    }
-
 
28171
 
-
 
28172
    public void read(TProtocol iprot) throws TException {
28697
    public void read(TProtocol iprot) throws TException {
28173
      TField field;
28698
      TField field;
28174
      iprot.readStructBegin();
28699
      iprot.readStructBegin();
28175
      while (true)
28700
      while (true)
28176
      {
28701
      {
Line 28181... Line 28706...
28181
        _Fields fieldId = _Fields.findByThriftId(field.id);
28706
        _Fields fieldId = _Fields.findByThriftId(field.id);
28182
        if (fieldId == null) {
28707
        if (fieldId == null) {
28183
          TProtocolUtil.skip(iprot, field.type);
28708
          TProtocolUtil.skip(iprot, field.type);
28184
        } else {
28709
        } else {
28185
          switch (fieldId) {
28710
          switch (fieldId) {
-
 
28711
            case PROVIDER_ID:
-
 
28712
              if (field.type == TType.I64) {
-
 
28713
                this.providerId = iprot.readI64();
-
 
28714
                setProviderIdIsSet(true);
-
 
28715
              } else { 
-
 
28716
                TProtocolUtil.skip(iprot, field.type);
-
 
28717
              }
-
 
28718
              break;
-
 
28719
            case RETURNED_ORDERS:
-
 
28720
              if (field.type == TType.MAP) {
-
 
28721
                {
-
 
28722
                  TMap _map78 = iprot.readMapBegin();
-
 
28723
                  this.returnedOrders = new HashMap<String,String>(2*_map78.size);
-
 
28724
                  for (int _i79 = 0; _i79 < _map78.size; ++_i79)
-
 
28725
                  {
-
 
28726
                    String _key80;
-
 
28727
                    String _val81;
-
 
28728
                    _key80 = iprot.readString();
-
 
28729
                    _val81 = iprot.readString();
-
 
28730
                    this.returnedOrders.put(_key80, _val81);
-
 
28731
                  }
-
 
28732
                  iprot.readMapEnd();
-
 
28733
                }
-
 
28734
              } else { 
-
 
28735
                TProtocolUtil.skip(iprot, field.type);
-
 
28736
              }
-
 
28737
              break;
28186
          }
28738
          }
28187
          iprot.readFieldEnd();
28739
          iprot.readFieldEnd();
28188
        }
28740
        }
28189
      }
28741
      }
28190
      iprot.readStructEnd();
28742
      iprot.readStructEnd();
Line 28193... Line 28745...
28193
 
28745
 
28194
    public void write(TProtocol oprot) throws TException {
28746
    public void write(TProtocol oprot) throws TException {
28195
      validate();
28747
      validate();
28196
 
28748
 
28197
      oprot.writeStructBegin(STRUCT_DESC);
28749
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28750
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
28751
      oprot.writeI64(this.providerId);
-
 
28752
      oprot.writeFieldEnd();
-
 
28753
      if (this.returnedOrders != null) {
-
 
28754
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
-
 
28755
        {
-
 
28756
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
-
 
28757
          for (Map.Entry<String, String> _iter82 : this.returnedOrders.entrySet())
-
 
28758
          {
-
 
28759
            oprot.writeString(_iter82.getKey());
-
 
28760
            oprot.writeString(_iter82.getValue());
-
 
28761
          }
-
 
28762
          oprot.writeMapEnd();
-
 
28763
        }
-
 
28764
        oprot.writeFieldEnd();
-
 
28765
      }
28198
      oprot.writeFieldStop();
28766
      oprot.writeFieldStop();
28199
      oprot.writeStructEnd();
28767
      oprot.writeStructEnd();
28200
    }
28768
    }
28201
 
28769
 
28202
    @Override
28770
    @Override
28203
    public String toString() {
28771
    public String toString() {
28204
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");
28772
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_args(");
28205
      boolean first = true;
28773
      boolean first = true;
28206
 
28774
 
-
 
28775
      sb.append("providerId:");
-
 
28776
      sb.append(this.providerId);
-
 
28777
      first = false;
-
 
28778
      if (!first) sb.append(", ");
-
 
28779
      sb.append("returnedOrders:");
-
 
28780
      if (this.returnedOrders == null) {
-
 
28781
        sb.append("null");
-
 
28782
      } else {
-
 
28783
        sb.append(this.returnedOrders);
-
 
28784
      }
-
 
28785
      first = false;
28207
      sb.append(")");
28786
      sb.append(")");
28208
      return sb.toString();
28787
      return sb.toString();
28209
    }
28788
    }
28210
 
28789
 
28211
    public void validate() throws TException {
28790
    public void validate() throws TException {
28212
      // check for required fields
28791
      // check for required fields
28213
    }
28792
    }
28214
 
28793
 
28215
  }
28794
  }
28216
 
28795
 
28217
  public static class getNoOfCustomersWithSuccessfulTransaction_result implements TBase<getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<getNoOfCustomersWithSuccessfulTransaction_result>   {
28796
  public static class markOrdersAsFailed_result implements TBase<markOrdersAsFailed_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsFailed_result>   {
28218
    private static final TStruct STRUCT_DESC = new TStruct("getNoOfCustomersWithSuccessfulTransaction_result");
28797
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsFailed_result");
28219
 
28798
 
28220
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
28799
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
28221
 
28800
 
28222
    private long success;
28801
    private TransactionServiceException ex;
28223
 
28802
 
28224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28225
    public enum _Fields implements TFieldIdEnum {
28804
    public enum _Fields implements TFieldIdEnum {
28226
      SUCCESS((short)0, "success");
28805
      EX((short)1, "ex");
28227
 
28806
 
28228
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28807
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28230
 
28809
 
28231
      static {
28810
      static {
Line 28275... Line 28854...
28275
        return _fieldName;
28854
        return _fieldName;
28276
      }
28855
      }
28277
    }
28856
    }
28278
 
28857
 
28279
    // isset id assignments
28858
    // isset id assignments
28280
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
28281
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28282
 
28859
 
28283
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28860
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28284
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
28861
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
28285
          new FieldValueMetaData(TType.I64)));
28862
          new FieldValueMetaData(TType.STRUCT)));
28286
    }});
28863
    }});
28287
 
28864
 
28288
    static {
28865
    static {
28289
      FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);
28866
      FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_result.class, metaDataMap);
28290
    }
28867
    }
28291
 
28868
 
28292
    public getNoOfCustomersWithSuccessfulTransaction_result() {
28869
    public markOrdersAsFailed_result() {
28293
    }
28870
    }
28294
 
28871
 
28295
    public getNoOfCustomersWithSuccessfulTransaction_result(
28872
    public markOrdersAsFailed_result(
28296
      long success)
28873
      TransactionServiceException ex)
28297
    {
28874
    {
28298
      this();
28875
      this();
28299
      this.success = success;
28876
      this.ex = ex;
28300
      setSuccessIsSet(true);
-
 
28301
    }
28877
    }
28302
 
28878
 
28303
    /**
28879
    /**
28304
     * Performs a deep copy on <i>other</i>.
28880
     * Performs a deep copy on <i>other</i>.
28305
     */
28881
     */
28306
    public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {
28882
    public markOrdersAsFailed_result(markOrdersAsFailed_result other) {
28307
      __isset_bit_vector.clear();
28883
      if (other.isSetEx()) {
28308
      __isset_bit_vector.or(other.__isset_bit_vector);
28884
        this.ex = new TransactionServiceException(other.ex);
28309
      this.success = other.success;
28885
      }
28310
    }
28886
    }
28311
 
28887
 
28312
    public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {
28888
    public markOrdersAsFailed_result deepCopy() {
28313
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
28889
      return new markOrdersAsFailed_result(this);
28314
    }
28890
    }
28315
 
28891
 
28316
    @Deprecated
28892
    @Deprecated
28317
    public getNoOfCustomersWithSuccessfulTransaction_result clone() {
28893
    public markOrdersAsFailed_result clone() {
28318
      return new getNoOfCustomersWithSuccessfulTransaction_result(this);
28894
      return new markOrdersAsFailed_result(this);
28319
    }
28895
    }
28320
 
28896
 
28321
    public long getSuccess() {
28897
    public TransactionServiceException getEx() {
28322
      return this.success;
28898
      return this.ex;
28323
    }
28899
    }
28324
 
28900
 
28325
    public getNoOfCustomersWithSuccessfulTransaction_result setSuccess(long success) {
28901
    public markOrdersAsFailed_result setEx(TransactionServiceException ex) {
28326
      this.success = success;
28902
      this.ex = ex;
28327
      setSuccessIsSet(true);
-
 
28328
      return this;
28903
      return this;
28329
    }
28904
    }
28330
 
28905
 
28331
    public void unsetSuccess() {
28906
    public void unsetEx() {
28332
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28907
      this.ex = null;
28333
    }
28908
    }
28334
 
28909
 
28335
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
28910
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
28336
    public boolean isSetSuccess() {
28911
    public boolean isSetEx() {
28337
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28912
      return this.ex != null;
28338
    }
28913
    }
28339
 
28914
 
28340
    public void setSuccessIsSet(boolean value) {
28915
    public void setExIsSet(boolean value) {
-
 
28916
      if (!value) {
28341
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28917
        this.ex = null;
-
 
28918
      }
28342
    }
28919
    }
28343
 
28920
 
28344
    public void setFieldValue(_Fields field, Object value) {
28921
    public void setFieldValue(_Fields field, Object value) {
28345
      switch (field) {
28922
      switch (field) {
28346
      case SUCCESS:
28923
      case EX:
28347
        if (value == null) {
28924
        if (value == null) {
28348
          unsetSuccess();
28925
          unsetEx();
28349
        } else {
28926
        } else {
28350
          setSuccess((Long)value);
28927
          setEx((TransactionServiceException)value);
28351
        }
28928
        }
28352
        break;
28929
        break;
28353
 
28930
 
28354
      }
28931
      }
28355
    }
28932
    }
Line 28358... Line 28935...
28358
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28935
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28359
    }
28936
    }
28360
 
28937
 
28361
    public Object getFieldValue(_Fields field) {
28938
    public Object getFieldValue(_Fields field) {
28362
      switch (field) {
28939
      switch (field) {
28363
      case SUCCESS:
28940
      case EX:
28364
        return new Long(getSuccess());
28941
        return getEx();
28365
 
28942
 
28366
      }
28943
      }
28367
      throw new IllegalStateException();
28944
      throw new IllegalStateException();
28368
    }
28945
    }
28369
 
28946
 
Line 28372... Line 28949...
28372
    }
28949
    }
28373
 
28950
 
28374
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28951
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28375
    public boolean isSet(_Fields field) {
28952
    public boolean isSet(_Fields field) {
28376
      switch (field) {
28953
      switch (field) {
28377
      case SUCCESS:
28954
      case EX:
28378
        return isSetSuccess();
28955
        return isSetEx();
28379
      }
28956
      }
28380
      throw new IllegalStateException();
28957
      throw new IllegalStateException();
28381
    }
28958
    }
28382
 
28959
 
28383
    public boolean isSet(int fieldID) {
28960
    public boolean isSet(int fieldID) {
Line 28386... Line 28963...
28386
 
28963
 
28387
    @Override
28964
    @Override
28388
    public boolean equals(Object that) {
28965
    public boolean equals(Object that) {
28389
      if (that == null)
28966
      if (that == null)
28390
        return false;
28967
        return false;
28391
      if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)
28968
      if (that instanceof markOrdersAsFailed_result)
28392
        return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);
28969
        return this.equals((markOrdersAsFailed_result)that);
28393
      return false;
28970
      return false;
28394
    }
28971
    }
28395
 
28972
 
28396
    public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {
28973
    public boolean equals(markOrdersAsFailed_result that) {
28397
      if (that == null)
28974
      if (that == null)
28398
        return false;
28975
        return false;
28399
 
28976
 
28400
      boolean this_present_success = true;
28977
      boolean this_present_ex = true && this.isSetEx();
28401
      boolean that_present_success = true;
28978
      boolean that_present_ex = true && that.isSetEx();
28402
      if (this_present_success || that_present_success) {
28979
      if (this_present_ex || that_present_ex) {
28403
        if (!(this_present_success && that_present_success))
28980
        if (!(this_present_ex && that_present_ex))
28404
          return false;
28981
          return false;
28405
        if (this.success != that.success)
28982
        if (!this.ex.equals(that.ex))
28406
          return false;
28983
          return false;
28407
      }
28984
      }
28408
 
28985
 
28409
      return true;
28986
      return true;
28410
    }
28987
    }
Line 28412... Line 28989...
28412
    @Override
28989
    @Override
28413
    public int hashCode() {
28990
    public int hashCode() {
28414
      return 0;
28991
      return 0;
28415
    }
28992
    }
28416
 
28993
 
28417
    public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {
28994
    public int compareTo(markOrdersAsFailed_result other) {
28418
      if (!getClass().equals(other.getClass())) {
28995
      if (!getClass().equals(other.getClass())) {
28419
        return getClass().getName().compareTo(other.getClass().getName());
28996
        return getClass().getName().compareTo(other.getClass().getName());
28420
      }
28997
      }
28421
 
28998
 
28422
      int lastComparison = 0;
28999
      int lastComparison = 0;
28423
      getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;
29000
      markOrdersAsFailed_result typedOther = (markOrdersAsFailed_result)other;
28424
 
29001
 
28425
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
29002
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
28426
      if (lastComparison != 0) {
29003
      if (lastComparison != 0) {
28427
        return lastComparison;
29004
        return lastComparison;
28428
      }
29005
      }
28429
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
29006
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
28430
      if (lastComparison != 0) {
29007
      if (lastComparison != 0) {
28431
        return lastComparison;
29008
        return lastComparison;
28432
      }
29009
      }
28433
      return 0;
29010
      return 0;
28434
    }
29011
    }
Line 28445... Line 29022...
28445
        _Fields fieldId = _Fields.findByThriftId(field.id);
29022
        _Fields fieldId = _Fields.findByThriftId(field.id);
28446
        if (fieldId == null) {
29023
        if (fieldId == null) {
28447
          TProtocolUtil.skip(iprot, field.type);
29024
          TProtocolUtil.skip(iprot, field.type);
28448
        } else {
29025
        } else {
28449
          switch (fieldId) {
29026
          switch (fieldId) {
28450
            case SUCCESS:
29027
            case EX:
28451
              if (field.type == TType.I64) {
29028
              if (field.type == TType.STRUCT) {
28452
                this.success = iprot.readI64();
29029
                this.ex = new TransactionServiceException();
28453
                setSuccessIsSet(true);
29030
                this.ex.read(iprot);
28454
              } else { 
29031
              } else { 
28455
                TProtocolUtil.skip(iprot, field.type);
29032
                TProtocolUtil.skip(iprot, field.type);
28456
              }
29033
              }
28457
              break;
29034
              break;
28458
          }
29035
          }
Line 28464... Line 29041...
28464
    }
29041
    }
28465
 
29042
 
28466
    public void write(TProtocol oprot) throws TException {
29043
    public void write(TProtocol oprot) throws TException {
28467
      oprot.writeStructBegin(STRUCT_DESC);
29044
      oprot.writeStructBegin(STRUCT_DESC);
28468
 
29045
 
28469
      if (this.isSetSuccess()) {
29046
      if (this.isSetEx()) {
28470
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29047
        oprot.writeFieldBegin(EX_FIELD_DESC);
28471
        oprot.writeI64(this.success);
29048
        this.ex.write(oprot);
28472
        oprot.writeFieldEnd();
29049
        oprot.writeFieldEnd();
28473
      }
29050
      }
28474
      oprot.writeFieldStop();
29051
      oprot.writeFieldStop();
28475
      oprot.writeStructEnd();
29052
      oprot.writeStructEnd();
28476
    }
29053
    }
28477
 
29054
 
28478
    @Override
29055
    @Override
28479
    public String toString() {
29056
    public String toString() {
28480
      StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");
29057
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_result(");
28481
      boolean first = true;
29058
      boolean first = true;
28482
 
29059
 
28483
      sb.append("success:");
29060
      sb.append("ex:");
-
 
29061
      if (this.ex == null) {
-
 
29062
        sb.append("null");
-
 
29063
      } else {
28484
      sb.append(this.success);
29064
        sb.append(this.ex);
-
 
29065
      }
28485
      first = false;
29066
      first = false;
28486
      sb.append(")");
29067
      sb.append(")");
28487
      return sb.toString();
29068
      return sb.toString();
28488
    }
29069
    }
28489
 
29070
 
Line 28491... Line 29072...
28491
      // check for required fields
29072
      // check for required fields
28492
    }
29073
    }
28493
 
29074
 
28494
  }
29075
  }
28495
 
29076
 
28496
  public static class getValidOrdersAmountRange_args implements TBase<getValidOrdersAmountRange_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrdersAmountRange_args>   {
29077
  public static class updateNonDeliveryReason_args implements TBase<updateNonDeliveryReason_args._Fields>, java.io.Serializable, Cloneable   {
28497
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrdersAmountRange_args");
29078
    private static final TStruct STRUCT_DESC = new TStruct("updateNonDeliveryReason_args");
28498
 
29079
 
-
 
29080
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
-
 
29081
    private static final TField UNDELIVERED_ORDERS_FIELD_DESC = new TField("undeliveredOrders", TType.MAP, (short)2);
28499
 
29082
 
-
 
29083
    private long providerId;
-
 
29084
    private Map<String,String> undeliveredOrders;
28500
 
29085
 
28501
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28502
    public enum _Fields implements TFieldIdEnum {
29087
    public enum _Fields implements TFieldIdEnum {
28503
;
-
 
-
 
29088
      PROVIDER_ID((short)1, "providerId"),
-
 
29089
      UNDELIVERED_ORDERS((short)2, "undeliveredOrders");
28504
 
29090
 
28505
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
29091
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29092
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28507
 
29093
 
28508
      static {
29094
      static {
Line 28550... Line 29136...
28550
 
29136
 
28551
      public String getFieldName() {
29137
      public String getFieldName() {
28552
        return _fieldName;
29138
        return _fieldName;
28553
      }
29139
      }
28554
    }
29140
    }
-
 
29141
 
-
 
29142
    // isset id assignments
-
 
29143
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
29144
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29145
 
28555
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29146
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29147
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
29148
          new FieldValueMetaData(TType.I64)));
-
 
29149
      put(_Fields.UNDELIVERED_ORDERS, new FieldMetaData("undeliveredOrders", TFieldRequirementType.DEFAULT, 
-
 
29150
          new MapMetaData(TType.MAP, 
-
 
29151
              new FieldValueMetaData(TType.STRING), 
-
 
29152
              new FieldValueMetaData(TType.STRING))));
28556
    }});
29153
    }});
28557
 
29154
 
28558
    static {
29155
    static {
28559
      FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_args.class, metaDataMap);
29156
      FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_args.class, metaDataMap);
28560
    }
29157
    }
28561
 
29158
 
28562
    public getValidOrdersAmountRange_args() {
29159
    public updateNonDeliveryReason_args() {
-
 
29160
    }
-
 
29161
 
-
 
29162
    public updateNonDeliveryReason_args(
-
 
29163
      long providerId,
-
 
29164
      Map<String,String> undeliveredOrders)
-
 
29165
    {
-
 
29166
      this();
-
 
29167
      this.providerId = providerId;
-
 
29168
      setProviderIdIsSet(true);
-
 
29169
      this.undeliveredOrders = undeliveredOrders;
28563
    }
29170
    }
28564
 
29171
 
28565
    /**
29172
    /**
28566
     * Performs a deep copy on <i>other</i>.
29173
     * Performs a deep copy on <i>other</i>.
28567
     */
29174
     */
28568
    public getValidOrdersAmountRange_args(getValidOrdersAmountRange_args other) {
29175
    public updateNonDeliveryReason_args(updateNonDeliveryReason_args other) {
-
 
29176
      __isset_bit_vector.clear();
-
 
29177
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29178
      this.providerId = other.providerId;
-
 
29179
      if (other.isSetUndeliveredOrders()) {
-
 
29180
        Map<String,String> __this__undeliveredOrders = new HashMap<String,String>();
-
 
29181
        for (Map.Entry<String, String> other_element : other.undeliveredOrders.entrySet()) {
-
 
29182
 
-
 
29183
          String other_element_key = other_element.getKey();
-
 
29184
          String other_element_value = other_element.getValue();
-
 
29185
 
-
 
29186
          String __this__undeliveredOrders_copy_key = other_element_key;
-
 
29187
 
-
 
29188
          String __this__undeliveredOrders_copy_value = other_element_value;
-
 
29189
 
-
 
29190
          __this__undeliveredOrders.put(__this__undeliveredOrders_copy_key, __this__undeliveredOrders_copy_value);
-
 
29191
        }
-
 
29192
        this.undeliveredOrders = __this__undeliveredOrders;
-
 
29193
      }
28569
    }
29194
    }
28570
 
29195
 
28571
    public getValidOrdersAmountRange_args deepCopy() {
29196
    public updateNonDeliveryReason_args deepCopy() {
28572
      return new getValidOrdersAmountRange_args(this);
29197
      return new updateNonDeliveryReason_args(this);
28573
    }
29198
    }
28574
 
29199
 
28575
    @Deprecated
29200
    @Deprecated
28576
    public getValidOrdersAmountRange_args clone() {
29201
    public updateNonDeliveryReason_args clone() {
28577
      return new getValidOrdersAmountRange_args(this);
29202
      return new updateNonDeliveryReason_args(this);
-
 
29203
    }
-
 
29204
 
-
 
29205
    public long getProviderId() {
-
 
29206
      return this.providerId;
-
 
29207
    }
-
 
29208
 
-
 
29209
    public updateNonDeliveryReason_args setProviderId(long providerId) {
-
 
29210
      this.providerId = providerId;
-
 
29211
      setProviderIdIsSet(true);
-
 
29212
      return this;
-
 
29213
    }
-
 
29214
 
-
 
29215
    public void unsetProviderId() {
-
 
29216
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
29217
    }
-
 
29218
 
-
 
29219
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
29220
    public boolean isSetProviderId() {
-
 
29221
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
29222
    }
-
 
29223
 
-
 
29224
    public void setProviderIdIsSet(boolean value) {
-
 
29225
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
29226
    }
-
 
29227
 
-
 
29228
    public int getUndeliveredOrdersSize() {
-
 
29229
      return (this.undeliveredOrders == null) ? 0 : this.undeliveredOrders.size();
-
 
29230
    }
-
 
29231
 
-
 
29232
    public void putToUndeliveredOrders(String key, String val) {
-
 
29233
      if (this.undeliveredOrders == null) {
-
 
29234
        this.undeliveredOrders = new HashMap<String,String>();
-
 
29235
      }
-
 
29236
      this.undeliveredOrders.put(key, val);
-
 
29237
    }
-
 
29238
 
-
 
29239
    public Map<String,String> getUndeliveredOrders() {
-
 
29240
      return this.undeliveredOrders;
-
 
29241
    }
-
 
29242
 
-
 
29243
    public updateNonDeliveryReason_args setUndeliveredOrders(Map<String,String> undeliveredOrders) {
-
 
29244
      this.undeliveredOrders = undeliveredOrders;
-
 
29245
      return this;
-
 
29246
    }
-
 
29247
 
-
 
29248
    public void unsetUndeliveredOrders() {
-
 
29249
      this.undeliveredOrders = null;
-
 
29250
    }
-
 
29251
 
-
 
29252
    /** Returns true if field undeliveredOrders is set (has been asigned a value) and false otherwise */
-
 
29253
    public boolean isSetUndeliveredOrders() {
-
 
29254
      return this.undeliveredOrders != null;
-
 
29255
    }
-
 
29256
 
-
 
29257
    public void setUndeliveredOrdersIsSet(boolean value) {
-
 
29258
      if (!value) {
-
 
29259
        this.undeliveredOrders = null;
-
 
29260
      }
28578
    }
29261
    }
28579
 
29262
 
28580
    public void setFieldValue(_Fields field, Object value) {
29263
    public void setFieldValue(_Fields field, Object value) {
28581
      switch (field) {
29264
      switch (field) {
-
 
29265
      case PROVIDER_ID:
-
 
29266
        if (value == null) {
-
 
29267
          unsetProviderId();
-
 
29268
        } else {
-
 
29269
          setProviderId((Long)value);
-
 
29270
        }
-
 
29271
        break;
-
 
29272
 
-
 
29273
      case UNDELIVERED_ORDERS:
-
 
29274
        if (value == null) {
-
 
29275
          unsetUndeliveredOrders();
-
 
29276
        } else {
-
 
29277
          setUndeliveredOrders((Map<String,String>)value);
-
 
29278
        }
-
 
29279
        break;
-
 
29280
 
28582
      }
29281
      }
28583
    }
29282
    }
28584
 
29283
 
28585
    public void setFieldValue(int fieldID, Object value) {
29284
    public void setFieldValue(int fieldID, Object value) {
28586
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
29285
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28587
    }
29286
    }
28588
 
29287
 
28589
    public Object getFieldValue(_Fields field) {
29288
    public Object getFieldValue(_Fields field) {
28590
      switch (field) {
29289
      switch (field) {
-
 
29290
      case PROVIDER_ID:
-
 
29291
        return new Long(getProviderId());
-
 
29292
 
-
 
29293
      case UNDELIVERED_ORDERS:
-
 
29294
        return getUndeliveredOrders();
-
 
29295
 
28591
      }
29296
      }
28592
      throw new IllegalStateException();
29297
      throw new IllegalStateException();
28593
    }
29298
    }
28594
 
29299
 
28595
    public Object getFieldValue(int fieldId) {
29300
    public Object getFieldValue(int fieldId) {
Line 28597... Line 29302...
28597
    }
29302
    }
28598
 
29303
 
28599
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
29304
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28600
    public boolean isSet(_Fields field) {
29305
    public boolean isSet(_Fields field) {
28601
      switch (field) {
29306
      switch (field) {
-
 
29307
      case PROVIDER_ID:
-
 
29308
        return isSetProviderId();
-
 
29309
      case UNDELIVERED_ORDERS:
-
 
29310
        return isSetUndeliveredOrders();
28602
      }
29311
      }
28603
      throw new IllegalStateException();
29312
      throw new IllegalStateException();
28604
    }
29313
    }
28605
 
29314
 
28606
    public boolean isSet(int fieldID) {
29315
    public boolean isSet(int fieldID) {
Line 28609... Line 29318...
28609
 
29318
 
28610
    @Override
29319
    @Override
28611
    public boolean equals(Object that) {
29320
    public boolean equals(Object that) {
28612
      if (that == null)
29321
      if (that == null)
28613
        return false;
29322
        return false;
28614
      if (that instanceof getValidOrdersAmountRange_args)
29323
      if (that instanceof updateNonDeliveryReason_args)
28615
        return this.equals((getValidOrdersAmountRange_args)that);
29324
        return this.equals((updateNonDeliveryReason_args)that);
28616
      return false;
29325
      return false;
28617
    }
29326
    }
28618
 
29327
 
28619
    public boolean equals(getValidOrdersAmountRange_args that) {
29328
    public boolean equals(updateNonDeliveryReason_args that) {
28620
      if (that == null)
29329
      if (that == null)
28621
        return false;
29330
        return false;
28622
 
29331
 
-
 
29332
      boolean this_present_providerId = true;
-
 
29333
      boolean that_present_providerId = true;
-
 
29334
      if (this_present_providerId || that_present_providerId) {
-
 
29335
        if (!(this_present_providerId && that_present_providerId))
-
 
29336
          return false;
-
 
29337
        if (this.providerId != that.providerId)
-
 
29338
          return false;
-
 
29339
      }
-
 
29340
 
-
 
29341
      boolean this_present_undeliveredOrders = true && this.isSetUndeliveredOrders();
-
 
29342
      boolean that_present_undeliveredOrders = true && that.isSetUndeliveredOrders();
-
 
29343
      if (this_present_undeliveredOrders || that_present_undeliveredOrders) {
-
 
29344
        if (!(this_present_undeliveredOrders && that_present_undeliveredOrders))
-
 
29345
          return false;
-
 
29346
        if (!this.undeliveredOrders.equals(that.undeliveredOrders))
-
 
29347
          return false;
-
 
29348
      }
-
 
29349
 
28623
      return true;
29350
      return true;
28624
    }
29351
    }
28625
 
29352
 
28626
    @Override
29353
    @Override
28627
    public int hashCode() {
29354
    public int hashCode() {
28628
      return 0;
29355
      return 0;
28629
    }
29356
    }
28630
 
29357
 
28631
    public int compareTo(getValidOrdersAmountRange_args other) {
-
 
28632
      if (!getClass().equals(other.getClass())) {
-
 
28633
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28634
      }
-
 
28635
 
-
 
28636
      int lastComparison = 0;
-
 
28637
      getValidOrdersAmountRange_args typedOther = (getValidOrdersAmountRange_args)other;
-
 
28638
 
-
 
28639
      return 0;
-
 
28640
    }
-
 
28641
 
-
 
28642
    public void read(TProtocol iprot) throws TException {
29358
    public void read(TProtocol iprot) throws TException {
28643
      TField field;
29359
      TField field;
28644
      iprot.readStructBegin();
29360
      iprot.readStructBegin();
28645
      while (true)
29361
      while (true)
28646
      {
29362
      {
Line 28651... Line 29367...
28651
        _Fields fieldId = _Fields.findByThriftId(field.id);
29367
        _Fields fieldId = _Fields.findByThriftId(field.id);
28652
        if (fieldId == null) {
29368
        if (fieldId == null) {
28653
          TProtocolUtil.skip(iprot, field.type);
29369
          TProtocolUtil.skip(iprot, field.type);
28654
        } else {
29370
        } else {
28655
          switch (fieldId) {
29371
          switch (fieldId) {
-
 
29372
            case PROVIDER_ID:
-
 
29373
              if (field.type == TType.I64) {
-
 
29374
                this.providerId = iprot.readI64();
-
 
29375
                setProviderIdIsSet(true);
-
 
29376
              } else { 
-
 
29377
                TProtocolUtil.skip(iprot, field.type);
-
 
29378
              }
-
 
29379
              break;
-
 
29380
            case UNDELIVERED_ORDERS:
-
 
29381
              if (field.type == TType.MAP) {
-
 
29382
                {
-
 
29383
                  TMap _map83 = iprot.readMapBegin();
-
 
29384
                  this.undeliveredOrders = new HashMap<String,String>(2*_map83.size);
-
 
29385
                  for (int _i84 = 0; _i84 < _map83.size; ++_i84)
-
 
29386
                  {
-
 
29387
                    String _key85;
-
 
29388
                    String _val86;
-
 
29389
                    _key85 = iprot.readString();
-
 
29390
                    _val86 = iprot.readString();
-
 
29391
                    this.undeliveredOrders.put(_key85, _val86);
-
 
29392
                  }
-
 
29393
                  iprot.readMapEnd();
-
 
29394
                }
-
 
29395
              } else { 
-
 
29396
                TProtocolUtil.skip(iprot, field.type);
-
 
29397
              }
-
 
29398
              break;
28656
          }
29399
          }
28657
          iprot.readFieldEnd();
29400
          iprot.readFieldEnd();
28658
        }
29401
        }
28659
      }
29402
      }
28660
      iprot.readStructEnd();
29403
      iprot.readStructEnd();
Line 28663... Line 29406...
28663
 
29406
 
28664
    public void write(TProtocol oprot) throws TException {
29407
    public void write(TProtocol oprot) throws TException {
28665
      validate();
29408
      validate();
28666
 
29409
 
28667
      oprot.writeStructBegin(STRUCT_DESC);
29410
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29411
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
29412
      oprot.writeI64(this.providerId);
-
 
29413
      oprot.writeFieldEnd();
-
 
29414
      if (this.undeliveredOrders != null) {
-
 
29415
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
-
 
29416
        {
-
 
29417
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.undeliveredOrders.size()));
-
 
29418
          for (Map.Entry<String, String> _iter87 : this.undeliveredOrders.entrySet())
-
 
29419
          {
-
 
29420
            oprot.writeString(_iter87.getKey());
-
 
29421
            oprot.writeString(_iter87.getValue());
-
 
29422
          }
-
 
29423
          oprot.writeMapEnd();
-
 
29424
        }
-
 
29425
        oprot.writeFieldEnd();
-
 
29426
      }
28668
      oprot.writeFieldStop();
29427
      oprot.writeFieldStop();
28669
      oprot.writeStructEnd();
29428
      oprot.writeStructEnd();
28670
    }
29429
    }
28671
 
29430
 
28672
    @Override
29431
    @Override
28673
    public String toString() {
29432
    public String toString() {
28674
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_args(");
29433
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_args(");
28675
      boolean first = true;
29434
      boolean first = true;
28676
 
29435
 
-
 
29436
      sb.append("providerId:");
-
 
29437
      sb.append(this.providerId);
-
 
29438
      first = false;
-
 
29439
      if (!first) sb.append(", ");
-
 
29440
      sb.append("undeliveredOrders:");
-
 
29441
      if (this.undeliveredOrders == null) {
-
 
29442
        sb.append("null");
-
 
29443
      } else {
-
 
29444
        sb.append(this.undeliveredOrders);
-
 
29445
      }
-
 
29446
      first = false;
28677
      sb.append(")");
29447
      sb.append(")");
28678
      return sb.toString();
29448
      return sb.toString();
28679
    }
29449
    }
28680
 
29450
 
28681
    public void validate() throws TException {
29451
    public void validate() throws TException {
28682
      // check for required fields
29452
      // check for required fields
28683
    }
29453
    }
28684
 
29454
 
28685
  }
29455
  }
28686
 
29456
 
28687
  public static class getValidOrdersAmountRange_result implements TBase<getValidOrdersAmountRange_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrdersAmountRange_result>   {
29457
  public static class updateNonDeliveryReason_result implements TBase<updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateNonDeliveryReason_result>   {
28688
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrdersAmountRange_result");
29458
    private static final TStruct STRUCT_DESC = new TStruct("updateNonDeliveryReason_result");
28689
 
29459
 
28690
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
29460
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
28691
 
29461
 
28692
    private List<Double> success;
29462
    private TransactionServiceException ex;
28693
 
29463
 
28694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29464
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28695
    public enum _Fields implements TFieldIdEnum {
29465
    public enum _Fields implements TFieldIdEnum {
28696
      SUCCESS((short)0, "success");
29466
      EX((short)1, "ex");
28697
 
29467
 
28698
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
29468
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
28699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28700
 
29470
 
28701
      static {
29471
      static {
Line 28747... Line 29517...
28747
    }
29517
    }
28748
 
29518
 
28749
    // isset id assignments
29519
    // isset id assignments
28750
 
29520
 
28751
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29521
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
28752
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
29522
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
28753
          new ListMetaData(TType.LIST, 
-
 
28754
              new FieldValueMetaData(TType.DOUBLE))));
29523
          new FieldValueMetaData(TType.STRUCT)));
28755
    }});
29524
    }});
28756
 
29525
 
28757
    static {
29526
    static {
28758
      FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_result.class, metaDataMap);
29527
      FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);
28759
    }
29528
    }
28760
 
29529
 
28761
    public getValidOrdersAmountRange_result() {
29530
    public updateNonDeliveryReason_result() {
28762
    }
29531
    }
28763
 
29532
 
28764
    public getValidOrdersAmountRange_result(
29533
    public updateNonDeliveryReason_result(
28765
      List<Double> success)
29534
      TransactionServiceException ex)
28766
    {
29535
    {
28767
      this();
29536
      this();
28768
      this.success = success;
29537
      this.ex = ex;
28769
    }
29538
    }
28770
 
29539
 
28771
    /**
29540
    /**
28772
     * Performs a deep copy on <i>other</i>.
29541
     * Performs a deep copy on <i>other</i>.
28773
     */
29542
     */
28774
    public getValidOrdersAmountRange_result(getValidOrdersAmountRange_result other) {
29543
    public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {
28775
      if (other.isSetSuccess()) {
29544
      if (other.isSetEx()) {
28776
        List<Double> __this__success = new ArrayList<Double>();
-
 
28777
        for (Double other_element : other.success) {
29545
        this.ex = new TransactionServiceException(other.ex);
28778
          __this__success.add(other_element);
-
 
28779
        }
-
 
28780
        this.success = __this__success;
-
 
28781
      }
29546
      }
28782
    }
29547
    }
28783
 
29548
 
28784
    public getValidOrdersAmountRange_result deepCopy() {
29549
    public updateNonDeliveryReason_result deepCopy() {
28785
      return new getValidOrdersAmountRange_result(this);
29550
      return new updateNonDeliveryReason_result(this);
28786
    }
29551
    }
28787
 
29552
 
28788
    @Deprecated
29553
    @Deprecated
28789
    public getValidOrdersAmountRange_result clone() {
29554
    public updateNonDeliveryReason_result clone() {
28790
      return new getValidOrdersAmountRange_result(this);
29555
      return new updateNonDeliveryReason_result(this);
28791
    }
-
 
28792
 
-
 
28793
    public int getSuccessSize() {
-
 
28794
      return (this.success == null) ? 0 : this.success.size();
-
 
28795
    }
-
 
28796
 
-
 
28797
    public java.util.Iterator<Double> getSuccessIterator() {
-
 
28798
      return (this.success == null) ? null : this.success.iterator();
-
 
28799
    }
-
 
28800
 
-
 
28801
    public void addToSuccess(double elem) {
-
 
28802
      if (this.success == null) {
-
 
28803
        this.success = new ArrayList<Double>();
-
 
28804
      }
-
 
28805
      this.success.add(elem);
-
 
28806
    }
29556
    }
28807
 
29557
 
28808
    public List<Double> getSuccess() {
29558
    public TransactionServiceException getEx() {
28809
      return this.success;
29559
      return this.ex;
28810
    }
29560
    }
28811
 
29561
 
28812
    public getValidOrdersAmountRange_result setSuccess(List<Double> success) {
29562
    public updateNonDeliveryReason_result setEx(TransactionServiceException ex) {
28813
      this.success = success;
29563
      this.ex = ex;
28814
      return this;
29564
      return this;
28815
    }
29565
    }
28816
 
29566
 
28817
    public void unsetSuccess() {
29567
    public void unsetEx() {
28818
      this.success = null;
29568
      this.ex = null;
28819
    }
29569
    }
28820
 
29570
 
28821
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
29571
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
28822
    public boolean isSetSuccess() {
29572
    public boolean isSetEx() {
28823
      return this.success != null;
29573
      return this.ex != null;
28824
    }
29574
    }
28825
 
29575
 
28826
    public void setSuccessIsSet(boolean value) {
29576
    public void setExIsSet(boolean value) {
28827
      if (!value) {
29577
      if (!value) {
28828
        this.success = null;
29578
        this.ex = null;
28829
      }
29579
      }
28830
    }
29580
    }
28831
 
29581
 
28832
    public void setFieldValue(_Fields field, Object value) {
29582
    public void setFieldValue(_Fields field, Object value) {
28833
      switch (field) {
29583
      switch (field) {
28834
      case SUCCESS:
29584
      case EX:
28835
        if (value == null) {
29585
        if (value == null) {
28836
          unsetSuccess();
29586
          unsetEx();
28837
        } else {
29587
        } else {
28838
          setSuccess((List<Double>)value);
29588
          setEx((TransactionServiceException)value);
28839
        }
29589
        }
28840
        break;
29590
        break;
28841
 
29591
 
28842
      }
29592
      }
28843
    }
29593
    }
Line 28846... Line 29596...
28846
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
29596
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
28847
    }
29597
    }
28848
 
29598
 
28849
    public Object getFieldValue(_Fields field) {
29599
    public Object getFieldValue(_Fields field) {
28850
      switch (field) {
29600
      switch (field) {
28851
      case SUCCESS:
29601
      case EX:
28852
        return getSuccess();
29602
        return getEx();
28853
 
29603
 
28854
      }
29604
      }
28855
      throw new IllegalStateException();
29605
      throw new IllegalStateException();
28856
    }
29606
    }
28857
 
29607
 
Line 28860... Line 29610...
28860
    }
29610
    }
28861
 
29611
 
28862
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
29612
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
28863
    public boolean isSet(_Fields field) {
29613
    public boolean isSet(_Fields field) {
28864
      switch (field) {
29614
      switch (field) {
28865
      case SUCCESS:
29615
      case EX:
28866
        return isSetSuccess();
29616
        return isSetEx();
28867
      }
29617
      }
28868
      throw new IllegalStateException();
29618
      throw new IllegalStateException();
28869
    }
29619
    }
28870
 
29620
 
28871
    public boolean isSet(int fieldID) {
29621
    public boolean isSet(int fieldID) {
Line 28874... Line 29624...
28874
 
29624
 
28875
    @Override
29625
    @Override
28876
    public boolean equals(Object that) {
29626
    public boolean equals(Object that) {
28877
      if (that == null)
29627
      if (that == null)
28878
        return false;
29628
        return false;
28879
      if (that instanceof getValidOrdersAmountRange_result)
29629
      if (that instanceof updateNonDeliveryReason_result)
28880
        return this.equals((getValidOrdersAmountRange_result)that);
29630
        return this.equals((updateNonDeliveryReason_result)that);
28881
      return false;
29631
      return false;
28882
    }
29632
    }
28883
 
29633
 
28884
    public boolean equals(getValidOrdersAmountRange_result that) {
29634
    public boolean equals(updateNonDeliveryReason_result that) {
28885
      if (that == null)
29635
      if (that == null)
28886
        return false;
29636
        return false;
28887
 
29637
 
28888
      boolean this_present_success = true && this.isSetSuccess();
29638
      boolean this_present_ex = true && this.isSetEx();
28889
      boolean that_present_success = true && that.isSetSuccess();
29639
      boolean that_present_ex = true && that.isSetEx();
28890
      if (this_present_success || that_present_success) {
29640
      if (this_present_ex || that_present_ex) {
28891
        if (!(this_present_success && that_present_success))
29641
        if (!(this_present_ex && that_present_ex))
28892
          return false;
29642
          return false;
28893
        if (!this.success.equals(that.success))
29643
        if (!this.ex.equals(that.ex))
28894
          return false;
29644
          return false;
28895
      }
29645
      }
28896
 
29646
 
28897
      return true;
29647
      return true;
28898
    }
29648
    }
Line 28900... Line 29650...
28900
    @Override
29650
    @Override
28901
    public int hashCode() {
29651
    public int hashCode() {
28902
      return 0;
29652
      return 0;
28903
    }
29653
    }
28904
 
29654
 
28905
    public int compareTo(getValidOrdersAmountRange_result other) {
29655
    public int compareTo(updateNonDeliveryReason_result other) {
28906
      if (!getClass().equals(other.getClass())) {
29656
      if (!getClass().equals(other.getClass())) {
28907
        return getClass().getName().compareTo(other.getClass().getName());
29657
        return getClass().getName().compareTo(other.getClass().getName());
28908
      }
29658
      }
28909
 
29659
 
28910
      int lastComparison = 0;
29660
      int lastComparison = 0;
28911
      getValidOrdersAmountRange_result typedOther = (getValidOrdersAmountRange_result)other;
29661
      updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;
28912
 
29662
 
28913
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
29663
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
28914
      if (lastComparison != 0) {
29664
      if (lastComparison != 0) {
28915
        return lastComparison;
29665
        return lastComparison;
28916
      }
29666
      }
28917
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
29667
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
28918
      if (lastComparison != 0) {
29668
      if (lastComparison != 0) {
28919
        return lastComparison;
29669
        return lastComparison;
28920
      }
29670
      }
28921
      return 0;
29671
      return 0;
28922
    }
29672
    }
Line 28933... Line 29683...
28933
        _Fields fieldId = _Fields.findByThriftId(field.id);
29683
        _Fields fieldId = _Fields.findByThriftId(field.id);
28934
        if (fieldId == null) {
29684
        if (fieldId == null) {
28935
          TProtocolUtil.skip(iprot, field.type);
29685
          TProtocolUtil.skip(iprot, field.type);
28936
        } else {
29686
        } else {
28937
          switch (fieldId) {
29687
          switch (fieldId) {
28938
            case SUCCESS:
29688
            case EX:
28939
              if (field.type == TType.LIST) {
29689
              if (field.type == TType.STRUCT) {
28940
                {
-
 
28941
                  TList _list84 = iprot.readListBegin();
-
 
28942
                  this.success = new ArrayList<Double>(_list84.size);
29690
                this.ex = new TransactionServiceException();
28943
                  for (int _i85 = 0; _i85 < _list84.size; ++_i85)
-
 
28944
                  {
-
 
28945
                    double _elem86;
-
 
28946
                    _elem86 = iprot.readDouble();
-
 
28947
                    this.success.add(_elem86);
-
 
28948
                  }
-
 
28949
                  iprot.readListEnd();
29691
                this.ex.read(iprot);
28950
                }
-
 
28951
              } else { 
29692
              } else { 
28952
                TProtocolUtil.skip(iprot, field.type);
29693
                TProtocolUtil.skip(iprot, field.type);
28953
              }
29694
              }
28954
              break;
29695
              break;
28955
          }
29696
          }
Line 28961... Line 29702...
28961
    }
29702
    }
28962
 
29703
 
28963
    public void write(TProtocol oprot) throws TException {
29704
    public void write(TProtocol oprot) throws TException {
28964
      oprot.writeStructBegin(STRUCT_DESC);
29705
      oprot.writeStructBegin(STRUCT_DESC);
28965
 
29706
 
28966
      if (this.isSetSuccess()) {
29707
      if (this.isSetEx()) {
28967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29708
        oprot.writeFieldBegin(EX_FIELD_DESC);
28968
        {
-
 
28969
          oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
-
 
28970
          for (double _iter87 : this.success)
-
 
28971
          {
-
 
28972
            oprot.writeDouble(_iter87);
-
 
28973
          }
-
 
28974
          oprot.writeListEnd();
29709
        this.ex.write(oprot);
28975
        }
-
 
28976
        oprot.writeFieldEnd();
29710
        oprot.writeFieldEnd();
28977
      }
29711
      }
28978
      oprot.writeFieldStop();
29712
      oprot.writeFieldStop();
28979
      oprot.writeStructEnd();
29713
      oprot.writeStructEnd();
28980
    }
29714
    }
28981
 
29715
 
28982
    @Override
29716
    @Override
28983
    public String toString() {
29717
    public String toString() {
28984
      StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_result(");
29718
      StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");
28985
      boolean first = true;
29719
      boolean first = true;
28986
 
29720
 
28987
      sb.append("success:");
29721
      sb.append("ex:");
28988
      if (this.success == null) {
29722
      if (this.ex == null) {
28989
        sb.append("null");
29723
        sb.append("null");
28990
      } else {
29724
      } else {
28991
        sb.append(this.success);
29725
        sb.append(this.ex);
28992
      }
29726
      }
28993
      first = false;
29727
      first = false;
28994
      sb.append(")");
29728
      sb.append(")");
28995
      return sb.toString();
29729
      return sb.toString();
28996
    }
29730
    }
Line 28999... Line 29733...
28999
      // check for required fields
29733
      // check for required fields
29000
    }
29734
    }
29001
 
29735
 
29002
  }
29736
  }
29003
 
29737
 
29004
  public static class getValidOrders_args implements TBase<getValidOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrders_args>   {
29738
  public static class getUndeliveredOrders_args implements TBase<getUndeliveredOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUndeliveredOrders_args>   {
29005
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrders_args");
29739
    private static final TStruct STRUCT_DESC = new TStruct("getUndeliveredOrders_args");
29006
 
29740
 
29007
    private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)1);
29741
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
-
 
29742
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)2);
29008
 
29743
 
29009
    private long limit;
29744
    private long providerId;
-
 
29745
    private long warehouseId;
29010
 
29746
 
29011
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29012
    public enum _Fields implements TFieldIdEnum {
29748
    public enum _Fields implements TFieldIdEnum {
29013
      LIMIT((short)1, "limit");
29749
      PROVIDER_ID((short)1, "providerId"),
-
 
29750
      WAREHOUSE_ID((short)2, "warehouseId");
29014
 
29751
 
29015
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
29752
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
29016
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29017
 
29754
 
29018
      static {
29755
      static {
Line 29062... Line 29799...
29062
        return _fieldName;
29799
        return _fieldName;
29063
      }
29800
      }
29064
    }
29801
    }
29065
 
29802
 
29066
    // isset id assignments
29803
    // isset id assignments
29067
    private static final int __LIMIT_ISSET_ID = 0;
29804
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
29805
    private static final int __WAREHOUSEID_ISSET_ID = 1;
29068
    private BitSet __isset_bit_vector = new BitSet(1);
29806
    private BitSet __isset_bit_vector = new BitSet(2);
29069
 
29807
 
29070
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29808
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
29071
      put(_Fields.LIMIT, new FieldMetaData("limit", TFieldRequirementType.DEFAULT, 
29809
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
29810
          new FieldValueMetaData(TType.I64)));
-
 
29811
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
29072
          new FieldValueMetaData(TType.I64)));
29812
          new FieldValueMetaData(TType.I64)));
29073
    }});
29813
    }});
29074
 
29814
 
29075
    static {
29815
    static {
29076
      FieldMetaData.addStructMetaDataMap(getValidOrders_args.class, metaDataMap);
29816
      FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_args.class, metaDataMap);
29077
    }
29817
    }
29078
 
29818
 
29079
    public getValidOrders_args() {
29819
    public getUndeliveredOrders_args() {
29080
    }
29820
    }
29081
 
29821
 
29082
    public getValidOrders_args(
29822
    public getUndeliveredOrders_args(
29083
      long limit)
29823
      long providerId,
-
 
29824
      long warehouseId)
29084
    {
29825
    {
29085
      this();
29826
      this();
29086
      this.limit = limit;
29827
      this.providerId = providerId;
29087
      setLimitIsSet(true);
29828
      setProviderIdIsSet(true);
-
 
29829
      this.warehouseId = warehouseId;
-
 
29830
      setWarehouseIdIsSet(true);
29088
    }
29831
    }
29089
 
29832
 
29090
    /**
29833
    /**
29091
     * Performs a deep copy on <i>other</i>.
29834
     * Performs a deep copy on <i>other</i>.
29092
     */
29835
     */
29093
    public getValidOrders_args(getValidOrders_args other) {
29836
    public getUndeliveredOrders_args(getUndeliveredOrders_args other) {
29094
      __isset_bit_vector.clear();
29837
      __isset_bit_vector.clear();
29095
      __isset_bit_vector.or(other.__isset_bit_vector);
29838
      __isset_bit_vector.or(other.__isset_bit_vector);
29096
      this.limit = other.limit;
29839
      this.providerId = other.providerId;
-
 
29840
      this.warehouseId = other.warehouseId;
29097
    }
29841
    }
29098
 
29842
 
29099
    public getValidOrders_args deepCopy() {
29843
    public getUndeliveredOrders_args deepCopy() {
29100
      return new getValidOrders_args(this);
29844
      return new getUndeliveredOrders_args(this);
29101
    }
29845
    }
29102
 
29846
 
29103
    @Deprecated
29847
    @Deprecated
29104
    public getValidOrders_args clone() {
29848
    public getUndeliveredOrders_args clone() {
29105
      return new getValidOrders_args(this);
29849
      return new getUndeliveredOrders_args(this);
29106
    }
29850
    }
29107
 
29851
 
29108
    public long getLimit() {
29852
    public long getProviderId() {
29109
      return this.limit;
29853
      return this.providerId;
29110
    }
29854
    }
29111
 
29855
 
29112
    public getValidOrders_args setLimit(long limit) {
29856
    public getUndeliveredOrders_args setProviderId(long providerId) {
29113
      this.limit = limit;
29857
      this.providerId = providerId;
29114
      setLimitIsSet(true);
29858
      setProviderIdIsSet(true);
29115
      return this;
29859
      return this;
29116
    }
29860
    }
29117
 
29861
 
29118
    public void unsetLimit() {
29862
    public void unsetProviderId() {
29119
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
29863
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
29120
    }
29864
    }
29121
 
29865
 
29122
    /** Returns true if field limit is set (has been asigned a value) and false otherwise */
29866
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
29123
    public boolean isSetLimit() {
29867
    public boolean isSetProviderId() {
29124
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
29868
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
29125
    }
29869
    }
29126
 
29870
 
29127
    public void setLimitIsSet(boolean value) {
29871
    public void setProviderIdIsSet(boolean value) {
29128
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
29872
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
29873
    }
-
 
29874
 
-
 
29875
    public long getWarehouseId() {
-
 
29876
      return this.warehouseId;
-
 
29877
    }
-
 
29878
 
-
 
29879
    public getUndeliveredOrders_args setWarehouseId(long warehouseId) {
-
 
29880
      this.warehouseId = warehouseId;
-
 
29881
      setWarehouseIdIsSet(true);
-
 
29882
      return this;
-
 
29883
    }
-
 
29884
 
-
 
29885
    public void unsetWarehouseId() {
-
 
29886
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
29887
    }
-
 
29888
 
-
 
29889
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
-
 
29890
    public boolean isSetWarehouseId() {
-
 
29891
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
29892
    }
-
 
29893
 
-
 
29894
    public void setWarehouseIdIsSet(boolean value) {
-
 
29895
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
29129
    }
29896
    }
29130
 
29897
 
29131
    public void setFieldValue(_Fields field, Object value) {
29898
    public void setFieldValue(_Fields field, Object value) {
29132
      switch (field) {
29899
      switch (field) {
29133
      case LIMIT:
29900
      case PROVIDER_ID:
29134
        if (value == null) {
29901
        if (value == null) {
29135
          unsetLimit();
29902
          unsetProviderId();
29136
        } else {
29903
        } else {
29137
          setLimit((Long)value);
29904
          setProviderId((Long)value);
-
 
29905
        }
-
 
29906
        break;
-
 
29907
 
-
 
29908
      case WAREHOUSE_ID:
-
 
29909
        if (value == null) {
-
 
29910
          unsetWarehouseId();
-
 
29911
        } else {
-
 
29912
          setWarehouseId((Long)value);
29138
        }
29913
        }
29139
        break;
29914
        break;
29140
 
29915
 
29141
      }
29916
      }
29142
    }
29917
    }
Line 29145... Line 29920...
29145
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
29920
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
29146
    }
29921
    }
29147
 
29922
 
29148
    public Object getFieldValue(_Fields field) {
29923
    public Object getFieldValue(_Fields field) {
29149
      switch (field) {
29924
      switch (field) {
29150
      case LIMIT:
29925
      case PROVIDER_ID:
29151
        return new Long(getLimit());
29926
        return new Long(getProviderId());
-
 
29927
 
-
 
29928
      case WAREHOUSE_ID:
-
 
29929
        return new Long(getWarehouseId());
29152
 
29930
 
29153
      }
29931
      }
29154
      throw new IllegalStateException();
29932
      throw new IllegalStateException();
29155
    }
29933
    }
29156
 
29934
 
Line 29159... Line 29937...
29159
    }
29937
    }
29160
 
29938
 
29161
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
29939
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
29162
    public boolean isSet(_Fields field) {
29940
    public boolean isSet(_Fields field) {
29163
      switch (field) {
29941
      switch (field) {
29164
      case LIMIT:
29942
      case PROVIDER_ID:
29165
        return isSetLimit();
29943
        return isSetProviderId();
-
 
29944
      case WAREHOUSE_ID:
-
 
29945
        return isSetWarehouseId();
29166
      }
29946
      }
29167
      throw new IllegalStateException();
29947
      throw new IllegalStateException();
29168
    }
29948
    }
29169
 
29949
 
29170
    public boolean isSet(int fieldID) {
29950
    public boolean isSet(int fieldID) {
Line 29173... Line 29953...
29173
 
29953
 
29174
    @Override
29954
    @Override
29175
    public boolean equals(Object that) {
29955
    public boolean equals(Object that) {
29176
      if (that == null)
29956
      if (that == null)
29177
        return false;
29957
        return false;
29178
      if (that instanceof getValidOrders_args)
29958
      if (that instanceof getUndeliveredOrders_args)
29179
        return this.equals((getValidOrders_args)that);
29959
        return this.equals((getUndeliveredOrders_args)that);
29180
      return false;
29960
      return false;
29181
    }
29961
    }
29182
 
29962
 
29183
    public boolean equals(getValidOrders_args that) {
29963
    public boolean equals(getUndeliveredOrders_args that) {
29184
      if (that == null)
29964
      if (that == null)
29185
        return false;
29965
        return false;
29186
 
29966
 
29187
      boolean this_present_limit = true;
29967
      boolean this_present_providerId = true;
29188
      boolean that_present_limit = true;
29968
      boolean that_present_providerId = true;
29189
      if (this_present_limit || that_present_limit) {
29969
      if (this_present_providerId || that_present_providerId) {
29190
        if (!(this_present_limit && that_present_limit))
29970
        if (!(this_present_providerId && that_present_providerId))
29191
          return false;
29971
          return false;
29192
        if (this.limit != that.limit)
29972
        if (this.providerId != that.providerId)
-
 
29973
          return false;
-
 
29974
      }
-
 
29975
 
-
 
29976
      boolean this_present_warehouseId = true;
-
 
29977
      boolean that_present_warehouseId = true;
-
 
29978
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
29979
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
29980
          return false;
-
 
29981
        if (this.warehouseId != that.warehouseId)
29193
          return false;
29982
          return false;
29194
      }
29983
      }
29195
 
29984
 
29196
      return true;
29985
      return true;
29197
    }
29986
    }
Line 29199... Line 29988...
29199
    @Override
29988
    @Override
29200
    public int hashCode() {
29989
    public int hashCode() {
29201
      return 0;
29990
      return 0;
29202
    }
29991
    }
29203
 
29992
 
29204
    public int compareTo(getValidOrders_args other) {
29993
    public int compareTo(getUndeliveredOrders_args other) {
29205
      if (!getClass().equals(other.getClass())) {
29994
      if (!getClass().equals(other.getClass())) {
29206
        return getClass().getName().compareTo(other.getClass().getName());
29995
        return getClass().getName().compareTo(other.getClass().getName());
29207
      }
29996
      }
29208
 
29997
 
29209
      int lastComparison = 0;
29998
      int lastComparison = 0;
29210
      getValidOrders_args typedOther = (getValidOrders_args)other;
29999
      getUndeliveredOrders_args typedOther = (getUndeliveredOrders_args)other;
29211
 
30000
 
29212
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(isSetLimit());
30001
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
29213
      if (lastComparison != 0) {
30002
      if (lastComparison != 0) {
29214
        return lastComparison;
30003
        return lastComparison;
29215
      }
30004
      }
29216
      lastComparison = TBaseHelper.compareTo(limit, typedOther.limit);
30005
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
-
 
30006
      if (lastComparison != 0) {
-
 
30007
        return lastComparison;
-
 
30008
      }
-
 
30009
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
-
 
30010
      if (lastComparison != 0) {
-
 
30011
        return lastComparison;
-
 
30012
      }
-
 
30013
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
29217
      if (lastComparison != 0) {
30014
      if (lastComparison != 0) {
29218
        return lastComparison;
30015
        return lastComparison;
29219
      }
30016
      }
29220
      return 0;
30017
      return 0;
29221
    }
30018
    }
Line 29232... Line 30029...
29232
        _Fields fieldId = _Fields.findByThriftId(field.id);
30029
        _Fields fieldId = _Fields.findByThriftId(field.id);
29233
        if (fieldId == null) {
30030
        if (fieldId == null) {
29234
          TProtocolUtil.skip(iprot, field.type);
30031
          TProtocolUtil.skip(iprot, field.type);
29235
        } else {
30032
        } else {
29236
          switch (fieldId) {
30033
          switch (fieldId) {
29237
            case LIMIT:
30034
            case PROVIDER_ID:
29238
              if (field.type == TType.I64) {
30035
              if (field.type == TType.I64) {
29239
                this.limit = iprot.readI64();
30036
                this.providerId = iprot.readI64();
29240
                setLimitIsSet(true);
30037
                setProviderIdIsSet(true);
-
 
30038
              } else { 
-
 
30039
                TProtocolUtil.skip(iprot, field.type);
-
 
30040
              }
-
 
30041
              break;
-
 
30042
            case WAREHOUSE_ID:
-
 
30043
              if (field.type == TType.I64) {
-
 
30044
                this.warehouseId = iprot.readI64();
-
 
30045
                setWarehouseIdIsSet(true);
29241
              } else { 
30046
              } else { 
29242
                TProtocolUtil.skip(iprot, field.type);
30047
                TProtocolUtil.skip(iprot, field.type);
29243
              }
30048
              }
29244
              break;
30049
              break;
29245
          }
30050
          }
Line 29252... Line 30057...
29252
 
30057
 
29253
    public void write(TProtocol oprot) throws TException {
30058
    public void write(TProtocol oprot) throws TException {
29254
      validate();
30059
      validate();
29255
 
30060
 
29256
      oprot.writeStructBegin(STRUCT_DESC);
30061
      oprot.writeStructBegin(STRUCT_DESC);
29257
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
30062
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
29258
      oprot.writeI64(this.limit);
30063
      oprot.writeI64(this.providerId);
-
 
30064
      oprot.writeFieldEnd();
-
 
30065
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
30066
      oprot.writeI64(this.warehouseId);
29259
      oprot.writeFieldEnd();
30067
      oprot.writeFieldEnd();
29260
      oprot.writeFieldStop();
30068
      oprot.writeFieldStop();
29261
      oprot.writeStructEnd();
30069
      oprot.writeStructEnd();
29262
    }
30070
    }
29263
 
30071
 
29264
    @Override
30072
    @Override
29265
    public String toString() {
30073
    public String toString() {
29266
      StringBuilder sb = new StringBuilder("getValidOrders_args(");
30074
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_args(");
29267
      boolean first = true;
30075
      boolean first = true;
29268
 
30076
 
29269
      sb.append("limit:");
30077
      sb.append("providerId:");
29270
      sb.append(this.limit);
30078
      sb.append(this.providerId);
-
 
30079
      first = false;
-
 
30080
      if (!first) sb.append(", ");
-
 
30081
      sb.append("warehouseId:");
-
 
30082
      sb.append(this.warehouseId);
29271
      first = false;
30083
      first = false;
29272
      sb.append(")");
30084
      sb.append(")");
29273
      return sb.toString();
30085
      return sb.toString();
29274
    }
30086
    }
29275
 
30087
 
Line 29277... Line 30089...
29277
      // check for required fields
30089
      // check for required fields
29278
    }
30090
    }
29279
 
30091
 
29280
  }
30092
  }
29281
 
30093
 
29282
  public static class getValidOrders_result implements TBase<getValidOrders_result._Fields>, java.io.Serializable, Cloneable, Comparable<getValidOrders_result>   {
30094
  public static class getUndeliveredOrders_result implements TBase<getUndeliveredOrders_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUndeliveredOrders_result>   {
29283
    private static final TStruct STRUCT_DESC = new TStruct("getValidOrders_result");
30095
    private static final TStruct STRUCT_DESC = new TStruct("getUndeliveredOrders_result");
29284
 
30096
 
29285
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
30097
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
29286
 
30098
 
29287
    private List<Order> success;
30099
    private List<Order> success;
29288
 
30100
 
Line 29348... Line 30160...
29348
          new ListMetaData(TType.LIST, 
30160
          new ListMetaData(TType.LIST, 
29349
              new StructMetaData(TType.STRUCT, Order.class))));
30161
              new StructMetaData(TType.STRUCT, Order.class))));
29350
    }});
30162
    }});
29351
 
30163
 
29352
    static {
30164
    static {
29353
      FieldMetaData.addStructMetaDataMap(getValidOrders_result.class, metaDataMap);
30165
      FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_result.class, metaDataMap);
29354
    }
30166
    }
29355
 
30167
 
29356
    public getValidOrders_result() {
30168
    public getUndeliveredOrders_result() {
29357
    }
30169
    }
29358
 
30170
 
29359
    public getValidOrders_result(
30171
    public getUndeliveredOrders_result(
29360
      List<Order> success)
30172
      List<Order> success)
29361
    {
30173
    {
29362
      this();
30174
      this();
29363
      this.success = success;
30175
      this.success = success;
29364
    }
30176
    }
29365
 
30177
 
29366
    /**
30178
    /**
29367
     * Performs a deep copy on <i>other</i>.
30179
     * Performs a deep copy on <i>other</i>.
29368
     */
30180
     */
29369
    public getValidOrders_result(getValidOrders_result other) {
30181
    public getUndeliveredOrders_result(getUndeliveredOrders_result other) {
29370
      if (other.isSetSuccess()) {
30182
      if (other.isSetSuccess()) {
29371
        List<Order> __this__success = new ArrayList<Order>();
30183
        List<Order> __this__success = new ArrayList<Order>();
29372
        for (Order other_element : other.success) {
30184
        for (Order other_element : other.success) {
29373
          __this__success.add(new Order(other_element));
30185
          __this__success.add(new Order(other_element));
29374
        }
30186
        }
29375
        this.success = __this__success;
30187
        this.success = __this__success;
29376
      }
30188
      }
29377
    }
30189
    }
29378
 
30190
 
29379
    public getValidOrders_result deepCopy() {
30191
    public getUndeliveredOrders_result deepCopy() {
29380
      return new getValidOrders_result(this);
30192
      return new getUndeliveredOrders_result(this);
29381
    }
30193
    }
29382
 
30194
 
29383
    @Deprecated
30195
    @Deprecated
29384
    public getValidOrders_result clone() {
30196
    public getUndeliveredOrders_result clone() {
29385
      return new getValidOrders_result(this);
30197
      return new getUndeliveredOrders_result(this);
29386
    }
30198
    }
29387
 
30199
 
29388
    public int getSuccessSize() {
30200
    public int getSuccessSize() {
29389
      return (this.success == null) ? 0 : this.success.size();
30201
      return (this.success == null) ? 0 : this.success.size();
29390
    }
30202
    }
Line 29402... Line 30214...
29402
 
30214
 
29403
    public List<Order> getSuccess() {
30215
    public List<Order> getSuccess() {
29404
      return this.success;
30216
      return this.success;
29405
    }
30217
    }
29406
 
30218
 
29407
    public getValidOrders_result setSuccess(List<Order> success) {
30219
    public getUndeliveredOrders_result setSuccess(List<Order> success) {
29408
      this.success = success;
30220
      this.success = success;
29409
      return this;
30221
      return this;
29410
    }
30222
    }
29411
 
30223
 
29412
    public void unsetSuccess() {
30224
    public void unsetSuccess() {
Line 29469... Line 30281...
29469
 
30281
 
29470
    @Override
30282
    @Override
29471
    public boolean equals(Object that) {
30283
    public boolean equals(Object that) {
29472
      if (that == null)
30284
      if (that == null)
29473
        return false;
30285
        return false;
29474
      if (that instanceof getValidOrders_result)
30286
      if (that instanceof getUndeliveredOrders_result)
29475
        return this.equals((getValidOrders_result)that);
30287
        return this.equals((getUndeliveredOrders_result)that);
29476
      return false;
30288
      return false;
29477
    }
30289
    }
29478
 
30290
 
29479
    public boolean equals(getValidOrders_result that) {
30291
    public boolean equals(getUndeliveredOrders_result that) {
29480
      if (that == null)
30292
      if (that == null)
29481
        return false;
30293
        return false;
29482
 
30294
 
29483
      boolean this_present_success = true && this.isSetSuccess();
30295
      boolean this_present_success = true && this.isSetSuccess();
29484
      boolean that_present_success = true && that.isSetSuccess();
30296
      boolean that_present_success = true && that.isSetSuccess();
Line 29495... Line 30307...
29495
    @Override
30307
    @Override
29496
    public int hashCode() {
30308
    public int hashCode() {
29497
      return 0;
30309
      return 0;
29498
    }
30310
    }
29499
 
30311
 
29500
    public int compareTo(getValidOrders_result other) {
30312
    public int compareTo(getUndeliveredOrders_result other) {
29501
      if (!getClass().equals(other.getClass())) {
30313
      if (!getClass().equals(other.getClass())) {
29502
        return getClass().getName().compareTo(other.getClass().getName());
30314
        return getClass().getName().compareTo(other.getClass().getName());
29503
      }
30315
      }
29504
 
30316
 
29505
      int lastComparison = 0;
30317
      int lastComparison = 0;
29506
      getValidOrders_result typedOther = (getValidOrders_result)other;
30318
      getUndeliveredOrders_result typedOther = (getUndeliveredOrders_result)other;
29507
 
30319
 
29508
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
30320
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
29509
      if (lastComparison != 0) {
30321
      if (lastComparison != 0) {
29510
        return lastComparison;
30322
        return lastComparison;
29511
      }
30323
      }
Line 29575... Line 30387...
29575
      oprot.writeStructEnd();
30387
      oprot.writeStructEnd();
29576
    }
30388
    }
29577
 
30389
 
29578
    @Override
30390
    @Override
29579
    public String toString() {
30391
    public String toString() {
29580
      StringBuilder sb = new StringBuilder("getValidOrders_result(");
30392
      StringBuilder sb = new StringBuilder("getUndeliveredOrders_result(");
29581
      boolean first = true;
30393
      boolean first = true;
29582
 
30394
 
29583
      sb.append("success:");
30395
      sb.append("success:");
29584
      if (this.success == null) {
30396
      if (this.success == null) {
29585
        sb.append("null");
30397
        sb.append("null");