Subversion Repositories SmartDukaan

Rev

Rev 358 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 358 Rev 483
Line 27... Line 27...
27
 
27
 
28
  public interface Iface {
28
  public interface Iface {
29
 
29
 
30
    public long createTransaction(Transaction transaction) throws TransactionServiceException, TException;
30
    public long createTransaction(Transaction transaction) throws TransactionServiceException, TException;
31
 
31
 
32
    /**
-
 
33
     * 	Get transaction methods.
-
 
34
     * *
-
 
35
     * 
-
 
36
     * @param id
-
 
37
     */
-
 
38
    public Transaction getTransaction(long id) throws TransactionServiceException, TException;
32
    public Transaction getTransaction(long id) throws TransactionServiceException, TException;
39
 
33
 
40
    public List<Transaction> getAllTransactions(TransactionStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
-
 
41
 
-
 
42
    public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TransactionServiceException, TException;
-
 
43
 
-
 
44
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException;
34
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException;
45
 
35
 
46
    public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TransactionServiceException, TException;
-
 
47
 
-
 
48
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException;
36
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException;
49
 
37
 
50
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;
38
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;
51
 
39
 
52
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
40
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
53
 
41
 
54
    /**
-
 
55
     * 	Get and set individual objects in it
-
 
56
     * *
-
 
57
     * 
-
 
58
     * @param transactionId
-
 
59
     */
-
 
60
    public OrderInfo getOrderInfo(long transactionId) throws TransactionServiceException, TException;
42
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
61
 
-
 
62
    public ShipmentInfo getShippingInfo(long transactionId) throws TransactionServiceException, TException;
-
 
63
 
-
 
64
    public BillingInfo getBillingInfo(long transactionId) throws TransactionServiceException, TException;
-
 
65
 
43
 
66
    public boolean addBilling(long tranactionId, Billing billing) throws TransactionServiceException, TException;
44
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
67
 
45
 
68
    public boolean setShippingTracker(long transactionId, long shippingId, String trackingId, String airwayBillNo, String provider) throws TransactionServiceException, TException;
46
    public List<Order> getOrdersForTransaction(long transactionId) throws TransactionServiceException, TException;
69
 
47
 
70
    public boolean setShippingDate(long transactionId, long shippingId, long timestamp) throws TransactionServiceException, TException;
48
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, OrderStatus status) throws TransactionServiceException, TException;
71
 
49
 
72
    public boolean setDeliveryDate(long transactionId, long shippingid, long timestamp) throws TransactionServiceException, TException;
50
    public long createOrder(Order order) throws TransactionServiceException, TException;
73
 
51
 
74
    public boolean changeShippingStatus(long transactionId, long shippingId, ShipmentStatus status, String description) throws TransactionServiceException, TException;
52
    public Order getOrder(long id) throws TransactionServiceException, TException;
75
 
53
 
76
    public boolean addTrail(long transactionId, String description) throws TransactionServiceException, TException;
54
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, TException;
77
 
55
 
78
    public List<Alert> getAlerts(long transactionId, boolean valid) throws TException;
56
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
79
 
57
 
80
    public void setAlert(long transactionId, boolean unset, long type, String comment) throws TException;
58
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
81
 
-
 
82
    public ExtraOrderInfo getExtraInfo(long transaction_id) throws TException;
-
 
83
 
-
 
84
    public void setExtraInfo(long transaction_id, long sku_id, String model, String colour, String vendor) throws TException;
-
 
85
 
59
 
86
  }
60
  }
87
 
61
 
88
  public static class Client implements Iface {
62
  public static class Client implements Iface {
89
    public Client(TProtocol prot)
63
    public Client(TProtocol prot)
Line 182... Line 156...
182
        throw result.ex;
156
        throw result.ex;
183
      }
157
      }
184
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
158
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
185
    }
159
    }
186
 
160
 
187
    public List<Transaction> getAllTransactions(TransactionStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException
-
 
188
    {
-
 
189
      send_getAllTransactions(status, from_date, to_date, warehouse_id);
-
 
190
      return recv_getAllTransactions();
-
 
191
    }
-
 
192
 
-
 
193
    public void send_getAllTransactions(TransactionStatus status, long from_date, long to_date, long warehouse_id) throws TException
-
 
194
    {
-
 
195
      oprot_.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.CALL, seqid_));
-
 
196
      getAllTransactions_args args = new getAllTransactions_args();
-
 
197
      args.status = status;
-
 
198
      args.from_date = from_date;
-
 
199
      args.to_date = to_date;
-
 
200
      args.warehouse_id = warehouse_id;
-
 
201
      args.write(oprot_);
-
 
202
      oprot_.writeMessageEnd();
-
 
203
      oprot_.getTransport().flush();
-
 
204
    }
-
 
205
 
-
 
206
    public List<Transaction> recv_getAllTransactions() throws TransactionServiceException, TException
-
 
207
    {
-
 
208
      TMessage msg = iprot_.readMessageBegin();
-
 
209
      if (msg.type == TMessageType.EXCEPTION) {
-
 
210
        TApplicationException x = TApplicationException.read(iprot_);
-
 
211
        iprot_.readMessageEnd();
-
 
212
        throw x;
-
 
213
      }
-
 
214
      getAllTransactions_result result = new getAllTransactions_result();
-
 
215
      result.read(iprot_);
-
 
216
      iprot_.readMessageEnd();
-
 
217
      if (result.isSetSuccess()) {
-
 
218
        return result.success;
-
 
219
      }
-
 
220
      if (result.ex != null) {
-
 
221
        throw result.ex;
-
 
222
      }
-
 
223
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");
-
 
224
    }
-
 
225
 
-
 
226
    public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TransactionServiceException, TException
-
 
227
    {
-
 
228
      send_getTransactionsForShipmentStatus(status, from_date, to_date);
-
 
229
      return recv_getTransactionsForShipmentStatus();
-
 
230
    }
-
 
231
 
-
 
232
    public void send_getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TException
-
 
233
    {
-
 
234
      oprot_.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.CALL, seqid_));
-
 
235
      getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();
-
 
236
      args.status = status;
-
 
237
      args.from_date = from_date;
-
 
238
      args.to_date = to_date;
-
 
239
      args.write(oprot_);
-
 
240
      oprot_.writeMessageEnd();
-
 
241
      oprot_.getTransport().flush();
-
 
242
    }
-
 
243
 
-
 
244
    public List<Transaction> recv_getTransactionsForShipmentStatus() throws TransactionServiceException, TException
-
 
245
    {
-
 
246
      TMessage msg = iprot_.readMessageBegin();
-
 
247
      if (msg.type == TMessageType.EXCEPTION) {
-
 
248
        TApplicationException x = TApplicationException.read(iprot_);
-
 
249
        iprot_.readMessageEnd();
-
 
250
        throw x;
-
 
251
      }
-
 
252
      getTransactionsForShipmentStatus_result result = new getTransactionsForShipmentStatus_result();
-
 
253
      result.read(iprot_);
-
 
254
      iprot_.readMessageEnd();
-
 
255
      if (result.isSetSuccess()) {
-
 
256
        return result.success;
-
 
257
      }
-
 
258
      if (result.ex != null) {
-
 
259
        throw result.ex;
-
 
260
      }
-
 
261
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");
-
 
262
    }
-
 
263
 
-
 
264
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException
161
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException
265
    {
162
    {
266
      send_getTransactionsForCustomer(customerId, from_date, to_date, status);
163
      send_getTransactionsForCustomer(customerId, from_date, to_date, status);
267
      return recv_getTransactionsForCustomer();
164
      return recv_getTransactionsForCustomer();
268
    }
165
    }
Line 298... Line 195...
298
        throw result.ex;
195
        throw result.ex;
299
      }
196
      }
300
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
197
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
301
    }
198
    }
302
 
199
 
303
    public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TransactionServiceException, TException
-
 
304
    {
-
 
305
      send_getTransactionsForCustomerAndShipmentStatus(customerId, from_date, to_date, status);
-
 
306
      return recv_getTransactionsForCustomerAndShipmentStatus();
-
 
307
    }
-
 
308
 
-
 
309
    public void send_getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TException
-
 
310
    {
-
 
311
      oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.CALL, seqid_));
-
 
312
      getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();
-
 
313
      args.customerId = customerId;
-
 
314
      args.from_date = from_date;
-
 
315
      args.to_date = to_date;
-
 
316
      args.status = status;
-
 
317
      args.write(oprot_);
-
 
318
      oprot_.writeMessageEnd();
-
 
319
      oprot_.getTransport().flush();
-
 
320
    }
-
 
321
 
-
 
322
    public List<Transaction> recv_getTransactionsForCustomerAndShipmentStatus() throws TransactionServiceException, TException
-
 
323
    {
-
 
324
      TMessage msg = iprot_.readMessageBegin();
-
 
325
      if (msg.type == TMessageType.EXCEPTION) {
-
 
326
        TApplicationException x = TApplicationException.read(iprot_);
-
 
327
        iprot_.readMessageEnd();
-
 
328
        throw x;
-
 
329
      }
-
 
330
      getTransactionsForCustomerAndShipmentStatus_result result = new getTransactionsForCustomerAndShipmentStatus_result();
-
 
331
      result.read(iprot_);
-
 
332
      iprot_.readMessageEnd();
-
 
333
      if (result.isSetSuccess()) {
-
 
334
        return result.success;
-
 
335
      }
-
 
336
      if (result.ex != null) {
-
 
337
        throw result.ex;
-
 
338
      }
-
 
339
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
-
 
340
    }
-
 
341
 
-
 
342
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException
200
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException
343
    {
201
    {
344
      send_getTransactionsForShoppingCartId(shoppingCartId);
202
      send_getTransactionsForShoppingCartId(shoppingCartId);
345
      return recv_getTransactionsForShoppingCartId();
203
      return recv_getTransactionsForShoppingCartId();
346
    }
204
    }
Line 447... Line 305...
447
        throw result.ex;
305
        throw result.ex;
448
      }
306
      }
449
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
307
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
450
    }
308
    }
451
 
309
 
452
    public OrderInfo getOrderInfo(long transactionId) throws TransactionServiceException, TException
310
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException
453
    {
-
 
454
      send_getOrderInfo(transactionId);
-
 
455
      return recv_getOrderInfo();
-
 
456
    }
-
 
457
 
-
 
458
    public void send_getOrderInfo(long transactionId) throws TException
-
 
459
    {
-
 
460
      oprot_.writeMessageBegin(new TMessage("getOrderInfo", TMessageType.CALL, seqid_));
-
 
461
      getOrderInfo_args args = new getOrderInfo_args();
-
 
462
      args.transactionId = transactionId;
-
 
463
      args.write(oprot_);
-
 
464
      oprot_.writeMessageEnd();
-
 
465
      oprot_.getTransport().flush();
-
 
466
    }
-
 
467
 
-
 
468
    public OrderInfo recv_getOrderInfo() throws TransactionServiceException, TException
-
 
469
    {
311
    {
470
      TMessage msg = iprot_.readMessageBegin();
-
 
471
      if (msg.type == TMessageType.EXCEPTION) {
-
 
472
        TApplicationException x = TApplicationException.read(iprot_);
-
 
473
        iprot_.readMessageEnd();
-
 
474
        throw x;
-
 
475
      }
-
 
476
      getOrderInfo_result result = new getOrderInfo_result();
312
      send_getAllOrders(status, from_date, to_date, warehouse_id);
477
      result.read(iprot_);
-
 
478
      iprot_.readMessageEnd();
-
 
479
      if (result.isSetSuccess()) {
-
 
480
        return result.success;
313
      return recv_getAllOrders();
481
      }
-
 
482
      if (result.ex != null) {
-
 
483
        throw result.ex;
-
 
484
      }
-
 
485
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrderInfo failed: unknown result");
-
 
486
    }
314
    }
487
 
315
 
488
    public ShipmentInfo getShippingInfo(long transactionId) throws TransactionServiceException, TException
316
    public void send_getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TException
489
    {
317
    {
490
      send_getShippingInfo(transactionId);
-
 
491
      return recv_getShippingInfo();
-
 
492
    }
-
 
493
 
-
 
494
    public void send_getShippingInfo(long transactionId) throws TException
-
 
495
    {
-
 
496
      oprot_.writeMessageBegin(new TMessage("getShippingInfo", TMessageType.CALL, seqid_));
318
      oprot_.writeMessageBegin(new TMessage("getAllOrders", TMessageType.CALL, seqid_));
497
      getShippingInfo_args args = new getShippingInfo_args();
319
      getAllOrders_args args = new getAllOrders_args();
498
      args.transactionId = transactionId;
320
      args.status = status;
499
      args.write(oprot_);
321
      args.from_date = from_date;
500
      oprot_.writeMessageEnd();
-
 
501
      oprot_.getTransport().flush();
-
 
502
    }
-
 
503
 
-
 
504
    public ShipmentInfo recv_getShippingInfo() throws TransactionServiceException, TException
-
 
505
    {
-
 
506
      TMessage msg = iprot_.readMessageBegin();
-
 
507
      if (msg.type == TMessageType.EXCEPTION) {
-
 
508
        TApplicationException x = TApplicationException.read(iprot_);
-
 
509
        iprot_.readMessageEnd();
-
 
510
        throw x;
-
 
511
      }
-
 
512
      getShippingInfo_result result = new getShippingInfo_result();
-
 
513
      result.read(iprot_);
322
      args.to_date = to_date;
514
      iprot_.readMessageEnd();
-
 
515
      if (result.isSetSuccess()) {
-
 
516
        return result.success;
-
 
517
      }
-
 
518
      if (result.ex != null) {
-
 
519
        throw result.ex;
-
 
520
      }
-
 
521
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getShippingInfo failed: unknown result");
-
 
522
    }
-
 
523
 
-
 
524
    public BillingInfo getBillingInfo(long transactionId) throws TransactionServiceException, TException
-
 
525
    {
-
 
526
      send_getBillingInfo(transactionId);
-
 
527
      return recv_getBillingInfo();
-
 
528
    }
-
 
529
 
-
 
530
    public void send_getBillingInfo(long transactionId) throws TException
-
 
531
    {
-
 
532
      oprot_.writeMessageBegin(new TMessage("getBillingInfo", TMessageType.CALL, seqid_));
-
 
533
      getBillingInfo_args args = new getBillingInfo_args();
-
 
534
      args.transactionId = transactionId;
323
      args.warehouse_id = warehouse_id;
535
      args.write(oprot_);
324
      args.write(oprot_);
536
      oprot_.writeMessageEnd();
325
      oprot_.writeMessageEnd();
537
      oprot_.getTransport().flush();
326
      oprot_.getTransport().flush();
538
    }
327
    }
539
 
328
 
540
    public BillingInfo recv_getBillingInfo() throws TransactionServiceException, TException
329
    public List<Order> recv_getAllOrders() throws TransactionServiceException, TException
541
    {
330
    {
542
      TMessage msg = iprot_.readMessageBegin();
331
      TMessage msg = iprot_.readMessageBegin();
543
      if (msg.type == TMessageType.EXCEPTION) {
332
      if (msg.type == TMessageType.EXCEPTION) {
544
        TApplicationException x = TApplicationException.read(iprot_);
333
        TApplicationException x = TApplicationException.read(iprot_);
545
        iprot_.readMessageEnd();
334
        iprot_.readMessageEnd();
546
        throw x;
335
        throw x;
547
      }
336
      }
548
      getBillingInfo_result result = new getBillingInfo_result();
337
      getAllOrders_result result = new getAllOrders_result();
549
      result.read(iprot_);
338
      result.read(iprot_);
550
      iprot_.readMessageEnd();
339
      iprot_.readMessageEnd();
551
      if (result.isSetSuccess()) {
340
      if (result.isSetSuccess()) {
552
        return result.success;
341
        return result.success;
553
      }
342
      }
554
      if (result.ex != null) {
343
      if (result.ex != null) {
555
        throw result.ex;
344
        throw result.ex;
556
      }
345
      }
557
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getBillingInfo failed: unknown result");
346
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
558
    }
347
    }
559
 
348
 
560
    public boolean addBilling(long tranactionId, Billing billing) throws TransactionServiceException, TException
349
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException
561
    {
350
    {
562
      send_addBilling(tranactionId, billing);
351
      send_changeOrderStatus(orderId, status, description);
563
      return recv_addBilling();
352
      return recv_changeOrderStatus();
564
    }
353
    }
565
 
354
 
566
    public void send_addBilling(long tranactionId, Billing billing) throws TException
355
    public void send_changeOrderStatus(long orderId, OrderStatus status, String description) throws TException
567
    {
356
    {
568
      oprot_.writeMessageBegin(new TMessage("addBilling", TMessageType.CALL, seqid_));
357
      oprot_.writeMessageBegin(new TMessage("changeOrderStatus", TMessageType.CALL, seqid_));
569
      addBilling_args args = new addBilling_args();
358
      changeOrderStatus_args args = new changeOrderStatus_args();
570
      args.tranactionId = tranactionId;
359
      args.orderId = orderId;
571
      args.billing = billing;
360
      args.status = status;
-
 
361
      args.description = description;
572
      args.write(oprot_);
362
      args.write(oprot_);
573
      oprot_.writeMessageEnd();
363
      oprot_.writeMessageEnd();
574
      oprot_.getTransport().flush();
364
      oprot_.getTransport().flush();
575
    }
365
    }
576
 
366
 
577
    public boolean recv_addBilling() throws TransactionServiceException, TException
367
    public boolean recv_changeOrderStatus() throws TransactionServiceException, TException
578
    {
368
    {
579
      TMessage msg = iprot_.readMessageBegin();
369
      TMessage msg = iprot_.readMessageBegin();
580
      if (msg.type == TMessageType.EXCEPTION) {
370
      if (msg.type == TMessageType.EXCEPTION) {
581
        TApplicationException x = TApplicationException.read(iprot_);
371
        TApplicationException x = TApplicationException.read(iprot_);
582
        iprot_.readMessageEnd();
372
        iprot_.readMessageEnd();
583
        throw x;
373
        throw x;
584
      }
374
      }
585
      addBilling_result result = new addBilling_result();
375
      changeOrderStatus_result result = new changeOrderStatus_result();
586
      result.read(iprot_);
376
      result.read(iprot_);
587
      iprot_.readMessageEnd();
377
      iprot_.readMessageEnd();
588
      if (result.isSetSuccess()) {
378
      if (result.isSetSuccess()) {
589
        return result.success;
379
        return result.success;
590
      }
380
      }
591
      if (result.ex != null) {
381
      if (result.ex != null) {
592
        throw result.ex;
382
        throw result.ex;
593
      }
383
      }
594
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addBilling failed: unknown result");
384
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
595
    }
385
    }
596
 
386
 
597
    public boolean setShippingTracker(long transactionId, long shippingId, String trackingId, String airwayBillNo, String provider) throws TransactionServiceException, TException
387
    public List<Order> getOrdersForTransaction(long transactionId) throws TransactionServiceException, TException
598
    {
388
    {
599
      send_setShippingTracker(transactionId, shippingId, trackingId, airwayBillNo, provider);
389
      send_getOrdersForTransaction(transactionId);
600
      return recv_setShippingTracker();
390
      return recv_getOrdersForTransaction();
601
    }
391
    }
602
 
392
 
603
    public void send_setShippingTracker(long transactionId, long shippingId, String trackingId, String airwayBillNo, String provider) throws TException
393
    public void send_getOrdersForTransaction(long transactionId) throws TException
604
    {
394
    {
605
      oprot_.writeMessageBegin(new TMessage("setShippingTracker", TMessageType.CALL, seqid_));
395
      oprot_.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.CALL, seqid_));
606
      setShippingTracker_args args = new setShippingTracker_args();
396
      getOrdersForTransaction_args args = new getOrdersForTransaction_args();
607
      args.transactionId = transactionId;
397
      args.transactionId = transactionId;
608
      args.shippingId = shippingId;
-
 
609
      args.trackingId = trackingId;
-
 
610
      args.airwayBillNo = airwayBillNo;
-
 
611
      args.provider = provider;
-
 
612
      args.write(oprot_);
398
      args.write(oprot_);
613
      oprot_.writeMessageEnd();
399
      oprot_.writeMessageEnd();
614
      oprot_.getTransport().flush();
400
      oprot_.getTransport().flush();
615
    }
401
    }
616
 
402
 
617
    public boolean recv_setShippingTracker() throws TransactionServiceException, TException
403
    public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, TException
618
    {
404
    {
619
      TMessage msg = iprot_.readMessageBegin();
405
      TMessage msg = iprot_.readMessageBegin();
620
      if (msg.type == TMessageType.EXCEPTION) {
406
      if (msg.type == TMessageType.EXCEPTION) {
621
        TApplicationException x = TApplicationException.read(iprot_);
407
        TApplicationException x = TApplicationException.read(iprot_);
622
        iprot_.readMessageEnd();
408
        iprot_.readMessageEnd();
623
        throw x;
409
        throw x;
624
      }
410
      }
625
      setShippingTracker_result result = new setShippingTracker_result();
411
      getOrdersForTransaction_result result = new getOrdersForTransaction_result();
626
      result.read(iprot_);
412
      result.read(iprot_);
627
      iprot_.readMessageEnd();
413
      iprot_.readMessageEnd();
628
      if (result.isSetSuccess()) {
414
      if (result.isSetSuccess()) {
629
        return result.success;
415
        return result.success;
630
      }
416
      }
631
      if (result.ex != null) {
417
      if (result.ex != null) {
632
        throw result.ex;
418
        throw result.ex;
633
      }
419
      }
634
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "setShippingTracker failed: unknown result");
420
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
635
    }
421
    }
636
 
422
 
637
    public boolean setShippingDate(long transactionId, long shippingId, long timestamp) throws TransactionServiceException, TException
423
    public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, OrderStatus status) throws TransactionServiceException, TException
638
    {
424
    {
639
      send_setShippingDate(transactionId, shippingId, timestamp);
425
      send_getOrdersForCustomer(customerId, from_date, to_date, status);
640
      return recv_setShippingDate();
426
      return recv_getOrdersForCustomer();
641
    }
427
    }
642
 
428
 
643
    public void send_setShippingDate(long transactionId, long shippingId, long timestamp) throws TException
429
    public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, OrderStatus status) throws TException
644
    {
430
    {
645
      oprot_.writeMessageBegin(new TMessage("setShippingDate", TMessageType.CALL, seqid_));
431
      oprot_.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.CALL, seqid_));
646
      setShippingDate_args args = new setShippingDate_args();
432
      getOrdersForCustomer_args args = new getOrdersForCustomer_args();
647
      args.transactionId = transactionId;
433
      args.customerId = customerId;
648
      args.shippingId = shippingId;
434
      args.from_date = from_date;
649
      args.timestamp = timestamp;
435
      args.to_date = to_date;
-
 
436
      args.status = status;
650
      args.write(oprot_);
437
      args.write(oprot_);
651
      oprot_.writeMessageEnd();
438
      oprot_.writeMessageEnd();
652
      oprot_.getTransport().flush();
439
      oprot_.getTransport().flush();
653
    }
440
    }
654
 
441
 
655
    public boolean recv_setShippingDate() throws TransactionServiceException, TException
442
    public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, TException
656
    {
443
    {
657
      TMessage msg = iprot_.readMessageBegin();
444
      TMessage msg = iprot_.readMessageBegin();
658
      if (msg.type == TMessageType.EXCEPTION) {
445
      if (msg.type == TMessageType.EXCEPTION) {
659
        TApplicationException x = TApplicationException.read(iprot_);
446
        TApplicationException x = TApplicationException.read(iprot_);
660
        iprot_.readMessageEnd();
447
        iprot_.readMessageEnd();
661
        throw x;
448
        throw x;
662
      }
449
      }
663
      setShippingDate_result result = new setShippingDate_result();
450
      getOrdersForCustomer_result result = new getOrdersForCustomer_result();
664
      result.read(iprot_);
451
      result.read(iprot_);
665
      iprot_.readMessageEnd();
452
      iprot_.readMessageEnd();
666
      if (result.isSetSuccess()) {
453
      if (result.isSetSuccess()) {
667
        return result.success;
454
        return result.success;
668
      }
455
      }
669
      if (result.ex != null) {
456
      if (result.ex != null) {
670
        throw result.ex;
457
        throw result.ex;
671
      }
458
      }
672
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "setShippingDate failed: unknown result");
459
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
673
    }
460
    }
674
 
461
 
675
    public boolean setDeliveryDate(long transactionId, long shippingid, long timestamp) throws TransactionServiceException, TException
462
    public long createOrder(Order order) throws TransactionServiceException, TException
676
    {
463
    {
677
      send_setDeliveryDate(transactionId, shippingid, timestamp);
464
      send_createOrder(order);
678
      return recv_setDeliveryDate();
465
      return recv_createOrder();
679
    }
466
    }
680
 
467
 
681
    public void send_setDeliveryDate(long transactionId, long shippingid, long timestamp) throws TException
468
    public void send_createOrder(Order order) throws TException
682
    {
469
    {
683
      oprot_.writeMessageBegin(new TMessage("setDeliveryDate", TMessageType.CALL, seqid_));
470
      oprot_.writeMessageBegin(new TMessage("createOrder", TMessageType.CALL, seqid_));
684
      setDeliveryDate_args args = new setDeliveryDate_args();
471
      createOrder_args args = new createOrder_args();
685
      args.transactionId = transactionId;
-
 
686
      args.shippingid = shippingid;
-
 
687
      args.timestamp = timestamp;
472
      args.order = order;
688
      args.write(oprot_);
473
      args.write(oprot_);
689
      oprot_.writeMessageEnd();
474
      oprot_.writeMessageEnd();
690
      oprot_.getTransport().flush();
475
      oprot_.getTransport().flush();
691
    }
476
    }
692
 
477
 
693
    public boolean recv_setDeliveryDate() throws TransactionServiceException, TException
478
    public long recv_createOrder() throws TransactionServiceException, TException
694
    {
479
    {
695
      TMessage msg = iprot_.readMessageBegin();
480
      TMessage msg = iprot_.readMessageBegin();
696
      if (msg.type == TMessageType.EXCEPTION) {
481
      if (msg.type == TMessageType.EXCEPTION) {
697
        TApplicationException x = TApplicationException.read(iprot_);
482
        TApplicationException x = TApplicationException.read(iprot_);
698
        iprot_.readMessageEnd();
483
        iprot_.readMessageEnd();
699
        throw x;
484
        throw x;
700
      }
485
      }
701
      setDeliveryDate_result result = new setDeliveryDate_result();
486
      createOrder_result result = new createOrder_result();
702
      result.read(iprot_);
487
      result.read(iprot_);
703
      iprot_.readMessageEnd();
488
      iprot_.readMessageEnd();
704
      if (result.isSetSuccess()) {
489
      if (result.isSetSuccess()) {
705
        return result.success;
490
        return result.success;
706
      }
491
      }
707
      if (result.ex != null) {
492
      if (result.ex != null) {
708
        throw result.ex;
493
        throw result.ex;
709
      }
494
      }
710
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "setDeliveryDate failed: unknown result");
495
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
711
    }
496
    }
712
 
497
 
713
    public boolean changeShippingStatus(long transactionId, long shippingId, ShipmentStatus status, String description) throws TransactionServiceException, TException
498
    public Order getOrder(long id) throws TransactionServiceException, TException
714
    {
499
    {
715
      send_changeShippingStatus(transactionId, shippingId, status, description);
500
      send_getOrder(id);
716
      return recv_changeShippingStatus();
501
      return recv_getOrder();
717
    }
502
    }
718
 
503
 
719
    public void send_changeShippingStatus(long transactionId, long shippingId, ShipmentStatus status, String description) throws TException
504
    public void send_getOrder(long id) throws TException
720
    {
505
    {
721
      oprot_.writeMessageBegin(new TMessage("changeShippingStatus", TMessageType.CALL, seqid_));
506
      oprot_.writeMessageBegin(new TMessage("getOrder", TMessageType.CALL, seqid_));
722
      changeShippingStatus_args args = new changeShippingStatus_args();
507
      getOrder_args args = new getOrder_args();
723
      args.transactionId = transactionId;
-
 
724
      args.shippingId = shippingId;
-
 
725
      args.status = status;
508
      args.id = id;
726
      args.description = description;
-
 
727
      args.write(oprot_);
509
      args.write(oprot_);
728
      oprot_.writeMessageEnd();
510
      oprot_.writeMessageEnd();
729
      oprot_.getTransport().flush();
511
      oprot_.getTransport().flush();
730
    }
512
    }
731
 
513
 
732
    public boolean recv_changeShippingStatus() throws TransactionServiceException, TException
514
    public Order recv_getOrder() throws TransactionServiceException, TException
733
    {
515
    {
734
      TMessage msg = iprot_.readMessageBegin();
516
      TMessage msg = iprot_.readMessageBegin();
735
      if (msg.type == TMessageType.EXCEPTION) {
517
      if (msg.type == TMessageType.EXCEPTION) {
736
        TApplicationException x = TApplicationException.read(iprot_);
518
        TApplicationException x = TApplicationException.read(iprot_);
737
        iprot_.readMessageEnd();
519
        iprot_.readMessageEnd();
738
        throw x;
520
        throw x;
739
      }
521
      }
740
      changeShippingStatus_result result = new changeShippingStatus_result();
522
      getOrder_result result = new getOrder_result();
741
      result.read(iprot_);
523
      result.read(iprot_);
742
      iprot_.readMessageEnd();
524
      iprot_.readMessageEnd();
743
      if (result.isSetSuccess()) {
525
      if (result.isSetSuccess()) {
744
        return result.success;
526
        return result.success;
745
      }
527
      }
746
      if (result.ex != null) {
528
      if (result.ex != null) {
747
        throw result.ex;
529
        throw result.ex;
748
      }
530
      }
749
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeShippingStatus failed: unknown result");
531
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
750
    }
532
    }
751
 
533
 
752
    public boolean addTrail(long transactionId, String description) throws TransactionServiceException, TException
534
    public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, TException
753
    {
535
    {
754
      send_addTrail(transactionId, description);
536
      send_getLineItemsForOrder(orderId);
755
      return recv_addTrail();
537
      return recv_getLineItemsForOrder();
756
    }
538
    }
757
 
539
 
758
    public void send_addTrail(long transactionId, String description) throws TException
540
    public void send_getLineItemsForOrder(long orderId) throws TException
759
    {
541
    {
760
      oprot_.writeMessageBegin(new TMessage("addTrail", TMessageType.CALL, seqid_));
542
      oprot_.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.CALL, seqid_));
761
      addTrail_args args = new addTrail_args();
543
      getLineItemsForOrder_args args = new getLineItemsForOrder_args();
762
      args.transactionId = transactionId;
544
      args.orderId = orderId;
763
      args.description = description;
-
 
764
      args.write(oprot_);
545
      args.write(oprot_);
765
      oprot_.writeMessageEnd();
546
      oprot_.writeMessageEnd();
766
      oprot_.getTransport().flush();
547
      oprot_.getTransport().flush();
767
    }
548
    }
768
 
549
 
769
    public boolean recv_addTrail() throws TransactionServiceException, TException
550
    public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, TException
770
    {
551
    {
771
      TMessage msg = iprot_.readMessageBegin();
552
      TMessage msg = iprot_.readMessageBegin();
772
      if (msg.type == TMessageType.EXCEPTION) {
553
      if (msg.type == TMessageType.EXCEPTION) {
773
        TApplicationException x = TApplicationException.read(iprot_);
554
        TApplicationException x = TApplicationException.read(iprot_);
774
        iprot_.readMessageEnd();
555
        iprot_.readMessageEnd();
775
        throw x;
556
        throw x;
776
      }
557
      }
777
      addTrail_result result = new addTrail_result();
558
      getLineItemsForOrder_result result = new getLineItemsForOrder_result();
778
      result.read(iprot_);
559
      result.read(iprot_);
779
      iprot_.readMessageEnd();
560
      iprot_.readMessageEnd();
780
      if (result.isSetSuccess()) {
561
      if (result.isSetSuccess()) {
781
        return result.success;
562
        return result.success;
782
      }
563
      }
783
      if (result.ex != null) {
564
      if (result.ex != null) {
784
        throw result.ex;
565
        throw result.ex;
785
      }
566
      }
786
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");
567
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
787
    }
568
    }
788
 
569
 
789
    public List<Alert> getAlerts(long transactionId, boolean valid) throws TException
570
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException
790
    {
571
    {
791
      send_getAlerts(transactionId, valid);
572
      send_getAlerts(orderId, valid);
792
      return recv_getAlerts();
573
      return recv_getAlerts();
793
    }
574
    }
794
 
575
 
795
    public void send_getAlerts(long transactionId, boolean valid) throws TException
576
    public void send_getAlerts(long orderId, boolean valid) throws TException
796
    {
577
    {
797
      oprot_.writeMessageBegin(new TMessage("getAlerts", TMessageType.CALL, seqid_));
578
      oprot_.writeMessageBegin(new TMessage("getAlerts", TMessageType.CALL, seqid_));
798
      getAlerts_args args = new getAlerts_args();
579
      getAlerts_args args = new getAlerts_args();
799
      args.transactionId = transactionId;
580
      args.orderId = orderId;
800
      args.valid = valid;
581
      args.valid = valid;
801
      args.write(oprot_);
582
      args.write(oprot_);
802
      oprot_.writeMessageEnd();
583
      oprot_.writeMessageEnd();
803
      oprot_.getTransport().flush();
584
      oprot_.getTransport().flush();
804
    }
585
    }
Line 818... Line 599...
818
        return result.success;
599
        return result.success;
819
      }
600
      }
820
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
601
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
821
    }
602
    }
822
 
603
 
823
    public void setAlert(long transactionId, boolean unset, long type, String comment) throws TException
604
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException
824
    {
605
    {
825
      send_setAlert(transactionId, unset, type, comment);
606
      send_setAlert(orderId, unset, type, comment);
826
      recv_setAlert();
607
      recv_setAlert();
827
    }
608
    }
828
 
609
 
829
    public void send_setAlert(long transactionId, boolean unset, long type, String comment) throws TException
610
    public void send_setAlert(long orderId, boolean unset, long type, String comment) throws TException
830
    {
611
    {
831
      oprot_.writeMessageBegin(new TMessage("setAlert", TMessageType.CALL, seqid_));
612
      oprot_.writeMessageBegin(new TMessage("setAlert", TMessageType.CALL, seqid_));
832
      setAlert_args args = new setAlert_args();
613
      setAlert_args args = new setAlert_args();
833
      args.transactionId = transactionId;
614
      args.orderId = orderId;
834
      args.unset = unset;
615
      args.unset = unset;
835
      args.type = type;
616
      args.type = type;
836
      args.comment = comment;
617
      args.comment = comment;
837
      args.write(oprot_);
618
      args.write(oprot_);
838
      oprot_.writeMessageEnd();
619
      oprot_.writeMessageEnd();
Line 851... Line 632...
851
      result.read(iprot_);
632
      result.read(iprot_);
852
      iprot_.readMessageEnd();
633
      iprot_.readMessageEnd();
853
      return;
634
      return;
854
    }
635
    }
855
 
636
 
856
    public ExtraOrderInfo getExtraInfo(long transaction_id) throws TException
-
 
857
    {
-
 
858
      send_getExtraInfo(transaction_id);
-
 
859
      return recv_getExtraInfo();
-
 
860
    }
-
 
861
 
-
 
862
    public void send_getExtraInfo(long transaction_id) throws TException
-
 
863
    {
-
 
864
      oprot_.writeMessageBegin(new TMessage("getExtraInfo", TMessageType.CALL, seqid_));
-
 
865
      getExtraInfo_args args = new getExtraInfo_args();
-
 
866
      args.transaction_id = transaction_id;
-
 
867
      args.write(oprot_);
-
 
868
      oprot_.writeMessageEnd();
-
 
869
      oprot_.getTransport().flush();
-
 
870
    }
-
 
871
 
-
 
872
    public ExtraOrderInfo recv_getExtraInfo() throws TException
-
 
873
    {
-
 
874
      TMessage msg = iprot_.readMessageBegin();
-
 
875
      if (msg.type == TMessageType.EXCEPTION) {
-
 
876
        TApplicationException x = TApplicationException.read(iprot_);
-
 
877
        iprot_.readMessageEnd();
-
 
878
        throw x;
-
 
879
      }
-
 
880
      getExtraInfo_result result = new getExtraInfo_result();
-
 
881
      result.read(iprot_);
-
 
882
      iprot_.readMessageEnd();
-
 
883
      if (result.isSetSuccess()) {
-
 
884
        return result.success;
-
 
885
      }
-
 
886
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getExtraInfo failed: unknown result");
-
 
887
    }
-
 
888
 
-
 
889
    public void setExtraInfo(long transaction_id, long sku_id, String model, String colour, String vendor) throws TException
-
 
890
    {
-
 
891
      send_setExtraInfo(transaction_id, sku_id, model, colour, vendor);
-
 
892
      recv_setExtraInfo();
-
 
893
    }
-
 
894
 
-
 
895
    public void send_setExtraInfo(long transaction_id, long sku_id, String model, String colour, String vendor) throws TException
-
 
896
    {
-
 
897
      oprot_.writeMessageBegin(new TMessage("setExtraInfo", TMessageType.CALL, seqid_));
-
 
898
      setExtraInfo_args args = new setExtraInfo_args();
-
 
899
      args.transaction_id = transaction_id;
-
 
900
      args.sku_id = sku_id;
-
 
901
      args.model = model;
-
 
902
      args.colour = colour;
-
 
903
      args.vendor = vendor;
-
 
904
      args.write(oprot_);
-
 
905
      oprot_.writeMessageEnd();
-
 
906
      oprot_.getTransport().flush();
-
 
907
    }
-
 
908
 
-
 
909
    public void recv_setExtraInfo() throws TException
-
 
910
    {
-
 
911
      TMessage msg = iprot_.readMessageBegin();
-
 
912
      if (msg.type == TMessageType.EXCEPTION) {
-
 
913
        TApplicationException x = TApplicationException.read(iprot_);
-
 
914
        iprot_.readMessageEnd();
-
 
915
        throw x;
-
 
916
      }
-
 
917
      setExtraInfo_result result = new setExtraInfo_result();
-
 
918
      result.read(iprot_);
-
 
919
      iprot_.readMessageEnd();
-
 
920
      return;
-
 
921
    }
-
 
922
 
-
 
923
  }
637
  }
924
  public static class Processor implements TProcessor {
638
  public static class Processor implements TProcessor {
925
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
639
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
926
    public Processor(Iface iface)
640
    public Processor(Iface iface)
927
    {
641
    {
928
      iface_ = iface;
642
      iface_ = iface;
929
      processMap_.put("createTransaction", new createTransaction());
643
      processMap_.put("createTransaction", new createTransaction());
930
      processMap_.put("getTransaction", new getTransaction());
644
      processMap_.put("getTransaction", new getTransaction());
931
      processMap_.put("getAllTransactions", new getAllTransactions());
-
 
932
      processMap_.put("getTransactionsForShipmentStatus", new getTransactionsForShipmentStatus());
-
 
933
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
645
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
934
      processMap_.put("getTransactionsForCustomerAndShipmentStatus", new getTransactionsForCustomerAndShipmentStatus());
-
 
935
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
646
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
936
      processMap_.put("getTransactionStatus", new getTransactionStatus());
647
      processMap_.put("getTransactionStatus", new getTransactionStatus());
937
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
648
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
938
      processMap_.put("getOrderInfo", new getOrderInfo());
649
      processMap_.put("getAllOrders", new getAllOrders());
939
      processMap_.put("getShippingInfo", new getShippingInfo());
650
      processMap_.put("changeOrderStatus", new changeOrderStatus());
940
      processMap_.put("getBillingInfo", new getBillingInfo());
651
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
941
      processMap_.put("addBilling", new addBilling());
-
 
942
      processMap_.put("setShippingTracker", new setShippingTracker());
652
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
943
      processMap_.put("setShippingDate", new setShippingDate());
653
      processMap_.put("createOrder", new createOrder());
944
      processMap_.put("setDeliveryDate", new setDeliveryDate());
654
      processMap_.put("getOrder", new getOrder());
945
      processMap_.put("changeShippingStatus", new changeShippingStatus());
655
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
946
      processMap_.put("addTrail", new addTrail());
-
 
947
      processMap_.put("getAlerts", new getAlerts());
656
      processMap_.put("getAlerts", new getAlerts());
948
      processMap_.put("setAlert", new setAlert());
657
      processMap_.put("setAlert", new setAlert());
949
      processMap_.put("getExtraInfo", new getExtraInfo());
-
 
950
      processMap_.put("setExtraInfo", new setExtraInfo());
-
 
951
    }
658
    }
952
 
659
 
953
    protected static interface ProcessFunction {
660
    protected static interface ProcessFunction {
954
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
661
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
955
    }
662
    }
Line 1030... Line 737...
1030
        oprot.getTransport().flush();
737
        oprot.getTransport().flush();
1031
      }
738
      }
1032
 
739
 
1033
    }
740
    }
1034
 
741
 
1035
    private class getAllTransactions implements ProcessFunction {
-
 
1036
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1037
      {
-
 
1038
        getAllTransactions_args args = new getAllTransactions_args();
-
 
1039
        args.read(iprot);
-
 
1040
        iprot.readMessageEnd();
-
 
1041
        getAllTransactions_result result = new getAllTransactions_result();
-
 
1042
        try {
-
 
1043
          result.success = iface_.getAllTransactions(args.status, args.from_date, args.to_date, args.warehouse_id);
-
 
1044
        } catch (TransactionServiceException ex) {
-
 
1045
          result.ex = ex;
-
 
1046
        } catch (Throwable th) {
-
 
1047
          LOGGER.error("Internal error processing getAllTransactions", th);
-
 
1048
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllTransactions");
-
 
1049
          oprot.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.EXCEPTION, seqid));
-
 
1050
          x.write(oprot);
-
 
1051
          oprot.writeMessageEnd();
-
 
1052
          oprot.getTransport().flush();
-
 
1053
          return;
-
 
1054
        }
-
 
1055
        oprot.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.REPLY, seqid));
-
 
1056
        result.write(oprot);
-
 
1057
        oprot.writeMessageEnd();
-
 
1058
        oprot.getTransport().flush();
-
 
1059
      }
-
 
1060
 
-
 
1061
    }
-
 
1062
 
-
 
1063
    private class getTransactionsForShipmentStatus implements ProcessFunction {
-
 
1064
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1065
      {
-
 
1066
        getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();
-
 
1067
        args.read(iprot);
-
 
1068
        iprot.readMessageEnd();
-
 
1069
        getTransactionsForShipmentStatus_result result = new getTransactionsForShipmentStatus_result();
-
 
1070
        try {
-
 
1071
          result.success = iface_.getTransactionsForShipmentStatus(args.status, args.from_date, args.to_date);
-
 
1072
        } catch (TransactionServiceException ex) {
-
 
1073
          result.ex = ex;
-
 
1074
        } catch (Throwable th) {
-
 
1075
          LOGGER.error("Internal error processing getTransactionsForShipmentStatus", th);
-
 
1076
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForShipmentStatus");
-
 
1077
          oprot.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.EXCEPTION, seqid));
-
 
1078
          x.write(oprot);
-
 
1079
          oprot.writeMessageEnd();
-
 
1080
          oprot.getTransport().flush();
-
 
1081
          return;
-
 
1082
        }
-
 
1083
        oprot.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.REPLY, seqid));
-
 
1084
        result.write(oprot);
-
 
1085
        oprot.writeMessageEnd();
-
 
1086
        oprot.getTransport().flush();
-
 
1087
      }
-
 
1088
 
-
 
1089
    }
-
 
1090
 
-
 
1091
    private class getTransactionsForCustomer implements ProcessFunction {
742
    private class getTransactionsForCustomer implements ProcessFunction {
1092
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
743
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1093
      {
744
      {
1094
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
745
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
1095
        args.read(iprot);
746
        args.read(iprot);
Line 1114... Line 765...
1114
        oprot.getTransport().flush();
765
        oprot.getTransport().flush();
1115
      }
766
      }
1116
 
767
 
1117
    }
768
    }
1118
 
769
 
1119
    private class getTransactionsForCustomerAndShipmentStatus implements ProcessFunction {
-
 
1120
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1121
      {
-
 
1122
        getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();
-
 
1123
        args.read(iprot);
-
 
1124
        iprot.readMessageEnd();
-
 
1125
        getTransactionsForCustomerAndShipmentStatus_result result = new getTransactionsForCustomerAndShipmentStatus_result();
-
 
1126
        try {
-
 
1127
          result.success = iface_.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from_date, args.to_date, args.status);
-
 
1128
        } catch (TransactionServiceException ex) {
-
 
1129
          result.ex = ex;
-
 
1130
        } catch (Throwable th) {
-
 
1131
          LOGGER.error("Internal error processing getTransactionsForCustomerAndShipmentStatus", th);
-
 
1132
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomerAndShipmentStatus");
-
 
1133
          oprot.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.EXCEPTION, seqid));
-
 
1134
          x.write(oprot);
-
 
1135
          oprot.writeMessageEnd();
-
 
1136
          oprot.getTransport().flush();
-
 
1137
          return;
-
 
1138
        }
-
 
1139
        oprot.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid));
-
 
1140
        result.write(oprot);
-
 
1141
        oprot.writeMessageEnd();
-
 
1142
        oprot.getTransport().flush();
-
 
1143
      }
-
 
1144
 
-
 
1145
    }
-
 
1146
 
-
 
1147
    private class getTransactionsForShoppingCartId implements ProcessFunction {
770
    private class getTransactionsForShoppingCartId implements ProcessFunction {
1148
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
771
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1149
      {
772
      {
1150
        getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
773
        getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
1151
        args.read(iprot);
774
        args.read(iprot);
Line 1227... Line 850...
1227
        oprot.getTransport().flush();
850
        oprot.getTransport().flush();
1228
      }
851
      }
1229
 
852
 
1230
    }
853
    }
1231
 
854
 
1232
    private class getOrderInfo implements ProcessFunction {
855
    private class getAllOrders implements ProcessFunction {
1233
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1234
      {
-
 
1235
        getOrderInfo_args args = new getOrderInfo_args();
-
 
1236
        args.read(iprot);
-
 
1237
        iprot.readMessageEnd();
-
 
1238
        getOrderInfo_result result = new getOrderInfo_result();
-
 
1239
        try {
-
 
1240
          result.success = iface_.getOrderInfo(args.transactionId);
-
 
1241
        } catch (TransactionServiceException ex) {
-
 
1242
          result.ex = ex;
-
 
1243
        } catch (Throwable th) {
-
 
1244
          LOGGER.error("Internal error processing getOrderInfo", th);
-
 
1245
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrderInfo");
-
 
1246
          oprot.writeMessageBegin(new TMessage("getOrderInfo", TMessageType.EXCEPTION, seqid));
-
 
1247
          x.write(oprot);
-
 
1248
          oprot.writeMessageEnd();
-
 
1249
          oprot.getTransport().flush();
-
 
1250
          return;
-
 
1251
        }
-
 
1252
        oprot.writeMessageBegin(new TMessage("getOrderInfo", TMessageType.REPLY, seqid));
-
 
1253
        result.write(oprot);
-
 
1254
        oprot.writeMessageEnd();
-
 
1255
        oprot.getTransport().flush();
-
 
1256
      }
-
 
1257
 
-
 
1258
    }
-
 
1259
 
-
 
1260
    private class getShippingInfo implements ProcessFunction {
-
 
1261
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1262
      {
-
 
1263
        getShippingInfo_args args = new getShippingInfo_args();
-
 
1264
        args.read(iprot);
-
 
1265
        iprot.readMessageEnd();
-
 
1266
        getShippingInfo_result result = new getShippingInfo_result();
-
 
1267
        try {
-
 
1268
          result.success = iface_.getShippingInfo(args.transactionId);
-
 
1269
        } catch (TransactionServiceException ex) {
-
 
1270
          result.ex = ex;
-
 
1271
        } catch (Throwable th) {
-
 
1272
          LOGGER.error("Internal error processing getShippingInfo", th);
-
 
1273
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getShippingInfo");
-
 
1274
          oprot.writeMessageBegin(new TMessage("getShippingInfo", TMessageType.EXCEPTION, seqid));
-
 
1275
          x.write(oprot);
-
 
1276
          oprot.writeMessageEnd();
-
 
1277
          oprot.getTransport().flush();
-
 
1278
          return;
-
 
1279
        }
-
 
1280
        oprot.writeMessageBegin(new TMessage("getShippingInfo", TMessageType.REPLY, seqid));
-
 
1281
        result.write(oprot);
-
 
1282
        oprot.writeMessageEnd();
-
 
1283
        oprot.getTransport().flush();
-
 
1284
      }
-
 
1285
 
-
 
1286
    }
-
 
1287
 
-
 
1288
    private class getBillingInfo implements ProcessFunction {
-
 
1289
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
856
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1290
      {
857
      {
1291
        getBillingInfo_args args = new getBillingInfo_args();
858
        getAllOrders_args args = new getAllOrders_args();
1292
        args.read(iprot);
859
        args.read(iprot);
1293
        iprot.readMessageEnd();
860
        iprot.readMessageEnd();
1294
        getBillingInfo_result result = new getBillingInfo_result();
861
        getAllOrders_result result = new getAllOrders_result();
1295
        try {
862
        try {
1296
          result.success = iface_.getBillingInfo(args.transactionId);
863
          result.success = iface_.getAllOrders(args.status, args.from_date, args.to_date, args.warehouse_id);
1297
        } catch (TransactionServiceException ex) {
864
        } catch (TransactionServiceException ex) {
1298
          result.ex = ex;
865
          result.ex = ex;
1299
        } catch (Throwable th) {
866
        } catch (Throwable th) {
1300
          LOGGER.error("Internal error processing getBillingInfo", th);
867
          LOGGER.error("Internal error processing getAllOrders", th);
1301
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getBillingInfo");
868
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllOrders");
1302
          oprot.writeMessageBegin(new TMessage("getBillingInfo", TMessageType.EXCEPTION, seqid));
869
          oprot.writeMessageBegin(new TMessage("getAllOrders", TMessageType.EXCEPTION, seqid));
1303
          x.write(oprot);
870
          x.write(oprot);
1304
          oprot.writeMessageEnd();
871
          oprot.writeMessageEnd();
1305
          oprot.getTransport().flush();
872
          oprot.getTransport().flush();
1306
          return;
873
          return;
1307
        }
874
        }
1308
        oprot.writeMessageBegin(new TMessage("getBillingInfo", TMessageType.REPLY, seqid));
875
        oprot.writeMessageBegin(new TMessage("getAllOrders", TMessageType.REPLY, seqid));
1309
        result.write(oprot);
876
        result.write(oprot);
1310
        oprot.writeMessageEnd();
877
        oprot.writeMessageEnd();
1311
        oprot.getTransport().flush();
878
        oprot.getTransport().flush();
1312
      }
879
      }
1313
 
880
 
1314
    }
881
    }
1315
 
882
 
1316
    private class addBilling implements ProcessFunction {
883
    private class changeOrderStatus implements ProcessFunction {
1317
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
884
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1318
      {
885
      {
1319
        addBilling_args args = new addBilling_args();
886
        changeOrderStatus_args args = new changeOrderStatus_args();
1320
        args.read(iprot);
887
        args.read(iprot);
1321
        iprot.readMessageEnd();
888
        iprot.readMessageEnd();
1322
        addBilling_result result = new addBilling_result();
889
        changeOrderStatus_result result = new changeOrderStatus_result();
1323
        try {
890
        try {
1324
          result.success = iface_.addBilling(args.tranactionId, args.billing);
891
          result.success = iface_.changeOrderStatus(args.orderId, args.status, args.description);
1325
          result.setSuccessIsSet(true);
892
          result.setSuccessIsSet(true);
1326
        } catch (TransactionServiceException ex) {
893
        } catch (TransactionServiceException ex) {
1327
          result.ex = ex;
894
          result.ex = ex;
1328
        } catch (Throwable th) {
895
        } catch (Throwable th) {
1329
          LOGGER.error("Internal error processing addBilling", th);
896
          LOGGER.error("Internal error processing changeOrderStatus", th);
1330
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addBilling");
897
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing changeOrderStatus");
1331
          oprot.writeMessageBegin(new TMessage("addBilling", TMessageType.EXCEPTION, seqid));
898
          oprot.writeMessageBegin(new TMessage("changeOrderStatus", TMessageType.EXCEPTION, seqid));
1332
          x.write(oprot);
899
          x.write(oprot);
1333
          oprot.writeMessageEnd();
900
          oprot.writeMessageEnd();
1334
          oprot.getTransport().flush();
901
          oprot.getTransport().flush();
1335
          return;
902
          return;
1336
        }
903
        }
1337
        oprot.writeMessageBegin(new TMessage("addBilling", TMessageType.REPLY, seqid));
904
        oprot.writeMessageBegin(new TMessage("changeOrderStatus", TMessageType.REPLY, seqid));
1338
        result.write(oprot);
905
        result.write(oprot);
1339
        oprot.writeMessageEnd();
906
        oprot.writeMessageEnd();
1340
        oprot.getTransport().flush();
907
        oprot.getTransport().flush();
1341
      }
908
      }
1342
 
909
 
1343
    }
910
    }
1344
 
911
 
1345
    private class setShippingTracker implements ProcessFunction {
912
    private class getOrdersForTransaction implements ProcessFunction {
1346
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
913
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1347
      {
914
      {
1348
        setShippingTracker_args args = new setShippingTracker_args();
915
        getOrdersForTransaction_args args = new getOrdersForTransaction_args();
1349
        args.read(iprot);
916
        args.read(iprot);
1350
        iprot.readMessageEnd();
917
        iprot.readMessageEnd();
1351
        setShippingTracker_result result = new setShippingTracker_result();
918
        getOrdersForTransaction_result result = new getOrdersForTransaction_result();
1352
        try {
919
        try {
1353
          result.success = iface_.setShippingTracker(args.transactionId, args.shippingId, args.trackingId, args.airwayBillNo, args.provider);
920
          result.success = iface_.getOrdersForTransaction(args.transactionId);
1354
          result.setSuccessIsSet(true);
-
 
1355
        } catch (TransactionServiceException ex) {
921
        } catch (TransactionServiceException ex) {
1356
          result.ex = ex;
922
          result.ex = ex;
1357
        } catch (Throwable th) {
923
        } catch (Throwable th) {
1358
          LOGGER.error("Internal error processing setShippingTracker", th);
924
          LOGGER.error("Internal error processing getOrdersForTransaction", th);
1359
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing setShippingTracker");
925
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersForTransaction");
1360
          oprot.writeMessageBegin(new TMessage("setShippingTracker", TMessageType.EXCEPTION, seqid));
926
          oprot.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.EXCEPTION, seqid));
1361
          x.write(oprot);
927
          x.write(oprot);
1362
          oprot.writeMessageEnd();
928
          oprot.writeMessageEnd();
1363
          oprot.getTransport().flush();
929
          oprot.getTransport().flush();
1364
          return;
930
          return;
1365
        }
931
        }
1366
        oprot.writeMessageBegin(new TMessage("setShippingTracker", TMessageType.REPLY, seqid));
932
        oprot.writeMessageBegin(new TMessage("getOrdersForTransaction", TMessageType.REPLY, seqid));
1367
        result.write(oprot);
933
        result.write(oprot);
1368
        oprot.writeMessageEnd();
934
        oprot.writeMessageEnd();
1369
        oprot.getTransport().flush();
935
        oprot.getTransport().flush();
1370
      }
936
      }
1371
 
937
 
1372
    }
938
    }
1373
 
939
 
1374
    private class setShippingDate implements ProcessFunction {
940
    private class getOrdersForCustomer implements ProcessFunction {
1375
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
941
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1376
      {
942
      {
1377
        setShippingDate_args args = new setShippingDate_args();
943
        getOrdersForCustomer_args args = new getOrdersForCustomer_args();
1378
        args.read(iprot);
944
        args.read(iprot);
1379
        iprot.readMessageEnd();
945
        iprot.readMessageEnd();
1380
        setShippingDate_result result = new setShippingDate_result();
946
        getOrdersForCustomer_result result = new getOrdersForCustomer_result();
1381
        try {
947
        try {
1382
          result.success = iface_.setShippingDate(args.transactionId, args.shippingId, args.timestamp);
948
          result.success = iface_.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.status);
1383
          result.setSuccessIsSet(true);
-
 
1384
        } catch (TransactionServiceException ex) {
949
        } catch (TransactionServiceException ex) {
1385
          result.ex = ex;
950
          result.ex = ex;
1386
        } catch (Throwable th) {
951
        } catch (Throwable th) {
1387
          LOGGER.error("Internal error processing setShippingDate", th);
952
          LOGGER.error("Internal error processing getOrdersForCustomer", th);
1388
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing setShippingDate");
953
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersForCustomer");
1389
          oprot.writeMessageBegin(new TMessage("setShippingDate", TMessageType.EXCEPTION, seqid));
954
          oprot.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.EXCEPTION, seqid));
1390
          x.write(oprot);
955
          x.write(oprot);
1391
          oprot.writeMessageEnd();
956
          oprot.writeMessageEnd();
1392
          oprot.getTransport().flush();
957
          oprot.getTransport().flush();
1393
          return;
958
          return;
1394
        }
959
        }
1395
        oprot.writeMessageBegin(new TMessage("setShippingDate", TMessageType.REPLY, seqid));
960
        oprot.writeMessageBegin(new TMessage("getOrdersForCustomer", TMessageType.REPLY, seqid));
1396
        result.write(oprot);
961
        result.write(oprot);
1397
        oprot.writeMessageEnd();
962
        oprot.writeMessageEnd();
1398
        oprot.getTransport().flush();
963
        oprot.getTransport().flush();
1399
      }
964
      }
1400
 
965
 
1401
    }
966
    }
1402
 
967
 
1403
    private class setDeliveryDate implements ProcessFunction {
968
    private class createOrder implements ProcessFunction {
1404
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
969
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1405
      {
970
      {
1406
        setDeliveryDate_args args = new setDeliveryDate_args();
971
        createOrder_args args = new createOrder_args();
1407
        args.read(iprot);
972
        args.read(iprot);
1408
        iprot.readMessageEnd();
973
        iprot.readMessageEnd();
1409
        setDeliveryDate_result result = new setDeliveryDate_result();
974
        createOrder_result result = new createOrder_result();
1410
        try {
975
        try {
1411
          result.success = iface_.setDeliveryDate(args.transactionId, args.shippingid, args.timestamp);
976
          result.success = iface_.createOrder(args.order);
1412
          result.setSuccessIsSet(true);
977
          result.setSuccessIsSet(true);
1413
        } catch (TransactionServiceException ex) {
978
        } catch (TransactionServiceException ex) {
1414
          result.ex = ex;
979
          result.ex = ex;
1415
        } catch (Throwable th) {
980
        } catch (Throwable th) {
1416
          LOGGER.error("Internal error processing setDeliveryDate", th);
981
          LOGGER.error("Internal error processing createOrder", th);
1417
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing setDeliveryDate");
982
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createOrder");
1418
          oprot.writeMessageBegin(new TMessage("setDeliveryDate", TMessageType.EXCEPTION, seqid));
983
          oprot.writeMessageBegin(new TMessage("createOrder", TMessageType.EXCEPTION, seqid));
1419
          x.write(oprot);
984
          x.write(oprot);
1420
          oprot.writeMessageEnd();
985
          oprot.writeMessageEnd();
1421
          oprot.getTransport().flush();
986
          oprot.getTransport().flush();
1422
          return;
987
          return;
1423
        }
988
        }
1424
        oprot.writeMessageBegin(new TMessage("setDeliveryDate", TMessageType.REPLY, seqid));
989
        oprot.writeMessageBegin(new TMessage("createOrder", TMessageType.REPLY, seqid));
1425
        result.write(oprot);
990
        result.write(oprot);
1426
        oprot.writeMessageEnd();
991
        oprot.writeMessageEnd();
1427
        oprot.getTransport().flush();
992
        oprot.getTransport().flush();
1428
      }
993
      }
1429
 
994
 
1430
    }
995
    }
1431
 
996
 
1432
    private class changeShippingStatus implements ProcessFunction {
997
    private class getOrder implements ProcessFunction {
1433
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
998
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1434
      {
999
      {
1435
        changeShippingStatus_args args = new changeShippingStatus_args();
1000
        getOrder_args args = new getOrder_args();
1436
        args.read(iprot);
1001
        args.read(iprot);
1437
        iprot.readMessageEnd();
1002
        iprot.readMessageEnd();
1438
        changeShippingStatus_result result = new changeShippingStatus_result();
1003
        getOrder_result result = new getOrder_result();
1439
        try {
1004
        try {
1440
          result.success = iface_.changeShippingStatus(args.transactionId, args.shippingId, args.status, args.description);
-
 
1441
          result.setSuccessIsSet(true);
1005
          result.success = iface_.getOrder(args.id);
1442
        } catch (TransactionServiceException ex) {
1006
        } catch (TransactionServiceException ex) {
1443
          result.ex = ex;
1007
          result.ex = ex;
1444
        } catch (Throwable th) {
1008
        } catch (Throwable th) {
1445
          LOGGER.error("Internal error processing changeShippingStatus", th);
1009
          LOGGER.error("Internal error processing getOrder", th);
1446
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing changeShippingStatus");
1010
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrder");
1447
          oprot.writeMessageBegin(new TMessage("changeShippingStatus", TMessageType.EXCEPTION, seqid));
1011
          oprot.writeMessageBegin(new TMessage("getOrder", TMessageType.EXCEPTION, seqid));
1448
          x.write(oprot);
1012
          x.write(oprot);
1449
          oprot.writeMessageEnd();
1013
          oprot.writeMessageEnd();
1450
          oprot.getTransport().flush();
1014
          oprot.getTransport().flush();
1451
          return;
1015
          return;
1452
        }
1016
        }
1453
        oprot.writeMessageBegin(new TMessage("changeShippingStatus", TMessageType.REPLY, seqid));
1017
        oprot.writeMessageBegin(new TMessage("getOrder", TMessageType.REPLY, seqid));
1454
        result.write(oprot);
1018
        result.write(oprot);
1455
        oprot.writeMessageEnd();
1019
        oprot.writeMessageEnd();
1456
        oprot.getTransport().flush();
1020
        oprot.getTransport().flush();
1457
      }
1021
      }
1458
 
1022
 
1459
    }
1023
    }
1460
 
1024
 
1461
    private class addTrail implements ProcessFunction {
1025
    private class getLineItemsForOrder implements ProcessFunction {
1462
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1026
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1463
      {
1027
      {
1464
        addTrail_args args = new addTrail_args();
1028
        getLineItemsForOrder_args args = new getLineItemsForOrder_args();
1465
        args.read(iprot);
1029
        args.read(iprot);
1466
        iprot.readMessageEnd();
1030
        iprot.readMessageEnd();
1467
        addTrail_result result = new addTrail_result();
1031
        getLineItemsForOrder_result result = new getLineItemsForOrder_result();
1468
        try {
1032
        try {
1469
          result.success = iface_.addTrail(args.transactionId, args.description);
1033
          result.success = iface_.getLineItemsForOrder(args.orderId);
1470
          result.setSuccessIsSet(true);
-
 
1471
        } catch (TransactionServiceException ex) {
1034
        } catch (TransactionServiceException ex) {
1472
          result.ex = ex;
1035
          result.ex = ex;
1473
        } catch (Throwable th) {
1036
        } catch (Throwable th) {
1474
          LOGGER.error("Internal error processing addTrail", th);
1037
          LOGGER.error("Internal error processing getLineItemsForOrder", th);
1475
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addTrail");
1038
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getLineItemsForOrder");
1476
          oprot.writeMessageBegin(new TMessage("addTrail", TMessageType.EXCEPTION, seqid));
1039
          oprot.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.EXCEPTION, seqid));
1477
          x.write(oprot);
1040
          x.write(oprot);
1478
          oprot.writeMessageEnd();
1041
          oprot.writeMessageEnd();
1479
          oprot.getTransport().flush();
1042
          oprot.getTransport().flush();
1480
          return;
1043
          return;
1481
        }
1044
        }
1482
        oprot.writeMessageBegin(new TMessage("addTrail", TMessageType.REPLY, seqid));
1045
        oprot.writeMessageBegin(new TMessage("getLineItemsForOrder", TMessageType.REPLY, seqid));
1483
        result.write(oprot);
1046
        result.write(oprot);
1484
        oprot.writeMessageEnd();
1047
        oprot.writeMessageEnd();
1485
        oprot.getTransport().flush();
1048
        oprot.getTransport().flush();
1486
      }
1049
      }
1487
 
1050
 
Line 1492... Line 1055...
1492
      {
1055
      {
1493
        getAlerts_args args = new getAlerts_args();
1056
        getAlerts_args args = new getAlerts_args();
1494
        args.read(iprot);
1057
        args.read(iprot);
1495
        iprot.readMessageEnd();
1058
        iprot.readMessageEnd();
1496
        getAlerts_result result = new getAlerts_result();
1059
        getAlerts_result result = new getAlerts_result();
1497
        result.success = iface_.getAlerts(args.transactionId, args.valid);
1060
        result.success = iface_.getAlerts(args.orderId, args.valid);
1498
        oprot.writeMessageBegin(new TMessage("getAlerts", TMessageType.REPLY, seqid));
1061
        oprot.writeMessageBegin(new TMessage("getAlerts", TMessageType.REPLY, seqid));
1499
        result.write(oprot);
1062
        result.write(oprot);
1500
        oprot.writeMessageEnd();
1063
        oprot.writeMessageEnd();
1501
        oprot.getTransport().flush();
1064
        oprot.getTransport().flush();
1502
      }
1065
      }
Line 1508... Line 1071...
1508
      {
1071
      {
1509
        setAlert_args args = new setAlert_args();
1072
        setAlert_args args = new setAlert_args();
1510
        args.read(iprot);
1073
        args.read(iprot);
1511
        iprot.readMessageEnd();
1074
        iprot.readMessageEnd();
1512
        setAlert_result result = new setAlert_result();
1075
        setAlert_result result = new setAlert_result();
1513
        iface_.setAlert(args.transactionId, args.unset, args.type, args.comment);
1076
        iface_.setAlert(args.orderId, args.unset, args.type, args.comment);
1514
        oprot.writeMessageBegin(new TMessage("setAlert", TMessageType.REPLY, seqid));
1077
        oprot.writeMessageBegin(new TMessage("setAlert", TMessageType.REPLY, seqid));
1515
        result.write(oprot);
1078
        result.write(oprot);
1516
        oprot.writeMessageEnd();
1079
        oprot.writeMessageEnd();
1517
        oprot.getTransport().flush();
1080
        oprot.getTransport().flush();
1518
      }
1081
      }
1519
 
1082
 
1520
    }
1083
    }
1521
 
1084
 
1522
    private class getExtraInfo implements ProcessFunction {
-
 
1523
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1524
      {
-
 
1525
        getExtraInfo_args args = new getExtraInfo_args();
-
 
1526
        args.read(iprot);
-
 
1527
        iprot.readMessageEnd();
-
 
1528
        getExtraInfo_result result = new getExtraInfo_result();
-
 
1529
        result.success = iface_.getExtraInfo(args.transaction_id);
-
 
1530
        oprot.writeMessageBegin(new TMessage("getExtraInfo", TMessageType.REPLY, seqid));
-
 
1531
        result.write(oprot);
-
 
1532
        oprot.writeMessageEnd();
-
 
1533
        oprot.getTransport().flush();
-
 
1534
      }
-
 
1535
 
-
 
1536
    }
-
 
1537
 
-
 
1538
    private class setExtraInfo implements ProcessFunction {
-
 
1539
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1540
      {
-
 
1541
        setExtraInfo_args args = new setExtraInfo_args();
-
 
1542
        args.read(iprot);
-
 
1543
        iprot.readMessageEnd();
-
 
1544
        setExtraInfo_result result = new setExtraInfo_result();
-
 
1545
        iface_.setExtraInfo(args.transaction_id, args.sku_id, args.model, args.colour, args.vendor);
-
 
1546
        oprot.writeMessageBegin(new TMessage("setExtraInfo", TMessageType.REPLY, seqid));
-
 
1547
        result.write(oprot);
-
 
1548
        oprot.writeMessageEnd();
-
 
1549
        oprot.getTransport().flush();
-
 
1550
      }
-
 
1551
 
-
 
1552
    }
-
 
1553
 
-
 
1554
  }
1085
  }
1555
 
1086
 
1556
  public static class createTransaction_args implements TBase<createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
1087
  public static class createTransaction_args implements TBase<createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
1557
    private static final TStruct STRUCT_DESC = new TStruct("createTransaction_args");
1088
    private static final TStruct STRUCT_DESC = new TStruct("createTransaction_args");
1558
 
1089
 
Line 2793... Line 2324...
2793
      // check for required fields
2324
      // check for required fields
2794
    }
2325
    }
2795
 
2326
 
2796
  }
2327
  }
2797
 
2328
 
2798
  public static class getAllTransactions_args implements TBase<getAllTransactions_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTransactions_args>   {
-
 
2799
    private static final TStruct STRUCT_DESC = new TStruct("getAllTransactions_args");
-
 
2800
 
-
 
2801
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
-
 
2802
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
-
 
2803
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
-
 
2804
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)4);
-
 
2805
 
-
 
2806
    private TransactionStatus status;
-
 
2807
    private long from_date;
-
 
2808
    private long to_date;
-
 
2809
    private long warehouse_id;
-
 
2810
 
-
 
2811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2812
    public enum _Fields implements TFieldIdEnum {
-
 
2813
      /**
-
 
2814
       * 
-
 
2815
       * @see TransactionStatus
-
 
2816
       */
-
 
2817
      STATUS((short)1, "status"),
-
 
2818
      FROM_DATE((short)2, "from_date"),
-
 
2819
      TO_DATE((short)3, "to_date"),
-
 
2820
      WAREHOUSE_ID((short)4, "warehouse_id");
-
 
2821
 
-
 
2822
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2824
 
-
 
2825
      static {
-
 
2826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2827
          byId.put((int)field._thriftId, field);
-
 
2828
          byName.put(field.getFieldName(), field);
-
 
2829
        }
-
 
2830
      }
-
 
2831
 
-
 
2832
      /**
-
 
2833
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2834
       */
-
 
2835
      public static _Fields findByThriftId(int fieldId) {
-
 
2836
        return byId.get(fieldId);
-
 
2837
      }
-
 
2838
 
-
 
2839
      /**
-
 
2840
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2841
       * if it is not found.
-
 
2842
       */
-
 
2843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2844
        _Fields fields = findByThriftId(fieldId);
-
 
2845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2846
        return fields;
-
 
2847
      }
-
 
2848
 
-
 
2849
      /**
-
 
2850
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2851
       */
-
 
2852
      public static _Fields findByName(String name) {
-
 
2853
        return byName.get(name);
-
 
2854
      }
-
 
2855
 
-
 
2856
      private final short _thriftId;
-
 
2857
      private final String _fieldName;
-
 
2858
 
-
 
2859
      _Fields(short thriftId, String fieldName) {
-
 
2860
        _thriftId = thriftId;
-
 
2861
        _fieldName = fieldName;
-
 
2862
      }
-
 
2863
 
-
 
2864
      public short getThriftFieldId() {
-
 
2865
        return _thriftId;
-
 
2866
      }
-
 
2867
 
-
 
2868
      public String getFieldName() {
-
 
2869
        return _fieldName;
-
 
2870
      }
-
 
2871
    }
-
 
2872
 
-
 
2873
    // isset id assignments
-
 
2874
    private static final int __FROM_DATE_ISSET_ID = 0;
-
 
2875
    private static final int __TO_DATE_ISSET_ID = 1;
-
 
2876
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
-
 
2877
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
2878
 
-
 
2879
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2880
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
2881
          new EnumMetaData(TType.ENUM, TransactionStatus.class)));
-
 
2882
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
-
 
2883
          new FieldValueMetaData(TType.I64)));
-
 
2884
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
-
 
2885
          new FieldValueMetaData(TType.I64)));
-
 
2886
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
-
 
2887
          new FieldValueMetaData(TType.I64)));
-
 
2888
    }});
-
 
2889
 
-
 
2890
    static {
-
 
2891
      FieldMetaData.addStructMetaDataMap(getAllTransactions_args.class, metaDataMap);
-
 
2892
    }
-
 
2893
 
-
 
2894
    public getAllTransactions_args() {
-
 
2895
    }
-
 
2896
 
-
 
2897
    public getAllTransactions_args(
-
 
2898
      TransactionStatus status,
-
 
2899
      long from_date,
-
 
2900
      long to_date,
-
 
2901
      long warehouse_id)
-
 
2902
    {
-
 
2903
      this();
-
 
2904
      this.status = status;
-
 
2905
      this.from_date = from_date;
-
 
2906
      setFrom_dateIsSet(true);
-
 
2907
      this.to_date = to_date;
-
 
2908
      setTo_dateIsSet(true);
-
 
2909
      this.warehouse_id = warehouse_id;
-
 
2910
      setWarehouse_idIsSet(true);
-
 
2911
    }
-
 
2912
 
-
 
2913
    /**
-
 
2914
     * Performs a deep copy on <i>other</i>.
-
 
2915
     */
-
 
2916
    public getAllTransactions_args(getAllTransactions_args other) {
-
 
2917
      __isset_bit_vector.clear();
-
 
2918
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
2919
      if (other.isSetStatus()) {
-
 
2920
        this.status = other.status;
-
 
2921
      }
-
 
2922
      this.from_date = other.from_date;
-
 
2923
      this.to_date = other.to_date;
-
 
2924
      this.warehouse_id = other.warehouse_id;
-
 
2925
    }
-
 
2926
 
-
 
2927
    public getAllTransactions_args deepCopy() {
-
 
2928
      return new getAllTransactions_args(this);
-
 
2929
    }
-
 
2930
 
-
 
2931
    @Deprecated
-
 
2932
    public getAllTransactions_args clone() {
-
 
2933
      return new getAllTransactions_args(this);
-
 
2934
    }
-
 
2935
 
-
 
2936
    /**
-
 
2937
     * 
-
 
2938
     * @see TransactionStatus
-
 
2939
     */
-
 
2940
    public TransactionStatus getStatus() {
-
 
2941
      return this.status;
-
 
2942
    }
-
 
2943
 
-
 
2944
    /**
-
 
2945
     * 
-
 
2946
     * @see TransactionStatus
-
 
2947
     */
-
 
2948
    public getAllTransactions_args setStatus(TransactionStatus status) {
-
 
2949
      this.status = status;
-
 
2950
      return this;
-
 
2951
    }
-
 
2952
 
-
 
2953
    public void unsetStatus() {
-
 
2954
      this.status = null;
-
 
2955
    }
-
 
2956
 
-
 
2957
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
2958
    public boolean isSetStatus() {
-
 
2959
      return this.status != null;
-
 
2960
    }
-
 
2961
 
-
 
2962
    public void setStatusIsSet(boolean value) {
-
 
2963
      if (!value) {
-
 
2964
        this.status = null;
-
 
2965
      }
-
 
2966
    }
-
 
2967
 
-
 
2968
    public long getFrom_date() {
-
 
2969
      return this.from_date;
-
 
2970
    }
-
 
2971
 
-
 
2972
    public getAllTransactions_args setFrom_date(long from_date) {
-
 
2973
      this.from_date = from_date;
-
 
2974
      setFrom_dateIsSet(true);
-
 
2975
      return this;
-
 
2976
    }
-
 
2977
 
-
 
2978
    public void unsetFrom_date() {
-
 
2979
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
-
 
2980
    }
-
 
2981
 
-
 
2982
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
-
 
2983
    public boolean isSetFrom_date() {
-
 
2984
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
-
 
2985
    }
-
 
2986
 
-
 
2987
    public void setFrom_dateIsSet(boolean value) {
-
 
2988
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
-
 
2989
    }
-
 
2990
 
-
 
2991
    public long getTo_date() {
-
 
2992
      return this.to_date;
-
 
2993
    }
-
 
2994
 
-
 
2995
    public getAllTransactions_args setTo_date(long to_date) {
-
 
2996
      this.to_date = to_date;
-
 
2997
      setTo_dateIsSet(true);
-
 
2998
      return this;
-
 
2999
    }
-
 
3000
 
-
 
3001
    public void unsetTo_date() {
-
 
3002
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
-
 
3003
    }
-
 
3004
 
-
 
3005
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
-
 
3006
    public boolean isSetTo_date() {
-
 
3007
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
-
 
3008
    }
-
 
3009
 
-
 
3010
    public void setTo_dateIsSet(boolean value) {
-
 
3011
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
-
 
3012
    }
-
 
3013
 
-
 
3014
    public long getWarehouse_id() {
-
 
3015
      return this.warehouse_id;
-
 
3016
    }
-
 
3017
 
-
 
3018
    public getAllTransactions_args setWarehouse_id(long warehouse_id) {
-
 
3019
      this.warehouse_id = warehouse_id;
-
 
3020
      setWarehouse_idIsSet(true);
-
 
3021
      return this;
-
 
3022
    }
-
 
3023
 
-
 
3024
    public void unsetWarehouse_id() {
-
 
3025
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
3026
    }
-
 
3027
 
-
 
3028
    /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
-
 
3029
    public boolean isSetWarehouse_id() {
-
 
3030
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
3031
    }
-
 
3032
 
-
 
3033
    public void setWarehouse_idIsSet(boolean value) {
-
 
3034
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
3035
    }
-
 
3036
 
-
 
3037
    public void setFieldValue(_Fields field, Object value) {
-
 
3038
      switch (field) {
-
 
3039
      case STATUS:
-
 
3040
        if (value == null) {
-
 
3041
          unsetStatus();
-
 
3042
        } else {
-
 
3043
          setStatus((TransactionStatus)value);
-
 
3044
        }
-
 
3045
        break;
-
 
3046
 
-
 
3047
      case FROM_DATE:
-
 
3048
        if (value == null) {
-
 
3049
          unsetFrom_date();
-
 
3050
        } else {
-
 
3051
          setFrom_date((Long)value);
-
 
3052
        }
-
 
3053
        break;
-
 
3054
 
-
 
3055
      case TO_DATE:
-
 
3056
        if (value == null) {
-
 
3057
          unsetTo_date();
-
 
3058
        } else {
-
 
3059
          setTo_date((Long)value);
-
 
3060
        }
-
 
3061
        break;
-
 
3062
 
-
 
3063
      case WAREHOUSE_ID:
-
 
3064
        if (value == null) {
-
 
3065
          unsetWarehouse_id();
-
 
3066
        } else {
-
 
3067
          setWarehouse_id((Long)value);
-
 
3068
        }
-
 
3069
        break;
-
 
3070
 
-
 
3071
      }
-
 
3072
    }
-
 
3073
 
-
 
3074
    public void setFieldValue(int fieldID, Object value) {
-
 
3075
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3076
    }
-
 
3077
 
-
 
3078
    public Object getFieldValue(_Fields field) {
-
 
3079
      switch (field) {
-
 
3080
      case STATUS:
-
 
3081
        return getStatus();
-
 
3082
 
-
 
3083
      case FROM_DATE:
-
 
3084
        return new Long(getFrom_date());
-
 
3085
 
-
 
3086
      case TO_DATE:
-
 
3087
        return new Long(getTo_date());
-
 
3088
 
-
 
3089
      case WAREHOUSE_ID:
-
 
3090
        return new Long(getWarehouse_id());
-
 
3091
 
-
 
3092
      }
-
 
3093
      throw new IllegalStateException();
-
 
3094
    }
-
 
3095
 
-
 
3096
    public Object getFieldValue(int fieldId) {
-
 
3097
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3098
    }
-
 
3099
 
-
 
3100
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3101
    public boolean isSet(_Fields field) {
-
 
3102
      switch (field) {
-
 
3103
      case STATUS:
-
 
3104
        return isSetStatus();
-
 
3105
      case FROM_DATE:
-
 
3106
        return isSetFrom_date();
-
 
3107
      case TO_DATE:
-
 
3108
        return isSetTo_date();
-
 
3109
      case WAREHOUSE_ID:
-
 
3110
        return isSetWarehouse_id();
-
 
3111
      }
-
 
3112
      throw new IllegalStateException();
-
 
3113
    }
-
 
3114
 
-
 
3115
    public boolean isSet(int fieldID) {
-
 
3116
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3117
    }
-
 
3118
 
-
 
3119
    @Override
-
 
3120
    public boolean equals(Object that) {
-
 
3121
      if (that == null)
-
 
3122
        return false;
-
 
3123
      if (that instanceof getAllTransactions_args)
-
 
3124
        return this.equals((getAllTransactions_args)that);
-
 
3125
      return false;
-
 
3126
    }
-
 
3127
 
-
 
3128
    public boolean equals(getAllTransactions_args that) {
-
 
3129
      if (that == null)
-
 
3130
        return false;
-
 
3131
 
-
 
3132
      boolean this_present_status = true && this.isSetStatus();
-
 
3133
      boolean that_present_status = true && that.isSetStatus();
-
 
3134
      if (this_present_status || that_present_status) {
-
 
3135
        if (!(this_present_status && that_present_status))
-
 
3136
          return false;
-
 
3137
        if (!this.status.equals(that.status))
-
 
3138
          return false;
-
 
3139
      }
-
 
3140
 
-
 
3141
      boolean this_present_from_date = true;
-
 
3142
      boolean that_present_from_date = true;
-
 
3143
      if (this_present_from_date || that_present_from_date) {
-
 
3144
        if (!(this_present_from_date && that_present_from_date))
-
 
3145
          return false;
-
 
3146
        if (this.from_date != that.from_date)
-
 
3147
          return false;
-
 
3148
      }
-
 
3149
 
-
 
3150
      boolean this_present_to_date = true;
-
 
3151
      boolean that_present_to_date = true;
-
 
3152
      if (this_present_to_date || that_present_to_date) {
-
 
3153
        if (!(this_present_to_date && that_present_to_date))
-
 
3154
          return false;
-
 
3155
        if (this.to_date != that.to_date)
-
 
3156
          return false;
-
 
3157
      }
-
 
3158
 
-
 
3159
      boolean this_present_warehouse_id = true;
-
 
3160
      boolean that_present_warehouse_id = true;
-
 
3161
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
3162
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
3163
          return false;
-
 
3164
        if (this.warehouse_id != that.warehouse_id)
-
 
3165
          return false;
-
 
3166
      }
-
 
3167
 
-
 
3168
      return true;
-
 
3169
    }
-
 
3170
 
-
 
3171
    @Override
-
 
3172
    public int hashCode() {
-
 
3173
      return 0;
-
 
3174
    }
-
 
3175
 
-
 
3176
    public int compareTo(getAllTransactions_args other) {
-
 
3177
      if (!getClass().equals(other.getClass())) {
-
 
3178
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3179
      }
-
 
3180
 
-
 
3181
      int lastComparison = 0;
-
 
3182
      getAllTransactions_args typedOther = (getAllTransactions_args)other;
-
 
3183
 
-
 
3184
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
3185
      if (lastComparison != 0) {
-
 
3186
        return lastComparison;
-
 
3187
      }
-
 
3188
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
3189
      if (lastComparison != 0) {
-
 
3190
        return lastComparison;
-
 
3191
      }
-
 
3192
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
-
 
3193
      if (lastComparison != 0) {
-
 
3194
        return lastComparison;
-
 
3195
      }
-
 
3196
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
-
 
3197
      if (lastComparison != 0) {
-
 
3198
        return lastComparison;
-
 
3199
      }
-
 
3200
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
-
 
3201
      if (lastComparison != 0) {
-
 
3202
        return lastComparison;
-
 
3203
      }
-
 
3204
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
-
 
3205
      if (lastComparison != 0) {
-
 
3206
        return lastComparison;
-
 
3207
      }
-
 
3208
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
-
 
3209
      if (lastComparison != 0) {
-
 
3210
        return lastComparison;
-
 
3211
      }
-
 
3212
      lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
-
 
3213
      if (lastComparison != 0) {
-
 
3214
        return lastComparison;
-
 
3215
      }
-
 
3216
      return 0;
-
 
3217
    }
-
 
3218
 
-
 
3219
    public void read(TProtocol iprot) throws TException {
-
 
3220
      TField field;
-
 
3221
      iprot.readStructBegin();
-
 
3222
      while (true)
-
 
3223
      {
-
 
3224
        field = iprot.readFieldBegin();
-
 
3225
        if (field.type == TType.STOP) { 
-
 
3226
          break;
-
 
3227
        }
-
 
3228
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3229
        if (fieldId == null) {
-
 
3230
          TProtocolUtil.skip(iprot, field.type);
-
 
3231
        } else {
-
 
3232
          switch (fieldId) {
-
 
3233
            case STATUS:
-
 
3234
              if (field.type == TType.I32) {
-
 
3235
                this.status = TransactionStatus.findByValue(iprot.readI32());
-
 
3236
              } else { 
-
 
3237
                TProtocolUtil.skip(iprot, field.type);
-
 
3238
              }
-
 
3239
              break;
-
 
3240
            case FROM_DATE:
-
 
3241
              if (field.type == TType.I64) {
-
 
3242
                this.from_date = iprot.readI64();
-
 
3243
                setFrom_dateIsSet(true);
-
 
3244
              } else { 
-
 
3245
                TProtocolUtil.skip(iprot, field.type);
-
 
3246
              }
-
 
3247
              break;
-
 
3248
            case TO_DATE:
-
 
3249
              if (field.type == TType.I64) {
-
 
3250
                this.to_date = iprot.readI64();
-
 
3251
                setTo_dateIsSet(true);
-
 
3252
              } else { 
-
 
3253
                TProtocolUtil.skip(iprot, field.type);
-
 
3254
              }
-
 
3255
              break;
-
 
3256
            case WAREHOUSE_ID:
-
 
3257
              if (field.type == TType.I64) {
-
 
3258
                this.warehouse_id = iprot.readI64();
-
 
3259
                setWarehouse_idIsSet(true);
-
 
3260
              } else { 
-
 
3261
                TProtocolUtil.skip(iprot, field.type);
-
 
3262
              }
-
 
3263
              break;
-
 
3264
          }
-
 
3265
          iprot.readFieldEnd();
-
 
3266
        }
-
 
3267
      }
-
 
3268
      iprot.readStructEnd();
-
 
3269
      validate();
-
 
3270
    }
-
 
3271
 
-
 
3272
    public void write(TProtocol oprot) throws TException {
-
 
3273
      validate();
-
 
3274
 
-
 
3275
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3276
      if (this.status != null) {
-
 
3277
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
3278
        oprot.writeI32(this.status.getValue());
-
 
3279
        oprot.writeFieldEnd();
-
 
3280
      }
-
 
3281
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
3282
      oprot.writeI64(this.from_date);
-
 
3283
      oprot.writeFieldEnd();
-
 
3284
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
3285
      oprot.writeI64(this.to_date);
-
 
3286
      oprot.writeFieldEnd();
-
 
3287
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
3288
      oprot.writeI64(this.warehouse_id);
-
 
3289
      oprot.writeFieldEnd();
-
 
3290
      oprot.writeFieldStop();
-
 
3291
      oprot.writeStructEnd();
-
 
3292
    }
-
 
3293
 
-
 
3294
    @Override
-
 
3295
    public String toString() {
-
 
3296
      StringBuilder sb = new StringBuilder("getAllTransactions_args(");
-
 
3297
      boolean first = true;
-
 
3298
 
-
 
3299
      sb.append("status:");
-
 
3300
      if (this.status == null) {
-
 
3301
        sb.append("null");
-
 
3302
      } else {
-
 
3303
        String status_name = status.name();
-
 
3304
        if (status_name != null) {
-
 
3305
          sb.append(status_name);
-
 
3306
          sb.append(" (");
-
 
3307
        }
-
 
3308
        sb.append(this.status);
-
 
3309
        if (status_name != null) {
-
 
3310
          sb.append(")");
-
 
3311
        }
-
 
3312
      }
-
 
3313
      first = false;
-
 
3314
      if (!first) sb.append(", ");
-
 
3315
      sb.append("from_date:");
-
 
3316
      sb.append(this.from_date);
-
 
3317
      first = false;
-
 
3318
      if (!first) sb.append(", ");
-
 
3319
      sb.append("to_date:");
-
 
3320
      sb.append(this.to_date);
-
 
3321
      first = false;
-
 
3322
      if (!first) sb.append(", ");
-
 
3323
      sb.append("warehouse_id:");
-
 
3324
      sb.append(this.warehouse_id);
-
 
3325
      first = false;
-
 
3326
      sb.append(")");
-
 
3327
      return sb.toString();
-
 
3328
    }
-
 
3329
 
-
 
3330
    public void validate() throws TException {
-
 
3331
      // check for required fields
-
 
3332
    }
-
 
3333
 
-
 
3334
  }
-
 
3335
 
-
 
3336
  public static class getAllTransactions_result implements TBase<getAllTransactions_result._Fields>, java.io.Serializable, Cloneable   {
-
 
3337
    private static final TStruct STRUCT_DESC = new TStruct("getAllTransactions_result");
-
 
3338
 
-
 
3339
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
3340
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
3341
 
-
 
3342
    private List<Transaction> success;
-
 
3343
    private TransactionServiceException ex;
-
 
3344
 
-
 
3345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3346
    public enum _Fields implements TFieldIdEnum {
-
 
3347
      SUCCESS((short)0, "success"),
-
 
3348
      EX((short)1, "ex");
-
 
3349
 
-
 
3350
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3352
 
-
 
3353
      static {
-
 
3354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3355
          byId.put((int)field._thriftId, field);
-
 
3356
          byName.put(field.getFieldName(), field);
-
 
3357
        }
-
 
3358
      }
-
 
3359
 
-
 
3360
      /**
-
 
3361
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3362
       */
-
 
3363
      public static _Fields findByThriftId(int fieldId) {
-
 
3364
        return byId.get(fieldId);
-
 
3365
      }
-
 
3366
 
-
 
3367
      /**
-
 
3368
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3369
       * if it is not found.
-
 
3370
       */
-
 
3371
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3372
        _Fields fields = findByThriftId(fieldId);
-
 
3373
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3374
        return fields;
-
 
3375
      }
-
 
3376
 
-
 
3377
      /**
-
 
3378
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3379
       */
-
 
3380
      public static _Fields findByName(String name) {
-
 
3381
        return byName.get(name);
-
 
3382
      }
-
 
3383
 
-
 
3384
      private final short _thriftId;
-
 
3385
      private final String _fieldName;
-
 
3386
 
-
 
3387
      _Fields(short thriftId, String fieldName) {
-
 
3388
        _thriftId = thriftId;
-
 
3389
        _fieldName = fieldName;
-
 
3390
      }
-
 
3391
 
-
 
3392
      public short getThriftFieldId() {
-
 
3393
        return _thriftId;
-
 
3394
      }
-
 
3395
 
-
 
3396
      public String getFieldName() {
-
 
3397
        return _fieldName;
-
 
3398
      }
-
 
3399
    }
-
 
3400
 
-
 
3401
    // isset id assignments
-
 
3402
 
-
 
3403
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3404
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3405
          new ListMetaData(TType.LIST, 
-
 
3406
              new StructMetaData(TType.STRUCT, Transaction.class))));
-
 
3407
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
3408
          new FieldValueMetaData(TType.STRUCT)));
-
 
3409
    }});
-
 
3410
 
-
 
3411
    static {
-
 
3412
      FieldMetaData.addStructMetaDataMap(getAllTransactions_result.class, metaDataMap);
-
 
3413
    }
-
 
3414
 
-
 
3415
    public getAllTransactions_result() {
-
 
3416
    }
-
 
3417
 
-
 
3418
    public getAllTransactions_result(
-
 
3419
      List<Transaction> success,
-
 
3420
      TransactionServiceException ex)
-
 
3421
    {
-
 
3422
      this();
-
 
3423
      this.success = success;
-
 
3424
      this.ex = ex;
-
 
3425
    }
-
 
3426
 
-
 
3427
    /**
-
 
3428
     * Performs a deep copy on <i>other</i>.
-
 
3429
     */
-
 
3430
    public getAllTransactions_result(getAllTransactions_result other) {
-
 
3431
      if (other.isSetSuccess()) {
-
 
3432
        List<Transaction> __this__success = new ArrayList<Transaction>();
-
 
3433
        for (Transaction other_element : other.success) {
-
 
3434
          __this__success.add(new Transaction(other_element));
-
 
3435
        }
-
 
3436
        this.success = __this__success;
-
 
3437
      }
-
 
3438
      if (other.isSetEx()) {
-
 
3439
        this.ex = new TransactionServiceException(other.ex);
-
 
3440
      }
-
 
3441
    }
-
 
3442
 
-
 
3443
    public getAllTransactions_result deepCopy() {
-
 
3444
      return new getAllTransactions_result(this);
-
 
3445
    }
-
 
3446
 
-
 
3447
    @Deprecated
-
 
3448
    public getAllTransactions_result clone() {
-
 
3449
      return new getAllTransactions_result(this);
-
 
3450
    }
-
 
3451
 
-
 
3452
    public int getSuccessSize() {
-
 
3453
      return (this.success == null) ? 0 : this.success.size();
-
 
3454
    }
-
 
3455
 
-
 
3456
    public java.util.Iterator<Transaction> getSuccessIterator() {
-
 
3457
      return (this.success == null) ? null : this.success.iterator();
-
 
3458
    }
-
 
3459
 
-
 
3460
    public void addToSuccess(Transaction elem) {
-
 
3461
      if (this.success == null) {
-
 
3462
        this.success = new ArrayList<Transaction>();
-
 
3463
      }
-
 
3464
      this.success.add(elem);
-
 
3465
    }
-
 
3466
 
-
 
3467
    public List<Transaction> getSuccess() {
-
 
3468
      return this.success;
-
 
3469
    }
-
 
3470
 
-
 
3471
    public getAllTransactions_result setSuccess(List<Transaction> success) {
-
 
3472
      this.success = success;
-
 
3473
      return this;
-
 
3474
    }
-
 
3475
 
-
 
3476
    public void unsetSuccess() {
-
 
3477
      this.success = null;
-
 
3478
    }
-
 
3479
 
-
 
3480
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
3481
    public boolean isSetSuccess() {
-
 
3482
      return this.success != null;
-
 
3483
    }
-
 
3484
 
-
 
3485
    public void setSuccessIsSet(boolean value) {
-
 
3486
      if (!value) {
-
 
3487
        this.success = null;
-
 
3488
      }
-
 
3489
    }
-
 
3490
 
-
 
3491
    public TransactionServiceException getEx() {
-
 
3492
      return this.ex;
-
 
3493
    }
-
 
3494
 
-
 
3495
    public getAllTransactions_result setEx(TransactionServiceException ex) {
-
 
3496
      this.ex = ex;
-
 
3497
      return this;
-
 
3498
    }
-
 
3499
 
-
 
3500
    public void unsetEx() {
-
 
3501
      this.ex = null;
-
 
3502
    }
-
 
3503
 
-
 
3504
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
3505
    public boolean isSetEx() {
-
 
3506
      return this.ex != null;
-
 
3507
    }
-
 
3508
 
-
 
3509
    public void setExIsSet(boolean value) {
-
 
3510
      if (!value) {
-
 
3511
        this.ex = null;
-
 
3512
      }
-
 
3513
    }
-
 
3514
 
-
 
3515
    public void setFieldValue(_Fields field, Object value) {
-
 
3516
      switch (field) {
-
 
3517
      case SUCCESS:
-
 
3518
        if (value == null) {
-
 
3519
          unsetSuccess();
-
 
3520
        } else {
-
 
3521
          setSuccess((List<Transaction>)value);
-
 
3522
        }
-
 
3523
        break;
-
 
3524
 
-
 
3525
      case EX:
-
 
3526
        if (value == null) {
-
 
3527
          unsetEx();
-
 
3528
        } else {
-
 
3529
          setEx((TransactionServiceException)value);
-
 
3530
        }
-
 
3531
        break;
-
 
3532
 
-
 
3533
      }
-
 
3534
    }
-
 
3535
 
-
 
3536
    public void setFieldValue(int fieldID, Object value) {
-
 
3537
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3538
    }
-
 
3539
 
-
 
3540
    public Object getFieldValue(_Fields field) {
-
 
3541
      switch (field) {
-
 
3542
      case SUCCESS:
-
 
3543
        return getSuccess();
-
 
3544
 
-
 
3545
      case EX:
-
 
3546
        return getEx();
-
 
3547
 
-
 
3548
      }
-
 
3549
      throw new IllegalStateException();
-
 
3550
    }
-
 
3551
 
-
 
3552
    public Object getFieldValue(int fieldId) {
-
 
3553
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3554
    }
-
 
3555
 
-
 
3556
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3557
    public boolean isSet(_Fields field) {
-
 
3558
      switch (field) {
-
 
3559
      case SUCCESS:
-
 
3560
        return isSetSuccess();
-
 
3561
      case EX:
-
 
3562
        return isSetEx();
-
 
3563
      }
-
 
3564
      throw new IllegalStateException();
-
 
3565
    }
-
 
3566
 
-
 
3567
    public boolean isSet(int fieldID) {
-
 
3568
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3569
    }
-
 
3570
 
-
 
3571
    @Override
-
 
3572
    public boolean equals(Object that) {
-
 
3573
      if (that == null)
-
 
3574
        return false;
-
 
3575
      if (that instanceof getAllTransactions_result)
-
 
3576
        return this.equals((getAllTransactions_result)that);
-
 
3577
      return false;
-
 
3578
    }
-
 
3579
 
-
 
3580
    public boolean equals(getAllTransactions_result that) {
-
 
3581
      if (that == null)
-
 
3582
        return false;
-
 
3583
 
-
 
3584
      boolean this_present_success = true && this.isSetSuccess();
-
 
3585
      boolean that_present_success = true && that.isSetSuccess();
-
 
3586
      if (this_present_success || that_present_success) {
-
 
3587
        if (!(this_present_success && that_present_success))
-
 
3588
          return false;
-
 
3589
        if (!this.success.equals(that.success))
-
 
3590
          return false;
-
 
3591
      }
-
 
3592
 
-
 
3593
      boolean this_present_ex = true && this.isSetEx();
-
 
3594
      boolean that_present_ex = true && that.isSetEx();
-
 
3595
      if (this_present_ex || that_present_ex) {
-
 
3596
        if (!(this_present_ex && that_present_ex))
-
 
3597
          return false;
-
 
3598
        if (!this.ex.equals(that.ex))
-
 
3599
          return false;
-
 
3600
      }
-
 
3601
 
-
 
3602
      return true;
-
 
3603
    }
-
 
3604
 
-
 
3605
    @Override
-
 
3606
    public int hashCode() {
-
 
3607
      return 0;
-
 
3608
    }
-
 
3609
 
-
 
3610
    public void read(TProtocol iprot) throws TException {
-
 
3611
      TField field;
-
 
3612
      iprot.readStructBegin();
-
 
3613
      while (true)
-
 
3614
      {
-
 
3615
        field = iprot.readFieldBegin();
-
 
3616
        if (field.type == TType.STOP) { 
-
 
3617
          break;
-
 
3618
        }
-
 
3619
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3620
        if (fieldId == null) {
-
 
3621
          TProtocolUtil.skip(iprot, field.type);
-
 
3622
        } else {
-
 
3623
          switch (fieldId) {
-
 
3624
            case SUCCESS:
-
 
3625
              if (field.type == TType.LIST) {
-
 
3626
                {
-
 
3627
                  TList _list30 = iprot.readListBegin();
-
 
3628
                  this.success = new ArrayList<Transaction>(_list30.size);
-
 
3629
                  for (int _i31 = 0; _i31 < _list30.size; ++_i31)
-
 
3630
                  {
-
 
3631
                    Transaction _elem32;
-
 
3632
                    _elem32 = new Transaction();
-
 
3633
                    _elem32.read(iprot);
-
 
3634
                    this.success.add(_elem32);
-
 
3635
                  }
-
 
3636
                  iprot.readListEnd();
-
 
3637
                }
-
 
3638
              } else { 
-
 
3639
                TProtocolUtil.skip(iprot, field.type);
-
 
3640
              }
-
 
3641
              break;
-
 
3642
            case EX:
-
 
3643
              if (field.type == TType.STRUCT) {
-
 
3644
                this.ex = new TransactionServiceException();
-
 
3645
                this.ex.read(iprot);
-
 
3646
              } else { 
-
 
3647
                TProtocolUtil.skip(iprot, field.type);
-
 
3648
              }
-
 
3649
              break;
-
 
3650
          }
-
 
3651
          iprot.readFieldEnd();
-
 
3652
        }
-
 
3653
      }
-
 
3654
      iprot.readStructEnd();
-
 
3655
      validate();
-
 
3656
    }
-
 
3657
 
-
 
3658
    public void write(TProtocol oprot) throws TException {
-
 
3659
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3660
 
-
 
3661
      if (this.isSetSuccess()) {
-
 
3662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
3663
        {
-
 
3664
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
3665
          for (Transaction _iter33 : this.success)
-
 
3666
          {
-
 
3667
            _iter33.write(oprot);
-
 
3668
          }
-
 
3669
          oprot.writeListEnd();
-
 
3670
        }
-
 
3671
        oprot.writeFieldEnd();
-
 
3672
      } else if (this.isSetEx()) {
-
 
3673
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
3674
        this.ex.write(oprot);
-
 
3675
        oprot.writeFieldEnd();
-
 
3676
      }
-
 
3677
      oprot.writeFieldStop();
-
 
3678
      oprot.writeStructEnd();
-
 
3679
    }
-
 
3680
 
-
 
3681
    @Override
-
 
3682
    public String toString() {
-
 
3683
      StringBuilder sb = new StringBuilder("getAllTransactions_result(");
-
 
3684
      boolean first = true;
-
 
3685
 
-
 
3686
      sb.append("success:");
-
 
3687
      if (this.success == null) {
-
 
3688
        sb.append("null");
-
 
3689
      } else {
-
 
3690
        sb.append(this.success);
-
 
3691
      }
-
 
3692
      first = false;
-
 
3693
      if (!first) sb.append(", ");
-
 
3694
      sb.append("ex:");
-
 
3695
      if (this.ex == null) {
-
 
3696
        sb.append("null");
-
 
3697
      } else {
-
 
3698
        sb.append(this.ex);
-
 
3699
      }
-
 
3700
      first = false;
-
 
3701
      sb.append(")");
-
 
3702
      return sb.toString();
-
 
3703
    }
-
 
3704
 
-
 
3705
    public void validate() throws TException {
-
 
3706
      // check for required fields
-
 
3707
    }
-
 
3708
 
-
 
3709
  }
-
 
3710
 
-
 
3711
  public static class getTransactionsForShipmentStatus_args implements TBase<getTransactionsForShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShipmentStatus_args>   {
-
 
3712
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShipmentStatus_args");
-
 
3713
 
-
 
3714
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
-
 
3715
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
-
 
3716
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
-
 
3717
 
-
 
3718
    private ShipmentStatus status;
-
 
3719
    private long from_date;
-
 
3720
    private long to_date;
-
 
3721
 
-
 
3722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3723
    public enum _Fields implements TFieldIdEnum {
-
 
3724
      /**
-
 
3725
       * 
-
 
3726
       * @see ShipmentStatus
-
 
3727
       */
-
 
3728
      STATUS((short)1, "status"),
-
 
3729
      FROM_DATE((short)2, "from_date"),
-
 
3730
      TO_DATE((short)3, "to_date");
-
 
3731
 
-
 
3732
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3734
 
-
 
3735
      static {
-
 
3736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3737
          byId.put((int)field._thriftId, field);
-
 
3738
          byName.put(field.getFieldName(), field);
-
 
3739
        }
-
 
3740
      }
-
 
3741
 
-
 
3742
      /**
-
 
3743
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3744
       */
-
 
3745
      public static _Fields findByThriftId(int fieldId) {
-
 
3746
        return byId.get(fieldId);
-
 
3747
      }
-
 
3748
 
-
 
3749
      /**
-
 
3750
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3751
       * if it is not found.
-
 
3752
       */
-
 
3753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3754
        _Fields fields = findByThriftId(fieldId);
-
 
3755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3756
        return fields;
-
 
3757
      }
-
 
3758
 
-
 
3759
      /**
-
 
3760
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3761
       */
-
 
3762
      public static _Fields findByName(String name) {
-
 
3763
        return byName.get(name);
-
 
3764
      }
-
 
3765
 
-
 
3766
      private final short _thriftId;
-
 
3767
      private final String _fieldName;
-
 
3768
 
-
 
3769
      _Fields(short thriftId, String fieldName) {
-
 
3770
        _thriftId = thriftId;
-
 
3771
        _fieldName = fieldName;
-
 
3772
      }
-
 
3773
 
-
 
3774
      public short getThriftFieldId() {
-
 
3775
        return _thriftId;
-
 
3776
      }
-
 
3777
 
-
 
3778
      public String getFieldName() {
-
 
3779
        return _fieldName;
-
 
3780
      }
-
 
3781
    }
-
 
3782
 
-
 
3783
    // isset id assignments
-
 
3784
    private static final int __FROM_DATE_ISSET_ID = 0;
-
 
3785
    private static final int __TO_DATE_ISSET_ID = 1;
-
 
3786
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
3787
 
-
 
3788
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3789
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
3790
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
-
 
3791
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
-
 
3792
          new FieldValueMetaData(TType.I64)));
-
 
3793
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
-
 
3794
          new FieldValueMetaData(TType.I64)));
-
 
3795
    }});
-
 
3796
 
-
 
3797
    static {
-
 
3798
      FieldMetaData.addStructMetaDataMap(getTransactionsForShipmentStatus_args.class, metaDataMap);
-
 
3799
    }
-
 
3800
 
-
 
3801
    public getTransactionsForShipmentStatus_args() {
-
 
3802
    }
-
 
3803
 
-
 
3804
    public getTransactionsForShipmentStatus_args(
-
 
3805
      ShipmentStatus status,
-
 
3806
      long from_date,
-
 
3807
      long to_date)
-
 
3808
    {
-
 
3809
      this();
-
 
3810
      this.status = status;
-
 
3811
      this.from_date = from_date;
-
 
3812
      setFrom_dateIsSet(true);
-
 
3813
      this.to_date = to_date;
-
 
3814
      setTo_dateIsSet(true);
-
 
3815
    }
-
 
3816
 
-
 
3817
    /**
-
 
3818
     * Performs a deep copy on <i>other</i>.
-
 
3819
     */
-
 
3820
    public getTransactionsForShipmentStatus_args(getTransactionsForShipmentStatus_args other) {
-
 
3821
      __isset_bit_vector.clear();
-
 
3822
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
3823
      if (other.isSetStatus()) {
-
 
3824
        this.status = other.status;
-
 
3825
      }
-
 
3826
      this.from_date = other.from_date;
-
 
3827
      this.to_date = other.to_date;
-
 
3828
    }
-
 
3829
 
-
 
3830
    public getTransactionsForShipmentStatus_args deepCopy() {
-
 
3831
      return new getTransactionsForShipmentStatus_args(this);
-
 
3832
    }
-
 
3833
 
-
 
3834
    @Deprecated
-
 
3835
    public getTransactionsForShipmentStatus_args clone() {
-
 
3836
      return new getTransactionsForShipmentStatus_args(this);
-
 
3837
    }
-
 
3838
 
-
 
3839
    /**
-
 
3840
     * 
-
 
3841
     * @see ShipmentStatus
-
 
3842
     */
-
 
3843
    public ShipmentStatus getStatus() {
-
 
3844
      return this.status;
-
 
3845
    }
-
 
3846
 
-
 
3847
    /**
-
 
3848
     * 
-
 
3849
     * @see ShipmentStatus
-
 
3850
     */
-
 
3851
    public getTransactionsForShipmentStatus_args setStatus(ShipmentStatus status) {
-
 
3852
      this.status = status;
-
 
3853
      return this;
-
 
3854
    }
-
 
3855
 
-
 
3856
    public void unsetStatus() {
-
 
3857
      this.status = null;
-
 
3858
    }
-
 
3859
 
-
 
3860
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
3861
    public boolean isSetStatus() {
-
 
3862
      return this.status != null;
-
 
3863
    }
-
 
3864
 
-
 
3865
    public void setStatusIsSet(boolean value) {
-
 
3866
      if (!value) {
-
 
3867
        this.status = null;
-
 
3868
      }
-
 
3869
    }
-
 
3870
 
-
 
3871
    public long getFrom_date() {
-
 
3872
      return this.from_date;
-
 
3873
    }
-
 
3874
 
-
 
3875
    public getTransactionsForShipmentStatus_args setFrom_date(long from_date) {
-
 
3876
      this.from_date = from_date;
-
 
3877
      setFrom_dateIsSet(true);
-
 
3878
      return this;
-
 
3879
    }
-
 
3880
 
-
 
3881
    public void unsetFrom_date() {
-
 
3882
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
-
 
3883
    }
-
 
3884
 
-
 
3885
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
-
 
3886
    public boolean isSetFrom_date() {
-
 
3887
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
-
 
3888
    }
-
 
3889
 
-
 
3890
    public void setFrom_dateIsSet(boolean value) {
-
 
3891
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
-
 
3892
    }
-
 
3893
 
-
 
3894
    public long getTo_date() {
-
 
3895
      return this.to_date;
-
 
3896
    }
-
 
3897
 
-
 
3898
    public getTransactionsForShipmentStatus_args setTo_date(long to_date) {
-
 
3899
      this.to_date = to_date;
-
 
3900
      setTo_dateIsSet(true);
-
 
3901
      return this;
-
 
3902
    }
-
 
3903
 
-
 
3904
    public void unsetTo_date() {
-
 
3905
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
-
 
3906
    }
-
 
3907
 
-
 
3908
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
-
 
3909
    public boolean isSetTo_date() {
-
 
3910
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
-
 
3911
    }
-
 
3912
 
-
 
3913
    public void setTo_dateIsSet(boolean value) {
-
 
3914
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
-
 
3915
    }
-
 
3916
 
-
 
3917
    public void setFieldValue(_Fields field, Object value) {
-
 
3918
      switch (field) {
-
 
3919
      case STATUS:
-
 
3920
        if (value == null) {
-
 
3921
          unsetStatus();
-
 
3922
        } else {
-
 
3923
          setStatus((ShipmentStatus)value);
-
 
3924
        }
-
 
3925
        break;
-
 
3926
 
-
 
3927
      case FROM_DATE:
-
 
3928
        if (value == null) {
-
 
3929
          unsetFrom_date();
-
 
3930
        } else {
-
 
3931
          setFrom_date((Long)value);
-
 
3932
        }
-
 
3933
        break;
-
 
3934
 
-
 
3935
      case TO_DATE:
-
 
3936
        if (value == null) {
-
 
3937
          unsetTo_date();
-
 
3938
        } else {
-
 
3939
          setTo_date((Long)value);
-
 
3940
        }
-
 
3941
        break;
-
 
3942
 
-
 
3943
      }
-
 
3944
    }
-
 
3945
 
-
 
3946
    public void setFieldValue(int fieldID, Object value) {
-
 
3947
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3948
    }
-
 
3949
 
-
 
3950
    public Object getFieldValue(_Fields field) {
-
 
3951
      switch (field) {
-
 
3952
      case STATUS:
-
 
3953
        return getStatus();
-
 
3954
 
-
 
3955
      case FROM_DATE:
-
 
3956
        return new Long(getFrom_date());
-
 
3957
 
-
 
3958
      case TO_DATE:
-
 
3959
        return new Long(getTo_date());
-
 
3960
 
-
 
3961
      }
-
 
3962
      throw new IllegalStateException();
-
 
3963
    }
-
 
3964
 
-
 
3965
    public Object getFieldValue(int fieldId) {
-
 
3966
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3967
    }
-
 
3968
 
-
 
3969
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3970
    public boolean isSet(_Fields field) {
-
 
3971
      switch (field) {
-
 
3972
      case STATUS:
-
 
3973
        return isSetStatus();
-
 
3974
      case FROM_DATE:
-
 
3975
        return isSetFrom_date();
-
 
3976
      case TO_DATE:
-
 
3977
        return isSetTo_date();
-
 
3978
      }
-
 
3979
      throw new IllegalStateException();
-
 
3980
    }
-
 
3981
 
-
 
3982
    public boolean isSet(int fieldID) {
-
 
3983
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3984
    }
-
 
3985
 
-
 
3986
    @Override
-
 
3987
    public boolean equals(Object that) {
-
 
3988
      if (that == null)
-
 
3989
        return false;
-
 
3990
      if (that instanceof getTransactionsForShipmentStatus_args)
-
 
3991
        return this.equals((getTransactionsForShipmentStatus_args)that);
-
 
3992
      return false;
-
 
3993
    }
-
 
3994
 
-
 
3995
    public boolean equals(getTransactionsForShipmentStatus_args that) {
-
 
3996
      if (that == null)
-
 
3997
        return false;
-
 
3998
 
-
 
3999
      boolean this_present_status = true && this.isSetStatus();
-
 
4000
      boolean that_present_status = true && that.isSetStatus();
-
 
4001
      if (this_present_status || that_present_status) {
-
 
4002
        if (!(this_present_status && that_present_status))
-
 
4003
          return false;
-
 
4004
        if (!this.status.equals(that.status))
-
 
4005
          return false;
-
 
4006
      }
-
 
4007
 
-
 
4008
      boolean this_present_from_date = true;
-
 
4009
      boolean that_present_from_date = true;
-
 
4010
      if (this_present_from_date || that_present_from_date) {
-
 
4011
        if (!(this_present_from_date && that_present_from_date))
-
 
4012
          return false;
-
 
4013
        if (this.from_date != that.from_date)
-
 
4014
          return false;
-
 
4015
      }
-
 
4016
 
-
 
4017
      boolean this_present_to_date = true;
-
 
4018
      boolean that_present_to_date = true;
-
 
4019
      if (this_present_to_date || that_present_to_date) {
-
 
4020
        if (!(this_present_to_date && that_present_to_date))
-
 
4021
          return false;
-
 
4022
        if (this.to_date != that.to_date)
-
 
4023
          return false;
-
 
4024
      }
-
 
4025
 
-
 
4026
      return true;
-
 
4027
    }
-
 
4028
 
-
 
4029
    @Override
-
 
4030
    public int hashCode() {
-
 
4031
      return 0;
-
 
4032
    }
-
 
4033
 
-
 
4034
    public int compareTo(getTransactionsForShipmentStatus_args other) {
-
 
4035
      if (!getClass().equals(other.getClass())) {
-
 
4036
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4037
      }
-
 
4038
 
-
 
4039
      int lastComparison = 0;
-
 
4040
      getTransactionsForShipmentStatus_args typedOther = (getTransactionsForShipmentStatus_args)other;
-
 
4041
 
-
 
4042
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
4043
      if (lastComparison != 0) {
-
 
4044
        return lastComparison;
-
 
4045
      }
-
 
4046
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
4047
      if (lastComparison != 0) {
-
 
4048
        return lastComparison;
-
 
4049
      }
-
 
4050
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
-
 
4051
      if (lastComparison != 0) {
-
 
4052
        return lastComparison;
-
 
4053
      }
-
 
4054
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
-
 
4055
      if (lastComparison != 0) {
-
 
4056
        return lastComparison;
-
 
4057
      }
-
 
4058
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
-
 
4059
      if (lastComparison != 0) {
-
 
4060
        return lastComparison;
-
 
4061
      }
-
 
4062
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
-
 
4063
      if (lastComparison != 0) {
-
 
4064
        return lastComparison;
-
 
4065
      }
-
 
4066
      return 0;
-
 
4067
    }
-
 
4068
 
-
 
4069
    public void read(TProtocol iprot) throws TException {
-
 
4070
      TField field;
-
 
4071
      iprot.readStructBegin();
-
 
4072
      while (true)
-
 
4073
      {
-
 
4074
        field = iprot.readFieldBegin();
-
 
4075
        if (field.type == TType.STOP) { 
-
 
4076
          break;
-
 
4077
        }
-
 
4078
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4079
        if (fieldId == null) {
-
 
4080
          TProtocolUtil.skip(iprot, field.type);
-
 
4081
        } else {
-
 
4082
          switch (fieldId) {
-
 
4083
            case STATUS:
-
 
4084
              if (field.type == TType.I32) {
-
 
4085
                this.status = ShipmentStatus.findByValue(iprot.readI32());
-
 
4086
              } else { 
-
 
4087
                TProtocolUtil.skip(iprot, field.type);
-
 
4088
              }
-
 
4089
              break;
-
 
4090
            case FROM_DATE:
-
 
4091
              if (field.type == TType.I64) {
-
 
4092
                this.from_date = iprot.readI64();
-
 
4093
                setFrom_dateIsSet(true);
-
 
4094
              } else { 
-
 
4095
                TProtocolUtil.skip(iprot, field.type);
-
 
4096
              }
-
 
4097
              break;
-
 
4098
            case TO_DATE:
-
 
4099
              if (field.type == TType.I64) {
-
 
4100
                this.to_date = iprot.readI64();
-
 
4101
                setTo_dateIsSet(true);
-
 
4102
              } else { 
-
 
4103
                TProtocolUtil.skip(iprot, field.type);
-
 
4104
              }
-
 
4105
              break;
-
 
4106
          }
-
 
4107
          iprot.readFieldEnd();
-
 
4108
        }
-
 
4109
      }
-
 
4110
      iprot.readStructEnd();
-
 
4111
      validate();
-
 
4112
    }
-
 
4113
 
-
 
4114
    public void write(TProtocol oprot) throws TException {
-
 
4115
      validate();
-
 
4116
 
-
 
4117
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4118
      if (this.status != null) {
-
 
4119
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
4120
        oprot.writeI32(this.status.getValue());
-
 
4121
        oprot.writeFieldEnd();
-
 
4122
      }
-
 
4123
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
4124
      oprot.writeI64(this.from_date);
-
 
4125
      oprot.writeFieldEnd();
-
 
4126
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
4127
      oprot.writeI64(this.to_date);
-
 
4128
      oprot.writeFieldEnd();
-
 
4129
      oprot.writeFieldStop();
-
 
4130
      oprot.writeStructEnd();
-
 
4131
    }
-
 
4132
 
-
 
4133
    @Override
-
 
4134
    public String toString() {
-
 
4135
      StringBuilder sb = new StringBuilder("getTransactionsForShipmentStatus_args(");
-
 
4136
      boolean first = true;
-
 
4137
 
-
 
4138
      sb.append("status:");
-
 
4139
      if (this.status == null) {
-
 
4140
        sb.append("null");
-
 
4141
      } else {
-
 
4142
        String status_name = status.name();
-
 
4143
        if (status_name != null) {
-
 
4144
          sb.append(status_name);
-
 
4145
          sb.append(" (");
-
 
4146
        }
-
 
4147
        sb.append(this.status);
-
 
4148
        if (status_name != null) {
-
 
4149
          sb.append(")");
-
 
4150
        }
-
 
4151
      }
-
 
4152
      first = false;
-
 
4153
      if (!first) sb.append(", ");
-
 
4154
      sb.append("from_date:");
-
 
4155
      sb.append(this.from_date);
-
 
4156
      first = false;
-
 
4157
      if (!first) sb.append(", ");
-
 
4158
      sb.append("to_date:");
-
 
4159
      sb.append(this.to_date);
-
 
4160
      first = false;
-
 
4161
      sb.append(")");
-
 
4162
      return sb.toString();
-
 
4163
    }
-
 
4164
 
-
 
4165
    public void validate() throws TException {
-
 
4166
      // check for required fields
-
 
4167
    }
-
 
4168
 
-
 
4169
  }
-
 
4170
 
-
 
4171
  public static class getTransactionsForShipmentStatus_result implements TBase<getTransactionsForShipmentStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
4172
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShipmentStatus_result");
-
 
4173
 
-
 
4174
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
4175
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
4176
 
-
 
4177
    private List<Transaction> success;
-
 
4178
    private TransactionServiceException ex;
-
 
4179
 
-
 
4180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
4181
    public enum _Fields implements TFieldIdEnum {
-
 
4182
      SUCCESS((short)0, "success"),
-
 
4183
      EX((short)1, "ex");
-
 
4184
 
-
 
4185
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4186
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
4187
 
-
 
4188
      static {
-
 
4189
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
4190
          byId.put((int)field._thriftId, field);
-
 
4191
          byName.put(field.getFieldName(), field);
-
 
4192
        }
-
 
4193
      }
-
 
4194
 
-
 
4195
      /**
-
 
4196
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
4197
       */
-
 
4198
      public static _Fields findByThriftId(int fieldId) {
-
 
4199
        return byId.get(fieldId);
-
 
4200
      }
-
 
4201
 
-
 
4202
      /**
-
 
4203
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
4204
       * if it is not found.
-
 
4205
       */
-
 
4206
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
4207
        _Fields fields = findByThriftId(fieldId);
-
 
4208
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
4209
        return fields;
-
 
4210
      }
-
 
4211
 
-
 
4212
      /**
-
 
4213
       * Find the _Fields constant that matches name, or null if its not found.
-
 
4214
       */
-
 
4215
      public static _Fields findByName(String name) {
-
 
4216
        return byName.get(name);
-
 
4217
      }
-
 
4218
 
-
 
4219
      private final short _thriftId;
-
 
4220
      private final String _fieldName;
-
 
4221
 
-
 
4222
      _Fields(short thriftId, String fieldName) {
-
 
4223
        _thriftId = thriftId;
-
 
4224
        _fieldName = fieldName;
-
 
4225
      }
-
 
4226
 
-
 
4227
      public short getThriftFieldId() {
-
 
4228
        return _thriftId;
-
 
4229
      }
-
 
4230
 
-
 
4231
      public String getFieldName() {
-
 
4232
        return _fieldName;
-
 
4233
      }
-
 
4234
    }
-
 
4235
 
-
 
4236
    // isset id assignments
-
 
4237
 
-
 
4238
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
4239
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
4240
          new ListMetaData(TType.LIST, 
-
 
4241
              new StructMetaData(TType.STRUCT, Transaction.class))));
-
 
4242
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
4243
          new FieldValueMetaData(TType.STRUCT)));
-
 
4244
    }});
-
 
4245
 
-
 
4246
    static {
-
 
4247
      FieldMetaData.addStructMetaDataMap(getTransactionsForShipmentStatus_result.class, metaDataMap);
-
 
4248
    }
-
 
4249
 
-
 
4250
    public getTransactionsForShipmentStatus_result() {
-
 
4251
    }
-
 
4252
 
-
 
4253
    public getTransactionsForShipmentStatus_result(
-
 
4254
      List<Transaction> success,
-
 
4255
      TransactionServiceException ex)
-
 
4256
    {
-
 
4257
      this();
-
 
4258
      this.success = success;
-
 
4259
      this.ex = ex;
-
 
4260
    }
-
 
4261
 
-
 
4262
    /**
-
 
4263
     * Performs a deep copy on <i>other</i>.
-
 
4264
     */
-
 
4265
    public getTransactionsForShipmentStatus_result(getTransactionsForShipmentStatus_result other) {
-
 
4266
      if (other.isSetSuccess()) {
-
 
4267
        List<Transaction> __this__success = new ArrayList<Transaction>();
-
 
4268
        for (Transaction other_element : other.success) {
-
 
4269
          __this__success.add(new Transaction(other_element));
-
 
4270
        }
-
 
4271
        this.success = __this__success;
-
 
4272
      }
-
 
4273
      if (other.isSetEx()) {
-
 
4274
        this.ex = new TransactionServiceException(other.ex);
-
 
4275
      }
-
 
4276
    }
-
 
4277
 
-
 
4278
    public getTransactionsForShipmentStatus_result deepCopy() {
-
 
4279
      return new getTransactionsForShipmentStatus_result(this);
-
 
4280
    }
-
 
4281
 
-
 
4282
    @Deprecated
-
 
4283
    public getTransactionsForShipmentStatus_result clone() {
-
 
4284
      return new getTransactionsForShipmentStatus_result(this);
-
 
4285
    }
-
 
4286
 
-
 
4287
    public int getSuccessSize() {
-
 
4288
      return (this.success == null) ? 0 : this.success.size();
-
 
4289
    }
-
 
4290
 
-
 
4291
    public java.util.Iterator<Transaction> getSuccessIterator() {
-
 
4292
      return (this.success == null) ? null : this.success.iterator();
-
 
4293
    }
-
 
4294
 
-
 
4295
    public void addToSuccess(Transaction elem) {
-
 
4296
      if (this.success == null) {
-
 
4297
        this.success = new ArrayList<Transaction>();
-
 
4298
      }
-
 
4299
      this.success.add(elem);
-
 
4300
    }
-
 
4301
 
-
 
4302
    public List<Transaction> getSuccess() {
-
 
4303
      return this.success;
-
 
4304
    }
-
 
4305
 
-
 
4306
    public getTransactionsForShipmentStatus_result setSuccess(List<Transaction> success) {
-
 
4307
      this.success = success;
-
 
4308
      return this;
-
 
4309
    }
-
 
4310
 
-
 
4311
    public void unsetSuccess() {
-
 
4312
      this.success = null;
-
 
4313
    }
-
 
4314
 
-
 
4315
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
4316
    public boolean isSetSuccess() {
-
 
4317
      return this.success != null;
-
 
4318
    }
-
 
4319
 
-
 
4320
    public void setSuccessIsSet(boolean value) {
-
 
4321
      if (!value) {
-
 
4322
        this.success = null;
-
 
4323
      }
-
 
4324
    }
-
 
4325
 
-
 
4326
    public TransactionServiceException getEx() {
-
 
4327
      return this.ex;
-
 
4328
    }
-
 
4329
 
-
 
4330
    public getTransactionsForShipmentStatus_result setEx(TransactionServiceException ex) {
-
 
4331
      this.ex = ex;
-
 
4332
      return this;
-
 
4333
    }
-
 
4334
 
-
 
4335
    public void unsetEx() {
-
 
4336
      this.ex = null;
-
 
4337
    }
-
 
4338
 
-
 
4339
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
4340
    public boolean isSetEx() {
-
 
4341
      return this.ex != null;
-
 
4342
    }
-
 
4343
 
-
 
4344
    public void setExIsSet(boolean value) {
-
 
4345
      if (!value) {
-
 
4346
        this.ex = null;
-
 
4347
      }
-
 
4348
    }
-
 
4349
 
-
 
4350
    public void setFieldValue(_Fields field, Object value) {
-
 
4351
      switch (field) {
-
 
4352
      case SUCCESS:
-
 
4353
        if (value == null) {
-
 
4354
          unsetSuccess();
-
 
4355
        } else {
-
 
4356
          setSuccess((List<Transaction>)value);
-
 
4357
        }
-
 
4358
        break;
-
 
4359
 
-
 
4360
      case EX:
-
 
4361
        if (value == null) {
-
 
4362
          unsetEx();
-
 
4363
        } else {
-
 
4364
          setEx((TransactionServiceException)value);
-
 
4365
        }
-
 
4366
        break;
-
 
4367
 
-
 
4368
      }
-
 
4369
    }
-
 
4370
 
-
 
4371
    public void setFieldValue(int fieldID, Object value) {
-
 
4372
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4373
    }
-
 
4374
 
-
 
4375
    public Object getFieldValue(_Fields field) {
-
 
4376
      switch (field) {
-
 
4377
      case SUCCESS:
-
 
4378
        return getSuccess();
-
 
4379
 
-
 
4380
      case EX:
-
 
4381
        return getEx();
-
 
4382
 
-
 
4383
      }
-
 
4384
      throw new IllegalStateException();
-
 
4385
    }
-
 
4386
 
-
 
4387
    public Object getFieldValue(int fieldId) {
-
 
4388
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4389
    }
-
 
4390
 
-
 
4391
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
4392
    public boolean isSet(_Fields field) {
-
 
4393
      switch (field) {
-
 
4394
      case SUCCESS:
-
 
4395
        return isSetSuccess();
-
 
4396
      case EX:
-
 
4397
        return isSetEx();
-
 
4398
      }
-
 
4399
      throw new IllegalStateException();
-
 
4400
    }
-
 
4401
 
-
 
4402
    public boolean isSet(int fieldID) {
-
 
4403
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4404
    }
-
 
4405
 
-
 
4406
    @Override
-
 
4407
    public boolean equals(Object that) {
-
 
4408
      if (that == null)
-
 
4409
        return false;
-
 
4410
      if (that instanceof getTransactionsForShipmentStatus_result)
-
 
4411
        return this.equals((getTransactionsForShipmentStatus_result)that);
-
 
4412
      return false;
-
 
4413
    }
-
 
4414
 
-
 
4415
    public boolean equals(getTransactionsForShipmentStatus_result that) {
-
 
4416
      if (that == null)
-
 
4417
        return false;
-
 
4418
 
-
 
4419
      boolean this_present_success = true && this.isSetSuccess();
-
 
4420
      boolean that_present_success = true && that.isSetSuccess();
-
 
4421
      if (this_present_success || that_present_success) {
-
 
4422
        if (!(this_present_success && that_present_success))
-
 
4423
          return false;
-
 
4424
        if (!this.success.equals(that.success))
-
 
4425
          return false;
-
 
4426
      }
-
 
4427
 
-
 
4428
      boolean this_present_ex = true && this.isSetEx();
-
 
4429
      boolean that_present_ex = true && that.isSetEx();
-
 
4430
      if (this_present_ex || that_present_ex) {
-
 
4431
        if (!(this_present_ex && that_present_ex))
-
 
4432
          return false;
-
 
4433
        if (!this.ex.equals(that.ex))
-
 
4434
          return false;
-
 
4435
      }
-
 
4436
 
-
 
4437
      return true;
-
 
4438
    }
-
 
4439
 
-
 
4440
    @Override
-
 
4441
    public int hashCode() {
-
 
4442
      return 0;
-
 
4443
    }
-
 
4444
 
-
 
4445
    public void read(TProtocol iprot) throws TException {
-
 
4446
      TField field;
-
 
4447
      iprot.readStructBegin();
-
 
4448
      while (true)
-
 
4449
      {
-
 
4450
        field = iprot.readFieldBegin();
-
 
4451
        if (field.type == TType.STOP) { 
-
 
4452
          break;
-
 
4453
        }
-
 
4454
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4455
        if (fieldId == null) {
-
 
4456
          TProtocolUtil.skip(iprot, field.type);
-
 
4457
        } else {
-
 
4458
          switch (fieldId) {
-
 
4459
            case SUCCESS:
-
 
4460
              if (field.type == TType.LIST) {
-
 
4461
                {
-
 
4462
                  TList _list34 = iprot.readListBegin();
-
 
4463
                  this.success = new ArrayList<Transaction>(_list34.size);
-
 
4464
                  for (int _i35 = 0; _i35 < _list34.size; ++_i35)
-
 
4465
                  {
-
 
4466
                    Transaction _elem36;
-
 
4467
                    _elem36 = new Transaction();
-
 
4468
                    _elem36.read(iprot);
-
 
4469
                    this.success.add(_elem36);
-
 
4470
                  }
-
 
4471
                  iprot.readListEnd();
-
 
4472
                }
-
 
4473
              } else { 
-
 
4474
                TProtocolUtil.skip(iprot, field.type);
-
 
4475
              }
-
 
4476
              break;
-
 
4477
            case EX:
-
 
4478
              if (field.type == TType.STRUCT) {
-
 
4479
                this.ex = new TransactionServiceException();
-
 
4480
                this.ex.read(iprot);
-
 
4481
              } else { 
-
 
4482
                TProtocolUtil.skip(iprot, field.type);
-
 
4483
              }
-
 
4484
              break;
-
 
4485
          }
-
 
4486
          iprot.readFieldEnd();
-
 
4487
        }
-
 
4488
      }
-
 
4489
      iprot.readStructEnd();
-
 
4490
      validate();
-
 
4491
    }
-
 
4492
 
-
 
4493
    public void write(TProtocol oprot) throws TException {
-
 
4494
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4495
 
-
 
4496
      if (this.isSetSuccess()) {
-
 
4497
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
4498
        {
-
 
4499
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
4500
          for (Transaction _iter37 : this.success)
-
 
4501
          {
-
 
4502
            _iter37.write(oprot);
-
 
4503
          }
-
 
4504
          oprot.writeListEnd();
-
 
4505
        }
-
 
4506
        oprot.writeFieldEnd();
-
 
4507
      } else if (this.isSetEx()) {
-
 
4508
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
4509
        this.ex.write(oprot);
-
 
4510
        oprot.writeFieldEnd();
-
 
4511
      }
-
 
4512
      oprot.writeFieldStop();
-
 
4513
      oprot.writeStructEnd();
-
 
4514
    }
-
 
4515
 
-
 
4516
    @Override
-
 
4517
    public String toString() {
-
 
4518
      StringBuilder sb = new StringBuilder("getTransactionsForShipmentStatus_result(");
-
 
4519
      boolean first = true;
-
 
4520
 
-
 
4521
      sb.append("success:");
-
 
4522
      if (this.success == null) {
-
 
4523
        sb.append("null");
-
 
4524
      } else {
-
 
4525
        sb.append(this.success);
-
 
4526
      }
-
 
4527
      first = false;
-
 
4528
      if (!first) sb.append(", ");
-
 
4529
      sb.append("ex:");
-
 
4530
      if (this.ex == null) {
-
 
4531
        sb.append("null");
-
 
4532
      } else {
-
 
4533
        sb.append(this.ex);
-
 
4534
      }
-
 
4535
      first = false;
-
 
4536
      sb.append(")");
-
 
4537
      return sb.toString();
-
 
4538
    }
-
 
4539
 
-
 
4540
    public void validate() throws TException {
-
 
4541
      // check for required fields
-
 
4542
    }
-
 
4543
 
-
 
4544
  }
-
 
4545
 
-
 
4546
  public static class getTransactionsForCustomer_args implements TBase<getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomer_args>   {
2329
  public static class getTransactionsForCustomer_args implements TBase<getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomer_args>   {
4547
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomer_args");
2330
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomer_args");
4548
 
2331
 
4549
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
2332
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
4550
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
2333
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
Line 5370... Line 3153...
5370
        } else {
3153
        } else {
5371
          switch (fieldId) {
3154
          switch (fieldId) {
5372
            case SUCCESS:
3155
            case SUCCESS:
5373
              if (field.type == TType.LIST) {
3156
              if (field.type == TType.LIST) {
5374
                {
3157
                {
5375
                  TList _list38 = iprot.readListBegin();
3158
                  TList _list13 = iprot.readListBegin();
5376
                  this.success = new ArrayList<Transaction>(_list38.size);
3159
                  this.success = new ArrayList<Transaction>(_list13.size);
5377
                  for (int _i39 = 0; _i39 < _list38.size; ++_i39)
3160
                  for (int _i14 = 0; _i14 < _list13.size; ++_i14)
5378
                  {
3161
                  {
5379
                    Transaction _elem40;
3162
                    Transaction _elem15;
5380
                    _elem40 = new Transaction();
3163
                    _elem15 = new Transaction();
5381
                    _elem40.read(iprot);
3164
                    _elem15.read(iprot);
5382
                    this.success.add(_elem40);
3165
                    this.success.add(_elem15);
5383
                  }
3166
                  }
5384
                  iprot.readListEnd();
3167
                  iprot.readListEnd();
5385
                }
3168
                }
5386
              } else { 
3169
              } else { 
5387
                TProtocolUtil.skip(iprot, field.type);
3170
                TProtocolUtil.skip(iprot, field.type);
Line 5408... Line 3191...
5408
 
3191
 
5409
      if (this.isSetSuccess()) {
3192
      if (this.isSetSuccess()) {
5410
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3193
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5411
        {
3194
        {
5412
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3195
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5413
          for (Transaction _iter41 : this.success)
3196
          for (Transaction _iter16 : this.success)
5414
          {
3197
          {
5415
            _iter41.write(oprot);
3198
            _iter16.write(oprot);
5416
          }
3199
          }
5417
          oprot.writeListEnd();
3200
          oprot.writeListEnd();
5418
        }
3201
        }
5419
        oprot.writeFieldEnd();
3202
        oprot.writeFieldEnd();
5420
      } else if (this.isSetEx()) {
3203
      } else if (this.isSetEx()) {
Line 5454... Line 3237...
5454
      // check for required fields
3237
      // check for required fields
5455
    }
3238
    }
5456
 
3239
 
5457
  }
3240
  }
5458
 
3241
 
5459
  public static class getTransactionsForCustomerAndShipmentStatus_args implements TBase<getTransactionsForCustomerAndShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomerAndShipmentStatus_args>   {
-
 
5460
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomerAndShipmentStatus_args");
-
 
5461
 
-
 
5462
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
-
 
5463
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
-
 
5464
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
-
 
5465
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
-
 
5466
 
-
 
5467
    private long customerId;
-
 
5468
    private long from_date;
-
 
5469
    private long to_date;
-
 
5470
    private ShipmentStatus status;
-
 
5471
 
-
 
5472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
5473
    public enum _Fields implements TFieldIdEnum {
-
 
5474
      CUSTOMER_ID((short)1, "customerId"),
-
 
5475
      FROM_DATE((short)2, "from_date"),
-
 
5476
      TO_DATE((short)3, "to_date"),
-
 
5477
      /**
-
 
5478
       * 
-
 
5479
       * @see ShipmentStatus
-
 
5480
       */
-
 
5481
      STATUS((short)4, "status");
-
 
5482
 
-
 
5483
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5484
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
5485
 
-
 
5486
      static {
-
 
5487
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
5488
          byId.put((int)field._thriftId, field);
-
 
5489
          byName.put(field.getFieldName(), field);
-
 
5490
        }
-
 
5491
      }
-
 
5492
 
-
 
5493
      /**
-
 
5494
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
5495
       */
-
 
5496
      public static _Fields findByThriftId(int fieldId) {
-
 
5497
        return byId.get(fieldId);
-
 
5498
      }
-
 
5499
 
-
 
5500
      /**
-
 
5501
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
5502
       * if it is not found.
-
 
5503
       */
-
 
5504
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
5505
        _Fields fields = findByThriftId(fieldId);
-
 
5506
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
5507
        return fields;
-
 
5508
      }
-
 
5509
 
-
 
5510
      /**
-
 
5511
       * Find the _Fields constant that matches name, or null if its not found.
-
 
5512
       */
-
 
5513
      public static _Fields findByName(String name) {
-
 
5514
        return byName.get(name);
-
 
5515
      }
-
 
5516
 
-
 
5517
      private final short _thriftId;
-
 
5518
      private final String _fieldName;
-
 
5519
 
-
 
5520
      _Fields(short thriftId, String fieldName) {
-
 
5521
        _thriftId = thriftId;
-
 
5522
        _fieldName = fieldName;
-
 
5523
      }
-
 
5524
 
-
 
5525
      public short getThriftFieldId() {
-
 
5526
        return _thriftId;
-
 
5527
      }
-
 
5528
 
-
 
5529
      public String getFieldName() {
-
 
5530
        return _fieldName;
-
 
5531
      }
-
 
5532
    }
-
 
5533
 
-
 
5534
    // isset id assignments
-
 
5535
    private static final int __CUSTOMERID_ISSET_ID = 0;
-
 
5536
    private static final int __FROM_DATE_ISSET_ID = 1;
-
 
5537
    private static final int __TO_DATE_ISSET_ID = 2;
-
 
5538
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
5539
 
-
 
5540
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5541
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
-
 
5542
          new FieldValueMetaData(TType.I64)));
-
 
5543
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
-
 
5544
          new FieldValueMetaData(TType.I64)));
-
 
5545
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
-
 
5546
          new FieldValueMetaData(TType.I64)));
-
 
5547
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
5548
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
-
 
5549
    }});
-
 
5550
 
-
 
5551
    static {
-
 
5552
      FieldMetaData.addStructMetaDataMap(getTransactionsForCustomerAndShipmentStatus_args.class, metaDataMap);
-
 
5553
    }
-
 
5554
 
-
 
5555
    public getTransactionsForCustomerAndShipmentStatus_args() {
-
 
5556
    }
-
 
5557
 
-
 
5558
    public getTransactionsForCustomerAndShipmentStatus_args(
-
 
5559
      long customerId,
-
 
5560
      long from_date,
-
 
5561
      long to_date,
-
 
5562
      ShipmentStatus status)
-
 
5563
    {
-
 
5564
      this();
-
 
5565
      this.customerId = customerId;
-
 
5566
      setCustomerIdIsSet(true);
-
 
5567
      this.from_date = from_date;
-
 
5568
      setFrom_dateIsSet(true);
-
 
5569
      this.to_date = to_date;
-
 
5570
      setTo_dateIsSet(true);
-
 
5571
      this.status = status;
-
 
5572
    }
-
 
5573
 
-
 
5574
    /**
-
 
5575
     * Performs a deep copy on <i>other</i>.
-
 
5576
     */
-
 
5577
    public getTransactionsForCustomerAndShipmentStatus_args(getTransactionsForCustomerAndShipmentStatus_args other) {
-
 
5578
      __isset_bit_vector.clear();
-
 
5579
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5580
      this.customerId = other.customerId;
-
 
5581
      this.from_date = other.from_date;
-
 
5582
      this.to_date = other.to_date;
-
 
5583
      if (other.isSetStatus()) {
-
 
5584
        this.status = other.status;
-
 
5585
      }
-
 
5586
    }
-
 
5587
 
-
 
5588
    public getTransactionsForCustomerAndShipmentStatus_args deepCopy() {
-
 
5589
      return new getTransactionsForCustomerAndShipmentStatus_args(this);
-
 
5590
    }
-
 
5591
 
-
 
5592
    @Deprecated
-
 
5593
    public getTransactionsForCustomerAndShipmentStatus_args clone() {
-
 
5594
      return new getTransactionsForCustomerAndShipmentStatus_args(this);
-
 
5595
    }
-
 
5596
 
-
 
5597
    public long getCustomerId() {
-
 
5598
      return this.customerId;
-
 
5599
    }
-
 
5600
 
-
 
5601
    public getTransactionsForCustomerAndShipmentStatus_args setCustomerId(long customerId) {
-
 
5602
      this.customerId = customerId;
-
 
5603
      setCustomerIdIsSet(true);
-
 
5604
      return this;
-
 
5605
    }
-
 
5606
 
-
 
5607
    public void unsetCustomerId() {
-
 
5608
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
-
 
5609
    }
-
 
5610
 
-
 
5611
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
-
 
5612
    public boolean isSetCustomerId() {
-
 
5613
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
-
 
5614
    }
-
 
5615
 
-
 
5616
    public void setCustomerIdIsSet(boolean value) {
-
 
5617
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
-
 
5618
    }
-
 
5619
 
-
 
5620
    public long getFrom_date() {
-
 
5621
      return this.from_date;
-
 
5622
    }
-
 
5623
 
-
 
5624
    public getTransactionsForCustomerAndShipmentStatus_args setFrom_date(long from_date) {
-
 
5625
      this.from_date = from_date;
-
 
5626
      setFrom_dateIsSet(true);
-
 
5627
      return this;
-
 
5628
    }
-
 
5629
 
-
 
5630
    public void unsetFrom_date() {
-
 
5631
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
-
 
5632
    }
-
 
5633
 
-
 
5634
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
-
 
5635
    public boolean isSetFrom_date() {
-
 
5636
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
-
 
5637
    }
-
 
5638
 
-
 
5639
    public void setFrom_dateIsSet(boolean value) {
-
 
5640
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
-
 
5641
    }
-
 
5642
 
-
 
5643
    public long getTo_date() {
-
 
5644
      return this.to_date;
-
 
5645
    }
-
 
5646
 
-
 
5647
    public getTransactionsForCustomerAndShipmentStatus_args setTo_date(long to_date) {
-
 
5648
      this.to_date = to_date;
-
 
5649
      setTo_dateIsSet(true);
-
 
5650
      return this;
-
 
5651
    }
-
 
5652
 
-
 
5653
    public void unsetTo_date() {
-
 
5654
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
-
 
5655
    }
-
 
5656
 
-
 
5657
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
-
 
5658
    public boolean isSetTo_date() {
-
 
5659
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
-
 
5660
    }
-
 
5661
 
-
 
5662
    public void setTo_dateIsSet(boolean value) {
-
 
5663
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
-
 
5664
    }
-
 
5665
 
-
 
5666
    /**
-
 
5667
     * 
-
 
5668
     * @see ShipmentStatus
-
 
5669
     */
-
 
5670
    public ShipmentStatus getStatus() {
-
 
5671
      return this.status;
-
 
5672
    }
-
 
5673
 
-
 
5674
    /**
-
 
5675
     * 
-
 
5676
     * @see ShipmentStatus
-
 
5677
     */
-
 
5678
    public getTransactionsForCustomerAndShipmentStatus_args setStatus(ShipmentStatus status) {
-
 
5679
      this.status = status;
-
 
5680
      return this;
-
 
5681
    }
-
 
5682
 
-
 
5683
    public void unsetStatus() {
-
 
5684
      this.status = null;
-
 
5685
    }
-
 
5686
 
-
 
5687
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
5688
    public boolean isSetStatus() {
-
 
5689
      return this.status != null;
-
 
5690
    }
-
 
5691
 
-
 
5692
    public void setStatusIsSet(boolean value) {
-
 
5693
      if (!value) {
-
 
5694
        this.status = null;
-
 
5695
      }
-
 
5696
    }
-
 
5697
 
-
 
5698
    public void setFieldValue(_Fields field, Object value) {
-
 
5699
      switch (field) {
-
 
5700
      case CUSTOMER_ID:
-
 
5701
        if (value == null) {
-
 
5702
          unsetCustomerId();
-
 
5703
        } else {
-
 
5704
          setCustomerId((Long)value);
-
 
5705
        }
-
 
5706
        break;
-
 
5707
 
-
 
5708
      case FROM_DATE:
-
 
5709
        if (value == null) {
-
 
5710
          unsetFrom_date();
-
 
5711
        } else {
-
 
5712
          setFrom_date((Long)value);
-
 
5713
        }
-
 
5714
        break;
-
 
5715
 
-
 
5716
      case TO_DATE:
-
 
5717
        if (value == null) {
-
 
5718
          unsetTo_date();
-
 
5719
        } else {
-
 
5720
          setTo_date((Long)value);
-
 
5721
        }
-
 
5722
        break;
-
 
5723
 
-
 
5724
      case STATUS:
-
 
5725
        if (value == null) {
-
 
5726
          unsetStatus();
-
 
5727
        } else {
-
 
5728
          setStatus((ShipmentStatus)value);
-
 
5729
        }
-
 
5730
        break;
-
 
5731
 
-
 
5732
      }
-
 
5733
    }
-
 
5734
 
-
 
5735
    public void setFieldValue(int fieldID, Object value) {
-
 
5736
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5737
    }
-
 
5738
 
-
 
5739
    public Object getFieldValue(_Fields field) {
-
 
5740
      switch (field) {
-
 
5741
      case CUSTOMER_ID:
-
 
5742
        return new Long(getCustomerId());
-
 
5743
 
-
 
5744
      case FROM_DATE:
-
 
5745
        return new Long(getFrom_date());
-
 
5746
 
-
 
5747
      case TO_DATE:
-
 
5748
        return new Long(getTo_date());
-
 
5749
 
-
 
5750
      case STATUS:
-
 
5751
        return getStatus();
-
 
5752
 
-
 
5753
      }
-
 
5754
      throw new IllegalStateException();
-
 
5755
    }
-
 
5756
 
-
 
5757
    public Object getFieldValue(int fieldId) {
-
 
5758
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5759
    }
-
 
5760
 
-
 
5761
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
5762
    public boolean isSet(_Fields field) {
-
 
5763
      switch (field) {
-
 
5764
      case CUSTOMER_ID:
-
 
5765
        return isSetCustomerId();
-
 
5766
      case FROM_DATE:
-
 
5767
        return isSetFrom_date();
-
 
5768
      case TO_DATE:
-
 
5769
        return isSetTo_date();
-
 
5770
      case STATUS:
-
 
5771
        return isSetStatus();
-
 
5772
      }
-
 
5773
      throw new IllegalStateException();
-
 
5774
    }
-
 
5775
 
-
 
5776
    public boolean isSet(int fieldID) {
-
 
5777
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5778
    }
-
 
5779
 
-
 
5780
    @Override
-
 
5781
    public boolean equals(Object that) {
-
 
5782
      if (that == null)
-
 
5783
        return false;
-
 
5784
      if (that instanceof getTransactionsForCustomerAndShipmentStatus_args)
-
 
5785
        return this.equals((getTransactionsForCustomerAndShipmentStatus_args)that);
-
 
5786
      return false;
-
 
5787
    }
-
 
5788
 
-
 
5789
    public boolean equals(getTransactionsForCustomerAndShipmentStatus_args that) {
-
 
5790
      if (that == null)
-
 
5791
        return false;
-
 
5792
 
-
 
5793
      boolean this_present_customerId = true;
-
 
5794
      boolean that_present_customerId = true;
-
 
5795
      if (this_present_customerId || that_present_customerId) {
-
 
5796
        if (!(this_present_customerId && that_present_customerId))
-
 
5797
          return false;
-
 
5798
        if (this.customerId != that.customerId)
-
 
5799
          return false;
-
 
5800
      }
-
 
5801
 
-
 
5802
      boolean this_present_from_date = true;
-
 
5803
      boolean that_present_from_date = true;
-
 
5804
      if (this_present_from_date || that_present_from_date) {
-
 
5805
        if (!(this_present_from_date && that_present_from_date))
-
 
5806
          return false;
-
 
5807
        if (this.from_date != that.from_date)
-
 
5808
          return false;
-
 
5809
      }
-
 
5810
 
-
 
5811
      boolean this_present_to_date = true;
-
 
5812
      boolean that_present_to_date = true;
-
 
5813
      if (this_present_to_date || that_present_to_date) {
-
 
5814
        if (!(this_present_to_date && that_present_to_date))
-
 
5815
          return false;
-
 
5816
        if (this.to_date != that.to_date)
-
 
5817
          return false;
-
 
5818
      }
-
 
5819
 
-
 
5820
      boolean this_present_status = true && this.isSetStatus();
-
 
5821
      boolean that_present_status = true && that.isSetStatus();
-
 
5822
      if (this_present_status || that_present_status) {
-
 
5823
        if (!(this_present_status && that_present_status))
-
 
5824
          return false;
-
 
5825
        if (!this.status.equals(that.status))
-
 
5826
          return false;
-
 
5827
      }
-
 
5828
 
-
 
5829
      return true;
-
 
5830
    }
-
 
5831
 
-
 
5832
    @Override
-
 
5833
    public int hashCode() {
-
 
5834
      return 0;
-
 
5835
    }
-
 
5836
 
-
 
5837
    public int compareTo(getTransactionsForCustomerAndShipmentStatus_args other) {
-
 
5838
      if (!getClass().equals(other.getClass())) {
-
 
5839
        return getClass().getName().compareTo(other.getClass().getName());
-
 
5840
      }
-
 
5841
 
-
 
5842
      int lastComparison = 0;
-
 
5843
      getTransactionsForCustomerAndShipmentStatus_args typedOther = (getTransactionsForCustomerAndShipmentStatus_args)other;
-
 
5844
 
-
 
5845
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
-
 
5846
      if (lastComparison != 0) {
-
 
5847
        return lastComparison;
-
 
5848
      }
-
 
5849
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
-
 
5850
      if (lastComparison != 0) {
-
 
5851
        return lastComparison;
-
 
5852
      }
-
 
5853
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
-
 
5854
      if (lastComparison != 0) {
-
 
5855
        return lastComparison;
-
 
5856
      }
-
 
5857
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
-
 
5858
      if (lastComparison != 0) {
-
 
5859
        return lastComparison;
-
 
5860
      }
-
 
5861
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
-
 
5862
      if (lastComparison != 0) {
-
 
5863
        return lastComparison;
-
 
5864
      }
-
 
5865
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
-
 
5866
      if (lastComparison != 0) {
-
 
5867
        return lastComparison;
-
 
5868
      }
-
 
5869
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
5870
      if (lastComparison != 0) {
-
 
5871
        return lastComparison;
-
 
5872
      }
-
 
5873
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
5874
      if (lastComparison != 0) {
-
 
5875
        return lastComparison;
-
 
5876
      }
-
 
5877
      return 0;
-
 
5878
    }
-
 
5879
 
-
 
5880
    public void read(TProtocol iprot) throws TException {
-
 
5881
      TField field;
-
 
5882
      iprot.readStructBegin();
-
 
5883
      while (true)
-
 
5884
      {
-
 
5885
        field = iprot.readFieldBegin();
-
 
5886
        if (field.type == TType.STOP) { 
-
 
5887
          break;
-
 
5888
        }
-
 
5889
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5890
        if (fieldId == null) {
-
 
5891
          TProtocolUtil.skip(iprot, field.type);
-
 
5892
        } else {
-
 
5893
          switch (fieldId) {
-
 
5894
            case CUSTOMER_ID:
-
 
5895
              if (field.type == TType.I64) {
-
 
5896
                this.customerId = iprot.readI64();
-
 
5897
                setCustomerIdIsSet(true);
-
 
5898
              } else { 
-
 
5899
                TProtocolUtil.skip(iprot, field.type);
-
 
5900
              }
-
 
5901
              break;
-
 
5902
            case FROM_DATE:
-
 
5903
              if (field.type == TType.I64) {
-
 
5904
                this.from_date = iprot.readI64();
-
 
5905
                setFrom_dateIsSet(true);
-
 
5906
              } else { 
-
 
5907
                TProtocolUtil.skip(iprot, field.type);
-
 
5908
              }
-
 
5909
              break;
-
 
5910
            case TO_DATE:
-
 
5911
              if (field.type == TType.I64) {
-
 
5912
                this.to_date = iprot.readI64();
-
 
5913
                setTo_dateIsSet(true);
-
 
5914
              } else { 
-
 
5915
                TProtocolUtil.skip(iprot, field.type);
-
 
5916
              }
-
 
5917
              break;
-
 
5918
            case STATUS:
-
 
5919
              if (field.type == TType.I32) {
-
 
5920
                this.status = ShipmentStatus.findByValue(iprot.readI32());
-
 
5921
              } else { 
-
 
5922
                TProtocolUtil.skip(iprot, field.type);
-
 
5923
              }
-
 
5924
              break;
-
 
5925
          }
-
 
5926
          iprot.readFieldEnd();
-
 
5927
        }
-
 
5928
      }
-
 
5929
      iprot.readStructEnd();
-
 
5930
      validate();
-
 
5931
    }
-
 
5932
 
-
 
5933
    public void write(TProtocol oprot) throws TException {
-
 
5934
      validate();
-
 
5935
 
-
 
5936
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5937
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
-
 
5938
      oprot.writeI64(this.customerId);
-
 
5939
      oprot.writeFieldEnd();
-
 
5940
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
5941
      oprot.writeI64(this.from_date);
-
 
5942
      oprot.writeFieldEnd();
-
 
5943
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
5944
      oprot.writeI64(this.to_date);
-
 
5945
      oprot.writeFieldEnd();
-
 
5946
      if (this.status != null) {
-
 
5947
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
5948
        oprot.writeI32(this.status.getValue());
-
 
5949
        oprot.writeFieldEnd();
-
 
5950
      }
-
 
5951
      oprot.writeFieldStop();
-
 
5952
      oprot.writeStructEnd();
-
 
5953
    }
-
 
5954
 
-
 
5955
    @Override
-
 
5956
    public String toString() {
-
 
5957
      StringBuilder sb = new StringBuilder("getTransactionsForCustomerAndShipmentStatus_args(");
-
 
5958
      boolean first = true;
-
 
5959
 
-
 
5960
      sb.append("customerId:");
-
 
5961
      sb.append(this.customerId);
-
 
5962
      first = false;
-
 
5963
      if (!first) sb.append(", ");
-
 
5964
      sb.append("from_date:");
-
 
5965
      sb.append(this.from_date);
-
 
5966
      first = false;
-
 
5967
      if (!first) sb.append(", ");
-
 
5968
      sb.append("to_date:");
-
 
5969
      sb.append(this.to_date);
-
 
5970
      first = false;
-
 
5971
      if (!first) sb.append(", ");
-
 
5972
      sb.append("status:");
-
 
5973
      if (this.status == null) {
-
 
5974
        sb.append("null");
-
 
5975
      } else {
-
 
5976
        String status_name = status.name();
-
 
5977
        if (status_name != null) {
-
 
5978
          sb.append(status_name);
-
 
5979
          sb.append(" (");
-
 
5980
        }
-
 
5981
        sb.append(this.status);
-
 
5982
        if (status_name != null) {
-
 
5983
          sb.append(")");
-
 
5984
        }
-
 
5985
      }
-
 
5986
      first = false;
-
 
5987
      sb.append(")");
-
 
5988
      return sb.toString();
-
 
5989
    }
-
 
5990
 
-
 
5991
    public void validate() throws TException {
-
 
5992
      // check for required fields
-
 
5993
    }
-
 
5994
 
-
 
5995
  }
-
 
5996
 
-
 
5997
  public static class getTransactionsForCustomerAndShipmentStatus_result implements TBase<getTransactionsForCustomerAndShipmentStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
5998
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomerAndShipmentStatus_result");
-
 
5999
 
-
 
6000
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
6001
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
6002
 
-
 
6003
    private List<Transaction> success;
-
 
6004
    private TransactionServiceException ex;
-
 
6005
 
-
 
6006
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6007
    public enum _Fields implements TFieldIdEnum {
-
 
6008
      SUCCESS((short)0, "success"),
-
 
6009
      EX((short)1, "ex");
-
 
6010
 
-
 
6011
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6013
 
-
 
6014
      static {
-
 
6015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6016
          byId.put((int)field._thriftId, field);
-
 
6017
          byName.put(field.getFieldName(), field);
-
 
6018
        }
-
 
6019
      }
-
 
6020
 
-
 
6021
      /**
-
 
6022
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6023
       */
-
 
6024
      public static _Fields findByThriftId(int fieldId) {
-
 
6025
        return byId.get(fieldId);
-
 
6026
      }
-
 
6027
 
-
 
6028
      /**
-
 
6029
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6030
       * if it is not found.
-
 
6031
       */
-
 
6032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6033
        _Fields fields = findByThriftId(fieldId);
-
 
6034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6035
        return fields;
-
 
6036
      }
-
 
6037
 
-
 
6038
      /**
-
 
6039
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6040
       */
-
 
6041
      public static _Fields findByName(String name) {
-
 
6042
        return byName.get(name);
-
 
6043
      }
-
 
6044
 
-
 
6045
      private final short _thriftId;
-
 
6046
      private final String _fieldName;
-
 
6047
 
-
 
6048
      _Fields(short thriftId, String fieldName) {
-
 
6049
        _thriftId = thriftId;
-
 
6050
        _fieldName = fieldName;
-
 
6051
      }
-
 
6052
 
-
 
6053
      public short getThriftFieldId() {
-
 
6054
        return _thriftId;
-
 
6055
      }
-
 
6056
 
-
 
6057
      public String getFieldName() {
-
 
6058
        return _fieldName;
-
 
6059
      }
-
 
6060
    }
-
 
6061
 
-
 
6062
    // isset id assignments
-
 
6063
 
-
 
6064
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6065
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6066
          new ListMetaData(TType.LIST, 
-
 
6067
              new StructMetaData(TType.STRUCT, Transaction.class))));
-
 
6068
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
6069
          new FieldValueMetaData(TType.STRUCT)));
-
 
6070
    }});
-
 
6071
 
-
 
6072
    static {
-
 
6073
      FieldMetaData.addStructMetaDataMap(getTransactionsForCustomerAndShipmentStatus_result.class, metaDataMap);
-
 
6074
    }
-
 
6075
 
-
 
6076
    public getTransactionsForCustomerAndShipmentStatus_result() {
-
 
6077
    }
-
 
6078
 
-
 
6079
    public getTransactionsForCustomerAndShipmentStatus_result(
-
 
6080
      List<Transaction> success,
-
 
6081
      TransactionServiceException ex)
-
 
6082
    {
-
 
6083
      this();
-
 
6084
      this.success = success;
-
 
6085
      this.ex = ex;
-
 
6086
    }
-
 
6087
 
-
 
6088
    /**
-
 
6089
     * Performs a deep copy on <i>other</i>.
-
 
6090
     */
-
 
6091
    public getTransactionsForCustomerAndShipmentStatus_result(getTransactionsForCustomerAndShipmentStatus_result other) {
-
 
6092
      if (other.isSetSuccess()) {
-
 
6093
        List<Transaction> __this__success = new ArrayList<Transaction>();
-
 
6094
        for (Transaction other_element : other.success) {
-
 
6095
          __this__success.add(new Transaction(other_element));
-
 
6096
        }
-
 
6097
        this.success = __this__success;
-
 
6098
      }
-
 
6099
      if (other.isSetEx()) {
-
 
6100
        this.ex = new TransactionServiceException(other.ex);
-
 
6101
      }
-
 
6102
    }
-
 
6103
 
-
 
6104
    public getTransactionsForCustomerAndShipmentStatus_result deepCopy() {
-
 
6105
      return new getTransactionsForCustomerAndShipmentStatus_result(this);
-
 
6106
    }
-
 
6107
 
-
 
6108
    @Deprecated
-
 
6109
    public getTransactionsForCustomerAndShipmentStatus_result clone() {
-
 
6110
      return new getTransactionsForCustomerAndShipmentStatus_result(this);
-
 
6111
    }
-
 
6112
 
-
 
6113
    public int getSuccessSize() {
-
 
6114
      return (this.success == null) ? 0 : this.success.size();
-
 
6115
    }
-
 
6116
 
-
 
6117
    public java.util.Iterator<Transaction> getSuccessIterator() {
-
 
6118
      return (this.success == null) ? null : this.success.iterator();
-
 
6119
    }
-
 
6120
 
-
 
6121
    public void addToSuccess(Transaction elem) {
-
 
6122
      if (this.success == null) {
-
 
6123
        this.success = new ArrayList<Transaction>();
-
 
6124
      }
-
 
6125
      this.success.add(elem);
-
 
6126
    }
-
 
6127
 
-
 
6128
    public List<Transaction> getSuccess() {
-
 
6129
      return this.success;
-
 
6130
    }
-
 
6131
 
-
 
6132
    public getTransactionsForCustomerAndShipmentStatus_result setSuccess(List<Transaction> success) {
-
 
6133
      this.success = success;
-
 
6134
      return this;
-
 
6135
    }
-
 
6136
 
-
 
6137
    public void unsetSuccess() {
-
 
6138
      this.success = null;
-
 
6139
    }
-
 
6140
 
-
 
6141
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6142
    public boolean isSetSuccess() {
-
 
6143
      return this.success != null;
-
 
6144
    }
-
 
6145
 
-
 
6146
    public void setSuccessIsSet(boolean value) {
-
 
6147
      if (!value) {
-
 
6148
        this.success = null;
-
 
6149
      }
-
 
6150
    }
-
 
6151
 
-
 
6152
    public TransactionServiceException getEx() {
-
 
6153
      return this.ex;
-
 
6154
    }
-
 
6155
 
-
 
6156
    public getTransactionsForCustomerAndShipmentStatus_result setEx(TransactionServiceException ex) {
-
 
6157
      this.ex = ex;
-
 
6158
      return this;
-
 
6159
    }
-
 
6160
 
-
 
6161
    public void unsetEx() {
-
 
6162
      this.ex = null;
-
 
6163
    }
-
 
6164
 
-
 
6165
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
6166
    public boolean isSetEx() {
-
 
6167
      return this.ex != null;
-
 
6168
    }
-
 
6169
 
-
 
6170
    public void setExIsSet(boolean value) {
-
 
6171
      if (!value) {
-
 
6172
        this.ex = null;
-
 
6173
      }
-
 
6174
    }
-
 
6175
 
-
 
6176
    public void setFieldValue(_Fields field, Object value) {
-
 
6177
      switch (field) {
-
 
6178
      case SUCCESS:
-
 
6179
        if (value == null) {
-
 
6180
          unsetSuccess();
-
 
6181
        } else {
-
 
6182
          setSuccess((List<Transaction>)value);
-
 
6183
        }
-
 
6184
        break;
-
 
6185
 
-
 
6186
      case EX:
-
 
6187
        if (value == null) {
-
 
6188
          unsetEx();
-
 
6189
        } else {
-
 
6190
          setEx((TransactionServiceException)value);
-
 
6191
        }
-
 
6192
        break;
-
 
6193
 
-
 
6194
      }
-
 
6195
    }
-
 
6196
 
-
 
6197
    public void setFieldValue(int fieldID, Object value) {
-
 
6198
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6199
    }
-
 
6200
 
-
 
6201
    public Object getFieldValue(_Fields field) {
-
 
6202
      switch (field) {
-
 
6203
      case SUCCESS:
-
 
6204
        return getSuccess();
-
 
6205
 
-
 
6206
      case EX:
-
 
6207
        return getEx();
-
 
6208
 
-
 
6209
      }
-
 
6210
      throw new IllegalStateException();
-
 
6211
    }
-
 
6212
 
-
 
6213
    public Object getFieldValue(int fieldId) {
-
 
6214
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6215
    }
-
 
6216
 
-
 
6217
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6218
    public boolean isSet(_Fields field) {
-
 
6219
      switch (field) {
-
 
6220
      case SUCCESS:
-
 
6221
        return isSetSuccess();
-
 
6222
      case EX:
-
 
6223
        return isSetEx();
-
 
6224
      }
-
 
6225
      throw new IllegalStateException();
-
 
6226
    }
-
 
6227
 
-
 
6228
    public boolean isSet(int fieldID) {
-
 
6229
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6230
    }
-
 
6231
 
-
 
6232
    @Override
-
 
6233
    public boolean equals(Object that) {
-
 
6234
      if (that == null)
-
 
6235
        return false;
-
 
6236
      if (that instanceof getTransactionsForCustomerAndShipmentStatus_result)
-
 
6237
        return this.equals((getTransactionsForCustomerAndShipmentStatus_result)that);
-
 
6238
      return false;
-
 
6239
    }
-
 
6240
 
-
 
6241
    public boolean equals(getTransactionsForCustomerAndShipmentStatus_result that) {
-
 
6242
      if (that == null)
-
 
6243
        return false;
-
 
6244
 
-
 
6245
      boolean this_present_success = true && this.isSetSuccess();
-
 
6246
      boolean that_present_success = true && that.isSetSuccess();
-
 
6247
      if (this_present_success || that_present_success) {
-
 
6248
        if (!(this_present_success && that_present_success))
-
 
6249
          return false;
-
 
6250
        if (!this.success.equals(that.success))
-
 
6251
          return false;
-
 
6252
      }
-
 
6253
 
-
 
6254
      boolean this_present_ex = true && this.isSetEx();
-
 
6255
      boolean that_present_ex = true && that.isSetEx();
-
 
6256
      if (this_present_ex || that_present_ex) {
-
 
6257
        if (!(this_present_ex && that_present_ex))
-
 
6258
          return false;
-
 
6259
        if (!this.ex.equals(that.ex))
-
 
6260
          return false;
-
 
6261
      }
-
 
6262
 
-
 
6263
      return true;
-
 
6264
    }
-
 
6265
 
-
 
6266
    @Override
-
 
6267
    public int hashCode() {
-
 
6268
      return 0;
-
 
6269
    }
-
 
6270
 
-
 
6271
    public void read(TProtocol iprot) throws TException {
-
 
6272
      TField field;
-
 
6273
      iprot.readStructBegin();
-
 
6274
      while (true)
-
 
6275
      {
-
 
6276
        field = iprot.readFieldBegin();
-
 
6277
        if (field.type == TType.STOP) { 
-
 
6278
          break;
-
 
6279
        }
-
 
6280
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6281
        if (fieldId == null) {
-
 
6282
          TProtocolUtil.skip(iprot, field.type);
-
 
6283
        } else {
-
 
6284
          switch (fieldId) {
-
 
6285
            case SUCCESS:
-
 
6286
              if (field.type == TType.LIST) {
-
 
6287
                {
-
 
6288
                  TList _list42 = iprot.readListBegin();
-
 
6289
                  this.success = new ArrayList<Transaction>(_list42.size);
-
 
6290
                  for (int _i43 = 0; _i43 < _list42.size; ++_i43)
-
 
6291
                  {
-
 
6292
                    Transaction _elem44;
-
 
6293
                    _elem44 = new Transaction();
-
 
6294
                    _elem44.read(iprot);
-
 
6295
                    this.success.add(_elem44);
-
 
6296
                  }
-
 
6297
                  iprot.readListEnd();
-
 
6298
                }
-
 
6299
              } else { 
-
 
6300
                TProtocolUtil.skip(iprot, field.type);
-
 
6301
              }
-
 
6302
              break;
-
 
6303
            case EX:
-
 
6304
              if (field.type == TType.STRUCT) {
-
 
6305
                this.ex = new TransactionServiceException();
-
 
6306
                this.ex.read(iprot);
-
 
6307
              } else { 
-
 
6308
                TProtocolUtil.skip(iprot, field.type);
-
 
6309
              }
-
 
6310
              break;
-
 
6311
          }
-
 
6312
          iprot.readFieldEnd();
-
 
6313
        }
-
 
6314
      }
-
 
6315
      iprot.readStructEnd();
-
 
6316
      validate();
-
 
6317
    }
-
 
6318
 
-
 
6319
    public void write(TProtocol oprot) throws TException {
-
 
6320
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6321
 
-
 
6322
      if (this.isSetSuccess()) {
-
 
6323
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6324
        {
-
 
6325
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
6326
          for (Transaction _iter45 : this.success)
-
 
6327
          {
-
 
6328
            _iter45.write(oprot);
-
 
6329
          }
-
 
6330
          oprot.writeListEnd();
-
 
6331
        }
-
 
6332
        oprot.writeFieldEnd();
-
 
6333
      } else if (this.isSetEx()) {
-
 
6334
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
6335
        this.ex.write(oprot);
-
 
6336
        oprot.writeFieldEnd();
-
 
6337
      }
-
 
6338
      oprot.writeFieldStop();
-
 
6339
      oprot.writeStructEnd();
-
 
6340
    }
-
 
6341
 
-
 
6342
    @Override
-
 
6343
    public String toString() {
-
 
6344
      StringBuilder sb = new StringBuilder("getTransactionsForCustomerAndShipmentStatus_result(");
-
 
6345
      boolean first = true;
-
 
6346
 
-
 
6347
      sb.append("success:");
-
 
6348
      if (this.success == null) {
-
 
6349
        sb.append("null");
-
 
6350
      } else {
-
 
6351
        sb.append(this.success);
-
 
6352
      }
-
 
6353
      first = false;
-
 
6354
      if (!first) sb.append(", ");
-
 
6355
      sb.append("ex:");
-
 
6356
      if (this.ex == null) {
-
 
6357
        sb.append("null");
-
 
6358
      } else {
-
 
6359
        sb.append(this.ex);
-
 
6360
      }
-
 
6361
      first = false;
-
 
6362
      sb.append(")");
-
 
6363
      return sb.toString();
-
 
6364
    }
-
 
6365
 
-
 
6366
    public void validate() throws TException {
-
 
6367
      // check for required fields
-
 
6368
    }
-
 
6369
 
-
 
6370
  }
-
 
6371
 
-
 
6372
  public static class getTransactionsForShoppingCartId_args implements TBase<getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShoppingCartId_args>   {
3242
  public static class getTransactionsForShoppingCartId_args implements TBase<getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShoppingCartId_args>   {
6373
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShoppingCartId_args");
3243
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShoppingCartId_args");
6374
 
3244
 
6375
    private static final TField SHOPPING_CART_ID_FIELD_DESC = new TField("shoppingCartId", TType.I64, (short)1);
3245
    private static final TField SHOPPING_CART_ID_FIELD_DESC = new TField("shoppingCartId", TType.I64, (short)1);
6376
 
3246
 
Line 6936... Line 3806...
6936
        } else {
3806
        } else {
6937
          switch (fieldId) {
3807
          switch (fieldId) {
6938
            case SUCCESS:
3808
            case SUCCESS:
6939
              if (field.type == TType.LIST) {
3809
              if (field.type == TType.LIST) {
6940
                {
3810
                {
6941
                  TList _list46 = iprot.readListBegin();
3811
                  TList _list17 = iprot.readListBegin();
6942
                  this.success = new ArrayList<Transaction>(_list46.size);
3812
                  this.success = new ArrayList<Transaction>(_list17.size);
6943
                  for (int _i47 = 0; _i47 < _list46.size; ++_i47)
3813
                  for (int _i18 = 0; _i18 < _list17.size; ++_i18)
6944
                  {
3814
                  {
6945
                    Transaction _elem48;
3815
                    Transaction _elem19;
6946
                    _elem48 = new Transaction();
3816
                    _elem19 = new Transaction();
6947
                    _elem48.read(iprot);
3817
                    _elem19.read(iprot);
6948
                    this.success.add(_elem48);
3818
                    this.success.add(_elem19);
6949
                  }
3819
                  }
6950
                  iprot.readListEnd();
3820
                  iprot.readListEnd();
6951
                }
3821
                }
6952
              } else { 
3822
              } else { 
6953
                TProtocolUtil.skip(iprot, field.type);
3823
                TProtocolUtil.skip(iprot, field.type);
Line 6974... Line 3844...
6974
 
3844
 
6975
      if (this.isSetSuccess()) {
3845
      if (this.isSetSuccess()) {
6976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3846
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6977
        {
3847
        {
6978
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3848
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
6979
          for (Transaction _iter49 : this.success)
3849
          for (Transaction _iter20 : this.success)
6980
          {
3850
          {
6981
            _iter49.write(oprot);
3851
            _iter20.write(oprot);
6982
          }
3852
          }
6983
          oprot.writeListEnd();
3853
          oprot.writeListEnd();
6984
        }
3854
        }
6985
        oprot.writeFieldEnd();
3855
        oprot.writeFieldEnd();
6986
      } else if (this.isSetEx()) {
3856
      } else if (this.isSetEx()) {
Line 8511... Line 5381...
8511
      // check for required fields
5381
      // check for required fields
8512
    }
5382
    }
8513
 
5383
 
8514
  }
5384
  }
8515
 
5385
 
8516
  public static class getOrderInfo_args implements TBase<getOrderInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrderInfo_args>   {
5386
  public static class getAllOrders_args implements TBase<getAllOrders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOrders_args>   {
8517
    private static final TStruct STRUCT_DESC = new TStruct("getOrderInfo_args");
5387
    private static final TStruct STRUCT_DESC = new TStruct("getAllOrders_args");
8518
 
5388
 
-
 
5389
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
-
 
5390
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
-
 
5391
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
8519
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
5392
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)4);
8520
 
5393
 
-
 
5394
    private OrderStatus status;
-
 
5395
    private long from_date;
8521
    private long transactionId;
5396
    private long to_date;
-
 
5397
    private long warehouse_id;
8522
 
5398
 
8523
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8524
    public enum _Fields implements TFieldIdEnum {
5400
    public enum _Fields implements TFieldIdEnum {
-
 
5401
      /**
-
 
5402
       * 
-
 
5403
       * @see OrderStatus
-
 
5404
       */
-
 
5405
      STATUS((short)1, "status"),
-
 
5406
      FROM_DATE((short)2, "from_date"),
-
 
5407
      TO_DATE((short)3, "to_date"),
8525
      TRANSACTION_ID((short)1, "transactionId");
5408
      WAREHOUSE_ID((short)4, "warehouse_id");
8526
 
5409
 
8527
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
5410
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
8528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8529
 
5412
 
8530
      static {
5413
      static {
Line 8574... Line 5457...
8574
        return _fieldName;
5457
        return _fieldName;
8575
      }
5458
      }
8576
    }
5459
    }
8577
 
5460
 
8578
    // isset id assignments
5461
    // isset id assignments
-
 
5462
    private static final int __FROM_DATE_ISSET_ID = 0;
-
 
5463
    private static final int __TO_DATE_ISSET_ID = 1;
8579
    private static final int __TRANSACTIONID_ISSET_ID = 0;
5464
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
8580
    private BitSet __isset_bit_vector = new BitSet(1);
5465
    private BitSet __isset_bit_vector = new BitSet(3);
8581
 
5466
 
8582
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5467
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
5468
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
5469
          new EnumMetaData(TType.ENUM, OrderStatus.class)));
-
 
5470
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
-
 
5471
          new FieldValueMetaData(TType.I64)));
-
 
5472
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
-
 
5473
          new FieldValueMetaData(TType.I64)));
8583
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
5474
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
8584
          new FieldValueMetaData(TType.I64)));
5475
          new FieldValueMetaData(TType.I64)));
8585
    }});
5476
    }});
8586
 
5477
 
8587
    static {
5478
    static {
8588
      FieldMetaData.addStructMetaDataMap(getOrderInfo_args.class, metaDataMap);
5479
      FieldMetaData.addStructMetaDataMap(getAllOrders_args.class, metaDataMap);
8589
    }
5480
    }
8590
 
5481
 
8591
    public getOrderInfo_args() {
5482
    public getAllOrders_args() {
8592
    }
5483
    }
8593
 
5484
 
8594
    public getOrderInfo_args(
5485
    public getAllOrders_args(
-
 
5486
      OrderStatus status,
-
 
5487
      long from_date,
-
 
5488
      long to_date,
8595
      long transactionId)
5489
      long warehouse_id)
8596
    {
5490
    {
8597
      this();
5491
      this();
-
 
5492
      this.status = status;
-
 
5493
      this.from_date = from_date;
-
 
5494
      setFrom_dateIsSet(true);
-
 
5495
      this.to_date = to_date;
-
 
5496
      setTo_dateIsSet(true);
8598
      this.transactionId = transactionId;
5497
      this.warehouse_id = warehouse_id;
8599
      setTransactionIdIsSet(true);
5498
      setWarehouse_idIsSet(true);
8600
    }
5499
    }
8601
 
5500
 
8602
    /**
5501
    /**
8603
     * Performs a deep copy on <i>other</i>.
5502
     * Performs a deep copy on <i>other</i>.
8604
     */
5503
     */
8605
    public getOrderInfo_args(getOrderInfo_args other) {
5504
    public getAllOrders_args(getAllOrders_args other) {
8606
      __isset_bit_vector.clear();
5505
      __isset_bit_vector.clear();
8607
      __isset_bit_vector.or(other.__isset_bit_vector);
5506
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
5507
      if (other.isSetStatus()) {
-
 
5508
        this.status = other.status;
-
 
5509
      }
-
 
5510
      this.from_date = other.from_date;
-
 
5511
      this.to_date = other.to_date;
8608
      this.transactionId = other.transactionId;
5512
      this.warehouse_id = other.warehouse_id;
8609
    }
5513
    }
8610
 
5514
 
8611
    public getOrderInfo_args deepCopy() {
5515
    public getAllOrders_args deepCopy() {
8612
      return new getOrderInfo_args(this);
5516
      return new getAllOrders_args(this);
8613
    }
5517
    }
8614
 
5518
 
8615
    @Deprecated
5519
    @Deprecated
8616
    public getOrderInfo_args clone() {
5520
    public getAllOrders_args clone() {
8617
      return new getOrderInfo_args(this);
5521
      return new getAllOrders_args(this);
8618
    }
5522
    }
8619
 
5523
 
-
 
5524
    /**
-
 
5525
     * 
-
 
5526
     * @see OrderStatus
-
 
5527
     */
8620
    public long getTransactionId() {
5528
    public OrderStatus getStatus() {
8621
      return this.transactionId;
5529
      return this.status;
8622
    }
5530
    }
8623
 
5531
 
-
 
5532
    /**
-
 
5533
     * 
8624
    public getOrderInfo_args setTransactionId(long transactionId) {
5534
     * @see OrderStatus
-
 
5535
     */
8625
      this.transactionId = transactionId;
5536
    public getAllOrders_args setStatus(OrderStatus status) {
8626
      setTransactionIdIsSet(true);
5537
      this.status = status;
8627
      return this;
5538
      return this;
8628
    }
5539
    }
8629
 
5540
 
8630
    public void unsetTransactionId() {
5541
    public void unsetStatus() {
8631
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
8632
    }
-
 
8633
 
-
 
8634
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
-
 
8635
    public boolean isSetTransactionId() {
-
 
8636
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
8637
    }
-
 
8638
 
-
 
8639
    public void setTransactionIdIsSet(boolean value) {
-
 
8640
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
8641
    }
-
 
8642
 
-
 
8643
    public void setFieldValue(_Fields field, Object value) {
-
 
8644
      switch (field) {
-
 
8645
      case TRANSACTION_ID:
-
 
8646
        if (value == null) {
-
 
8647
          unsetTransactionId();
-
 
8648
        } else {
-
 
8649
          setTransactionId((Long)value);
-
 
8650
        }
-
 
8651
        break;
-
 
8652
 
-
 
8653
      }
-
 
8654
    }
-
 
8655
 
-
 
8656
    public void setFieldValue(int fieldID, Object value) {
-
 
8657
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8658
    }
-
 
8659
 
-
 
8660
    public Object getFieldValue(_Fields field) {
-
 
8661
      switch (field) {
-
 
8662
      case TRANSACTION_ID:
-
 
8663
        return new Long(getTransactionId());
-
 
8664
 
-
 
8665
      }
-
 
8666
      throw new IllegalStateException();
-
 
8667
    }
-
 
8668
 
-
 
8669
    public Object getFieldValue(int fieldId) {
-
 
8670
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8671
    }
-
 
8672
 
-
 
8673
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8674
    public boolean isSet(_Fields field) {
-
 
8675
      switch (field) {
-
 
8676
      case TRANSACTION_ID:
-
 
8677
        return isSetTransactionId();
-
 
8678
      }
-
 
8679
      throw new IllegalStateException();
-
 
8680
    }
-
 
8681
 
-
 
8682
    public boolean isSet(int fieldID) {
-
 
8683
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8684
    }
-
 
8685
 
-
 
8686
    @Override
-
 
8687
    public boolean equals(Object that) {
-
 
8688
      if (that == null)
-
 
8689
        return false;
-
 
8690
      if (that instanceof getOrderInfo_args)
-
 
8691
        return this.equals((getOrderInfo_args)that);
-
 
8692
      return false;
-
 
8693
    }
-
 
8694
 
-
 
8695
    public boolean equals(getOrderInfo_args that) {
-
 
8696
      if (that == null)
5542
      this.status = null;
8697
        return false;
-
 
8698
 
-
 
8699
      boolean this_present_transactionId = true;
-
 
8700
      boolean that_present_transactionId = true;
-
 
8701
      if (this_present_transactionId || that_present_transactionId) {
-
 
8702
        if (!(this_present_transactionId && that_present_transactionId))
-
 
8703
          return false;
-
 
8704
        if (this.transactionId != that.transactionId)
-
 
8705
          return false;
-
 
8706
      }
-
 
8707
 
-
 
8708
      return true;
-
 
8709
    }
-
 
8710
 
-
 
8711
    @Override
-
 
8712
    public int hashCode() {
-
 
8713
      return 0;
-
 
8714
    }
-
 
8715
 
-
 
8716
    public int compareTo(getOrderInfo_args other) {
-
 
8717
      if (!getClass().equals(other.getClass())) {
-
 
8718
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8719
      }
-
 
8720
 
-
 
8721
      int lastComparison = 0;
-
 
8722
      getOrderInfo_args typedOther = (getOrderInfo_args)other;
-
 
8723
 
-
 
8724
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
-
 
8725
      if (lastComparison != 0) {
-
 
8726
        return lastComparison;
-
 
8727
      }
-
 
8728
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
8729
      if (lastComparison != 0) {
-
 
8730
        return lastComparison;
-
 
8731
      }
-
 
8732
      return 0;
-
 
8733
    }
-
 
8734
 
-
 
8735
    public void read(TProtocol iprot) throws TException {
-
 
8736
      TField field;
-
 
8737
      iprot.readStructBegin();
-
 
8738
      while (true)
-
 
8739
      {
-
 
8740
        field = iprot.readFieldBegin();
-
 
8741
        if (field.type == TType.STOP) { 
-
 
8742
          break;
-
 
8743
        }
-
 
8744
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8745
        if (fieldId == null) {
-
 
8746
          TProtocolUtil.skip(iprot, field.type);
-
 
8747
        } else {
-
 
8748
          switch (fieldId) {
-
 
8749
            case TRANSACTION_ID:
-
 
8750
              if (field.type == TType.I64) {
-
 
8751
                this.transactionId = iprot.readI64();
-
 
8752
                setTransactionIdIsSet(true);
-
 
8753
              } else { 
-
 
8754
                TProtocolUtil.skip(iprot, field.type);
-
 
8755
              }
-
 
8756
              break;
-
 
8757
          }
-
 
8758
          iprot.readFieldEnd();
-
 
8759
        }
-
 
8760
      }
-
 
8761
      iprot.readStructEnd();
-
 
8762
      validate();
-
 
8763
    }
-
 
8764
 
-
 
8765
    public void write(TProtocol oprot) throws TException {
-
 
8766
      validate();
-
 
8767
 
-
 
8768
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8769
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
8770
      oprot.writeI64(this.transactionId);
-
 
8771
      oprot.writeFieldEnd();
-
 
8772
      oprot.writeFieldStop();
-
 
8773
      oprot.writeStructEnd();
-
 
8774
    }
-
 
8775
 
-
 
8776
    @Override
-
 
8777
    public String toString() {
-
 
8778
      StringBuilder sb = new StringBuilder("getOrderInfo_args(");
-
 
8779
      boolean first = true;
-
 
8780
 
-
 
8781
      sb.append("transactionId:");
-
 
8782
      sb.append(this.transactionId);
-
 
8783
      first = false;
-
 
8784
      sb.append(")");
-
 
8785
      return sb.toString();
-
 
8786
    }
5543
    }
8787
 
5544
 
-
 
5545
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
8788
    public void validate() throws TException {
5546
    public boolean isSetStatus() {
8789
      // check for required fields
5547
      return this.status != null;
8790
    }
5548
    }
8791
 
5549
 
8792
  }
-
 
8793
 
-
 
8794
  public static class getOrderInfo_result implements TBase<getOrderInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
8795
    private static final TStruct STRUCT_DESC = new TStruct("getOrderInfo_result");
-
 
8796
 
-
 
8797
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
8798
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
8799
 
-
 
8800
    private OrderInfo success;
-
 
8801
    private TransactionServiceException ex;
-
 
8802
 
-
 
8803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8804
    public enum _Fields implements TFieldIdEnum {
5550
    public void setStatusIsSet(boolean value) {
8805
      SUCCESS((short)0, "success"),
-
 
8806
      EX((short)1, "ex");
-
 
8807
 
-
 
8808
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8809
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8810
 
-
 
8811
      static {
5551
      if (!value) {
8812
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8813
          byId.put((int)field._thriftId, field);
-
 
8814
          byName.put(field.getFieldName(), field);
-
 
8815
        }
-
 
8816
      }
-
 
8817
 
-
 
8818
      /**
-
 
8819
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8820
       */
-
 
8821
      public static _Fields findByThriftId(int fieldId) {
-
 
8822
        return byId.get(fieldId);
-
 
8823
      }
-
 
8824
 
-
 
8825
      /**
-
 
8826
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8827
       * if it is not found.
-
 
8828
       */
-
 
8829
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8830
        _Fields fields = findByThriftId(fieldId);
-
 
8831
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8832
        return fields;
-
 
8833
      }
-
 
8834
 
-
 
8835
      /**
-
 
8836
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8837
       */
-
 
8838
      public static _Fields findByName(String name) {
-
 
8839
        return byName.get(name);
-
 
8840
      }
-
 
8841
 
-
 
8842
      private final short _thriftId;
-
 
8843
      private final String _fieldName;
-
 
8844
 
-
 
8845
      _Fields(short thriftId, String fieldName) {
-
 
8846
        _thriftId = thriftId;
-
 
8847
        _fieldName = fieldName;
5552
        this.status = null;
8848
      }
-
 
8849
 
-
 
8850
      public short getThriftFieldId() {
-
 
8851
        return _thriftId;
-
 
8852
      }
-
 
8853
 
-
 
8854
      public String getFieldName() {
-
 
8855
        return _fieldName;
-
 
8856
      }
5553
      }
8857
    }
5554
    }
8858
 
5555
 
8859
    // isset id assignments
5556
    public long getFrom_date() {
8860
 
-
 
8861
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8862
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8863
          new StructMetaData(TType.STRUCT, OrderInfo.class)));
-
 
8864
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
8865
          new FieldValueMetaData(TType.STRUCT)));
-
 
8866
    }});
-
 
8867
 
-
 
8868
    static {
-
 
8869
      FieldMetaData.addStructMetaDataMap(getOrderInfo_result.class, metaDataMap);
-
 
8870
    }
-
 
8871
 
-
 
8872
    public getOrderInfo_result() {
5557
      return this.from_date;
8873
    }
5558
    }
8874
 
5559
 
8875
    public getOrderInfo_result(
5560
    public getAllOrders_args setFrom_date(long from_date) {
8876
      OrderInfo success,
5561
      this.from_date = from_date;
8877
      TransactionServiceException ex)
-
 
8878
    {
-
 
8879
      this();
-
 
8880
      this.success = success;
5562
      setFrom_dateIsSet(true);
8881
      this.ex = ex;
5563
      return this;
8882
    }
5564
    }
8883
 
5565
 
8884
    /**
-
 
8885
     * Performs a deep copy on <i>other</i>.
-
 
8886
     */
-
 
8887
    public getOrderInfo_result(getOrderInfo_result other) {
-
 
8888
      if (other.isSetSuccess()) {
5566
    public void unsetFrom_date() {
8889
        this.success = new OrderInfo(other.success);
5567
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
8890
      }
-
 
8891
      if (other.isSetEx()) {
-
 
8892
        this.ex = new TransactionServiceException(other.ex);
-
 
8893
      }
-
 
8894
    }
5568
    }
8895
 
5569
 
-
 
5570
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
8896
    public getOrderInfo_result deepCopy() {
5571
    public boolean isSetFrom_date() {
8897
      return new getOrderInfo_result(this);
5572
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
8898
    }
5573
    }
8899
 
5574
 
8900
    @Deprecated
-
 
8901
    public getOrderInfo_result clone() {
5575
    public void setFrom_dateIsSet(boolean value) {
8902
      return new getOrderInfo_result(this);
5576
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
8903
    }
5577
    }
8904
 
5578
 
8905
    public OrderInfo getSuccess() {
5579
    public long getTo_date() {
8906
      return this.success;
5580
      return this.to_date;
8907
    }
5581
    }
8908
 
5582
 
8909
    public getOrderInfo_result setSuccess(OrderInfo success) {
5583
    public getAllOrders_args setTo_date(long to_date) {
8910
      this.success = success;
5584
      this.to_date = to_date;
-
 
5585
      setTo_dateIsSet(true);
8911
      return this;
5586
      return this;
8912
    }
5587
    }
8913
 
5588
 
8914
    public void unsetSuccess() {
5589
    public void unsetTo_date() {
8915
      this.success = null;
5590
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
8916
    }
5591
    }
8917
 
5592
 
8918
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
5593
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
8919
    public boolean isSetSuccess() {
5594
    public boolean isSetTo_date() {
8920
      return this.success != null;
5595
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
8921
    }
5596
    }
8922
 
5597
 
8923
    public void setSuccessIsSet(boolean value) {
5598
    public void setTo_dateIsSet(boolean value) {
8924
      if (!value) {
-
 
8925
        this.success = null;
5599
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
8926
      }
-
 
8927
    }
5600
    }
8928
 
5601
 
8929
    public TransactionServiceException getEx() {
5602
    public long getWarehouse_id() {
8930
      return this.ex;
5603
      return this.warehouse_id;
8931
    }
5604
    }
8932
 
5605
 
8933
    public getOrderInfo_result setEx(TransactionServiceException ex) {
5606
    public getAllOrders_args setWarehouse_id(long warehouse_id) {
8934
      this.ex = ex;
5607
      this.warehouse_id = warehouse_id;
-
 
5608
      setWarehouse_idIsSet(true);
8935
      return this;
5609
      return this;
8936
    }
5610
    }
8937
 
5611
 
8938
    public void unsetEx() {
5612
    public void unsetWarehouse_id() {
8939
      this.ex = null;
5613
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8940
    }
5614
    }
8941
 
5615
 
8942
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
5616
    /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
8943
    public boolean isSetEx() {
5617
    public boolean isSetWarehouse_id() {
8944
      return this.ex != null;
5618
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8945
    }
5619
    }
8946
 
5620
 
8947
    public void setExIsSet(boolean value) {
5621
    public void setWarehouse_idIsSet(boolean value) {
8948
      if (!value) {
-
 
8949
        this.ex = null;
5622
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8950
      }
-
 
8951
    }
5623
    }
8952
 
5624
 
8953
    public void setFieldValue(_Fields field, Object value) {
5625
    public void setFieldValue(_Fields field, Object value) {
8954
      switch (field) {
5626
      switch (field) {
8955
      case SUCCESS:
5627
      case STATUS:
8956
        if (value == null) {
5628
        if (value == null) {
8957
          unsetSuccess();
5629
          unsetStatus();
8958
        } else {
5630
        } else {
8959
          setSuccess((OrderInfo)value);
5631
          setStatus((OrderStatus)value);
8960
        }
5632
        }
8961
        break;
5633
        break;
8962
 
5634
 
8963
      case EX:
5635
      case FROM_DATE:
8964
        if (value == null) {
5636
        if (value == null) {
8965
          unsetEx();
5637
          unsetFrom_date();
8966
        } else {
5638
        } else {
-
 
5639
          setFrom_date((Long)value);
-
 
5640
        }
-
 
5641
        break;
-
 
5642
 
-
 
5643
      case TO_DATE:
-
 
5644
        if (value == null) {
-
 
5645
          unsetTo_date();
-
 
5646
        } else {
-
 
5647
          setTo_date((Long)value);
-
 
5648
        }
-
 
5649
        break;
-
 
5650
 
-
 
5651
      case WAREHOUSE_ID:
-
 
5652
        if (value == null) {
-
 
5653
          unsetWarehouse_id();
-
 
5654
        } else {
8967
          setEx((TransactionServiceException)value);
5655
          setWarehouse_id((Long)value);
8968
        }
5656
        }
8969
        break;
5657
        break;
8970
 
5658
 
8971
      }
5659
      }
8972
    }
5660
    }
Line 8975... Line 5663...
8975
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
5663
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
8976
    }
5664
    }
8977
 
5665
 
8978
    public Object getFieldValue(_Fields field) {
5666
    public Object getFieldValue(_Fields field) {
8979
      switch (field) {
5667
      switch (field) {
8980
      case SUCCESS:
5668
      case STATUS:
8981
        return getSuccess();
5669
        return getStatus();
8982
 
5670
 
-
 
5671
      case FROM_DATE:
-
 
5672
        return new Long(getFrom_date());
-
 
5673
 
8983
      case EX:
5674
      case TO_DATE:
8984
        return getEx();
5675
        return new Long(getTo_date());
-
 
5676
 
-
 
5677
      case WAREHOUSE_ID:
-
 
5678
        return new Long(getWarehouse_id());
8985
 
5679
 
8986
      }
5680
      }
8987
      throw new IllegalStateException();
5681
      throw new IllegalStateException();
8988
    }
5682
    }
8989
 
5683
 
Line 8992... Line 5686...
8992
    }
5686
    }
8993
 
5687
 
8994
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5688
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8995
    public boolean isSet(_Fields field) {
5689
    public boolean isSet(_Fields field) {
8996
      switch (field) {
5690
      switch (field) {
8997
      case SUCCESS:
5691
      case STATUS:
8998
        return isSetSuccess();
5692
        return isSetStatus();
-
 
5693
      case FROM_DATE:
-
 
5694
        return isSetFrom_date();
8999
      case EX:
5695
      case TO_DATE:
9000
        return isSetEx();
5696
        return isSetTo_date();
-
 
5697
      case WAREHOUSE_ID:
-
 
5698
        return isSetWarehouse_id();
9001
      }
5699
      }
9002
      throw new IllegalStateException();
5700
      throw new IllegalStateException();
9003
    }
5701
    }
9004
 
5702
 
9005
    public boolean isSet(int fieldID) {
5703
    public boolean isSet(int fieldID) {
Line 9008... Line 5706...
9008
 
5706
 
9009
    @Override
5707
    @Override
9010
    public boolean equals(Object that) {
5708
    public boolean equals(Object that) {
9011
      if (that == null)
5709
      if (that == null)
9012
        return false;
5710
        return false;
9013
      if (that instanceof getOrderInfo_result)
5711
      if (that instanceof getAllOrders_args)
9014
        return this.equals((getOrderInfo_result)that);
5712
        return this.equals((getAllOrders_args)that);
9015
      return false;
5713
      return false;
9016
    }
5714
    }
9017
 
5715
 
9018
    public boolean equals(getOrderInfo_result that) {
5716
    public boolean equals(getAllOrders_args that) {
9019
      if (that == null)
5717
      if (that == null)
9020
        return false;
5718
        return false;
9021
 
5719
 
9022
      boolean this_present_success = true && this.isSetSuccess();
5720
      boolean this_present_status = true && this.isSetStatus();
9023
      boolean that_present_success = true && that.isSetSuccess();
5721
      boolean that_present_status = true && that.isSetStatus();
9024
      if (this_present_success || that_present_success) {
5722
      if (this_present_status || that_present_status) {
9025
        if (!(this_present_success && that_present_success))
5723
        if (!(this_present_status && that_present_status))
9026
          return false;
5724
          return false;
9027
        if (!this.success.equals(that.success))
5725
        if (!this.status.equals(that.status))
9028
          return false;
5726
          return false;
9029
      }
5727
      }
9030
 
5728
 
9031
      boolean this_present_ex = true && this.isSetEx();
5729
      boolean this_present_from_date = true;
9032
      boolean that_present_ex = true && that.isSetEx();
5730
      boolean that_present_from_date = true;
9033
      if (this_present_ex || that_present_ex) {
5731
      if (this_present_from_date || that_present_from_date) {
9034
        if (!(this_present_ex && that_present_ex))
5732
        if (!(this_present_from_date && that_present_from_date))
9035
          return false;
5733
          return false;
9036
        if (!this.ex.equals(that.ex))
5734
        if (this.from_date != that.from_date)
9037
          return false;
5735
          return false;
9038
      }
5736
      }
9039
 
5737
 
9040
      return true;
-
 
9041
    }
-
 
9042
 
-
 
9043
    @Override
-
 
9044
    public int hashCode() {
-
 
9045
      return 0;
-
 
9046
    }
-
 
9047
 
-
 
9048
    public void read(TProtocol iprot) throws TException {
-
 
9049
      TField field;
-
 
9050
      iprot.readStructBegin();
-
 
9051
      while (true)
-
 
9052
      {
-
 
9053
        field = iprot.readFieldBegin();
-
 
9054
        if (field.type == TType.STOP) { 
-
 
9055
          break;
-
 
9056
        }
-
 
9057
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9058
        if (fieldId == null) {
-
 
9059
          TProtocolUtil.skip(iprot, field.type);
-
 
9060
        } else {
-
 
9061
          switch (fieldId) {
-
 
9062
            case SUCCESS:
-
 
9063
              if (field.type == TType.STRUCT) {
-
 
9064
                this.success = new OrderInfo();
-
 
9065
                this.success.read(iprot);
5738
      boolean this_present_to_date = true;
9066
              } else { 
-
 
9067
                TProtocolUtil.skip(iprot, field.type);
-
 
9068
              }
-
 
9069
              break;
-
 
9070
            case EX:
-
 
9071
              if (field.type == TType.STRUCT) {
-
 
9072
                this.ex = new TransactionServiceException();
-
 
9073
                this.ex.read(iprot);
-
 
9074
              } else { 
-
 
9075
                TProtocolUtil.skip(iprot, field.type);
-
 
9076
              }
-
 
9077
              break;
-
 
9078
          }
-
 
9079
          iprot.readFieldEnd();
-
 
9080
        }
-
 
9081
      }
-
 
9082
      iprot.readStructEnd();
-
 
9083
      validate();
-
 
9084
    }
-
 
9085
 
-
 
9086
    public void write(TProtocol oprot) throws TException {
-
 
9087
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9088
 
-
 
9089
      if (this.isSetSuccess()) {
-
 
9090
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9091
        this.success.write(oprot);
-
 
9092
        oprot.writeFieldEnd();
-
 
9093
      } else if (this.isSetEx()) {
-
 
9094
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
9095
        this.ex.write(oprot);
-
 
9096
        oprot.writeFieldEnd();
-
 
9097
      }
-
 
9098
      oprot.writeFieldStop();
-
 
9099
      oprot.writeStructEnd();
-
 
9100
    }
-
 
9101
 
-
 
9102
    @Override
-
 
9103
    public String toString() {
-
 
9104
      StringBuilder sb = new StringBuilder("getOrderInfo_result(");
-
 
9105
      boolean first = true;
5739
      boolean that_present_to_date = true;
9106
 
-
 
9107
      sb.append("success:");
-
 
9108
      if (this.success == null) {
-
 
9109
        sb.append("null");
-
 
9110
      } else {
-
 
9111
        sb.append(this.success);
-
 
9112
      }
-
 
9113
      first = false;
-
 
9114
      if (!first) sb.append(", ");
-
 
9115
      sb.append("ex:");
-
 
9116
      if (this.ex == null) {
-
 
9117
        sb.append("null");
-
 
9118
      } else {
-
 
9119
        sb.append(this.ex);
-
 
9120
      }
-
 
9121
      first = false;
-
 
9122
      sb.append(")");
-
 
9123
      return sb.toString();
-
 
9124
    }
-
 
9125
 
-
 
9126
    public void validate() throws TException {
-
 
9127
      // check for required fields
-
 
9128
    }
-
 
9129
 
-
 
9130
  }
-
 
9131
 
-
 
9132
  public static class getShippingInfo_args implements TBase<getShippingInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getShippingInfo_args>   {
-
 
9133
    private static final TStruct STRUCT_DESC = new TStruct("getShippingInfo_args");
-
 
9134
 
-
 
9135
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
-
 
9136
 
-
 
9137
    private long transactionId;
-
 
9138
 
-
 
9139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9140
    public enum _Fields implements TFieldIdEnum {
-
 
9141
      TRANSACTION_ID((short)1, "transactionId");
-
 
9142
 
-
 
9143
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9144
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9145
 
-
 
9146
      static {
-
 
9147
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5740
      if (this_present_to_date || that_present_to_date) {
9148
          byId.put((int)field._thriftId, field);
-
 
9149
          byName.put(field.getFieldName(), field);
-
 
9150
        }
-
 
9151
      }
-
 
9152
 
-
 
9153
      /**
-
 
9154
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9155
       */
-
 
9156
      public static _Fields findByThriftId(int fieldId) {
-
 
9157
        return byId.get(fieldId);
-
 
9158
      }
-
 
9159
 
-
 
9160
      /**
-
 
9161
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9162
       * if it is not found.
-
 
9163
       */
-
 
9164
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5741
        if (!(this_present_to_date && that_present_to_date))
9165
        _Fields fields = findByThriftId(fieldId);
-
 
9166
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9167
        return fields;
5742
          return false;
9168
      }
-
 
9169
 
-
 
9170
      /**
-
 
9171
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9172
       */
-
 
9173
      public static _Fields findByName(String name) {
-
 
9174
        return byName.get(name);
-
 
9175
      }
-
 
9176
 
-
 
9177
      private final short _thriftId;
-
 
9178
      private final String _fieldName;
-
 
9179
 
-
 
9180
      _Fields(short thriftId, String fieldName) {
-
 
9181
        _thriftId = thriftId;
5743
        if (this.to_date != that.to_date)
9182
        _fieldName = fieldName;
-
 
9183
      }
-
 
9184
 
-
 
9185
      public short getThriftFieldId() {
-
 
9186
        return _thriftId;
-
 
9187
      }
-
 
9188
 
-
 
9189
      public String getFieldName() {
-
 
9190
        return _fieldName;
5744
          return false;
9191
      }
-
 
9192
    }
-
 
9193
 
-
 
9194
    // isset id assignments
-
 
9195
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
9196
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9197
 
-
 
9198
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9199
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
-
 
9200
          new FieldValueMetaData(TType.I64)));
-
 
9201
    }});
-
 
9202
 
-
 
9203
    static {
-
 
9204
      FieldMetaData.addStructMetaDataMap(getShippingInfo_args.class, metaDataMap);
-
 
9205
    }
-
 
9206
 
-
 
9207
    public getShippingInfo_args() {
-
 
9208
    }
-
 
9209
 
-
 
9210
    public getShippingInfo_args(
-
 
9211
      long transactionId)
-
 
9212
    {
-
 
9213
      this();
-
 
9214
      this.transactionId = transactionId;
-
 
9215
      setTransactionIdIsSet(true);
-
 
9216
    }
-
 
9217
 
-
 
9218
    /**
-
 
9219
     * Performs a deep copy on <i>other</i>.
-
 
9220
     */
-
 
9221
    public getShippingInfo_args(getShippingInfo_args other) {
-
 
9222
      __isset_bit_vector.clear();
-
 
9223
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9224
      this.transactionId = other.transactionId;
-
 
9225
    }
-
 
9226
 
-
 
9227
    public getShippingInfo_args deepCopy() {
-
 
9228
      return new getShippingInfo_args(this);
-
 
9229
    }
-
 
9230
 
-
 
9231
    @Deprecated
-
 
9232
    public getShippingInfo_args clone() {
-
 
9233
      return new getShippingInfo_args(this);
-
 
9234
    }
-
 
9235
 
-
 
9236
    public long getTransactionId() {
-
 
9237
      return this.transactionId;
-
 
9238
    }
-
 
9239
 
-
 
9240
    public getShippingInfo_args setTransactionId(long transactionId) {
-
 
9241
      this.transactionId = transactionId;
-
 
9242
      setTransactionIdIsSet(true);
-
 
9243
      return this;
-
 
9244
    }
-
 
9245
 
-
 
9246
    public void unsetTransactionId() {
-
 
9247
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
9248
    }
-
 
9249
 
-
 
9250
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
-
 
9251
    public boolean isSetTransactionId() {
-
 
9252
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
9253
    }
-
 
9254
 
-
 
9255
    public void setTransactionIdIsSet(boolean value) {
-
 
9256
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
9257
    }
-
 
9258
 
-
 
9259
    public void setFieldValue(_Fields field, Object value) {
-
 
9260
      switch (field) {
-
 
9261
      case TRANSACTION_ID:
-
 
9262
        if (value == null) {
-
 
9263
          unsetTransactionId();
-
 
9264
        } else {
-
 
9265
          setTransactionId((Long)value);
-
 
9266
        }
-
 
9267
        break;
-
 
9268
 
-
 
9269
      }
-
 
9270
    }
-
 
9271
 
-
 
9272
    public void setFieldValue(int fieldID, Object value) {
-
 
9273
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9274
    }
-
 
9275
 
-
 
9276
    public Object getFieldValue(_Fields field) {
-
 
9277
      switch (field) {
-
 
9278
      case TRANSACTION_ID:
-
 
9279
        return new Long(getTransactionId());
-
 
9280
 
-
 
9281
      }
-
 
9282
      throw new IllegalStateException();
-
 
9283
    }
-
 
9284
 
-
 
9285
    public Object getFieldValue(int fieldId) {
-
 
9286
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9287
    }
-
 
9288
 
-
 
9289
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9290
    public boolean isSet(_Fields field) {
-
 
9291
      switch (field) {
-
 
9292
      case TRANSACTION_ID:
-
 
9293
        return isSetTransactionId();
-
 
9294
      }
5745
      }
9295
      throw new IllegalStateException();
-
 
9296
    }
-
 
9297
 
-
 
9298
    public boolean isSet(int fieldID) {
-
 
9299
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9300
    }
-
 
9301
 
-
 
9302
    @Override
-
 
9303
    public boolean equals(Object that) {
-
 
9304
      if (that == null)
-
 
9305
        return false;
-
 
9306
      if (that instanceof getShippingInfo_args)
-
 
9307
        return this.equals((getShippingInfo_args)that);
-
 
9308
      return false;
-
 
9309
    }
-
 
9310
 
-
 
9311
    public boolean equals(getShippingInfo_args that) {
-
 
9312
      if (that == null)
-
 
9313
        return false;
-
 
9314
 
5746
 
9315
      boolean this_present_transactionId = true;
5747
      boolean this_present_warehouse_id = true;
9316
      boolean that_present_transactionId = true;
5748
      boolean that_present_warehouse_id = true;
9317
      if (this_present_transactionId || that_present_transactionId) {
5749
      if (this_present_warehouse_id || that_present_warehouse_id) {
9318
        if (!(this_present_transactionId && that_present_transactionId))
5750
        if (!(this_present_warehouse_id && that_present_warehouse_id))
9319
          return false;
5751
          return false;
9320
        if (this.transactionId != that.transactionId)
5752
        if (this.warehouse_id != that.warehouse_id)
9321
          return false;
5753
          return false;
9322
      }
5754
      }
9323
 
5755
 
9324
      return true;
5756
      return true;
9325
    }
5757
    }
Line 9327... Line 5759...
9327
    @Override
5759
    @Override
9328
    public int hashCode() {
5760
    public int hashCode() {
9329
      return 0;
5761
      return 0;
9330
    }
5762
    }
9331
 
5763
 
9332
    public int compareTo(getShippingInfo_args other) {
5764
    public int compareTo(getAllOrders_args other) {
9333
      if (!getClass().equals(other.getClass())) {
5765
      if (!getClass().equals(other.getClass())) {
9334
        return getClass().getName().compareTo(other.getClass().getName());
5766
        return getClass().getName().compareTo(other.getClass().getName());
9335
      }
5767
      }
9336
 
5768
 
9337
      int lastComparison = 0;
5769
      int lastComparison = 0;
9338
      getShippingInfo_args typedOther = (getShippingInfo_args)other;
5770
      getAllOrders_args typedOther = (getAllOrders_args)other;
9339
 
5771
 
9340
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
5772
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
9341
      if (lastComparison != 0) {
5773
      if (lastComparison != 0) {
9342
        return lastComparison;
5774
        return lastComparison;
9343
      }
5775
      }
-
 
5776
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
5777
      if (lastComparison != 0) {
-
 
5778
        return lastComparison;
-
 
5779
      }
-
 
5780
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
-
 
5781
      if (lastComparison != 0) {
-
 
5782
        return lastComparison;
-
 
5783
      }
-
 
5784
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
-
 
5785
      if (lastComparison != 0) {
-
 
5786
        return lastComparison;
-
 
5787
      }
-
 
5788
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
-
 
5789
      if (lastComparison != 0) {
-
 
5790
        return lastComparison;
-
 
5791
      }
9344
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
5792
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
-
 
5793
      if (lastComparison != 0) {
-
 
5794
        return lastComparison;
-
 
5795
      }
-
 
5796
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
-
 
5797
      if (lastComparison != 0) {
-
 
5798
        return lastComparison;
-
 
5799
      }
-
 
5800
      lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
9345
      if (lastComparison != 0) {
5801
      if (lastComparison != 0) {
9346
        return lastComparison;
5802
        return lastComparison;
9347
      }
5803
      }
9348
      return 0;
5804
      return 0;
9349
    }
5805
    }
Line 9360... Line 5816...
9360
        _Fields fieldId = _Fields.findByThriftId(field.id);
5816
        _Fields fieldId = _Fields.findByThriftId(field.id);
9361
        if (fieldId == null) {
5817
        if (fieldId == null) {
9362
          TProtocolUtil.skip(iprot, field.type);
5818
          TProtocolUtil.skip(iprot, field.type);
9363
        } else {
5819
        } else {
9364
          switch (fieldId) {
5820
          switch (fieldId) {
-
 
5821
            case STATUS:
-
 
5822
              if (field.type == TType.I32) {
-
 
5823
                this.status = OrderStatus.findByValue(iprot.readI32());
-
 
5824
              } else { 
-
 
5825
                TProtocolUtil.skip(iprot, field.type);
-
 
5826
              }
-
 
5827
              break;
9365
            case TRANSACTION_ID:
5828
            case FROM_DATE:
9366
              if (field.type == TType.I64) {
5829
              if (field.type == TType.I64) {
-
 
5830
                this.from_date = iprot.readI64();
-
 
5831
                setFrom_dateIsSet(true);
-
 
5832
              } else { 
-
 
5833
                TProtocolUtil.skip(iprot, field.type);
-
 
5834
              }
-
 
5835
              break;
-
 
5836
            case TO_DATE:
-
 
5837
              if (field.type == TType.I64) {
9367
                this.transactionId = iprot.readI64();
5838
                this.to_date = iprot.readI64();
9368
                setTransactionIdIsSet(true);
5839
                setTo_dateIsSet(true);
-
 
5840
              } else { 
-
 
5841
                TProtocolUtil.skip(iprot, field.type);
-
 
5842
              }
-
 
5843
              break;
-
 
5844
            case WAREHOUSE_ID:
-
 
5845
              if (field.type == TType.I64) {
-
 
5846
                this.warehouse_id = iprot.readI64();
-
 
5847
                setWarehouse_idIsSet(true);
9369
              } else { 
5848
              } else { 
9370
                TProtocolUtil.skip(iprot, field.type);
5849
                TProtocolUtil.skip(iprot, field.type);
9371
              }
5850
              }
9372
              break;
5851
              break;
9373
          }
5852
          }
Line 9380... Line 5859...
9380
 
5859
 
9381
    public void write(TProtocol oprot) throws TException {
5860
    public void write(TProtocol oprot) throws TException {
9382
      validate();
5861
      validate();
9383
 
5862
 
9384
      oprot.writeStructBegin(STRUCT_DESC);
5863
      oprot.writeStructBegin(STRUCT_DESC);
-
 
5864
      if (this.status != null) {
-
 
5865
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
5866
        oprot.writeI32(this.status.getValue());
-
 
5867
        oprot.writeFieldEnd();
-
 
5868
      }
-
 
5869
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
-
 
5870
      oprot.writeI64(this.from_date);
-
 
5871
      oprot.writeFieldEnd();
-
 
5872
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
-
 
5873
      oprot.writeI64(this.to_date);
-
 
5874
      oprot.writeFieldEnd();
9385
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
5875
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9386
      oprot.writeI64(this.transactionId);
5876
      oprot.writeI64(this.warehouse_id);
9387
      oprot.writeFieldEnd();
5877
      oprot.writeFieldEnd();
9388
      oprot.writeFieldStop();
5878
      oprot.writeFieldStop();
9389
      oprot.writeStructEnd();
5879
      oprot.writeStructEnd();
9390
    }
5880
    }
9391
 
5881
 
9392
    @Override
5882
    @Override
9393
    public String toString() {
5883
    public String toString() {
9394
      StringBuilder sb = new StringBuilder("getShippingInfo_args(");
5884
      StringBuilder sb = new StringBuilder("getAllOrders_args(");
9395
      boolean first = true;
5885
      boolean first = true;
9396
 
5886
 
-
 
5887
      sb.append("status:");
-
 
5888
      if (this.status == null) {
-
 
5889
        sb.append("null");
-
 
5890
      } else {
-
 
5891
        String status_name = status.name();
-
 
5892
        if (status_name != null) {
-
 
5893
          sb.append(status_name);
-
 
5894
          sb.append(" (");
-
 
5895
        }
-
 
5896
        sb.append(this.status);
-
 
5897
        if (status_name != null) {
-
 
5898
          sb.append(")");
-
 
5899
        }
-
 
5900
      }
-
 
5901
      first = false;
-
 
5902
      if (!first) sb.append(", ");
-
 
5903
      sb.append("from_date:");
-
 
5904
      sb.append(this.from_date);
-
 
5905
      first = false;
-
 
5906
      if (!first) sb.append(", ");
9397
      sb.append("transactionId:");
5907
      sb.append("to_date:");
9398
      sb.append(this.transactionId);
5908
      sb.append(this.to_date);
-
 
5909
      first = false;
-
 
5910
      if (!first) sb.append(", ");
-
 
5911
      sb.append("warehouse_id:");
-
 
5912
      sb.append(this.warehouse_id);
9399
      first = false;
5913
      first = false;
9400
      sb.append(")");
5914
      sb.append(")");
9401
      return sb.toString();
5915
      return sb.toString();
9402
    }
5916
    }
9403
 
5917
 
Line 9405... Line 5919...
9405
      // check for required fields
5919
      // check for required fields
9406
    }
5920
    }
9407
 
5921
 
9408
  }
5922
  }
9409
 
5923
 
9410
  public static class getShippingInfo_result implements TBase<getShippingInfo_result._Fields>, java.io.Serializable, Cloneable   {
5924
  public static class getAllOrders_result implements TBase<getAllOrders_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOrders_result>   {
9411
    private static final TStruct STRUCT_DESC = new TStruct("getShippingInfo_result");
5925
    private static final TStruct STRUCT_DESC = new TStruct("getAllOrders_result");
9412
 
5926
 
9413
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
5927
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
9414
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
5928
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
9415
 
5929
 
9416
    private ShipmentInfo success;
5930
    private List<Order> success;
9417
    private TransactionServiceException ex;
5931
    private TransactionServiceException ex;
9418
 
5932
 
9419
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9420
    public enum _Fields implements TFieldIdEnum {
5934
    public enum _Fields implements TFieldIdEnum {
9421
      SUCCESS((short)0, "success"),
5935
      SUCCESS((short)0, "success"),
Line 9474... Line 5988...
9474
 
5988
 
9475
    // isset id assignments
5989
    // isset id assignments
9476
 
5990
 
9477
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5991
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9478
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
5992
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5993
          new ListMetaData(TType.LIST, 
9479
          new StructMetaData(TType.STRUCT, ShipmentInfo.class)));
5994
              new StructMetaData(TType.STRUCT, Order.class))));
9480
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
5995
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
9481
          new FieldValueMetaData(TType.STRUCT)));
5996
          new FieldValueMetaData(TType.STRUCT)));
9482
    }});
5997
    }});
9483
 
5998
 
9484
    static {
5999
    static {
9485
      FieldMetaData.addStructMetaDataMap(getShippingInfo_result.class, metaDataMap);
6000
      FieldMetaData.addStructMetaDataMap(getAllOrders_result.class, metaDataMap);
9486
    }
6001
    }
9487
 
6002
 
9488
    public getShippingInfo_result() {
6003
    public getAllOrders_result() {
9489
    }
6004
    }
9490
 
6005
 
9491
    public getShippingInfo_result(
6006
    public getAllOrders_result(
9492
      ShipmentInfo success,
6007
      List<Order> success,
9493
      TransactionServiceException ex)
6008
      TransactionServiceException ex)
9494
    {
6009
    {
9495
      this();
6010
      this();
9496
      this.success = success;
6011
      this.success = success;
9497
      this.ex = ex;
6012
      this.ex = ex;
9498
    }
6013
    }
9499
 
6014
 
9500
    /**
6015
    /**
9501
     * Performs a deep copy on <i>other</i>.
6016
     * Performs a deep copy on <i>other</i>.
9502
     */
6017
     */
9503
    public getShippingInfo_result(getShippingInfo_result other) {
6018
    public getAllOrders_result(getAllOrders_result other) {
9504
      if (other.isSetSuccess()) {
6019
      if (other.isSetSuccess()) {
-
 
6020
        List<Order> __this__success = new ArrayList<Order>();
-
 
6021
        for (Order other_element : other.success) {
-
 
6022
          __this__success.add(new Order(other_element));
-
 
6023
        }
9505
        this.success = new ShipmentInfo(other.success);
6024
        this.success = __this__success;
9506
      }
6025
      }
9507
      if (other.isSetEx()) {
6026
      if (other.isSetEx()) {
9508
        this.ex = new TransactionServiceException(other.ex);
6027
        this.ex = new TransactionServiceException(other.ex);
9509
      }
6028
      }
9510
    }
6029
    }
9511
 
6030
 
9512
    public getShippingInfo_result deepCopy() {
6031
    public getAllOrders_result deepCopy() {
9513
      return new getShippingInfo_result(this);
6032
      return new getAllOrders_result(this);
9514
    }
6033
    }
9515
 
6034
 
9516
    @Deprecated
6035
    @Deprecated
9517
    public getShippingInfo_result clone() {
6036
    public getAllOrders_result clone() {
9518
      return new getShippingInfo_result(this);
6037
      return new getAllOrders_result(this);
9519
    }
6038
    }
9520
 
6039
 
-
 
6040
    public int getSuccessSize() {
-
 
6041
      return (this.success == null) ? 0 : this.success.size();
-
 
6042
    }
-
 
6043
 
-
 
6044
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
6045
      return (this.success == null) ? null : this.success.iterator();
-
 
6046
    }
-
 
6047
 
-
 
6048
    public void addToSuccess(Order elem) {
-
 
6049
      if (this.success == null) {
-
 
6050
        this.success = new ArrayList<Order>();
-
 
6051
      }
-
 
6052
      this.success.add(elem);
-
 
6053
    }
-
 
6054
 
9521
    public ShipmentInfo getSuccess() {
6055
    public List<Order> getSuccess() {
9522
      return this.success;
6056
      return this.success;
9523
    }
6057
    }
9524
 
6058
 
9525
    public getShippingInfo_result setSuccess(ShipmentInfo success) {
6059
    public getAllOrders_result setSuccess(List<Order> success) {
9526
      this.success = success;
6060
      this.success = success;
9527
      return this;
6061
      return this;
9528
    }
6062
    }
9529
 
6063
 
9530
    public void unsetSuccess() {
6064
    public void unsetSuccess() {
Line 9544... Line 6078...
9544
 
6078
 
9545
    public TransactionServiceException getEx() {
6079
    public TransactionServiceException getEx() {
9546
      return this.ex;
6080
      return this.ex;
9547
    }
6081
    }
9548
 
6082
 
9549
    public getShippingInfo_result setEx(TransactionServiceException ex) {
6083
    public getAllOrders_result setEx(TransactionServiceException ex) {
9550
      this.ex = ex;
6084
      this.ex = ex;
9551
      return this;
6085
      return this;
9552
    }
6086
    }
9553
 
6087
 
9554
    public void unsetEx() {
6088
    public void unsetEx() {
Line 9570... Line 6104...
9570
      switch (field) {
6104
      switch (field) {
9571
      case SUCCESS:
6105
      case SUCCESS:
9572
        if (value == null) {
6106
        if (value == null) {
9573
          unsetSuccess();
6107
          unsetSuccess();
9574
        } else {
6108
        } else {
9575
          setSuccess((ShipmentInfo)value);
6109
          setSuccess((List<Order>)value);
9576
        }
6110
        }
9577
        break;
6111
        break;
9578
 
6112
 
9579
      case EX:
6113
      case EX:
9580
        if (value == null) {
6114
        if (value == null) {
Line 9624... Line 6158...
9624
 
6158
 
9625
    @Override
6159
    @Override
9626
    public boolean equals(Object that) {
6160
    public boolean equals(Object that) {
9627
      if (that == null)
6161
      if (that == null)
9628
        return false;
6162
        return false;
9629
      if (that instanceof getShippingInfo_result)
6163
      if (that instanceof getAllOrders_result)
9630
        return this.equals((getShippingInfo_result)that);
6164
        return this.equals((getAllOrders_result)that);
9631
      return false;
6165
      return false;
9632
    }
6166
    }
9633
 
6167
 
9634
    public boolean equals(getShippingInfo_result that) {
6168
    public boolean equals(getAllOrders_result that) {
9635
      if (that == null)
6169
      if (that == null)
9636
        return false;
6170
        return false;
9637
 
6171
 
9638
      boolean this_present_success = true && this.isSetSuccess();
6172
      boolean this_present_success = true && this.isSetSuccess();
9639
      boolean that_present_success = true && that.isSetSuccess();
6173
      boolean that_present_success = true && that.isSetSuccess();
Line 9659... Line 6193...
9659
    @Override
6193
    @Override
9660
    public int hashCode() {
6194
    public int hashCode() {
9661
      return 0;
6195
      return 0;
9662
    }
6196
    }
9663
 
6197
 
-
 
6198
    public int compareTo(getAllOrders_result other) {
-
 
6199
      if (!getClass().equals(other.getClass())) {
-
 
6200
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6201
      }
-
 
6202
 
-
 
6203
      int lastComparison = 0;
-
 
6204
      getAllOrders_result typedOther = (getAllOrders_result)other;
-
 
6205
 
-
 
6206
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
6207
      if (lastComparison != 0) {
-
 
6208
        return lastComparison;
-
 
6209
      }
-
 
6210
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
6211
      if (lastComparison != 0) {
-
 
6212
        return lastComparison;
-
 
6213
      }
-
 
6214
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
6215
      if (lastComparison != 0) {
-
 
6216
        return lastComparison;
-
 
6217
      }
-
 
6218
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
6219
      if (lastComparison != 0) {
-
 
6220
        return lastComparison;
-
 
6221
      }
-
 
6222
      return 0;
-
 
6223
    }
-
 
6224
 
9664
    public void read(TProtocol iprot) throws TException {
6225
    public void read(TProtocol iprot) throws TException {
9665
      TField field;
6226
      TField field;
9666
      iprot.readStructBegin();
6227
      iprot.readStructBegin();
9667
      while (true)
6228
      while (true)
9668
      {
6229
      {
Line 9674... Line 6235...
9674
        if (fieldId == null) {
6235
        if (fieldId == null) {
9675
          TProtocolUtil.skip(iprot, field.type);
6236
          TProtocolUtil.skip(iprot, field.type);
9676
        } else {
6237
        } else {
9677
          switch (fieldId) {
6238
          switch (fieldId) {
9678
            case SUCCESS:
6239
            case SUCCESS:
9679
              if (field.type == TType.STRUCT) {
6240
              if (field.type == TType.LIST) {
-
 
6241
                {
-
 
6242
                  TList _list21 = iprot.readListBegin();
9680
                this.success = new ShipmentInfo();
6243
                  this.success = new ArrayList<Order>(_list21.size);
-
 
6244
                  for (int _i22 = 0; _i22 < _list21.size; ++_i22)
-
 
6245
                  {
-
 
6246
                    Order _elem23;
-
 
6247
                    _elem23 = new Order();
9681
                this.success.read(iprot);
6248
                    _elem23.read(iprot);
-
 
6249
                    this.success.add(_elem23);
-
 
6250
                  }
-
 
6251
                  iprot.readListEnd();
-
 
6252
                }
9682
              } else { 
6253
              } else { 
9683
                TProtocolUtil.skip(iprot, field.type);
6254
                TProtocolUtil.skip(iprot, field.type);
9684
              }
6255
              }
9685
              break;
6256
              break;
9686
            case EX:
6257
            case EX:
Line 9702... Line 6273...
9702
    public void write(TProtocol oprot) throws TException {
6273
    public void write(TProtocol oprot) throws TException {
9703
      oprot.writeStructBegin(STRUCT_DESC);
6274
      oprot.writeStructBegin(STRUCT_DESC);
9704
 
6275
 
9705
      if (this.isSetSuccess()) {
6276
      if (this.isSetSuccess()) {
9706
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6277
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6278
        {
-
 
6279
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
6280
          for (Order _iter24 : this.success)
-
 
6281
          {
9707
        this.success.write(oprot);
6282
            _iter24.write(oprot);
-
 
6283
          }
-
 
6284
          oprot.writeListEnd();
-
 
6285
        }
9708
        oprot.writeFieldEnd();
6286
        oprot.writeFieldEnd();
9709
      } else if (this.isSetEx()) {
6287
      } else if (this.isSetEx()) {
9710
        oprot.writeFieldBegin(EX_FIELD_DESC);
6288
        oprot.writeFieldBegin(EX_FIELD_DESC);
9711
        this.ex.write(oprot);
6289
        this.ex.write(oprot);
9712
        oprot.writeFieldEnd();
6290
        oprot.writeFieldEnd();
Line 9715... Line 6293...
9715
      oprot.writeStructEnd();
6293
      oprot.writeStructEnd();
9716
    }
6294
    }
9717
 
6295
 
9718
    @Override
6296
    @Override
9719
    public String toString() {
6297
    public String toString() {
9720
      StringBuilder sb = new StringBuilder("getShippingInfo_result(");
6298
      StringBuilder sb = new StringBuilder("getAllOrders_result(");
9721
      boolean first = true;
6299
      boolean first = true;
9722
 
6300
 
9723
      sb.append("success:");
6301
      sb.append("success:");
9724
      if (this.success == null) {
6302
      if (this.success == null) {
9725
        sb.append("null");
6303
        sb.append("null");
Line 9743... Line 6321...
9743
      // check for required fields
6321
      // check for required fields
9744
    }
6322
    }
9745
 
6323
 
9746
  }
6324
  }
9747
 
6325
 
9748
  public static class getBillingInfo_args implements TBase<getBillingInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getBillingInfo_args>   {
6326
  public static class changeOrderStatus_args implements TBase<changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeOrderStatus_args>   {
9749
    private static final TStruct STRUCT_DESC = new TStruct("getBillingInfo_args");
6327
    private static final TStruct STRUCT_DESC = new TStruct("changeOrderStatus_args");
9750
 
6328
 
9751
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
6329
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
6330
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
-
 
6331
    private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)3);
9752
 
6332
 
9753
    private long transactionId;
6333
    private long orderId;
-
 
6334
    private OrderStatus status;
-
 
6335
    private String description;
9754
 
6336
 
9755
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9756
    public enum _Fields implements TFieldIdEnum {
6338
    public enum _Fields implements TFieldIdEnum {
-
 
6339
      ORDER_ID((short)1, "orderId"),
-
 
6340
      /**
-
 
6341
       * 
-
 
6342
       * @see OrderStatus
-
 
6343
       */
-
 
6344
      STATUS((short)2, "status"),
9757
      TRANSACTION_ID((short)1, "transactionId");
6345
      DESCRIPTION((short)3, "description");
9758
 
6346
 
9759
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
6347
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
9760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9761
 
6349
 
9762
      static {
6350
      static {
Line 9806... Line 6394...
9806
        return _fieldName;
6394
        return _fieldName;
9807
      }
6395
      }
9808
    }
6396
    }
9809
 
6397
 
9810
    // isset id assignments
6398
    // isset id assignments
9811
    private static final int __TRANSACTIONID_ISSET_ID = 0;
6399
    private static final int __ORDERID_ISSET_ID = 0;
9812
    private BitSet __isset_bit_vector = new BitSet(1);
6400
    private BitSet __isset_bit_vector = new BitSet(1);
9813
 
6401
 
9814
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6402
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9815
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
6403
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
9816
          new FieldValueMetaData(TType.I64)));
6404
          new FieldValueMetaData(TType.I64)));
-
 
6405
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
6406
          new EnumMetaData(TType.ENUM, OrderStatus.class)));
-
 
6407
      put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-
 
6408
          new FieldValueMetaData(TType.STRING)));
9817
    }});
6409
    }});
9818
 
6410
 
9819
    static {
6411
    static {
9820
      FieldMetaData.addStructMetaDataMap(getBillingInfo_args.class, metaDataMap);
6412
      FieldMetaData.addStructMetaDataMap(changeOrderStatus_args.class, metaDataMap);
9821
    }
6413
    }
9822
 
6414
 
9823
    public getBillingInfo_args() {
6415
    public changeOrderStatus_args() {
9824
    }
6416
    }
9825
 
6417
 
9826
    public getBillingInfo_args(
6418
    public changeOrderStatus_args(
9827
      long transactionId)
6419
      long orderId,
-
 
6420
      OrderStatus status,
-
 
6421
      String description)
9828
    {
6422
    {
9829
      this();
6423
      this();
9830
      this.transactionId = transactionId;
6424
      this.orderId = orderId;
9831
      setTransactionIdIsSet(true);
6425
      setOrderIdIsSet(true);
-
 
6426
      this.status = status;
-
 
6427
      this.description = description;
9832
    }
6428
    }
9833
 
6429
 
9834
    /**
6430
    /**
9835
     * Performs a deep copy on <i>other</i>.
6431
     * Performs a deep copy on <i>other</i>.
9836
     */
6432
     */
9837
    public getBillingInfo_args(getBillingInfo_args other) {
6433
    public changeOrderStatus_args(changeOrderStatus_args other) {
9838
      __isset_bit_vector.clear();
6434
      __isset_bit_vector.clear();
9839
      __isset_bit_vector.or(other.__isset_bit_vector);
6435
      __isset_bit_vector.or(other.__isset_bit_vector);
9840
      this.transactionId = other.transactionId;
6436
      this.orderId = other.orderId;
9841
    }
-
 
9842
 
-
 
9843
    public getBillingInfo_args deepCopy() {
-
 
9844
      return new getBillingInfo_args(this);
-
 
9845
    }
-
 
9846
 
-
 
9847
    @Deprecated
-
 
9848
    public getBillingInfo_args clone() {
-
 
9849
      return new getBillingInfo_args(this);
-
 
9850
    }
-
 
9851
 
-
 
9852
    public long getTransactionId() {
-
 
9853
      return this.transactionId;
-
 
9854
    }
-
 
9855
 
-
 
9856
    public getBillingInfo_args setTransactionId(long transactionId) {
-
 
9857
      this.transactionId = transactionId;
-
 
9858
      setTransactionIdIsSet(true);
-
 
9859
      return this;
-
 
9860
    }
-
 
9861
 
-
 
9862
    public void unsetTransactionId() {
-
 
9863
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
9864
    }
-
 
9865
 
-
 
9866
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
-
 
9867
    public boolean isSetTransactionId() {
-
 
9868
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
9869
    }
-
 
9870
 
-
 
9871
    public void setTransactionIdIsSet(boolean value) {
-
 
9872
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
9873
    }
-
 
9874
 
-
 
9875
    public void setFieldValue(_Fields field, Object value) {
-
 
9876
      switch (field) {
-
 
9877
      case TRANSACTION_ID:
-
 
9878
        if (value == null) {
-
 
9879
          unsetTransactionId();
-
 
9880
        } else {
-
 
9881
          setTransactionId((Long)value);
-
 
9882
        }
-
 
9883
        break;
-
 
9884
 
-
 
9885
      }
-
 
9886
    }
-
 
9887
 
-
 
9888
    public void setFieldValue(int fieldID, Object value) {
-
 
9889
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9890
    }
-
 
9891
 
-
 
9892
    public Object getFieldValue(_Fields field) {
-
 
9893
      switch (field) {
-
 
9894
      case TRANSACTION_ID:
-
 
9895
        return new Long(getTransactionId());
-
 
9896
 
-
 
9897
      }
-
 
9898
      throw new IllegalStateException();
-
 
9899
    }
-
 
9900
 
-
 
9901
    public Object getFieldValue(int fieldId) {
-
 
9902
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9903
    }
-
 
9904
 
-
 
9905
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9906
    public boolean isSet(_Fields field) {
-
 
9907
      switch (field) {
-
 
9908
      case TRANSACTION_ID:
-
 
9909
        return isSetTransactionId();
-
 
9910
      }
-
 
9911
      throw new IllegalStateException();
-
 
9912
    }
-
 
9913
 
-
 
9914
    public boolean isSet(int fieldID) {
-
 
9915
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9916
    }
-
 
9917
 
-
 
9918
    @Override
-
 
9919
    public boolean equals(Object that) {
-
 
9920
      if (that == null)
-
 
9921
        return false;
-
 
9922
      if (that instanceof getBillingInfo_args)
-
 
9923
        return this.equals((getBillingInfo_args)that);
-
 
9924
      return false;
-
 
9925
    }
-
 
9926
 
-
 
9927
    public boolean equals(getBillingInfo_args that) {
-
 
9928
      if (that == null)
-
 
9929
        return false;
-
 
9930
 
-
 
9931
      boolean this_present_transactionId = true;
-
 
9932
      boolean that_present_transactionId = true;
-
 
9933
      if (this_present_transactionId || that_present_transactionId) {
-
 
9934
        if (!(this_present_transactionId && that_present_transactionId))
-
 
9935
          return false;
-
 
9936
        if (this.transactionId != that.transactionId)
-
 
9937
          return false;
-
 
9938
      }
-
 
9939
 
-
 
9940
      return true;
-
 
9941
    }
-
 
9942
 
-
 
9943
    @Override
-
 
9944
    public int hashCode() {
-
 
9945
      return 0;
-
 
9946
    }
-
 
9947
 
-
 
9948
    public int compareTo(getBillingInfo_args other) {
-
 
9949
      if (!getClass().equals(other.getClass())) {
-
 
9950
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9951
      }
-
 
9952
 
-
 
9953
      int lastComparison = 0;
-
 
9954
      getBillingInfo_args typedOther = (getBillingInfo_args)other;
-
 
9955
 
-
 
9956
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
-
 
9957
      if (lastComparison != 0) {
-
 
9958
        return lastComparison;
-
 
9959
      }
-
 
9960
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
9961
      if (lastComparison != 0) {
6437
      if (other.isSetStatus()) {
9962
        return lastComparison;
6438
        this.status = other.status;
9963
      }
6439
      }
9964
      return 0;
-
 
9965
    }
-
 
9966
 
-
 
9967
    public void read(TProtocol iprot) throws TException {
-
 
9968
      TField field;
-
 
9969
      iprot.readStructBegin();
6440
      if (other.isSetDescription()) {
9970
      while (true)
-
 
9971
      {
-
 
9972
        field = iprot.readFieldBegin();
-
 
9973
        if (field.type == TType.STOP) { 
-
 
9974
          break;
-
 
9975
        }
-
 
9976
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9977
        if (fieldId == null) {
-
 
9978
          TProtocolUtil.skip(iprot, field.type);
-
 
9979
        } else {
-
 
9980
          switch (fieldId) {
-
 
9981
            case TRANSACTION_ID:
-
 
9982
              if (field.type == TType.I64) {
-
 
9983
                this.transactionId = iprot.readI64();
6441
        this.description = other.description;
9984
                setTransactionIdIsSet(true);
-
 
9985
              } else { 
-
 
9986
                TProtocolUtil.skip(iprot, field.type);
-
 
9987
              }
-
 
9988
              break;
-
 
9989
          }
-
 
9990
          iprot.readFieldEnd();
-
 
9991
        }
-
 
9992
      }
6442
      }
9993
      iprot.readStructEnd();
-
 
9994
      validate();
-
 
9995
    }
6443
    }
9996
 
6444
 
9997
    public void write(TProtocol oprot) throws TException {
6445
    public changeOrderStatus_args deepCopy() {
9998
      validate();
-
 
9999
 
-
 
10000
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10001
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
10002
      oprot.writeI64(this.transactionId);
6446
      return new changeOrderStatus_args(this);
10003
      oprot.writeFieldEnd();
-
 
10004
      oprot.writeFieldStop();
-
 
10005
      oprot.writeStructEnd();
-
 
10006
    }
6447
    }
10007
 
6448
 
10008
    @Override
6449
    @Deprecated
10009
    public String toString() {
6450
    public changeOrderStatus_args clone() {
10010
      StringBuilder sb = new StringBuilder("getBillingInfo_args(");
-
 
10011
      boolean first = true;
-
 
10012
 
-
 
10013
      sb.append("transactionId:");
-
 
10014
      sb.append(this.transactionId);
-
 
10015
      first = false;
-
 
10016
      sb.append(")");
-
 
10017
      return sb.toString();
6451
      return new changeOrderStatus_args(this);
10018
    }
6452
    }
10019
 
6453
 
10020
    public void validate() throws TException {
6454
    public long getOrderId() {
10021
      // check for required fields
6455
      return this.orderId;
10022
    }
6456
    }
10023
 
6457
 
10024
  }
-
 
10025
 
-
 
10026
  public static class getBillingInfo_result implements TBase<getBillingInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10027
    private static final TStruct STRUCT_DESC = new TStruct("getBillingInfo_result");
-
 
10028
 
-
 
10029
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
10030
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
10031
 
-
 
10032
    private BillingInfo success;
-
 
10033
    private TransactionServiceException ex;
-
 
10034
 
-
 
10035
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10036
    public enum _Fields implements TFieldIdEnum {
-
 
10037
      SUCCESS((short)0, "success"),
-
 
10038
      EX((short)1, "ex");
-
 
10039
 
-
 
10040
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10041
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10042
 
-
 
10043
      static {
-
 
10044
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10045
          byId.put((int)field._thriftId, field);
-
 
10046
          byName.put(field.getFieldName(), field);
-
 
10047
        }
-
 
10048
      }
-
 
10049
 
-
 
10050
      /**
-
 
10051
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10052
       */
-
 
10053
      public static _Fields findByThriftId(int fieldId) {
6458
    public changeOrderStatus_args setOrderId(long orderId) {
10054
        return byId.get(fieldId);
6459
      this.orderId = orderId;
10055
      }
-
 
10056
 
-
 
10057
      /**
-
 
10058
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10059
       * if it is not found.
-
 
10060
       */
-
 
10061
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10062
        _Fields fields = findByThriftId(fieldId);
-
 
10063
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10064
        return fields;
-
 
10065
      }
-
 
10066
 
-
 
10067
      /**
-
 
10068
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10069
       */
-
 
10070
      public static _Fields findByName(String name) {
-
 
10071
        return byName.get(name);
6460
      setOrderIdIsSet(true);
10072
      }
-
 
10073
 
-
 
10074
      private final short _thriftId;
-
 
10075
      private final String _fieldName;
-
 
10076
 
-
 
10077
      _Fields(short thriftId, String fieldName) {
-
 
10078
        _thriftId = thriftId;
-
 
10079
        _fieldName = fieldName;
-
 
10080
      }
-
 
10081
 
-
 
10082
      public short getThriftFieldId() {
-
 
10083
        return _thriftId;
6461
      return this;
10084
      }
-
 
10085
 
-
 
10086
      public String getFieldName() {
-
 
10087
        return _fieldName;
-
 
10088
      }
-
 
10089
    }
6462
    }
10090
 
6463
 
10091
    // isset id assignments
6464
    public void unsetOrderId() {
10092
 
-
 
10093
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10094
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
10095
          new StructMetaData(TType.STRUCT, BillingInfo.class)));
-
 
10096
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
10097
          new FieldValueMetaData(TType.STRUCT)));
6465
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
10098
    }});
-
 
10099
 
-
 
10100
    static {
-
 
10101
      FieldMetaData.addStructMetaDataMap(getBillingInfo_result.class, metaDataMap);
-
 
10102
    }
6466
    }
10103
 
6467
 
-
 
6468
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
10104
    public getBillingInfo_result() {
6469
    public boolean isSetOrderId() {
-
 
6470
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
10105
    }
6471
    }
10106
 
6472
 
10107
    public getBillingInfo_result(
6473
    public void setOrderIdIsSet(boolean value) {
10108
      BillingInfo success,
-
 
10109
      TransactionServiceException ex)
6474
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
10110
    {
-
 
10111
      this();
-
 
10112
      this.success = success;
-
 
10113
      this.ex = ex;
-
 
10114
    }
6475
    }
10115
 
6476
 
10116
    /**
6477
    /**
-
 
6478
     * 
10117
     * Performs a deep copy on <i>other</i>.
6479
     * @see OrderStatus
10118
     */
6480
     */
10119
    public getBillingInfo_result(getBillingInfo_result other) {
-
 
10120
      if (other.isSetSuccess()) {
-
 
10121
        this.success = new BillingInfo(other.success);
-
 
10122
      }
-
 
10123
      if (other.isSetEx()) {
-
 
10124
        this.ex = new TransactionServiceException(other.ex);
-
 
10125
      }
-
 
10126
    }
-
 
10127
 
-
 
10128
    public getBillingInfo_result deepCopy() {
-
 
10129
      return new getBillingInfo_result(this);
-
 
10130
    }
-
 
10131
 
-
 
10132
    @Deprecated
-
 
10133
    public getBillingInfo_result clone() {
-
 
10134
      return new getBillingInfo_result(this);
-
 
10135
    }
-
 
10136
 
-
 
10137
    public BillingInfo getSuccess() {
6481
    public OrderStatus getStatus() {
10138
      return this.success;
6482
      return this.status;
10139
    }
6483
    }
10140
 
6484
 
-
 
6485
    /**
-
 
6486
     * 
-
 
6487
     * @see OrderStatus
-
 
6488
     */
10141
    public getBillingInfo_result setSuccess(BillingInfo success) {
6489
    public changeOrderStatus_args setStatus(OrderStatus status) {
10142
      this.success = success;
6490
      this.status = status;
10143
      return this;
6491
      return this;
10144
    }
6492
    }
10145
 
6493
 
10146
    public void unsetSuccess() {
6494
    public void unsetStatus() {
10147
      this.success = null;
6495
      this.status = null;
10148
    }
6496
    }
10149
 
6497
 
10150
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
6498
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
10151
    public boolean isSetSuccess() {
6499
    public boolean isSetStatus() {
10152
      return this.success != null;
6500
      return this.status != null;
10153
    }
6501
    }
10154
 
6502
 
10155
    public void setSuccessIsSet(boolean value) {
6503
    public void setStatusIsSet(boolean value) {
10156
      if (!value) {
6504
      if (!value) {
10157
        this.success = null;
6505
        this.status = null;
10158
      }
6506
      }
10159
    }
6507
    }
10160
 
6508
 
10161
    public TransactionServiceException getEx() {
6509
    public String getDescription() {
10162
      return this.ex;
6510
      return this.description;
10163
    }
6511
    }
10164
 
6512
 
10165
    public getBillingInfo_result setEx(TransactionServiceException ex) {
6513
    public changeOrderStatus_args setDescription(String description) {
10166
      this.ex = ex;
6514
      this.description = description;
10167
      return this;
6515
      return this;
10168
    }
6516
    }
10169
 
6517
 
10170
    public void unsetEx() {
6518
    public void unsetDescription() {
10171
      this.ex = null;
6519
      this.description = null;
10172
    }
6520
    }
10173
 
6521
 
10174
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
6522
    /** Returns true if field description is set (has been asigned a value) and false otherwise */
10175
    public boolean isSetEx() {
6523
    public boolean isSetDescription() {
10176
      return this.ex != null;
6524
      return this.description != null;
10177
    }
6525
    }
10178
 
6526
 
10179
    public void setExIsSet(boolean value) {
6527
    public void setDescriptionIsSet(boolean value) {
10180
      if (!value) {
6528
      if (!value) {
10181
        this.ex = null;
6529
        this.description = null;
10182
      }
6530
      }
10183
    }
6531
    }
10184
 
6532
 
10185
    public void setFieldValue(_Fields field, Object value) {
6533
    public void setFieldValue(_Fields field, Object value) {
10186
      switch (field) {
6534
      switch (field) {
10187
      case SUCCESS:
6535
      case ORDER_ID:
10188
        if (value == null) {
6536
        if (value == null) {
10189
          unsetSuccess();
6537
          unsetOrderId();
10190
        } else {
6538
        } else {
10191
          setSuccess((BillingInfo)value);
6539
          setOrderId((Long)value);
10192
        }
6540
        }
10193
        break;
6541
        break;
10194
 
6542
 
10195
      case EX:
6543
      case STATUS:
10196
        if (value == null) {
6544
        if (value == null) {
10197
          unsetEx();
6545
          unsetStatus();
10198
        } else {
6546
        } else {
-
 
6547
          setStatus((OrderStatus)value);
-
 
6548
        }
-
 
6549
        break;
-
 
6550
 
-
 
6551
      case DESCRIPTION:
-
 
6552
        if (value == null) {
-
 
6553
          unsetDescription();
-
 
6554
        } else {
10199
          setEx((TransactionServiceException)value);
6555
          setDescription((String)value);
10200
        }
6556
        }
10201
        break;
6557
        break;
10202
 
6558
 
10203
      }
6559
      }
10204
    }
6560
    }
Line 10207... Line 6563...
10207
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
6563
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
10208
    }
6564
    }
10209
 
6565
 
10210
    public Object getFieldValue(_Fields field) {
6566
    public Object getFieldValue(_Fields field) {
10211
      switch (field) {
6567
      switch (field) {
10212
      case SUCCESS:
6568
      case ORDER_ID:
10213
        return getSuccess();
6569
        return new Long(getOrderId());
10214
 
6570
 
10215
      case EX:
6571
      case STATUS:
10216
        return getEx();
6572
        return getStatus();
-
 
6573
 
-
 
6574
      case DESCRIPTION:
-
 
6575
        return getDescription();
10217
 
6576
 
10218
      }
6577
      }
10219
      throw new IllegalStateException();
6578
      throw new IllegalStateException();
10220
    }
6579
    }
10221
 
6580
 
Line 10224... Line 6583...
10224
    }
6583
    }
10225
 
6584
 
10226
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6585
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10227
    public boolean isSet(_Fields field) {
6586
    public boolean isSet(_Fields field) {
10228
      switch (field) {
6587
      switch (field) {
10229
      case SUCCESS:
6588
      case ORDER_ID:
10230
        return isSetSuccess();
6589
        return isSetOrderId();
10231
      case EX:
6590
      case STATUS:
10232
        return isSetEx();
6591
        return isSetStatus();
-
 
6592
      case DESCRIPTION:
-
 
6593
        return isSetDescription();
10233
      }
6594
      }
10234
      throw new IllegalStateException();
6595
      throw new IllegalStateException();
10235
    }
6596
    }
10236
 
6597
 
10237
    public boolean isSet(int fieldID) {
6598
    public boolean isSet(int fieldID) {
Line 10240... Line 6601...
10240
 
6601
 
10241
    @Override
6602
    @Override
10242
    public boolean equals(Object that) {
6603
    public boolean equals(Object that) {
10243
      if (that == null)
6604
      if (that == null)
10244
        return false;
6605
        return false;
10245
      if (that instanceof getBillingInfo_result)
6606
      if (that instanceof changeOrderStatus_args)
10246
        return this.equals((getBillingInfo_result)that);
6607
        return this.equals((changeOrderStatus_args)that);
10247
      return false;
6608
      return false;
10248
    }
6609
    }
10249
 
6610
 
10250
    public boolean equals(getBillingInfo_result that) {
6611
    public boolean equals(changeOrderStatus_args that) {
10251
      if (that == null)
6612
      if (that == null)
10252
        return false;
6613
        return false;
10253
 
6614
 
10254
      boolean this_present_success = true && this.isSetSuccess();
6615
      boolean this_present_orderId = true;
10255
      boolean that_present_success = true && that.isSetSuccess();
6616
      boolean that_present_orderId = true;
10256
      if (this_present_success || that_present_success) {
6617
      if (this_present_orderId || that_present_orderId) {
10257
        if (!(this_present_success && that_present_success))
6618
        if (!(this_present_orderId && that_present_orderId))
10258
          return false;
6619
          return false;
10259
        if (!this.success.equals(that.success))
6620
        if (this.orderId != that.orderId)
10260
          return false;
6621
          return false;
10261
      }
6622
      }
10262
 
6623
 
10263
      boolean this_present_ex = true && this.isSetEx();
6624
      boolean this_present_status = true && this.isSetStatus();
10264
      boolean that_present_ex = true && that.isSetEx();
6625
      boolean that_present_status = true && that.isSetStatus();
10265
      if (this_present_ex || that_present_ex) {
6626
      if (this_present_status || that_present_status) {
10266
        if (!(this_present_ex && that_present_ex))
6627
        if (!(this_present_status && that_present_status))
10267
          return false;
6628
          return false;
10268
        if (!this.ex.equals(that.ex))
6629
        if (!this.status.equals(that.status))
-
 
6630
          return false;
-
 
6631
      }
-
 
6632
 
-
 
6633
      boolean this_present_description = true && this.isSetDescription();
-
 
6634
      boolean that_present_description = true && that.isSetDescription();
-
 
6635
      if (this_present_description || that_present_description) {
-
 
6636
        if (!(this_present_description && that_present_description))
-
 
6637
          return false;
-
 
6638
        if (!this.description.equals(that.description))
10269
          return false;
6639
          return false;
10270
      }
6640
      }
10271
 
6641
 
10272
      return true;
6642
      return true;
10273
    }
6643
    }
Line 10275... Line 6645...
10275
    @Override
6645
    @Override
10276
    public int hashCode() {
6646
    public int hashCode() {
10277
      return 0;
6647
      return 0;
10278
    }
6648
    }
10279
 
6649
 
10280
    public void read(TProtocol iprot) throws TException {
-
 
10281
      TField field;
-
 
10282
      iprot.readStructBegin();
-
 
10283
      while (true)
-
 
10284
      {
-
 
10285
        field = iprot.readFieldBegin();
-
 
10286
        if (field.type == TType.STOP) { 
-
 
10287
          break;
-
 
10288
        }
-
 
10289
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10290
        if (fieldId == null) {
-
 
10291
          TProtocolUtil.skip(iprot, field.type);
-
 
10292
        } else {
-
 
10293
          switch (fieldId) {
-
 
10294
            case SUCCESS:
-
 
10295
              if (field.type == TType.STRUCT) {
-
 
10296
                this.success = new BillingInfo();
-
 
10297
                this.success.read(iprot);
-
 
10298
              } else { 
-
 
10299
                TProtocolUtil.skip(iprot, field.type);
-
 
10300
              }
-
 
10301
              break;
-
 
10302
            case EX:
-
 
10303
              if (field.type == TType.STRUCT) {
-
 
10304
                this.ex = new TransactionServiceException();
-
 
10305
                this.ex.read(iprot);
-
 
10306
              } else { 
-
 
10307
                TProtocolUtil.skip(iprot, field.type);
-
 
10308
              }
-
 
10309
              break;
-
 
10310
          }
-
 
10311
          iprot.readFieldEnd();
-
 
10312
        }
-
 
10313
      }
-
 
10314
      iprot.readStructEnd();
-
 
10315
      validate();
-
 
10316
    }
-
 
10317
 
-
 
10318
    public void write(TProtocol oprot) throws TException {
-
 
10319
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10320
 
-
 
10321
      if (this.isSetSuccess()) {
-
 
10322
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10323
        this.success.write(oprot);
-
 
10324
        oprot.writeFieldEnd();
-
 
10325
      } else if (this.isSetEx()) {
-
 
10326
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
10327
        this.ex.write(oprot);
-
 
10328
        oprot.writeFieldEnd();
-
 
10329
      }
-
 
10330
      oprot.writeFieldStop();
-
 
10331
      oprot.writeStructEnd();
-
 
10332
    }
-
 
10333
 
-
 
10334
    @Override
-
 
10335
    public String toString() {
-
 
10336
      StringBuilder sb = new StringBuilder("getBillingInfo_result(");
-
 
10337
      boolean first = true;
-
 
10338
 
-
 
10339
      sb.append("success:");
-
 
10340
      if (this.success == null) {
-
 
10341
        sb.append("null");
-
 
10342
      } else {
-
 
10343
        sb.append(this.success);
-
 
10344
      }
-
 
10345
      first = false;
-
 
10346
      if (!first) sb.append(", ");
-
 
10347
      sb.append("ex:");
-
 
10348
      if (this.ex == null) {
-
 
10349
        sb.append("null");
-
 
10350
      } else {
-
 
10351
        sb.append(this.ex);
-
 
10352
      }
-
 
10353
      first = false;
-
 
10354
      sb.append(")");
-
 
10355
      return sb.toString();
-
 
10356
    }
-
 
10357
 
-
 
10358
    public void validate() throws TException {
-
 
10359
      // check for required fields
-
 
10360
    }
-
 
10361
 
-
 
10362
  }
-
 
10363
 
-
 
10364
  public static class addBilling_args implements TBase<addBilling_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10365
    private static final TStruct STRUCT_DESC = new TStruct("addBilling_args");
-
 
10366
 
-
 
10367
    private static final TField TRANACTION_ID_FIELD_DESC = new TField("tranactionId", TType.I64, (short)1);
-
 
10368
    private static final TField BILLING_FIELD_DESC = new TField("billing", TType.STRUCT, (short)2);
-
 
10369
 
-
 
10370
    private long tranactionId;
-
 
10371
    private Billing billing;
-
 
10372
 
-
 
10373
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10374
    public enum _Fields implements TFieldIdEnum {
-
 
10375
      TRANACTION_ID((short)1, "tranactionId"),
-
 
10376
      BILLING((short)2, "billing");
-
 
10377
 
-
 
10378
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10379
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10380
 
-
 
10381
      static {
-
 
10382
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10383
          byId.put((int)field._thriftId, field);
-
 
10384
          byName.put(field.getFieldName(), field);
-
 
10385
        }
-
 
10386
      }
-
 
10387
 
-
 
10388
      /**
-
 
10389
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10390
       */
-
 
10391
      public static _Fields findByThriftId(int fieldId) {
-
 
10392
        return byId.get(fieldId);
-
 
10393
      }
-
 
10394
 
-
 
10395
      /**
-
 
10396
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10397
       * if it is not found.
-
 
10398
       */
-
 
10399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10400
        _Fields fields = findByThriftId(fieldId);
-
 
10401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10402
        return fields;
-
 
10403
      }
-
 
10404
 
-
 
10405
      /**
-
 
10406
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10407
       */
-
 
10408
      public static _Fields findByName(String name) {
-
 
10409
        return byName.get(name);
-
 
10410
      }
-
 
10411
 
-
 
10412
      private final short _thriftId;
-
 
10413
      private final String _fieldName;
-
 
10414
 
-
 
10415
      _Fields(short thriftId, String fieldName) {
-
 
10416
        _thriftId = thriftId;
-
 
10417
        _fieldName = fieldName;
-
 
10418
      }
-
 
10419
 
-
 
10420
      public short getThriftFieldId() {
-
 
10421
        return _thriftId;
-
 
10422
      }
-
 
10423
 
-
 
10424
      public String getFieldName() {
-
 
10425
        return _fieldName;
-
 
10426
      }
-
 
10427
    }
-
 
10428
 
-
 
10429
    // isset id assignments
-
 
10430
    private static final int __TRANACTIONID_ISSET_ID = 0;
-
 
10431
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10432
 
-
 
10433
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10434
      put(_Fields.TRANACTION_ID, new FieldMetaData("tranactionId", TFieldRequirementType.DEFAULT, 
-
 
10435
          new FieldValueMetaData(TType.I64)));
-
 
10436
      put(_Fields.BILLING, new FieldMetaData("billing", TFieldRequirementType.DEFAULT, 
-
 
10437
          new StructMetaData(TType.STRUCT, Billing.class)));
-
 
10438
    }});
-
 
10439
 
-
 
10440
    static {
-
 
10441
      FieldMetaData.addStructMetaDataMap(addBilling_args.class, metaDataMap);
-
 
10442
    }
-
 
10443
 
-
 
10444
    public addBilling_args() {
-
 
10445
    }
-
 
10446
 
-
 
10447
    public addBilling_args(
-
 
10448
      long tranactionId,
-
 
10449
      Billing billing)
-
 
10450
    {
-
 
10451
      this();
-
 
10452
      this.tranactionId = tranactionId;
-
 
10453
      setTranactionIdIsSet(true);
-
 
10454
      this.billing = billing;
-
 
10455
    }
-
 
10456
 
-
 
10457
    /**
-
 
10458
     * Performs a deep copy on <i>other</i>.
-
 
10459
     */
-
 
10460
    public addBilling_args(addBilling_args other) {
6650
    public int compareTo(changeOrderStatus_args other) {
10461
      __isset_bit_vector.clear();
-
 
10462
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10463
      this.tranactionId = other.tranactionId;
-
 
10464
      if (other.isSetBilling()) {
6651
      if (!getClass().equals(other.getClass())) {
10465
        this.billing = new Billing(other.billing);
6652
        return getClass().getName().compareTo(other.getClass().getName());
10466
      }
6653
      }
10467
    }
-
 
10468
 
6654
 
10469
    public addBilling_args deepCopy() {
-
 
10470
      return new addBilling_args(this);
-
 
10471
    }
-
 
10472
 
-
 
10473
    @Deprecated
-
 
10474
    public addBilling_args clone() {
-
 
10475
      return new addBilling_args(this);
-
 
10476
    }
-
 
10477
 
-
 
10478
    public long getTranactionId() {
-
 
10479
      return this.tranactionId;
6655
      int lastComparison = 0;
10480
    }
-
 
10481
 
-
 
10482
    public addBilling_args setTranactionId(long tranactionId) {
6656
      changeOrderStatus_args typedOther = (changeOrderStatus_args)other;
10483
      this.tranactionId = tranactionId;
-
 
10484
      setTranactionIdIsSet(true);
-
 
10485
      return this;
-
 
10486
    }
-
 
10487
 
-
 
10488
    public void unsetTranactionId() {
-
 
10489
      __isset_bit_vector.clear(__TRANACTIONID_ISSET_ID);
-
 
10490
    }
-
 
10491
 
-
 
10492
    /** Returns true if field tranactionId is set (has been asigned a value) and false otherwise */
-
 
10493
    public boolean isSetTranactionId() {
-
 
10494
      return __isset_bit_vector.get(__TRANACTIONID_ISSET_ID);
-
 
10495
    }
-
 
10496
 
-
 
10497
    public void setTranactionIdIsSet(boolean value) {
-
 
10498
      __isset_bit_vector.set(__TRANACTIONID_ISSET_ID, value);
-
 
10499
    }
-
 
10500
 
-
 
10501
    public Billing getBilling() {
-
 
10502
      return this.billing;
-
 
10503
    }
-
 
10504
 
-
 
10505
    public addBilling_args setBilling(Billing billing) {
-
 
10506
      this.billing = billing;
-
 
10507
      return this;
-
 
10508
    }
-
 
10509
 
-
 
10510
    public void unsetBilling() {
-
 
10511
      this.billing = null;
-
 
10512
    }
-
 
10513
 
-
 
10514
    /** Returns true if field billing is set (has been asigned a value) and false otherwise */
-
 
10515
    public boolean isSetBilling() {
-
 
10516
      return this.billing != null;
-
 
10517
    }
-
 
10518
 
6657
 
10519
    public void setBillingIsSet(boolean value) {
6658
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
10520
      if (!value) {
6659
      if (lastComparison != 0) {
10521
        this.billing = null;
6660
        return lastComparison;
10522
      }
6661
      }
10523
    }
-
 
10524
 
-
 
10525
    public void setFieldValue(_Fields field, Object value) {
6662
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
10526
      switch (field) {
-
 
10527
      case TRANACTION_ID:
-
 
10528
        if (value == null) {
6663
      if (lastComparison != 0) {
10529
          unsetTranactionId();
6664
        return lastComparison;
10530
        } else {
-
 
10531
          setTranactionId((Long)value);
-
 
10532
        }
-
 
10533
        break;
-
 
10534
 
-
 
10535
      case BILLING:
-
 
10536
        if (value == null) {
-
 
10537
          unsetBilling();
-
 
10538
        } else {
-
 
10539
          setBilling((Billing)value);
-
 
10540
        }
-
 
10541
        break;
-
 
10542
 
-
 
10543
      }
6665
      }
10544
    }
-
 
10545
 
-
 
10546
    public void setFieldValue(int fieldID, Object value) {
-
 
10547
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
6666
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
10548
    }
-
 
10549
 
-
 
10550
    public Object getFieldValue(_Fields field) {
-
 
10551
      switch (field) {
6667
      if (lastComparison != 0) {
10552
      case TRANACTION_ID:
-
 
10553
        return new Long(getTranactionId());
-
 
10554
 
-
 
10555
      case BILLING:
-
 
10556
        return getBilling();
6668
        return lastComparison;
10557
 
-
 
10558
      }
6669
      }
10559
      throw new IllegalStateException();
-
 
10560
    }
-
 
10561
 
-
 
10562
    public Object getFieldValue(int fieldId) {
-
 
10563
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
6670
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
10564
    }
-
 
10565
 
-
 
10566
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10567
    public boolean isSet(_Fields field) {
-
 
10568
      switch (field) {
6671
      if (lastComparison != 0) {
10569
      case TRANACTION_ID:
-
 
10570
        return isSetTranactionId();
-
 
10571
      case BILLING:
-
 
10572
        return isSetBilling();
6672
        return lastComparison;
10573
      }
6673
      }
10574
      throw new IllegalStateException();
-
 
10575
    }
-
 
10576
 
-
 
10577
    public boolean isSet(int fieldID) {
-
 
10578
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
6674
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
10579
    }
-
 
10580
 
-
 
10581
    @Override
-
 
10582
    public boolean equals(Object that) {
-
 
10583
      if (that == null)
6675
      if (lastComparison != 0) {
10584
        return false;
-
 
10585
      if (that instanceof addBilling_args)
-
 
10586
        return this.equals((addBilling_args)that);
-
 
10587
      return false;
-
 
10588
    }
-
 
10589
 
-
 
10590
    public boolean equals(addBilling_args that) {
-
 
10591
      if (that == null)
-
 
10592
        return false;
6676
        return lastComparison;
10593
 
-
 
10594
      boolean this_present_tranactionId = true;
-
 
10595
      boolean that_present_tranactionId = true;
-
 
10596
      if (this_present_tranactionId || that_present_tranactionId) {
-
 
10597
        if (!(this_present_tranactionId && that_present_tranactionId))
-
 
10598
          return false;
-
 
10599
        if (this.tranactionId != that.tranactionId)
-
 
10600
          return false;
-
 
10601
      }
6677
      }
10602
 
-
 
10603
      boolean this_present_billing = true && this.isSetBilling();
-
 
10604
      boolean that_present_billing = true && that.isSetBilling();
6678
      lastComparison = TBaseHelper.compareTo(description, typedOther.description);
10605
      if (this_present_billing || that_present_billing) {
-
 
10606
        if (!(this_present_billing && that_present_billing))
-
 
10607
          return false;
6679
      if (lastComparison != 0) {
10608
        if (!this.billing.equals(that.billing))
-
 
10609
          return false;
6680
        return lastComparison;
10610
      }
6681
      }
10611
 
-
 
10612
      return true;
-
 
10613
    }
-
 
10614
 
-
 
10615
    @Override
-
 
10616
    public int hashCode() {
-
 
10617
      return 0;
6682
      return 0;
10618
    }
6683
    }
10619
 
6684
 
10620
    public void read(TProtocol iprot) throws TException {
6685
    public void read(TProtocol iprot) throws TException {
10621
      TField field;
6686
      TField field;
Line 10629... Line 6694...
10629
        _Fields fieldId = _Fields.findByThriftId(field.id);
6694
        _Fields fieldId = _Fields.findByThriftId(field.id);
10630
        if (fieldId == null) {
6695
        if (fieldId == null) {
10631
          TProtocolUtil.skip(iprot, field.type);
6696
          TProtocolUtil.skip(iprot, field.type);
10632
        } else {
6697
        } else {
10633
          switch (fieldId) {
6698
          switch (fieldId) {
10634
            case TRANACTION_ID:
6699
            case ORDER_ID:
10635
              if (field.type == TType.I64) {
6700
              if (field.type == TType.I64) {
10636
                this.tranactionId = iprot.readI64();
6701
                this.orderId = iprot.readI64();
10637
                setTranactionIdIsSet(true);
6702
                setOrderIdIsSet(true);
10638
              } else { 
6703
              } else { 
10639
                TProtocolUtil.skip(iprot, field.type);
6704
                TProtocolUtil.skip(iprot, field.type);
10640
              }
6705
              }
10641
              break;
6706
              break;
10642
            case BILLING:
6707
            case STATUS:
10643
              if (field.type == TType.STRUCT) {
6708
              if (field.type == TType.I32) {
-
 
6709
                this.status = OrderStatus.findByValue(iprot.readI32());
-
 
6710
              } else { 
10644
                this.billing = new Billing();
6711
                TProtocolUtil.skip(iprot, field.type);
-
 
6712
              }
-
 
6713
              break;
-
 
6714
            case DESCRIPTION:
-
 
6715
              if (field.type == TType.STRING) {
10645
                this.billing.read(iprot);
6716
                this.description = iprot.readString();
10646
              } else { 
6717
              } else { 
10647
                TProtocolUtil.skip(iprot, field.type);
6718
                TProtocolUtil.skip(iprot, field.type);
10648
              }
6719
              }
10649
              break;
6720
              break;
10650
          }
6721
          }
Line 10657... Line 6728...
10657
 
6728
 
10658
    public void write(TProtocol oprot) throws TException {
6729
    public void write(TProtocol oprot) throws TException {
10659
      validate();
6730
      validate();
10660
 
6731
 
10661
      oprot.writeStructBegin(STRUCT_DESC);
6732
      oprot.writeStructBegin(STRUCT_DESC);
10662
      oprot.writeFieldBegin(TRANACTION_ID_FIELD_DESC);
6733
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
10663
      oprot.writeI64(this.tranactionId);
6734
      oprot.writeI64(this.orderId);
10664
      oprot.writeFieldEnd();
6735
      oprot.writeFieldEnd();
10665
      if (this.billing != null) {
6736
      if (this.status != null) {
10666
        oprot.writeFieldBegin(BILLING_FIELD_DESC);
6737
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
6738
        oprot.writeI32(this.status.getValue());
-
 
6739
        oprot.writeFieldEnd();
-
 
6740
      }
-
 
6741
      if (this.description != null) {
-
 
6742
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
10667
        this.billing.write(oprot);
6743
        oprot.writeString(this.description);
10668
        oprot.writeFieldEnd();
6744
        oprot.writeFieldEnd();
10669
      }
6745
      }
10670
      oprot.writeFieldStop();
6746
      oprot.writeFieldStop();
10671
      oprot.writeStructEnd();
6747
      oprot.writeStructEnd();
10672
    }
6748
    }
10673
 
6749
 
10674
    @Override
6750
    @Override
10675
    public String toString() {
6751
    public String toString() {
10676
      StringBuilder sb = new StringBuilder("addBilling_args(");
6752
      StringBuilder sb = new StringBuilder("changeOrderStatus_args(");
10677
      boolean first = true;
6753
      boolean first = true;
10678
 
6754
 
10679
      sb.append("tranactionId:");
6755
      sb.append("orderId:");
10680
      sb.append(this.tranactionId);
6756
      sb.append(this.orderId);
-
 
6757
      first = false;
-
 
6758
      if (!first) sb.append(", ");
-
 
6759
      sb.append("status:");
-
 
6760
      if (this.status == null) {
-
 
6761
        sb.append("null");
-
 
6762
      } else {
-
 
6763
        String status_name = status.name();
-
 
6764
        if (status_name != null) {
-
 
6765
          sb.append(status_name);
-
 
6766
          sb.append(" (");
-
 
6767
        }
-
 
6768
        sb.append(this.status);
-
 
6769
        if (status_name != null) {
-
 
6770
          sb.append(")");
-
 
6771
        }
-
 
6772
      }
10681
      first = false;
6773
      first = false;
10682
      if (!first) sb.append(", ");
6774
      if (!first) sb.append(", ");
10683
      sb.append("billing:");
6775
      sb.append("description:");
10684
      if (this.billing == null) {
6776
      if (this.description == null) {
10685
        sb.append("null");
6777
        sb.append("null");
10686
      } else {
6778
      } else {
10687
        sb.append(this.billing);
6779
        sb.append(this.description);
10688
      }
6780
      }
10689
      first = false;
6781
      first = false;
10690
      sb.append(")");
6782
      sb.append(")");
10691
      return sb.toString();
6783
      return sb.toString();
10692
    }
6784
    }
Line 10695... Line 6787...
10695
      // check for required fields
6787
      // check for required fields
10696
    }
6788
    }
10697
 
6789
 
10698
  }
6790
  }
10699
 
6791
 
10700
  public static class addBilling_result implements TBase<addBilling_result._Fields>, java.io.Serializable, Cloneable, Comparable<addBilling_result>   {
6792
  public static class changeOrderStatus_result implements TBase<changeOrderStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<changeOrderStatus_result>   {
10701
    private static final TStruct STRUCT_DESC = new TStruct("addBilling_result");
6793
    private static final TStruct STRUCT_DESC = new TStruct("changeOrderStatus_result");
10702
 
6794
 
10703
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
6795
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
10704
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
6796
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
10705
 
6797
 
10706
    private boolean success;
6798
    private boolean success;
Line 10772... Line 6864...
10772
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
6864
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
10773
          new FieldValueMetaData(TType.STRUCT)));
6865
          new FieldValueMetaData(TType.STRUCT)));
10774
    }});
6866
    }});
10775
 
6867
 
10776
    static {
6868
    static {
10777
      FieldMetaData.addStructMetaDataMap(addBilling_result.class, metaDataMap);
6869
      FieldMetaData.addStructMetaDataMap(changeOrderStatus_result.class, metaDataMap);
10778
    }
6870
    }
10779
 
6871
 
10780
    public addBilling_result() {
6872
    public changeOrderStatus_result() {
10781
    }
6873
    }
10782
 
6874
 
10783
    public addBilling_result(
6875
    public changeOrderStatus_result(
10784
      boolean success,
6876
      boolean success,
10785
      TransactionServiceException ex)
6877
      TransactionServiceException ex)
10786
    {
6878
    {
10787
      this();
6879
      this();
10788
      this.success = success;
6880
      this.success = success;
Line 10791... Line 6883...
10791
    }
6883
    }
10792
 
6884
 
10793
    /**
6885
    /**
10794
     * Performs a deep copy on <i>other</i>.
6886
     * Performs a deep copy on <i>other</i>.
10795
     */
6887
     */
10796
    public addBilling_result(addBilling_result other) {
6888
    public changeOrderStatus_result(changeOrderStatus_result other) {
10797
      __isset_bit_vector.clear();
6889
      __isset_bit_vector.clear();
10798
      __isset_bit_vector.or(other.__isset_bit_vector);
6890
      __isset_bit_vector.or(other.__isset_bit_vector);
10799
      this.success = other.success;
6891
      this.success = other.success;
10800
      if (other.isSetEx()) {
6892
      if (other.isSetEx()) {
10801
        this.ex = new TransactionServiceException(other.ex);
6893
        this.ex = new TransactionServiceException(other.ex);
10802
      }
6894
      }
10803
    }
6895
    }
10804
 
6896
 
10805
    public addBilling_result deepCopy() {
6897
    public changeOrderStatus_result deepCopy() {
10806
      return new addBilling_result(this);
6898
      return new changeOrderStatus_result(this);
10807
    }
6899
    }
10808
 
6900
 
10809
    @Deprecated
6901
    @Deprecated
10810
    public addBilling_result clone() {
6902
    public changeOrderStatus_result clone() {
10811
      return new addBilling_result(this);
6903
      return new changeOrderStatus_result(this);
10812
    }
6904
    }
10813
 
6905
 
10814
    public boolean isSuccess() {
6906
    public boolean isSuccess() {
10815
      return this.success;
6907
      return this.success;
10816
    }
6908
    }
10817
 
6909
 
10818
    public addBilling_result setSuccess(boolean success) {
6910
    public changeOrderStatus_result setSuccess(boolean success) {
10819
      this.success = success;
6911
      this.success = success;
10820
      setSuccessIsSet(true);
6912
      setSuccessIsSet(true);
10821
      return this;
6913
      return this;
10822
    }
6914
    }
10823
 
6915
 
Line 10836... Line 6928...
10836
 
6928
 
10837
    public TransactionServiceException getEx() {
6929
    public TransactionServiceException getEx() {
10838
      return this.ex;
6930
      return this.ex;
10839
    }
6931
    }
10840
 
6932
 
10841
    public addBilling_result setEx(TransactionServiceException ex) {
6933
    public changeOrderStatus_result setEx(TransactionServiceException ex) {
10842
      this.ex = ex;
6934
      this.ex = ex;
10843
      return this;
6935
      return this;
10844
    }
6936
    }
10845
 
6937
 
10846
    public void unsetEx() {
6938
    public void unsetEx() {
Line 10916... Line 7008...
10916
 
7008
 
10917
    @Override
7009
    @Override
10918
    public boolean equals(Object that) {
7010
    public boolean equals(Object that) {
10919
      if (that == null)
7011
      if (that == null)
10920
        return false;
7012
        return false;
10921
      if (that instanceof addBilling_result)
7013
      if (that instanceof changeOrderStatus_result)
10922
        return this.equals((addBilling_result)that);
7014
        return this.equals((changeOrderStatus_result)that);
10923
      return false;
7015
      return false;
10924
    }
7016
    }
10925
 
7017
 
10926
    public boolean equals(addBilling_result that) {
7018
    public boolean equals(changeOrderStatus_result that) {
10927
      if (that == null)
7019
      if (that == null)
10928
        return false;
7020
        return false;
10929
 
7021
 
10930
      boolean this_present_success = true;
7022
      boolean this_present_success = true;
10931
      boolean that_present_success = true;
7023
      boolean that_present_success = true;
Line 10951... Line 7043...
10951
    @Override
7043
    @Override
10952
    public int hashCode() {
7044
    public int hashCode() {
10953
      return 0;
7045
      return 0;
10954
    }
7046
    }
10955
 
7047
 
10956
    public int compareTo(addBilling_result other) {
7048
    public int compareTo(changeOrderStatus_result other) {
10957
      if (!getClass().equals(other.getClass())) {
7049
      if (!getClass().equals(other.getClass())) {
10958
        return getClass().getName().compareTo(other.getClass().getName());
7050
        return getClass().getName().compareTo(other.getClass().getName());
10959
      }
7051
      }
10960
 
7052
 
10961
      int lastComparison = 0;
7053
      int lastComparison = 0;
10962
      addBilling_result typedOther = (addBilling_result)other;
7054
      changeOrderStatus_result typedOther = (changeOrderStatus_result)other;
10963
 
7055
 
10964
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7056
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10965
      if (lastComparison != 0) {
7057
      if (lastComparison != 0) {
10966
        return lastComparison;
7058
        return lastComparison;
10967
      }
7059
      }
Line 11034... Line 7126...
11034
      oprot.writeStructEnd();
7126
      oprot.writeStructEnd();
11035
    }
7127
    }
11036
 
7128
 
11037
    @Override
7129
    @Override
11038
    public String toString() {
7130
    public String toString() {
11039
      StringBuilder sb = new StringBuilder("addBilling_result(");
7131
      StringBuilder sb = new StringBuilder("changeOrderStatus_result(");
11040
      boolean first = true;
7132
      boolean first = true;
11041
 
7133
 
11042
      sb.append("success:");
7134
      sb.append("success:");
11043
      sb.append(this.success);
7135
      sb.append(this.success);
11044
      first = false;
7136
      first = false;
Line 11058... Line 7150...
11058
      // check for required fields
7150
      // check for required fields
11059
    }
7151
    }
11060
 
7152
 
11061
  }
7153
  }
11062
 
7154
 
11063
  public static class setShippingTracker_args implements TBase<setShippingTracker_args._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingTracker_args>   {
7155
  public static class getOrdersForTransaction_args implements TBase<getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForTransaction_args>   {
11064
    private static final TStruct STRUCT_DESC = new TStruct("setShippingTracker_args");
7156
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForTransaction_args");
11065
 
7157
 
11066
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
7158
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
11067
    private static final TField SHIPPING_ID_FIELD_DESC = new TField("shippingId", TType.I64, (short)2);
-
 
11068
    private static final TField TRACKING_ID_FIELD_DESC = new TField("trackingId", TType.STRING, (short)3);
-
 
11069
    private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)4);
-
 
11070
    private static final TField PROVIDER_FIELD_DESC = new TField("provider", TType.STRING, (short)5);
-
 
11071
 
7159
 
11072
    private long transactionId;
7160
    private long transactionId;
11073
    private long shippingId;
-
 
11074
    private String trackingId;
-
 
11075
    private String airwayBillNo;
-
 
11076
    private String provider;
-
 
11077
 
7161
 
11078
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11079
    public enum _Fields implements TFieldIdEnum {
7163
    public enum _Fields implements TFieldIdEnum {
11080
      TRANSACTION_ID((short)1, "transactionId"),
7164
      TRANSACTION_ID((short)1, "transactionId");
11081
      SHIPPING_ID((short)2, "shippingId"),
-
 
11082
      TRACKING_ID((short)3, "trackingId"),
-
 
11083
      AIRWAY_BILL_NO((short)4, "airwayBillNo"),
-
 
11084
      PROVIDER((short)5, "provider");
-
 
11085
 
7165
 
11086
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
7166
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
11087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11088
 
7168
 
11089
      static {
7169
      static {
Line 11134... Line 7214...
11134
      }
7214
      }
11135
    }
7215
    }
11136
 
7216
 
11137
    // isset id assignments
7217
    // isset id assignments
11138
    private static final int __TRANSACTIONID_ISSET_ID = 0;
7218
    private static final int __TRANSACTIONID_ISSET_ID = 0;
11139
    private static final int __SHIPPINGID_ISSET_ID = 1;
-
 
11140
    private BitSet __isset_bit_vector = new BitSet(2);
7219
    private BitSet __isset_bit_vector = new BitSet(1);
11141
 
7220
 
11142
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7221
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11143
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
7222
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
11144
          new FieldValueMetaData(TType.I64)));
7223
          new FieldValueMetaData(TType.I64)));
11145
      put(_Fields.SHIPPING_ID, new FieldMetaData("shippingId", TFieldRequirementType.DEFAULT, 
-
 
11146
          new FieldValueMetaData(TType.I64)));
-
 
11147
      put(_Fields.TRACKING_ID, new FieldMetaData("trackingId", TFieldRequirementType.DEFAULT, 
-
 
11148
          new FieldValueMetaData(TType.STRING)));
-
 
11149
      put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.DEFAULT, 
-
 
11150
          new FieldValueMetaData(TType.STRING)));
-
 
11151
      put(_Fields.PROVIDER, new FieldMetaData("provider", TFieldRequirementType.DEFAULT, 
-
 
11152
          new FieldValueMetaData(TType.STRING)));
-
 
11153
    }});
7224
    }});
11154
 
7225
 
11155
    static {
7226
    static {
11156
      FieldMetaData.addStructMetaDataMap(setShippingTracker_args.class, metaDataMap);
7227
      FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_args.class, metaDataMap);
11157
    }
7228
    }
11158
 
7229
 
11159
    public setShippingTracker_args() {
7230
    public getOrdersForTransaction_args() {
11160
    }
7231
    }
11161
 
7232
 
11162
    public setShippingTracker_args(
7233
    public getOrdersForTransaction_args(
11163
      long transactionId,
7234
      long transactionId)
11164
      long shippingId,
-
 
11165
      String trackingId,
-
 
11166
      String airwayBillNo,
-
 
11167
      String provider)
-
 
11168
    {
7235
    {
11169
      this();
7236
      this();
11170
      this.transactionId = transactionId;
7237
      this.transactionId = transactionId;
11171
      setTransactionIdIsSet(true);
7238
      setTransactionIdIsSet(true);
11172
      this.shippingId = shippingId;
-
 
11173
      setShippingIdIsSet(true);
-
 
11174
      this.trackingId = trackingId;
-
 
11175
      this.airwayBillNo = airwayBillNo;
-
 
11176
      this.provider = provider;
-
 
11177
    }
7239
    }
11178
 
7240
 
11179
    /**
7241
    /**
11180
     * Performs a deep copy on <i>other</i>.
7242
     * Performs a deep copy on <i>other</i>.
11181
     */
7243
     */
11182
    public setShippingTracker_args(setShippingTracker_args other) {
7244
    public getOrdersForTransaction_args(getOrdersForTransaction_args other) {
11183
      __isset_bit_vector.clear();
7245
      __isset_bit_vector.clear();
11184
      __isset_bit_vector.or(other.__isset_bit_vector);
7246
      __isset_bit_vector.or(other.__isset_bit_vector);
11185
      this.transactionId = other.transactionId;
7247
      this.transactionId = other.transactionId;
11186
      this.shippingId = other.shippingId;
-
 
11187
      if (other.isSetTrackingId()) {
-
 
11188
        this.trackingId = other.trackingId;
-
 
11189
      }
-
 
11190
      if (other.isSetAirwayBillNo()) {
-
 
11191
        this.airwayBillNo = other.airwayBillNo;
-
 
11192
      }
-
 
11193
      if (other.isSetProvider()) {
-
 
11194
        this.provider = other.provider;
-
 
11195
      }
-
 
11196
    }
7248
    }
11197
 
7249
 
11198
    public setShippingTracker_args deepCopy() {
7250
    public getOrdersForTransaction_args deepCopy() {
11199
      return new setShippingTracker_args(this);
7251
      return new getOrdersForTransaction_args(this);
11200
    }
7252
    }
11201
 
7253
 
11202
    @Deprecated
7254
    @Deprecated
11203
    public setShippingTracker_args clone() {
7255
    public getOrdersForTransaction_args clone() {
11204
      return new setShippingTracker_args(this);
7256
      return new getOrdersForTransaction_args(this);
11205
    }
7257
    }
11206
 
7258
 
11207
    public long getTransactionId() {
7259
    public long getTransactionId() {
11208
      return this.transactionId;
7260
      return this.transactionId;
11209
    }
7261
    }
11210
 
7262
 
11211
    public setShippingTracker_args setTransactionId(long transactionId) {
7263
    public getOrdersForTransaction_args setTransactionId(long transactionId) {
11212
      this.transactionId = transactionId;
7264
      this.transactionId = transactionId;
11213
      setTransactionIdIsSet(true);
7265
      setTransactionIdIsSet(true);
11214
      return this;
7266
      return this;
11215
    }
7267
    }
11216
 
7268
 
Line 11225... Line 7277...
11225
 
7277
 
11226
    public void setTransactionIdIsSet(boolean value) {
7278
    public void setTransactionIdIsSet(boolean value) {
11227
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
7279
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
11228
    }
7280
    }
11229
 
7281
 
11230
    public long getShippingId() {
-
 
11231
      return this.shippingId;
-
 
11232
    }
-
 
11233
 
-
 
11234
    public setShippingTracker_args setShippingId(long shippingId) {
-
 
11235
      this.shippingId = shippingId;
-
 
11236
      setShippingIdIsSet(true);
-
 
11237
      return this;
-
 
11238
    }
-
 
11239
 
-
 
11240
    public void unsetShippingId() {
-
 
11241
      __isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);
-
 
11242
    }
-
 
11243
 
-
 
11244
    /** Returns true if field shippingId is set (has been asigned a value) and false otherwise */
-
 
11245
    public boolean isSetShippingId() {
-
 
11246
      return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);
-
 
11247
    }
-
 
11248
 
-
 
11249
    public void setShippingIdIsSet(boolean value) {
-
 
11250
      __isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);
-
 
11251
    }
-
 
11252
 
-
 
11253
    public String getTrackingId() {
-
 
11254
      return this.trackingId;
-
 
11255
    }
-
 
11256
 
-
 
11257
    public setShippingTracker_args setTrackingId(String trackingId) {
-
 
11258
      this.trackingId = trackingId;
-
 
11259
      return this;
-
 
11260
    }
-
 
11261
 
-
 
11262
    public void unsetTrackingId() {
-
 
11263
      this.trackingId = null;
-
 
11264
    }
-
 
11265
 
-
 
11266
    /** Returns true if field trackingId is set (has been asigned a value) and false otherwise */
-
 
11267
    public boolean isSetTrackingId() {
-
 
11268
      return this.trackingId != null;
-
 
11269
    }
-
 
11270
 
-
 
11271
    public void setTrackingIdIsSet(boolean value) {
-
 
11272
      if (!value) {
-
 
11273
        this.trackingId = null;
-
 
11274
      }
-
 
11275
    }
-
 
11276
 
-
 
11277
    public String getAirwayBillNo() {
-
 
11278
      return this.airwayBillNo;
-
 
11279
    }
-
 
11280
 
-
 
11281
    public setShippingTracker_args setAirwayBillNo(String airwayBillNo) {
-
 
11282
      this.airwayBillNo = airwayBillNo;
-
 
11283
      return this;
-
 
11284
    }
-
 
11285
 
-
 
11286
    public void unsetAirwayBillNo() {
-
 
11287
      this.airwayBillNo = null;
-
 
11288
    }
-
 
11289
 
-
 
11290
    /** Returns true if field airwayBillNo is set (has been asigned a value) and false otherwise */
-
 
11291
    public boolean isSetAirwayBillNo() {
-
 
11292
      return this.airwayBillNo != null;
-
 
11293
    }
-
 
11294
 
-
 
11295
    public void setAirwayBillNoIsSet(boolean value) {
-
 
11296
      if (!value) {
-
 
11297
        this.airwayBillNo = null;
-
 
11298
      }
-
 
11299
    }
-
 
11300
 
-
 
11301
    public String getProvider() {
-
 
11302
      return this.provider;
-
 
11303
    }
-
 
11304
 
-
 
11305
    public setShippingTracker_args setProvider(String provider) {
-
 
11306
      this.provider = provider;
-
 
11307
      return this;
-
 
11308
    }
-
 
11309
 
-
 
11310
    public void unsetProvider() {
-
 
11311
      this.provider = null;
-
 
11312
    }
-
 
11313
 
-
 
11314
    /** Returns true if field provider is set (has been asigned a value) and false otherwise */
-
 
11315
    public boolean isSetProvider() {
-
 
11316
      return this.provider != null;
-
 
11317
    }
-
 
11318
 
-
 
11319
    public void setProviderIsSet(boolean value) {
-
 
11320
      if (!value) {
-
 
11321
        this.provider = null;
-
 
11322
      }
-
 
11323
    }
-
 
11324
 
-
 
11325
    public void setFieldValue(_Fields field, Object value) {
7282
    public void setFieldValue(_Fields field, Object value) {
11326
      switch (field) {
7283
      switch (field) {
11327
      case TRANSACTION_ID:
7284
      case TRANSACTION_ID:
11328
        if (value == null) {
7285
        if (value == null) {
11329
          unsetTransactionId();
7286
          unsetTransactionId();
11330
        } else {
7287
        } else {
11331
          setTransactionId((Long)value);
7288
          setTransactionId((Long)value);
11332
        }
7289
        }
11333
        break;
7290
        break;
11334
 
7291
 
11335
      case SHIPPING_ID:
-
 
11336
        if (value == null) {
-
 
11337
          unsetShippingId();
-
 
11338
        } else {
-
 
11339
          setShippingId((Long)value);
-
 
11340
        }
-
 
11341
        break;
-
 
11342
 
-
 
11343
      case TRACKING_ID:
-
 
11344
        if (value == null) {
-
 
11345
          unsetTrackingId();
-
 
11346
        } else {
-
 
11347
          setTrackingId((String)value);
-
 
11348
        }
-
 
11349
        break;
-
 
11350
 
-
 
11351
      case AIRWAY_BILL_NO:
-
 
11352
        if (value == null) {
-
 
11353
          unsetAirwayBillNo();
-
 
11354
        } else {
-
 
11355
          setAirwayBillNo((String)value);
-
 
11356
        }
-
 
11357
        break;
-
 
11358
 
-
 
11359
      case PROVIDER:
-
 
11360
        if (value == null) {
-
 
11361
          unsetProvider();
-
 
11362
        } else {
-
 
11363
          setProvider((String)value);
-
 
11364
        }
-
 
11365
        break;
-
 
11366
 
-
 
11367
      }
7292
      }
11368
    }
7293
    }
11369
 
7294
 
11370
    public void setFieldValue(int fieldID, Object value) {
7295
    public void setFieldValue(int fieldID, Object value) {
11371
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
7296
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 11374... Line 7299...
11374
    public Object getFieldValue(_Fields field) {
7299
    public Object getFieldValue(_Fields field) {
11375
      switch (field) {
7300
      switch (field) {
11376
      case TRANSACTION_ID:
7301
      case TRANSACTION_ID:
11377
        return new Long(getTransactionId());
7302
        return new Long(getTransactionId());
11378
 
7303
 
11379
      case SHIPPING_ID:
-
 
11380
        return new Long(getShippingId());
-
 
11381
 
-
 
11382
      case TRACKING_ID:
-
 
11383
        return getTrackingId();
-
 
11384
 
-
 
11385
      case AIRWAY_BILL_NO:
-
 
11386
        return getAirwayBillNo();
-
 
11387
 
-
 
11388
      case PROVIDER:
-
 
11389
        return getProvider();
-
 
11390
 
-
 
11391
      }
7304
      }
11392
      throw new IllegalStateException();
7305
      throw new IllegalStateException();
11393
    }
7306
    }
11394
 
7307
 
11395
    public Object getFieldValue(int fieldId) {
7308
    public Object getFieldValue(int fieldId) {
Line 11399... Line 7312...
11399
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7312
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11400
    public boolean isSet(_Fields field) {
7313
    public boolean isSet(_Fields field) {
11401
      switch (field) {
7314
      switch (field) {
11402
      case TRANSACTION_ID:
7315
      case TRANSACTION_ID:
11403
        return isSetTransactionId();
7316
        return isSetTransactionId();
11404
      case SHIPPING_ID:
-
 
11405
        return isSetShippingId();
-
 
11406
      case TRACKING_ID:
-
 
11407
        return isSetTrackingId();
-
 
11408
      case AIRWAY_BILL_NO:
-
 
11409
        return isSetAirwayBillNo();
-
 
11410
      case PROVIDER:
-
 
11411
        return isSetProvider();
-
 
11412
      }
7317
      }
11413
      throw new IllegalStateException();
7318
      throw new IllegalStateException();
11414
    }
7319
    }
11415
 
7320
 
11416
    public boolean isSet(int fieldID) {
7321
    public boolean isSet(int fieldID) {
Line 11419... Line 7324...
11419
 
7324
 
11420
    @Override
7325
    @Override
11421
    public boolean equals(Object that) {
7326
    public boolean equals(Object that) {
11422
      if (that == null)
7327
      if (that == null)
11423
        return false;
7328
        return false;
11424
      if (that instanceof setShippingTracker_args)
7329
      if (that instanceof getOrdersForTransaction_args)
11425
        return this.equals((setShippingTracker_args)that);
7330
        return this.equals((getOrdersForTransaction_args)that);
11426
      return false;
7331
      return false;
11427
    }
7332
    }
11428
 
7333
 
11429
    public boolean equals(setShippingTracker_args that) {
7334
    public boolean equals(getOrdersForTransaction_args that) {
11430
      if (that == null)
7335
      if (that == null)
11431
        return false;
7336
        return false;
11432
 
7337
 
11433
      boolean this_present_transactionId = true;
7338
      boolean this_present_transactionId = true;
11434
      boolean that_present_transactionId = true;
7339
      boolean that_present_transactionId = true;
Line 11437... Line 7342...
11437
          return false;
7342
          return false;
11438
        if (this.transactionId != that.transactionId)
7343
        if (this.transactionId != that.transactionId)
11439
          return false;
7344
          return false;
11440
      }
7345
      }
11441
 
7346
 
11442
      boolean this_present_shippingId = true;
-
 
11443
      boolean that_present_shippingId = true;
-
 
11444
      if (this_present_shippingId || that_present_shippingId) {
-
 
11445
        if (!(this_present_shippingId && that_present_shippingId))
-
 
11446
          return false;
-
 
11447
        if (this.shippingId != that.shippingId)
-
 
11448
          return false;
-
 
11449
      }
-
 
11450
 
-
 
11451
      boolean this_present_trackingId = true && this.isSetTrackingId();
-
 
11452
      boolean that_present_trackingId = true && that.isSetTrackingId();
-
 
11453
      if (this_present_trackingId || that_present_trackingId) {
-
 
11454
        if (!(this_present_trackingId && that_present_trackingId))
-
 
11455
          return false;
-
 
11456
        if (!this.trackingId.equals(that.trackingId))
-
 
11457
          return false;
-
 
11458
      }
-
 
11459
 
-
 
11460
      boolean this_present_airwayBillNo = true && this.isSetAirwayBillNo();
-
 
11461
      boolean that_present_airwayBillNo = true && that.isSetAirwayBillNo();
-
 
11462
      if (this_present_airwayBillNo || that_present_airwayBillNo) {
-
 
11463
        if (!(this_present_airwayBillNo && that_present_airwayBillNo))
-
 
11464
          return false;
-
 
11465
        if (!this.airwayBillNo.equals(that.airwayBillNo))
-
 
11466
          return false;
-
 
11467
      }
-
 
11468
 
-
 
11469
      boolean this_present_provider = true && this.isSetProvider();
-
 
11470
      boolean that_present_provider = true && that.isSetProvider();
-
 
11471
      if (this_present_provider || that_present_provider) {
-
 
11472
        if (!(this_present_provider && that_present_provider))
-
 
11473
          return false;
-
 
11474
        if (!this.provider.equals(that.provider))
-
 
11475
          return false;
-
 
11476
      }
-
 
11477
 
-
 
11478
      return true;
7347
      return true;
11479
    }
7348
    }
11480
 
7349
 
11481
    @Override
7350
    @Override
11482
    public int hashCode() {
7351
    public int hashCode() {
11483
      return 0;
7352
      return 0;
11484
    }
7353
    }
11485
 
7354
 
11486
    public int compareTo(setShippingTracker_args other) {
7355
    public int compareTo(getOrdersForTransaction_args other) {
11487
      if (!getClass().equals(other.getClass())) {
7356
      if (!getClass().equals(other.getClass())) {
11488
        return getClass().getName().compareTo(other.getClass().getName());
7357
        return getClass().getName().compareTo(other.getClass().getName());
11489
      }
7358
      }
11490
 
7359
 
11491
      int lastComparison = 0;
7360
      int lastComparison = 0;
11492
      setShippingTracker_args typedOther = (setShippingTracker_args)other;
7361
      getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;
11493
 
7362
 
11494
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
7363
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
11495
      if (lastComparison != 0) {
7364
      if (lastComparison != 0) {
11496
        return lastComparison;
7365
        return lastComparison;
11497
      }
7366
      }
11498
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
7367
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
11499
      if (lastComparison != 0) {
7368
      if (lastComparison != 0) {
11500
        return lastComparison;
7369
        return lastComparison;
11501
      }
7370
      }
11502
      lastComparison = Boolean.valueOf(isSetShippingId()).compareTo(isSetShippingId());
-
 
11503
      if (lastComparison != 0) {
-
 
11504
        return lastComparison;
-
 
11505
      }
-
 
11506
      lastComparison = TBaseHelper.compareTo(shippingId, typedOther.shippingId);
-
 
11507
      if (lastComparison != 0) {
-
 
11508
        return lastComparison;
-
 
11509
      }
-
 
11510
      lastComparison = Boolean.valueOf(isSetTrackingId()).compareTo(isSetTrackingId());
-
 
11511
      if (lastComparison != 0) {
-
 
11512
        return lastComparison;
-
 
11513
      }
-
 
11514
      lastComparison = TBaseHelper.compareTo(trackingId, typedOther.trackingId);
-
 
11515
      if (lastComparison != 0) {
-
 
11516
        return lastComparison;
-
 
11517
      }
-
 
11518
      lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(isSetAirwayBillNo());
-
 
11519
      if (lastComparison != 0) {
-
 
11520
        return lastComparison;
-
 
11521
      }
-
 
11522
      lastComparison = TBaseHelper.compareTo(airwayBillNo, typedOther.airwayBillNo);
-
 
11523
      if (lastComparison != 0) {
-
 
11524
        return lastComparison;
-
 
11525
      }
-
 
11526
      lastComparison = Boolean.valueOf(isSetProvider()).compareTo(isSetProvider());
-
 
11527
      if (lastComparison != 0) {
-
 
11528
        return lastComparison;
-
 
11529
      }
-
 
11530
      lastComparison = TBaseHelper.compareTo(provider, typedOther.provider);
-
 
11531
      if (lastComparison != 0) {
-
 
11532
        return lastComparison;
-
 
11533
      }
-
 
11534
      return 0;
7371
      return 0;
11535
    }
7372
    }
11536
 
7373
 
11537
    public void read(TProtocol iprot) throws TException {
7374
    public void read(TProtocol iprot) throws TException {
11538
      TField field;
7375
      TField field;
Line 11554... Line 7391...
11554
                setTransactionIdIsSet(true);
7391
                setTransactionIdIsSet(true);
11555
              } else { 
7392
              } else { 
11556
                TProtocolUtil.skip(iprot, field.type);
7393
                TProtocolUtil.skip(iprot, field.type);
11557
              }
7394
              }
11558
              break;
7395
              break;
11559
            case SHIPPING_ID:
-
 
11560
              if (field.type == TType.I64) {
-
 
11561
                this.shippingId = iprot.readI64();
-
 
11562
                setShippingIdIsSet(true);
-
 
11563
              } else { 
-
 
11564
                TProtocolUtil.skip(iprot, field.type);
-
 
11565
              }
-
 
11566
              break;
-
 
11567
            case TRACKING_ID:
-
 
11568
              if (field.type == TType.STRING) {
-
 
11569
                this.trackingId = iprot.readString();
-
 
11570
              } else { 
-
 
11571
                TProtocolUtil.skip(iprot, field.type);
-
 
11572
              }
-
 
11573
              break;
-
 
11574
            case AIRWAY_BILL_NO:
-
 
11575
              if (field.type == TType.STRING) {
-
 
11576
                this.airwayBillNo = iprot.readString();
-
 
11577
              } else { 
-
 
11578
                TProtocolUtil.skip(iprot, field.type);
-
 
11579
              }
-
 
11580
              break;
-
 
11581
            case PROVIDER:
-
 
11582
              if (field.type == TType.STRING) {
-
 
11583
                this.provider = iprot.readString();
-
 
11584
              } else { 
-
 
11585
                TProtocolUtil.skip(iprot, field.type);
-
 
11586
              }
-
 
11587
              break;
-
 
11588
          }
7396
          }
11589
          iprot.readFieldEnd();
7397
          iprot.readFieldEnd();
11590
        }
7398
        }
11591
      }
7399
      }
11592
      iprot.readStructEnd();
7400
      iprot.readStructEnd();
Line 11598... Line 7406...
11598
 
7406
 
11599
      oprot.writeStructBegin(STRUCT_DESC);
7407
      oprot.writeStructBegin(STRUCT_DESC);
11600
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
7408
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
11601
      oprot.writeI64(this.transactionId);
7409
      oprot.writeI64(this.transactionId);
11602
      oprot.writeFieldEnd();
7410
      oprot.writeFieldEnd();
11603
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
-
 
11604
      oprot.writeI64(this.shippingId);
-
 
11605
      oprot.writeFieldEnd();
-
 
11606
      if (this.trackingId != null) {
-
 
11607
        oprot.writeFieldBegin(TRACKING_ID_FIELD_DESC);
-
 
11608
        oprot.writeString(this.trackingId);
-
 
11609
        oprot.writeFieldEnd();
-
 
11610
      }
-
 
11611
      if (this.airwayBillNo != null) {
-
 
11612
        oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
-
 
11613
        oprot.writeString(this.airwayBillNo);
-
 
11614
        oprot.writeFieldEnd();
-
 
11615
      }
-
 
11616
      if (this.provider != null) {
-
 
11617
        oprot.writeFieldBegin(PROVIDER_FIELD_DESC);
-
 
11618
        oprot.writeString(this.provider);
-
 
11619
        oprot.writeFieldEnd();
-
 
11620
      }
-
 
11621
      oprot.writeFieldStop();
7411
      oprot.writeFieldStop();
11622
      oprot.writeStructEnd();
7412
      oprot.writeStructEnd();
11623
    }
7413
    }
11624
 
7414
 
11625
    @Override
7415
    @Override
11626
    public String toString() {
7416
    public String toString() {
11627
      StringBuilder sb = new StringBuilder("setShippingTracker_args(");
7417
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");
11628
      boolean first = true;
7418
      boolean first = true;
11629
 
7419
 
11630
      sb.append("transactionId:");
7420
      sb.append("transactionId:");
11631
      sb.append(this.transactionId);
7421
      sb.append(this.transactionId);
11632
      first = false;
7422
      first = false;
11633
      if (!first) sb.append(", ");
-
 
11634
      sb.append("shippingId:");
-
 
11635
      sb.append(this.shippingId);
-
 
11636
      first = false;
-
 
11637
      if (!first) sb.append(", ");
-
 
11638
      sb.append("trackingId:");
-
 
11639
      if (this.trackingId == null) {
-
 
11640
        sb.append("null");
-
 
11641
      } else {
-
 
11642
        sb.append(this.trackingId);
-
 
11643
      }
-
 
11644
      first = false;
-
 
11645
      if (!first) sb.append(", ");
-
 
11646
      sb.append("airwayBillNo:");
-
 
11647
      if (this.airwayBillNo == null) {
-
 
11648
        sb.append("null");
-
 
11649
      } else {
-
 
11650
        sb.append(this.airwayBillNo);
-
 
11651
      }
-
 
11652
      first = false;
-
 
11653
      if (!first) sb.append(", ");
-
 
11654
      sb.append("provider:");
-
 
11655
      if (this.provider == null) {
-
 
11656
        sb.append("null");
-
 
11657
      } else {
-
 
11658
        sb.append(this.provider);
-
 
11659
      }
-
 
11660
      first = false;
-
 
11661
      sb.append(")");
7423
      sb.append(")");
11662
      return sb.toString();
7424
      return sb.toString();
11663
    }
7425
    }
11664
 
7426
 
11665
    public void validate() throws TException {
7427
    public void validate() throws TException {
11666
      // check for required fields
7428
      // check for required fields
11667
    }
7429
    }
11668
 
7430
 
11669
  }
7431
  }
11670
 
7432
 
11671
  public static class setShippingTracker_result implements TBase<setShippingTracker_result._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingTracker_result>   {
7433
  public static class getOrdersForTransaction_result implements TBase<getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForTransaction_result>   {
11672
    private static final TStruct STRUCT_DESC = new TStruct("setShippingTracker_result");
7434
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForTransaction_result");
11673
 
7435
 
11674
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
7436
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
11675
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
7437
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
11676
 
7438
 
11677
    private boolean success;
7439
    private List<Order> success;
11678
    private TransactionServiceException ex;
7440
    private TransactionServiceException ex;
11679
 
7441
 
11680
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7442
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11681
    public enum _Fields implements TFieldIdEnum {
7443
    public enum _Fields implements TFieldIdEnum {
11682
      SUCCESS((short)0, "success"),
7444
      SUCCESS((short)0, "success"),
Line 11732... Line 7494...
11732
        return _fieldName;
7494
        return _fieldName;
11733
      }
7495
      }
11734
    }
7496
    }
11735
 
7497
 
11736
    // isset id assignments
7498
    // isset id assignments
11737
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
11738
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
11739
 
7499
 
11740
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7500
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11741
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
7501
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
11742
          new FieldValueMetaData(TType.BOOL)));
7502
          new ListMetaData(TType.LIST, 
-
 
7503
              new StructMetaData(TType.STRUCT, Order.class))));
11743
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
7504
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
11744
          new FieldValueMetaData(TType.STRUCT)));
7505
          new FieldValueMetaData(TType.STRUCT)));
11745
    }});
7506
    }});
11746
 
7507
 
11747
    static {
7508
    static {
11748
      FieldMetaData.addStructMetaDataMap(setShippingTracker_result.class, metaDataMap);
7509
      FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);
11749
    }
7510
    }
11750
 
7511
 
11751
    public setShippingTracker_result() {
7512
    public getOrdersForTransaction_result() {
11752
    }
7513
    }
11753
 
7514
 
11754
    public setShippingTracker_result(
7515
    public getOrdersForTransaction_result(
11755
      boolean success,
7516
      List<Order> success,
11756
      TransactionServiceException ex)
7517
      TransactionServiceException ex)
11757
    {
7518
    {
11758
      this();
7519
      this();
11759
      this.success = success;
7520
      this.success = success;
11760
      setSuccessIsSet(true);
-
 
11761
      this.ex = ex;
7521
      this.ex = ex;
11762
    }
7522
    }
11763
 
7523
 
11764
    /**
7524
    /**
11765
     * Performs a deep copy on <i>other</i>.
7525
     * Performs a deep copy on <i>other</i>.
11766
     */
7526
     */
11767
    public setShippingTracker_result(setShippingTracker_result other) {
7527
    public getOrdersForTransaction_result(getOrdersForTransaction_result other) {
11768
      __isset_bit_vector.clear();
7528
      if (other.isSetSuccess()) {
-
 
7529
        List<Order> __this__success = new ArrayList<Order>();
-
 
7530
        for (Order other_element : other.success) {
11769
      __isset_bit_vector.or(other.__isset_bit_vector);
7531
          __this__success.add(new Order(other_element));
-
 
7532
        }
11770
      this.success = other.success;
7533
        this.success = __this__success;
-
 
7534
      }
11771
      if (other.isSetEx()) {
7535
      if (other.isSetEx()) {
11772
        this.ex = new TransactionServiceException(other.ex);
7536
        this.ex = new TransactionServiceException(other.ex);
11773
      }
7537
      }
11774
    }
7538
    }
11775
 
7539
 
11776
    public setShippingTracker_result deepCopy() {
7540
    public getOrdersForTransaction_result deepCopy() {
11777
      return new setShippingTracker_result(this);
7541
      return new getOrdersForTransaction_result(this);
11778
    }
7542
    }
11779
 
7543
 
11780
    @Deprecated
7544
    @Deprecated
11781
    public setShippingTracker_result clone() {
7545
    public getOrdersForTransaction_result clone() {
11782
      return new setShippingTracker_result(this);
7546
      return new getOrdersForTransaction_result(this);
11783
    }
7547
    }
11784
 
7548
 
-
 
7549
    public int getSuccessSize() {
-
 
7550
      return (this.success == null) ? 0 : this.success.size();
-
 
7551
    }
-
 
7552
 
-
 
7553
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
7554
      return (this.success == null) ? null : this.success.iterator();
-
 
7555
    }
-
 
7556
 
-
 
7557
    public void addToSuccess(Order elem) {
-
 
7558
      if (this.success == null) {
-
 
7559
        this.success = new ArrayList<Order>();
-
 
7560
      }
-
 
7561
      this.success.add(elem);
-
 
7562
    }
-
 
7563
 
11785
    public boolean isSuccess() {
7564
    public List<Order> getSuccess() {
11786
      return this.success;
7565
      return this.success;
11787
    }
7566
    }
11788
 
7567
 
11789
    public setShippingTracker_result setSuccess(boolean success) {
7568
    public getOrdersForTransaction_result setSuccess(List<Order> success) {
11790
      this.success = success;
7569
      this.success = success;
11791
      setSuccessIsSet(true);
-
 
11792
      return this;
7570
      return this;
11793
    }
7571
    }
11794
 
7572
 
11795
    public void unsetSuccess() {
7573
    public void unsetSuccess() {
11796
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7574
      this.success = null;
11797
    }
7575
    }
11798
 
7576
 
11799
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7577
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
11800
    public boolean isSetSuccess() {
7578
    public boolean isSetSuccess() {
11801
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7579
      return this.success != null;
11802
    }
7580
    }
11803
 
7581
 
11804
    public void setSuccessIsSet(boolean value) {
7582
    public void setSuccessIsSet(boolean value) {
-
 
7583
      if (!value) {
11805
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7584
        this.success = null;
-
 
7585
      }
11806
    }
7586
    }
11807
 
7587
 
11808
    public TransactionServiceException getEx() {
7588
    public TransactionServiceException getEx() {
11809
      return this.ex;
7589
      return this.ex;
11810
    }
7590
    }
11811
 
7591
 
11812
    public setShippingTracker_result setEx(TransactionServiceException ex) {
7592
    public getOrdersForTransaction_result setEx(TransactionServiceException ex) {
11813
      this.ex = ex;
7593
      this.ex = ex;
11814
      return this;
7594
      return this;
11815
    }
7595
    }
11816
 
7596
 
11817
    public void unsetEx() {
7597
    public void unsetEx() {
Line 11833... Line 7613...
11833
      switch (field) {
7613
      switch (field) {
11834
      case SUCCESS:
7614
      case SUCCESS:
11835
        if (value == null) {
7615
        if (value == null) {
11836
          unsetSuccess();
7616
          unsetSuccess();
11837
        } else {
7617
        } else {
11838
          setSuccess((Boolean)value);
7618
          setSuccess((List<Order>)value);
11839
        }
7619
        }
11840
        break;
7620
        break;
11841
 
7621
 
11842
      case EX:
7622
      case EX:
11843
        if (value == null) {
7623
        if (value == null) {
Line 11855... Line 7635...
11855
    }
7635
    }
11856
 
7636
 
11857
    public Object getFieldValue(_Fields field) {
7637
    public Object getFieldValue(_Fields field) {
11858
      switch (field) {
7638
      switch (field) {
11859
      case SUCCESS:
7639
      case SUCCESS:
11860
        return new Boolean(isSuccess());
7640
        return getSuccess();
11861
 
7641
 
11862
      case EX:
7642
      case EX:
11863
        return getEx();
7643
        return getEx();
11864
 
7644
 
11865
      }
7645
      }
Line 11887... Line 7667...
11887
 
7667
 
11888
    @Override
7668
    @Override
11889
    public boolean equals(Object that) {
7669
    public boolean equals(Object that) {
11890
      if (that == null)
7670
      if (that == null)
11891
        return false;
7671
        return false;
11892
      if (that instanceof setShippingTracker_result)
7672
      if (that instanceof getOrdersForTransaction_result)
11893
        return this.equals((setShippingTracker_result)that);
7673
        return this.equals((getOrdersForTransaction_result)that);
11894
      return false;
7674
      return false;
11895
    }
7675
    }
11896
 
7676
 
11897
    public boolean equals(setShippingTracker_result that) {
7677
    public boolean equals(getOrdersForTransaction_result that) {
11898
      if (that == null)
7678
      if (that == null)
11899
        return false;
7679
        return false;
11900
 
7680
 
11901
      boolean this_present_success = true;
7681
      boolean this_present_success = true && this.isSetSuccess();
11902
      boolean that_present_success = true;
7682
      boolean that_present_success = true && that.isSetSuccess();
11903
      if (this_present_success || that_present_success) {
7683
      if (this_present_success || that_present_success) {
11904
        if (!(this_present_success && that_present_success))
7684
        if (!(this_present_success && that_present_success))
11905
          return false;
7685
          return false;
11906
        if (this.success != that.success)
7686
        if (!this.success.equals(that.success))
11907
          return false;
7687
          return false;
11908
      }
7688
      }
11909
 
7689
 
11910
      boolean this_present_ex = true && this.isSetEx();
7690
      boolean this_present_ex = true && this.isSetEx();
11911
      boolean that_present_ex = true && that.isSetEx();
7691
      boolean that_present_ex = true && that.isSetEx();
Line 11922... Line 7702...
11922
    @Override
7702
    @Override
11923
    public int hashCode() {
7703
    public int hashCode() {
11924
      return 0;
7704
      return 0;
11925
    }
7705
    }
11926
 
7706
 
11927
    public int compareTo(setShippingTracker_result other) {
7707
    public int compareTo(getOrdersForTransaction_result other) {
11928
      if (!getClass().equals(other.getClass())) {
7708
      if (!getClass().equals(other.getClass())) {
11929
        return getClass().getName().compareTo(other.getClass().getName());
7709
        return getClass().getName().compareTo(other.getClass().getName());
11930
      }
7710
      }
11931
 
7711
 
11932
      int lastComparison = 0;
7712
      int lastComparison = 0;
11933
      setShippingTracker_result typedOther = (setShippingTracker_result)other;
7713
      getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;
11934
 
7714
 
11935
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7715
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
11936
      if (lastComparison != 0) {
7716
      if (lastComparison != 0) {
11937
        return lastComparison;
7717
        return lastComparison;
11938
      }
7718
      }
Line 11964... Line 7744...
11964
        if (fieldId == null) {
7744
        if (fieldId == null) {
11965
          TProtocolUtil.skip(iprot, field.type);
7745
          TProtocolUtil.skip(iprot, field.type);
11966
        } else {
7746
        } else {
11967
          switch (fieldId) {
7747
          switch (fieldId) {
11968
            case SUCCESS:
7748
            case SUCCESS:
11969
              if (field.type == TType.BOOL) {
7749
              if (field.type == TType.LIST) {
-
 
7750
                {
11970
                this.success = iprot.readBool();
7751
                  TList _list25 = iprot.readListBegin();
-
 
7752
                  this.success = new ArrayList<Order>(_list25.size);
-
 
7753
                  for (int _i26 = 0; _i26 < _list25.size; ++_i26)
-
 
7754
                  {
-
 
7755
                    Order _elem27;
-
 
7756
                    _elem27 = new Order();
11971
                setSuccessIsSet(true);
7757
                    _elem27.read(iprot);
-
 
7758
                    this.success.add(_elem27);
-
 
7759
                  }
-
 
7760
                  iprot.readListEnd();
-
 
7761
                }
11972
              } else { 
7762
              } else { 
11973
                TProtocolUtil.skip(iprot, field.type);
7763
                TProtocolUtil.skip(iprot, field.type);
11974
              }
7764
              }
11975
              break;
7765
              break;
11976
            case EX:
7766
            case EX:
Line 11992... Line 7782...
11992
    public void write(TProtocol oprot) throws TException {
7782
    public void write(TProtocol oprot) throws TException {
11993
      oprot.writeStructBegin(STRUCT_DESC);
7783
      oprot.writeStructBegin(STRUCT_DESC);
11994
 
7784
 
11995
      if (this.isSetSuccess()) {
7785
      if (this.isSetSuccess()) {
11996
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7786
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7787
        {
-
 
7788
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
11997
        oprot.writeBool(this.success);
7789
          for (Order _iter28 : this.success)
-
 
7790
          {
-
 
7791
            _iter28.write(oprot);
-
 
7792
          }
-
 
7793
          oprot.writeListEnd();
-
 
7794
        }
11998
        oprot.writeFieldEnd();
7795
        oprot.writeFieldEnd();
11999
      } else if (this.isSetEx()) {
7796
      } else if (this.isSetEx()) {
12000
        oprot.writeFieldBegin(EX_FIELD_DESC);
7797
        oprot.writeFieldBegin(EX_FIELD_DESC);
12001
        this.ex.write(oprot);
7798
        this.ex.write(oprot);
12002
        oprot.writeFieldEnd();
7799
        oprot.writeFieldEnd();
Line 12005... Line 7802...
12005
      oprot.writeStructEnd();
7802
      oprot.writeStructEnd();
12006
    }
7803
    }
12007
 
7804
 
12008
    @Override
7805
    @Override
12009
    public String toString() {
7806
    public String toString() {
12010
      StringBuilder sb = new StringBuilder("setShippingTracker_result(");
7807
      StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");
12011
      boolean first = true;
7808
      boolean first = true;
12012
 
7809
 
12013
      sb.append("success:");
7810
      sb.append("success:");
-
 
7811
      if (this.success == null) {
-
 
7812
        sb.append("null");
-
 
7813
      } else {
12014
      sb.append(this.success);
7814
        sb.append(this.success);
-
 
7815
      }
12015
      first = false;
7816
      first = false;
12016
      if (!first) sb.append(", ");
7817
      if (!first) sb.append(", ");
12017
      sb.append("ex:");
7818
      sb.append("ex:");
12018
      if (this.ex == null) {
7819
      if (this.ex == null) {
12019
        sb.append("null");
7820
        sb.append("null");
Line 12029... Line 7830...
12029
      // check for required fields
7830
      // check for required fields
12030
    }
7831
    }
12031
 
7832
 
12032
  }
7833
  }
12033
 
7834
 
12034
  public static class setShippingDate_args implements TBase<setShippingDate_args._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingDate_args>   {
7835
  public static class getOrdersForCustomer_args implements TBase<getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForCustomer_args>   {
12035
    private static final TStruct STRUCT_DESC = new TStruct("setShippingDate_args");
7836
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForCustomer_args");
12036
 
7837
 
12037
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
7838
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
12038
    private static final TField SHIPPING_ID_FIELD_DESC = new TField("shippingId", TType.I64, (short)2);
7839
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
12039
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
7840
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
-
 
7841
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
12040
 
7842
 
12041
    private long transactionId;
7843
    private long customerId;
12042
    private long shippingId;
7844
    private long from_date;
12043
    private long timestamp;
7845
    private long to_date;
-
 
7846
    private OrderStatus status;
12044
 
7847
 
12045
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7848
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12046
    public enum _Fields implements TFieldIdEnum {
7849
    public enum _Fields implements TFieldIdEnum {
12047
      TRANSACTION_ID((short)1, "transactionId"),
7850
      CUSTOMER_ID((short)1, "customerId"),
12048
      SHIPPING_ID((short)2, "shippingId"),
7851
      FROM_DATE((short)2, "from_date"),
12049
      TIMESTAMP((short)3, "timestamp");
7852
      TO_DATE((short)3, "to_date"),
-
 
7853
      /**
-
 
7854
       * 
-
 
7855
       * @see OrderStatus
-
 
7856
       */
-
 
7857
      STATUS((short)4, "status");
12050
 
7858
 
12051
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
7859
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
12052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7860
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12053
 
7861
 
12054
      static {
7862
      static {
Line 12098... Line 7906...
12098
        return _fieldName;
7906
        return _fieldName;
12099
      }
7907
      }
12100
    }
7908
    }
12101
 
7909
 
12102
    // isset id assignments
7910
    // isset id assignments
12103
    private static final int __TRANSACTIONID_ISSET_ID = 0;
7911
    private static final int __CUSTOMERID_ISSET_ID = 0;
12104
    private static final int __SHIPPINGID_ISSET_ID = 1;
7912
    private static final int __FROM_DATE_ISSET_ID = 1;
12105
    private static final int __TIMESTAMP_ISSET_ID = 2;
7913
    private static final int __TO_DATE_ISSET_ID = 2;
12106
    private BitSet __isset_bit_vector = new BitSet(3);
7914
    private BitSet __isset_bit_vector = new BitSet(3);
12107
 
7915
 
12108
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7916
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12109
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
7917
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
12110
          new FieldValueMetaData(TType.I64)));
7918
          new FieldValueMetaData(TType.I64)));
12111
      put(_Fields.SHIPPING_ID, new FieldMetaData("shippingId", TFieldRequirementType.DEFAULT, 
7919
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
12112
          new FieldValueMetaData(TType.I64)));
7920
          new FieldValueMetaData(TType.I64)));
12113
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
7921
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
12114
          new FieldValueMetaData(TType.I64)));
7922
          new FieldValueMetaData(TType.I64)));
-
 
7923
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
7924
          new EnumMetaData(TType.ENUM, OrderStatus.class)));
12115
    }});
7925
    }});
12116
 
7926
 
12117
    static {
7927
    static {
12118
      FieldMetaData.addStructMetaDataMap(setShippingDate_args.class, metaDataMap);
7928
      FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);
12119
    }
7929
    }
12120
 
7930
 
12121
    public setShippingDate_args() {
7931
    public getOrdersForCustomer_args() {
12122
    }
7932
    }
12123
 
7933
 
12124
    public setShippingDate_args(
7934
    public getOrdersForCustomer_args(
12125
      long transactionId,
7935
      long customerId,
12126
      long shippingId,
7936
      long from_date,
12127
      long timestamp)
7937
      long to_date,
-
 
7938
      OrderStatus status)
12128
    {
7939
    {
12129
      this();
7940
      this();
12130
      this.transactionId = transactionId;
7941
      this.customerId = customerId;
12131
      setTransactionIdIsSet(true);
7942
      setCustomerIdIsSet(true);
12132
      this.shippingId = shippingId;
7943
      this.from_date = from_date;
12133
      setShippingIdIsSet(true);
7944
      setFrom_dateIsSet(true);
12134
      this.timestamp = timestamp;
7945
      this.to_date = to_date;
12135
      setTimestampIsSet(true);
7946
      setTo_dateIsSet(true);
-
 
7947
      this.status = status;
12136
    }
7948
    }
12137
 
7949
 
12138
    /**
7950
    /**
12139
     * Performs a deep copy on <i>other</i>.
7951
     * Performs a deep copy on <i>other</i>.
12140
     */
7952
     */
12141
    public setShippingDate_args(setShippingDate_args other) {
7953
    public getOrdersForCustomer_args(getOrdersForCustomer_args other) {
12142
      __isset_bit_vector.clear();
7954
      __isset_bit_vector.clear();
12143
      __isset_bit_vector.or(other.__isset_bit_vector);
7955
      __isset_bit_vector.or(other.__isset_bit_vector);
12144
      this.transactionId = other.transactionId;
7956
      this.customerId = other.customerId;
12145
      this.shippingId = other.shippingId;
7957
      this.from_date = other.from_date;
12146
      this.timestamp = other.timestamp;
7958
      this.to_date = other.to_date;
-
 
7959
      if (other.isSetStatus()) {
-
 
7960
        this.status = other.status;
-
 
7961
      }
12147
    }
7962
    }
12148
 
7963
 
12149
    public setShippingDate_args deepCopy() {
7964
    public getOrdersForCustomer_args deepCopy() {
12150
      return new setShippingDate_args(this);
7965
      return new getOrdersForCustomer_args(this);
12151
    }
7966
    }
12152
 
7967
 
12153
    @Deprecated
7968
    @Deprecated
12154
    public setShippingDate_args clone() {
7969
    public getOrdersForCustomer_args clone() {
12155
      return new setShippingDate_args(this);
7970
      return new getOrdersForCustomer_args(this);
12156
    }
7971
    }
12157
 
7972
 
12158
    public long getTransactionId() {
7973
    public long getCustomerId() {
12159
      return this.transactionId;
7974
      return this.customerId;
12160
    }
7975
    }
12161
 
7976
 
12162
    public setShippingDate_args setTransactionId(long transactionId) {
7977
    public getOrdersForCustomer_args setCustomerId(long customerId) {
12163
      this.transactionId = transactionId;
7978
      this.customerId = customerId;
12164
      setTransactionIdIsSet(true);
7979
      setCustomerIdIsSet(true);
12165
      return this;
7980
      return this;
12166
    }
7981
    }
12167
 
7982
 
12168
    public void unsetTransactionId() {
7983
    public void unsetCustomerId() {
12169
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
7984
      __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
12170
    }
7985
    }
12171
 
7986
 
12172
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
7987
    /** Returns true if field customerId is set (has been asigned a value) and false otherwise */
12173
    public boolean isSetTransactionId() {
7988
    public boolean isSetCustomerId() {
12174
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
7989
      return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
12175
    }
7990
    }
12176
 
7991
 
12177
    public void setTransactionIdIsSet(boolean value) {
7992
    public void setCustomerIdIsSet(boolean value) {
12178
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
7993
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
-
 
7994
    }
-
 
7995
 
-
 
7996
    public long getFrom_date() {
-
 
7997
      return this.from_date;
-
 
7998
    }
-
 
7999
 
-
 
8000
    public getOrdersForCustomer_args setFrom_date(long from_date) {
-
 
8001
      this.from_date = from_date;
-
 
8002
      setFrom_dateIsSet(true);
-
 
8003
      return this;
12179
    }
8004
    }
12180
 
8005
 
12181
    public long getShippingId() {
8006
    public void unsetFrom_date() {
12182
      return this.shippingId;
8007
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
12183
    }
8008
    }
12184
 
8009
 
-
 
8010
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
-
 
8011
    public boolean isSetFrom_date() {
-
 
8012
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
-
 
8013
    }
-
 
8014
 
-
 
8015
    public void setFrom_dateIsSet(boolean value) {
-
 
8016
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
-
 
8017
    }
-
 
8018
 
-
 
8019
    public long getTo_date() {
-
 
8020
      return this.to_date;
-
 
8021
    }
-
 
8022
 
12185
    public setShippingDate_args setShippingId(long shippingId) {
8023
    public getOrdersForCustomer_args setTo_date(long to_date) {
12186
      this.shippingId = shippingId;
8024
      this.to_date = to_date;
12187
      setShippingIdIsSet(true);
8025
      setTo_dateIsSet(true);
12188
      return this;
8026
      return this;
12189
    }
8027
    }
12190
 
8028
 
12191
    public void unsetShippingId() {
8029
    public void unsetTo_date() {
12192
      __isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);
8030
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
12193
    }
8031
    }
12194
 
8032
 
12195
    /** Returns true if field shippingId is set (has been asigned a value) and false otherwise */
8033
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
12196
    public boolean isSetShippingId() {
8034
    public boolean isSetTo_date() {
12197
      return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);
8035
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
12198
    }
8036
    }
12199
 
8037
 
12200
    public void setShippingIdIsSet(boolean value) {
8038
    public void setTo_dateIsSet(boolean value) {
12201
      __isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);
8039
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
12202
    }
8040
    }
12203
 
8041
 
-
 
8042
    /**
-
 
8043
     * 
-
 
8044
     * @see OrderStatus
-
 
8045
     */
12204
    public long getTimestamp() {
8046
    public OrderStatus getStatus() {
12205
      return this.timestamp;
8047
      return this.status;
12206
    }
8048
    }
12207
 
8049
 
-
 
8050
    /**
-
 
8051
     * 
-
 
8052
     * @see OrderStatus
-
 
8053
     */
12208
    public setShippingDate_args setTimestamp(long timestamp) {
8054
    public getOrdersForCustomer_args setStatus(OrderStatus status) {
12209
      this.timestamp = timestamp;
8055
      this.status = status;
12210
      setTimestampIsSet(true);
-
 
12211
      return this;
8056
      return this;
12212
    }
8057
    }
12213
 
8058
 
12214
    public void unsetTimestamp() {
8059
    public void unsetStatus() {
12215
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
8060
      this.status = null;
12216
    }
8061
    }
12217
 
8062
 
12218
    /** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
8063
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
12219
    public boolean isSetTimestamp() {
8064
    public boolean isSetStatus() {
12220
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
8065
      return this.status != null;
12221
    }
8066
    }
12222
 
8067
 
12223
    public void setTimestampIsSet(boolean value) {
8068
    public void setStatusIsSet(boolean value) {
-
 
8069
      if (!value) {
12224
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
8070
        this.status = null;
-
 
8071
      }
12225
    }
8072
    }
12226
 
8073
 
12227
    public void setFieldValue(_Fields field, Object value) {
8074
    public void setFieldValue(_Fields field, Object value) {
12228
      switch (field) {
8075
      switch (field) {
12229
      case TRANSACTION_ID:
8076
      case CUSTOMER_ID:
12230
        if (value == null) {
8077
        if (value == null) {
12231
          unsetTransactionId();
8078
          unsetCustomerId();
12232
        } else {
8079
        } else {
12233
          setTransactionId((Long)value);
8080
          setCustomerId((Long)value);
12234
        }
8081
        }
12235
        break;
8082
        break;
12236
 
8083
 
12237
      case SHIPPING_ID:
8084
      case FROM_DATE:
12238
        if (value == null) {
8085
        if (value == null) {
12239
          unsetShippingId();
8086
          unsetFrom_date();
12240
        } else {
8087
        } else {
12241
          setShippingId((Long)value);
8088
          setFrom_date((Long)value);
12242
        }
8089
        }
12243
        break;
8090
        break;
12244
 
8091
 
12245
      case TIMESTAMP:
8092
      case TO_DATE:
12246
        if (value == null) {
8093
        if (value == null) {
12247
          unsetTimestamp();
8094
          unsetTo_date();
12248
        } else {
8095
        } else {
12249
          setTimestamp((Long)value);
8096
          setTo_date((Long)value);
-
 
8097
        }
-
 
8098
        break;
-
 
8099
 
-
 
8100
      case STATUS:
-
 
8101
        if (value == null) {
-
 
8102
          unsetStatus();
-
 
8103
        } else {
-
 
8104
          setStatus((OrderStatus)value);
12250
        }
8105
        }
12251
        break;
8106
        break;
12252
 
8107
 
12253
      }
8108
      }
12254
    }
8109
    }
Line 12257... Line 8112...
12257
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
8112
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
12258
    }
8113
    }
12259
 
8114
 
12260
    public Object getFieldValue(_Fields field) {
8115
    public Object getFieldValue(_Fields field) {
12261
      switch (field) {
8116
      switch (field) {
12262
      case TRANSACTION_ID:
8117
      case CUSTOMER_ID:
12263
        return new Long(getTransactionId());
8118
        return new Long(getCustomerId());
12264
 
8119
 
12265
      case SHIPPING_ID:
8120
      case FROM_DATE:
12266
        return new Long(getShippingId());
8121
        return new Long(getFrom_date());
12267
 
8122
 
12268
      case TIMESTAMP:
8123
      case TO_DATE:
12269
        return new Long(getTimestamp());
8124
        return new Long(getTo_date());
-
 
8125
 
-
 
8126
      case STATUS:
-
 
8127
        return getStatus();
12270
 
8128
 
12271
      }
8129
      }
12272
      throw new IllegalStateException();
8130
      throw new IllegalStateException();
12273
    }
8131
    }
12274
 
8132
 
Line 12277... Line 8135...
12277
    }
8135
    }
12278
 
8136
 
12279
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8137
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12280
    public boolean isSet(_Fields field) {
8138
    public boolean isSet(_Fields field) {
12281
      switch (field) {
8139
      switch (field) {
12282
      case TRANSACTION_ID:
8140
      case CUSTOMER_ID:
12283
        return isSetTransactionId();
8141
        return isSetCustomerId();
12284
      case SHIPPING_ID:
8142
      case FROM_DATE:
12285
        return isSetShippingId();
8143
        return isSetFrom_date();
12286
      case TIMESTAMP:
8144
      case TO_DATE:
12287
        return isSetTimestamp();
8145
        return isSetTo_date();
-
 
8146
      case STATUS:
-
 
8147
        return isSetStatus();
12288
      }
8148
      }
12289
      throw new IllegalStateException();
8149
      throw new IllegalStateException();
12290
    }
8150
    }
12291
 
8151
 
12292
    public boolean isSet(int fieldID) {
8152
    public boolean isSet(int fieldID) {
Line 12295... Line 8155...
12295
 
8155
 
12296
    @Override
8156
    @Override
12297
    public boolean equals(Object that) {
8157
    public boolean equals(Object that) {
12298
      if (that == null)
8158
      if (that == null)
12299
        return false;
8159
        return false;
12300
      if (that instanceof setShippingDate_args)
8160
      if (that instanceof getOrdersForCustomer_args)
12301
        return this.equals((setShippingDate_args)that);
8161
        return this.equals((getOrdersForCustomer_args)that);
12302
      return false;
8162
      return false;
12303
    }
8163
    }
12304
 
8164
 
12305
    public boolean equals(setShippingDate_args that) {
8165
    public boolean equals(getOrdersForCustomer_args that) {
12306
      if (that == null)
8166
      if (that == null)
12307
        return false;
8167
        return false;
12308
 
8168
 
12309
      boolean this_present_transactionId = true;
8169
      boolean this_present_customerId = true;
12310
      boolean that_present_transactionId = true;
8170
      boolean that_present_customerId = true;
12311
      if (this_present_transactionId || that_present_transactionId) {
8171
      if (this_present_customerId || that_present_customerId) {
12312
        if (!(this_present_transactionId && that_present_transactionId))
8172
        if (!(this_present_customerId && that_present_customerId))
12313
          return false;
8173
          return false;
12314
        if (this.transactionId != that.transactionId)
8174
        if (this.customerId != that.customerId)
-
 
8175
          return false;
-
 
8176
      }
-
 
8177
 
-
 
8178
      boolean this_present_from_date = true;
-
 
8179
      boolean that_present_from_date = true;
-
 
8180
      if (this_present_from_date || that_present_from_date) {
-
 
8181
        if (!(this_present_from_date && that_present_from_date))
-
 
8182
          return false;
-
 
8183
        if (this.from_date != that.from_date)
12315
          return false;
8184
          return false;
12316
      }
8185
      }
12317
 
8186
 
12318
      boolean this_present_shippingId = true;
8187
      boolean this_present_to_date = true;
12319
      boolean that_present_shippingId = true;
8188
      boolean that_present_to_date = true;
12320
      if (this_present_shippingId || that_present_shippingId) {
8189
      if (this_present_to_date || that_present_to_date) {
12321
        if (!(this_present_shippingId && that_present_shippingId))
8190
        if (!(this_present_to_date && that_present_to_date))
12322
          return false;
8191
          return false;
12323
        if (this.shippingId != that.shippingId)
8192
        if (this.to_date != that.to_date)
12324
          return false;
8193
          return false;
12325
      }
8194
      }
12326
 
8195
 
12327
      boolean this_present_timestamp = true;
8196
      boolean this_present_status = true && this.isSetStatus();
12328
      boolean that_present_timestamp = true;
8197
      boolean that_present_status = true && that.isSetStatus();
12329
      if (this_present_timestamp || that_present_timestamp) {
8198
      if (this_present_status || that_present_status) {
12330
        if (!(this_present_timestamp && that_present_timestamp))
8199
        if (!(this_present_status && that_present_status))
12331
          return false;
8200
          return false;
12332
        if (this.timestamp != that.timestamp)
8201
        if (!this.status.equals(that.status))
12333
          return false;
8202
          return false;
12334
      }
8203
      }
12335
 
8204
 
12336
      return true;
8205
      return true;
12337
    }
8206
    }
Line 12339... Line 8208...
12339
    @Override
8208
    @Override
12340
    public int hashCode() {
8209
    public int hashCode() {
12341
      return 0;
8210
      return 0;
12342
    }
8211
    }
12343
 
8212
 
12344
    public int compareTo(setShippingDate_args other) {
8213
    public int compareTo(getOrdersForCustomer_args other) {
12345
      if (!getClass().equals(other.getClass())) {
8214
      if (!getClass().equals(other.getClass())) {
12346
        return getClass().getName().compareTo(other.getClass().getName());
8215
        return getClass().getName().compareTo(other.getClass().getName());
12347
      }
8216
      }
12348
 
8217
 
12349
      int lastComparison = 0;
8218
      int lastComparison = 0;
12350
      setShippingDate_args typedOther = (setShippingDate_args)other;
8219
      getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;
12351
 
8220
 
12352
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
8221
      lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
12353
      if (lastComparison != 0) {
8222
      if (lastComparison != 0) {
12354
        return lastComparison;
8223
        return lastComparison;
12355
      }
8224
      }
12356
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
8225
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
12357
      if (lastComparison != 0) {
8226
      if (lastComparison != 0) {
12358
        return lastComparison;
8227
        return lastComparison;
12359
      }
8228
      }
12360
      lastComparison = Boolean.valueOf(isSetShippingId()).compareTo(isSetShippingId());
8229
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
12361
      if (lastComparison != 0) {
8230
      if (lastComparison != 0) {
12362
        return lastComparison;
8231
        return lastComparison;
12363
      }
8232
      }
12364
      lastComparison = TBaseHelper.compareTo(shippingId, typedOther.shippingId);
8233
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
12365
      if (lastComparison != 0) {
8234
      if (lastComparison != 0) {
12366
        return lastComparison;
8235
        return lastComparison;
12367
      }
8236
      }
12368
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());
8237
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
12369
      if (lastComparison != 0) {
8238
      if (lastComparison != 0) {
12370
        return lastComparison;
8239
        return lastComparison;
12371
      }
8240
      }
12372
      lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);
8241
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
-
 
8242
      if (lastComparison != 0) {
-
 
8243
        return lastComparison;
-
 
8244
      }
-
 
8245
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
8246
      if (lastComparison != 0) {
-
 
8247
        return lastComparison;
-
 
8248
      }
-
 
8249
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
12373
      if (lastComparison != 0) {
8250
      if (lastComparison != 0) {
12374
        return lastComparison;
8251
        return lastComparison;
12375
      }
8252
      }
12376
      return 0;
8253
      return 0;
12377
    }
8254
    }
Line 12388... Line 8265...
12388
        _Fields fieldId = _Fields.findByThriftId(field.id);
8265
        _Fields fieldId = _Fields.findByThriftId(field.id);
12389
        if (fieldId == null) {
8266
        if (fieldId == null) {
12390
          TProtocolUtil.skip(iprot, field.type);
8267
          TProtocolUtil.skip(iprot, field.type);
12391
        } else {
8268
        } else {
12392
          switch (fieldId) {
8269
          switch (fieldId) {
12393
            case TRANSACTION_ID:
8270
            case CUSTOMER_ID:
12394
              if (field.type == TType.I64) {
8271
              if (field.type == TType.I64) {
12395
                this.transactionId = iprot.readI64();
8272
                this.customerId = iprot.readI64();
12396
                setTransactionIdIsSet(true);
8273
                setCustomerIdIsSet(true);
12397
              } else { 
8274
              } else { 
12398
                TProtocolUtil.skip(iprot, field.type);
8275
                TProtocolUtil.skip(iprot, field.type);
12399
              }
8276
              }
12400
              break;
8277
              break;
12401
            case SHIPPING_ID:
8278
            case FROM_DATE:
12402
              if (field.type == TType.I64) {
8279
              if (field.type == TType.I64) {
12403
                this.shippingId = iprot.readI64();
8280
                this.from_date = iprot.readI64();
12404
                setShippingIdIsSet(true);
8281
                setFrom_dateIsSet(true);
12405
              } else { 
8282
              } else { 
12406
                TProtocolUtil.skip(iprot, field.type);
8283
                TProtocolUtil.skip(iprot, field.type);
12407
              }
8284
              }
12408
              break;
8285
              break;
12409
            case TIMESTAMP:
8286
            case TO_DATE:
12410
              if (field.type == TType.I64) {
8287
              if (field.type == TType.I64) {
12411
                this.timestamp = iprot.readI64();
8288
                this.to_date = iprot.readI64();
12412
                setTimestampIsSet(true);
8289
                setTo_dateIsSet(true);
-
 
8290
              } else { 
-
 
8291
                TProtocolUtil.skip(iprot, field.type);
-
 
8292
              }
-
 
8293
              break;
-
 
8294
            case STATUS:
-
 
8295
              if (field.type == TType.I32) {
-
 
8296
                this.status = OrderStatus.findByValue(iprot.readI32());
12413
              } else { 
8297
              } else { 
12414
                TProtocolUtil.skip(iprot, field.type);
8298
                TProtocolUtil.skip(iprot, field.type);
12415
              }
8299
              }
12416
              break;
8300
              break;
12417
          }
8301
          }
Line 12424... Line 8308...
12424
 
8308
 
12425
    public void write(TProtocol oprot) throws TException {
8309
    public void write(TProtocol oprot) throws TException {
12426
      validate();
8310
      validate();
12427
 
8311
 
12428
      oprot.writeStructBegin(STRUCT_DESC);
8312
      oprot.writeStructBegin(STRUCT_DESC);
12429
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
8313
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
12430
      oprot.writeI64(this.transactionId);
8314
      oprot.writeI64(this.customerId);
12431
      oprot.writeFieldEnd();
8315
      oprot.writeFieldEnd();
12432
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
8316
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
12433
      oprot.writeI64(this.shippingId);
8317
      oprot.writeI64(this.from_date);
12434
      oprot.writeFieldEnd();
8318
      oprot.writeFieldEnd();
12435
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
8319
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
12436
      oprot.writeI64(this.timestamp);
8320
      oprot.writeI64(this.to_date);
12437
      oprot.writeFieldEnd();
8321
      oprot.writeFieldEnd();
-
 
8322
      if (this.status != null) {
-
 
8323
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
8324
        oprot.writeI32(this.status.getValue());
-
 
8325
        oprot.writeFieldEnd();
-
 
8326
      }
12438
      oprot.writeFieldStop();
8327
      oprot.writeFieldStop();
12439
      oprot.writeStructEnd();
8328
      oprot.writeStructEnd();
12440
    }
8329
    }
12441
 
8330
 
12442
    @Override
8331
    @Override
12443
    public String toString() {
8332
    public String toString() {
12444
      StringBuilder sb = new StringBuilder("setShippingDate_args(");
8333
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");
12445
      boolean first = true;
8334
      boolean first = true;
12446
 
8335
 
12447
      sb.append("transactionId:");
8336
      sb.append("customerId:");
12448
      sb.append(this.transactionId);
8337
      sb.append(this.customerId);
12449
      first = false;
8338
      first = false;
12450
      if (!first) sb.append(", ");
8339
      if (!first) sb.append(", ");
12451
      sb.append("shippingId:");
8340
      sb.append("from_date:");
12452
      sb.append(this.shippingId);
8341
      sb.append(this.from_date);
12453
      first = false;
8342
      first = false;
12454
      if (!first) sb.append(", ");
8343
      if (!first) sb.append(", ");
12455
      sb.append("timestamp:");
8344
      sb.append("to_date:");
12456
      sb.append(this.timestamp);
8345
      sb.append(this.to_date);
-
 
8346
      first = false;
-
 
8347
      if (!first) sb.append(", ");
-
 
8348
      sb.append("status:");
-
 
8349
      if (this.status == null) {
-
 
8350
        sb.append("null");
-
 
8351
      } else {
-
 
8352
        String status_name = status.name();
-
 
8353
        if (status_name != null) {
-
 
8354
          sb.append(status_name);
-
 
8355
          sb.append(" (");
-
 
8356
        }
-
 
8357
        sb.append(this.status);
-
 
8358
        if (status_name != null) {
-
 
8359
          sb.append(")");
-
 
8360
        }
-
 
8361
      }
12457
      first = false;
8362
      first = false;
12458
      sb.append(")");
8363
      sb.append(")");
12459
      return sb.toString();
8364
      return sb.toString();
12460
    }
8365
    }
12461
 
8366
 
Line 12463... Line 8368...
12463
      // check for required fields
8368
      // check for required fields
12464
    }
8369
    }
12465
 
8370
 
12466
  }
8371
  }
12467
 
8372
 
12468
  public static class setShippingDate_result implements TBase<setShippingDate_result._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingDate_result>   {
8373
  public static class getOrdersForCustomer_result implements TBase<getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersForCustomer_result>   {
12469
    private static final TStruct STRUCT_DESC = new TStruct("setShippingDate_result");
8374
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersForCustomer_result");
12470
 
8375
 
12471
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
8376
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
12472
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
8377
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
12473
 
8378
 
12474
    private boolean success;
8379
    private List<Order> success;
12475
    private TransactionServiceException ex;
8380
    private TransactionServiceException ex;
12476
 
8381
 
12477
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8382
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12478
    public enum _Fields implements TFieldIdEnum {
8383
    public enum _Fields implements TFieldIdEnum {
12479
      SUCCESS((short)0, "success"),
8384
      SUCCESS((short)0, "success"),
Line 12529... Line 8434...
12529
        return _fieldName;
8434
        return _fieldName;
12530
      }
8435
      }
12531
    }
8436
    }
12532
 
8437
 
12533
    // isset id assignments
8438
    // isset id assignments
12534
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
12535
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
12536
 
8439
 
12537
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8440
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12538
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
8441
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
12539
          new FieldValueMetaData(TType.BOOL)));
8442
          new ListMetaData(TType.LIST, 
-
 
8443
              new StructMetaData(TType.STRUCT, Order.class))));
12540
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
8444
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
12541
          new FieldValueMetaData(TType.STRUCT)));
8445
          new FieldValueMetaData(TType.STRUCT)));
12542
    }});
8446
    }});
12543
 
8447
 
12544
    static {
8448
    static {
12545
      FieldMetaData.addStructMetaDataMap(setShippingDate_result.class, metaDataMap);
8449
      FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);
12546
    }
8450
    }
12547
 
8451
 
12548
    public setShippingDate_result() {
8452
    public getOrdersForCustomer_result() {
12549
    }
8453
    }
12550
 
8454
 
12551
    public setShippingDate_result(
8455
    public getOrdersForCustomer_result(
12552
      boolean success,
8456
      List<Order> success,
12553
      TransactionServiceException ex)
8457
      TransactionServiceException ex)
12554
    {
8458
    {
12555
      this();
8459
      this();
12556
      this.success = success;
8460
      this.success = success;
12557
      setSuccessIsSet(true);
-
 
12558
      this.ex = ex;
8461
      this.ex = ex;
12559
    }
8462
    }
12560
 
8463
 
12561
    /**
8464
    /**
12562
     * Performs a deep copy on <i>other</i>.
8465
     * Performs a deep copy on <i>other</i>.
12563
     */
8466
     */
12564
    public setShippingDate_result(setShippingDate_result other) {
8467
    public getOrdersForCustomer_result(getOrdersForCustomer_result other) {
12565
      __isset_bit_vector.clear();
8468
      if (other.isSetSuccess()) {
-
 
8469
        List<Order> __this__success = new ArrayList<Order>();
-
 
8470
        for (Order other_element : other.success) {
12566
      __isset_bit_vector.or(other.__isset_bit_vector);
8471
          __this__success.add(new Order(other_element));
-
 
8472
        }
12567
      this.success = other.success;
8473
        this.success = __this__success;
-
 
8474
      }
12568
      if (other.isSetEx()) {
8475
      if (other.isSetEx()) {
12569
        this.ex = new TransactionServiceException(other.ex);
8476
        this.ex = new TransactionServiceException(other.ex);
12570
      }
8477
      }
12571
    }
8478
    }
12572
 
8479
 
12573
    public setShippingDate_result deepCopy() {
8480
    public getOrdersForCustomer_result deepCopy() {
12574
      return new setShippingDate_result(this);
8481
      return new getOrdersForCustomer_result(this);
12575
    }
8482
    }
12576
 
8483
 
12577
    @Deprecated
8484
    @Deprecated
12578
    public setShippingDate_result clone() {
8485
    public getOrdersForCustomer_result clone() {
12579
      return new setShippingDate_result(this);
8486
      return new getOrdersForCustomer_result(this);
12580
    }
8487
    }
12581
 
8488
 
-
 
8489
    public int getSuccessSize() {
-
 
8490
      return (this.success == null) ? 0 : this.success.size();
-
 
8491
    }
-
 
8492
 
-
 
8493
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
8494
      return (this.success == null) ? null : this.success.iterator();
-
 
8495
    }
-
 
8496
 
-
 
8497
    public void addToSuccess(Order elem) {
-
 
8498
      if (this.success == null) {
-
 
8499
        this.success = new ArrayList<Order>();
-
 
8500
      }
-
 
8501
      this.success.add(elem);
-
 
8502
    }
-
 
8503
 
12582
    public boolean isSuccess() {
8504
    public List<Order> getSuccess() {
12583
      return this.success;
8505
      return this.success;
12584
    }
8506
    }
12585
 
8507
 
12586
    public setShippingDate_result setSuccess(boolean success) {
8508
    public getOrdersForCustomer_result setSuccess(List<Order> success) {
12587
      this.success = success;
8509
      this.success = success;
12588
      setSuccessIsSet(true);
-
 
12589
      return this;
8510
      return this;
12590
    }
8511
    }
12591
 
8512
 
12592
    public void unsetSuccess() {
8513
    public void unsetSuccess() {
12593
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8514
      this.success = null;
12594
    }
8515
    }
12595
 
8516
 
12596
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
8517
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
12597
    public boolean isSetSuccess() {
8518
    public boolean isSetSuccess() {
12598
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8519
      return this.success != null;
12599
    }
8520
    }
12600
 
8521
 
12601
    public void setSuccessIsSet(boolean value) {
8522
    public void setSuccessIsSet(boolean value) {
-
 
8523
      if (!value) {
12602
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8524
        this.success = null;
-
 
8525
      }
12603
    }
8526
    }
12604
 
8527
 
12605
    public TransactionServiceException getEx() {
8528
    public TransactionServiceException getEx() {
12606
      return this.ex;
8529
      return this.ex;
12607
    }
8530
    }
12608
 
8531
 
12609
    public setShippingDate_result setEx(TransactionServiceException ex) {
8532
    public getOrdersForCustomer_result setEx(TransactionServiceException ex) {
12610
      this.ex = ex;
8533
      this.ex = ex;
12611
      return this;
8534
      return this;
12612
    }
8535
    }
12613
 
8536
 
12614
    public void unsetEx() {
8537
    public void unsetEx() {
Line 12630... Line 8553...
12630
      switch (field) {
8553
      switch (field) {
12631
      case SUCCESS:
8554
      case SUCCESS:
12632
        if (value == null) {
8555
        if (value == null) {
12633
          unsetSuccess();
8556
          unsetSuccess();
12634
        } else {
8557
        } else {
12635
          setSuccess((Boolean)value);
8558
          setSuccess((List<Order>)value);
12636
        }
8559
        }
12637
        break;
8560
        break;
12638
 
8561
 
12639
      case EX:
8562
      case EX:
12640
        if (value == null) {
8563
        if (value == null) {
Line 12652... Line 8575...
12652
    }
8575
    }
12653
 
8576
 
12654
    public Object getFieldValue(_Fields field) {
8577
    public Object getFieldValue(_Fields field) {
12655
      switch (field) {
8578
      switch (field) {
12656
      case SUCCESS:
8579
      case SUCCESS:
12657
        return new Boolean(isSuccess());
8580
        return getSuccess();
12658
 
8581
 
12659
      case EX:
8582
      case EX:
12660
        return getEx();
8583
        return getEx();
12661
 
8584
 
12662
      }
8585
      }
Line 12684... Line 8607...
12684
 
8607
 
12685
    @Override
8608
    @Override
12686
    public boolean equals(Object that) {
8609
    public boolean equals(Object that) {
12687
      if (that == null)
8610
      if (that == null)
12688
        return false;
8611
        return false;
12689
      if (that instanceof setShippingDate_result)
8612
      if (that instanceof getOrdersForCustomer_result)
12690
        return this.equals((setShippingDate_result)that);
8613
        return this.equals((getOrdersForCustomer_result)that);
12691
      return false;
8614
      return false;
12692
    }
8615
    }
12693
 
8616
 
12694
    public boolean equals(setShippingDate_result that) {
8617
    public boolean equals(getOrdersForCustomer_result that) {
12695
      if (that == null)
8618
      if (that == null)
12696
        return false;
8619
        return false;
12697
 
8620
 
12698
      boolean this_present_success = true;
8621
      boolean this_present_success = true && this.isSetSuccess();
12699
      boolean that_present_success = true;
8622
      boolean that_present_success = true && that.isSetSuccess();
12700
      if (this_present_success || that_present_success) {
8623
      if (this_present_success || that_present_success) {
12701
        if (!(this_present_success && that_present_success))
8624
        if (!(this_present_success && that_present_success))
12702
          return false;
8625
          return false;
12703
        if (this.success != that.success)
8626
        if (!this.success.equals(that.success))
12704
          return false;
8627
          return false;
12705
      }
8628
      }
12706
 
8629
 
12707
      boolean this_present_ex = true && this.isSetEx();
8630
      boolean this_present_ex = true && this.isSetEx();
12708
      boolean that_present_ex = true && that.isSetEx();
8631
      boolean that_present_ex = true && that.isSetEx();
Line 12719... Line 8642...
12719
    @Override
8642
    @Override
12720
    public int hashCode() {
8643
    public int hashCode() {
12721
      return 0;
8644
      return 0;
12722
    }
8645
    }
12723
 
8646
 
12724
    public int compareTo(setShippingDate_result other) {
8647
    public int compareTo(getOrdersForCustomer_result other) {
12725
      if (!getClass().equals(other.getClass())) {
8648
      if (!getClass().equals(other.getClass())) {
12726
        return getClass().getName().compareTo(other.getClass().getName());
8649
        return getClass().getName().compareTo(other.getClass().getName());
12727
      }
8650
      }
12728
 
8651
 
12729
      int lastComparison = 0;
8652
      int lastComparison = 0;
12730
      setShippingDate_result typedOther = (setShippingDate_result)other;
8653
      getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;
12731
 
8654
 
12732
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
8655
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
12733
      if (lastComparison != 0) {
8656
      if (lastComparison != 0) {
12734
        return lastComparison;
8657
        return lastComparison;
12735
      }
8658
      }
Line 12761... Line 8684...
12761
        if (fieldId == null) {
8684
        if (fieldId == null) {
12762
          TProtocolUtil.skip(iprot, field.type);
8685
          TProtocolUtil.skip(iprot, field.type);
12763
        } else {
8686
        } else {
12764
          switch (fieldId) {
8687
          switch (fieldId) {
12765
            case SUCCESS:
8688
            case SUCCESS:
12766
              if (field.type == TType.BOOL) {
8689
              if (field.type == TType.LIST) {
-
 
8690
                {
12767
                this.success = iprot.readBool();
8691
                  TList _list29 = iprot.readListBegin();
-
 
8692
                  this.success = new ArrayList<Order>(_list29.size);
-
 
8693
                  for (int _i30 = 0; _i30 < _list29.size; ++_i30)
-
 
8694
                  {
-
 
8695
                    Order _elem31;
-
 
8696
                    _elem31 = new Order();
12768
                setSuccessIsSet(true);
8697
                    _elem31.read(iprot);
-
 
8698
                    this.success.add(_elem31);
-
 
8699
                  }
-
 
8700
                  iprot.readListEnd();
-
 
8701
                }
12769
              } else { 
8702
              } else { 
12770
                TProtocolUtil.skip(iprot, field.type);
8703
                TProtocolUtil.skip(iprot, field.type);
12771
              }
8704
              }
12772
              break;
8705
              break;
12773
            case EX:
8706
            case EX:
Line 12789... Line 8722...
12789
    public void write(TProtocol oprot) throws TException {
8722
    public void write(TProtocol oprot) throws TException {
12790
      oprot.writeStructBegin(STRUCT_DESC);
8723
      oprot.writeStructBegin(STRUCT_DESC);
12791
 
8724
 
12792
      if (this.isSetSuccess()) {
8725
      if (this.isSetSuccess()) {
12793
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8726
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8727
        {
-
 
8728
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
12794
        oprot.writeBool(this.success);
8729
          for (Order _iter32 : this.success)
-
 
8730
          {
-
 
8731
            _iter32.write(oprot);
-
 
8732
          }
-
 
8733
          oprot.writeListEnd();
-
 
8734
        }
12795
        oprot.writeFieldEnd();
8735
        oprot.writeFieldEnd();
12796
      } else if (this.isSetEx()) {
8736
      } else if (this.isSetEx()) {
12797
        oprot.writeFieldBegin(EX_FIELD_DESC);
8737
        oprot.writeFieldBegin(EX_FIELD_DESC);
12798
        this.ex.write(oprot);
8738
        this.ex.write(oprot);
12799
        oprot.writeFieldEnd();
8739
        oprot.writeFieldEnd();
Line 12802... Line 8742...
12802
      oprot.writeStructEnd();
8742
      oprot.writeStructEnd();
12803
    }
8743
    }
12804
 
8744
 
12805
    @Override
8745
    @Override
12806
    public String toString() {
8746
    public String toString() {
12807
      StringBuilder sb = new StringBuilder("setShippingDate_result(");
8747
      StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");
12808
      boolean first = true;
8748
      boolean first = true;
12809
 
8749
 
12810
      sb.append("success:");
8750
      sb.append("success:");
-
 
8751
      if (this.success == null) {
-
 
8752
        sb.append("null");
-
 
8753
      } else {
12811
      sb.append(this.success);
8754
        sb.append(this.success);
-
 
8755
      }
12812
      first = false;
8756
      first = false;
12813
      if (!first) sb.append(", ");
8757
      if (!first) sb.append(", ");
12814
      sb.append("ex:");
8758
      sb.append("ex:");
12815
      if (this.ex == null) {
8759
      if (this.ex == null) {
12816
        sb.append("null");
8760
        sb.append("null");
Line 12826... Line 8770...
12826
      // check for required fields
8770
      // check for required fields
12827
    }
8771
    }
12828
 
8772
 
12829
  }
8773
  }
12830
 
8774
 
12831
  public static class setDeliveryDate_args implements TBase<setDeliveryDate_args._Fields>, java.io.Serializable, Cloneable, Comparable<setDeliveryDate_args>   {
8775
  public static class createOrder_args implements TBase<createOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<createOrder_args>   {
12832
    private static final TStruct STRUCT_DESC = new TStruct("setDeliveryDate_args");
8776
    private static final TStruct STRUCT_DESC = new TStruct("createOrder_args");
12833
 
8777
 
12834
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
-
 
12835
    private static final TField SHIPPINGID_FIELD_DESC = new TField("shippingid", TType.I64, (short)2);
-
 
12836
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
8778
    private static final TField ORDER_FIELD_DESC = new TField("order", TType.STRUCT, (short)1);
12837
 
8779
 
12838
    private long transactionId;
-
 
12839
    private long shippingid;
-
 
12840
    private long timestamp;
8780
    private Order order;
12841
 
8781
 
12842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12843
    public enum _Fields implements TFieldIdEnum {
8783
    public enum _Fields implements TFieldIdEnum {
12844
      TRANSACTION_ID((short)1, "transactionId"),
-
 
12845
      SHIPPINGID((short)2, "shippingid"),
-
 
12846
      TIMESTAMP((short)3, "timestamp");
8784
      ORDER((short)1, "order");
12847
 
8785
 
12848
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
8786
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
12849
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12850
 
8788
 
12851
      static {
8789
      static {
Line 12895... Line 8833...
12895
        return _fieldName;
8833
        return _fieldName;
12896
      }
8834
      }
12897
    }
8835
    }
12898
 
8836
 
12899
    // isset id assignments
8837
    // isset id assignments
12900
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
12901
    private static final int __SHIPPINGID_ISSET_ID = 1;
-
 
12902
    private static final int __TIMESTAMP_ISSET_ID = 2;
-
 
12903
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
12904
 
8838
 
12905
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8839
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12906
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
-
 
12907
          new FieldValueMetaData(TType.I64)));
-
 
12908
      put(_Fields.SHIPPINGID, new FieldMetaData("shippingid", TFieldRequirementType.DEFAULT, 
-
 
12909
          new FieldValueMetaData(TType.I64)));
-
 
12910
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
8840
      put(_Fields.ORDER, new FieldMetaData("order", TFieldRequirementType.DEFAULT, 
12911
          new FieldValueMetaData(TType.I64)));
8841
          new StructMetaData(TType.STRUCT, Order.class)));
12912
    }});
8842
    }});
12913
 
8843
 
12914
    static {
8844
    static {
12915
      FieldMetaData.addStructMetaDataMap(setDeliveryDate_args.class, metaDataMap);
8845
      FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);
12916
    }
8846
    }
12917
 
8847
 
12918
    public setDeliveryDate_args() {
8848
    public createOrder_args() {
12919
    }
8849
    }
12920
 
8850
 
12921
    public setDeliveryDate_args(
8851
    public createOrder_args(
12922
      long transactionId,
-
 
12923
      long shippingid,
-
 
12924
      long timestamp)
8852
      Order order)
12925
    {
8853
    {
12926
      this();
8854
      this();
12927
      this.transactionId = transactionId;
-
 
12928
      setTransactionIdIsSet(true);
-
 
12929
      this.shippingid = shippingid;
-
 
12930
      setShippingidIsSet(true);
-
 
12931
      this.timestamp = timestamp;
8855
      this.order = order;
12932
      setTimestampIsSet(true);
-
 
12933
    }
8856
    }
12934
 
8857
 
12935
    /**
8858
    /**
12936
     * Performs a deep copy on <i>other</i>.
8859
     * Performs a deep copy on <i>other</i>.
12937
     */
8860
     */
12938
    public setDeliveryDate_args(setDeliveryDate_args other) {
8861
    public createOrder_args(createOrder_args other) {
12939
      __isset_bit_vector.clear();
8862
      if (other.isSetOrder()) {
12940
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
12941
      this.transactionId = other.transactionId;
-
 
12942
      this.shippingid = other.shippingid;
8863
        this.order = new Order(other.order);
12943
      this.timestamp = other.timestamp;
8864
      }
12944
    }
8865
    }
12945
 
8866
 
12946
    public setDeliveryDate_args deepCopy() {
8867
    public createOrder_args deepCopy() {
12947
      return new setDeliveryDate_args(this);
8868
      return new createOrder_args(this);
12948
    }
8869
    }
12949
 
8870
 
12950
    @Deprecated
8871
    @Deprecated
12951
    public setDeliveryDate_args clone() {
8872
    public createOrder_args clone() {
12952
      return new setDeliveryDate_args(this);
8873
      return new createOrder_args(this);
12953
    }
8874
    }
12954
 
8875
 
12955
    public long getTransactionId() {
8876
    public Order getOrder() {
12956
      return this.transactionId;
8877
      return this.order;
12957
    }
8878
    }
12958
 
8879
 
12959
    public setDeliveryDate_args setTransactionId(long transactionId) {
8880
    public createOrder_args setOrder(Order order) {
12960
      this.transactionId = transactionId;
-
 
12961
      setTransactionIdIsSet(true);
8881
      this.order = order;
12962
      return this;
8882
      return this;
12963
    }
8883
    }
12964
 
8884
 
12965
    public void unsetTransactionId() {
8885
    public void unsetOrder() {
12966
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
8886
      this.order = null;
12967
    }
8887
    }
12968
 
8888
 
12969
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
8889
    /** Returns true if field order is set (has been asigned a value) and false otherwise */
12970
    public boolean isSetTransactionId() {
8890
    public boolean isSetOrder() {
12971
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
12972
    }
-
 
12973
 
-
 
12974
    public void setTransactionIdIsSet(boolean value) {
-
 
12975
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
12976
    }
-
 
12977
 
-
 
12978
    public long getShippingid() {
-
 
12979
      return this.shippingid;
8891
      return this.order != null;
12980
    }
-
 
12981
 
-
 
12982
    public setDeliveryDate_args setShippingid(long shippingid) {
-
 
12983
      this.shippingid = shippingid;
-
 
12984
      setShippingidIsSet(true);
-
 
12985
      return this;
-
 
12986
    }
8892
    }
12987
 
8893
 
12988
    public void unsetShippingid() {
-
 
12989
      __isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);
-
 
12990
    }
-
 
12991
 
-
 
12992
    /** Returns true if field shippingid is set (has been asigned a value) and false otherwise */
-
 
12993
    public boolean isSetShippingid() {
-
 
12994
      return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);
-
 
12995
    }
-
 
12996
 
-
 
12997
    public void setShippingidIsSet(boolean value) {
8894
    public void setOrderIsSet(boolean value) {
12998
      __isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);
-
 
12999
    }
-
 
13000
 
-
 
13001
    public long getTimestamp() {
8895
      if (!value) {
13002
      return this.timestamp;
8896
        this.order = null;
13003
    }
-
 
13004
 
-
 
13005
    public setDeliveryDate_args setTimestamp(long timestamp) {
-
 
13006
      this.timestamp = timestamp;
-
 
13007
      setTimestampIsSet(true);
-
 
13008
      return this;
-
 
13009
    }
-
 
13010
 
-
 
13011
    public void unsetTimestamp() {
-
 
13012
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
-
 
13013
    }
-
 
13014
 
-
 
13015
    /** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
-
 
13016
    public boolean isSetTimestamp() {
-
 
13017
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
-
 
13018
    }
8897
      }
13019
 
-
 
13020
    public void setTimestampIsSet(boolean value) {
-
 
13021
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
-
 
13022
    }
8898
    }
13023
 
8899
 
13024
    public void setFieldValue(_Fields field, Object value) {
8900
    public void setFieldValue(_Fields field, Object value) {
13025
      switch (field) {
8901
      switch (field) {
13026
      case TRANSACTION_ID:
8902
      case ORDER:
13027
        if (value == null) {
8903
        if (value == null) {
13028
          unsetTransactionId();
8904
          unsetOrder();
13029
        } else {
8905
        } else {
13030
          setTransactionId((Long)value);
-
 
13031
        }
-
 
13032
        break;
-
 
13033
 
-
 
13034
      case SHIPPINGID:
-
 
13035
        if (value == null) {
-
 
13036
          unsetShippingid();
-
 
13037
        } else {
-
 
13038
          setShippingid((Long)value);
-
 
13039
        }
-
 
13040
        break;
-
 
13041
 
-
 
13042
      case TIMESTAMP:
-
 
13043
        if (value == null) {
-
 
13044
          unsetTimestamp();
-
 
13045
        } else {
-
 
13046
          setTimestamp((Long)value);
8906
          setOrder((Order)value);
13047
        }
8907
        }
13048
        break;
8908
        break;
13049
 
8909
 
13050
      }
8910
      }
13051
    }
8911
    }
Line 13054... Line 8914...
13054
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
8914
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
13055
    }
8915
    }
13056
 
8916
 
13057
    public Object getFieldValue(_Fields field) {
8917
    public Object getFieldValue(_Fields field) {
13058
      switch (field) {
8918
      switch (field) {
13059
      case TRANSACTION_ID:
-
 
13060
        return new Long(getTransactionId());
-
 
13061
 
-
 
13062
      case SHIPPINGID:
-
 
13063
        return new Long(getShippingid());
-
 
13064
 
-
 
13065
      case TIMESTAMP:
8919
      case ORDER:
13066
        return new Long(getTimestamp());
8920
        return getOrder();
13067
 
8921
 
13068
      }
8922
      }
13069
      throw new IllegalStateException();
8923
      throw new IllegalStateException();
13070
    }
8924
    }
13071
 
8925
 
Line 13074... Line 8928...
13074
    }
8928
    }
13075
 
8929
 
13076
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8930
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13077
    public boolean isSet(_Fields field) {
8931
    public boolean isSet(_Fields field) {
13078
      switch (field) {
8932
      switch (field) {
13079
      case TRANSACTION_ID:
-
 
13080
        return isSetTransactionId();
-
 
13081
      case SHIPPINGID:
-
 
13082
        return isSetShippingid();
-
 
13083
      case TIMESTAMP:
8933
      case ORDER:
13084
        return isSetTimestamp();
8934
        return isSetOrder();
13085
      }
8935
      }
13086
      throw new IllegalStateException();
8936
      throw new IllegalStateException();
13087
    }
8937
    }
13088
 
8938
 
13089
    public boolean isSet(int fieldID) {
8939
    public boolean isSet(int fieldID) {
Line 13092... Line 8942...
13092
 
8942
 
13093
    @Override
8943
    @Override
13094
    public boolean equals(Object that) {
8944
    public boolean equals(Object that) {
13095
      if (that == null)
8945
      if (that == null)
13096
        return false;
8946
        return false;
13097
      if (that instanceof setDeliveryDate_args)
8947
      if (that instanceof createOrder_args)
13098
        return this.equals((setDeliveryDate_args)that);
8948
        return this.equals((createOrder_args)that);
13099
      return false;
8949
      return false;
13100
    }
8950
    }
13101
 
8951
 
13102
    public boolean equals(setDeliveryDate_args that) {
8952
    public boolean equals(createOrder_args that) {
13103
      if (that == null)
8953
      if (that == null)
13104
        return false;
8954
        return false;
13105
 
8955
 
13106
      boolean this_present_transactionId = true;
8956
      boolean this_present_order = true && this.isSetOrder();
13107
      boolean that_present_transactionId = true;
8957
      boolean that_present_order = true && that.isSetOrder();
13108
      if (this_present_transactionId || that_present_transactionId) {
-
 
13109
        if (!(this_present_transactionId && that_present_transactionId))
-
 
13110
          return false;
-
 
13111
        if (this.transactionId != that.transactionId)
-
 
13112
          return false;
-
 
13113
      }
-
 
13114
 
-
 
13115
      boolean this_present_shippingid = true;
-
 
13116
      boolean that_present_shippingid = true;
-
 
13117
      if (this_present_shippingid || that_present_shippingid) {
8958
      if (this_present_order || that_present_order) {
13118
        if (!(this_present_shippingid && that_present_shippingid))
8959
        if (!(this_present_order && that_present_order))
13119
          return false;
8960
          return false;
13120
        if (this.shippingid != that.shippingid)
-
 
13121
          return false;
-
 
13122
      }
-
 
13123
 
-
 
13124
      boolean this_present_timestamp = true;
-
 
13125
      boolean that_present_timestamp = true;
-
 
13126
      if (this_present_timestamp || that_present_timestamp) {
-
 
13127
        if (!(this_present_timestamp && that_present_timestamp))
-
 
13128
          return false;
-
 
13129
        if (this.timestamp != that.timestamp)
8961
        if (!this.order.equals(that.order))
13130
          return false;
8962
          return false;
13131
      }
8963
      }
13132
 
8964
 
13133
      return true;
8965
      return true;
13134
    }
8966
    }
Line 13136... Line 8968...
13136
    @Override
8968
    @Override
13137
    public int hashCode() {
8969
    public int hashCode() {
13138
      return 0;
8970
      return 0;
13139
    }
8971
    }
13140
 
8972
 
13141
    public int compareTo(setDeliveryDate_args other) {
8973
    public int compareTo(createOrder_args other) {
13142
      if (!getClass().equals(other.getClass())) {
8974
      if (!getClass().equals(other.getClass())) {
13143
        return getClass().getName().compareTo(other.getClass().getName());
8975
        return getClass().getName().compareTo(other.getClass().getName());
13144
      }
8976
      }
13145
 
8977
 
13146
      int lastComparison = 0;
8978
      int lastComparison = 0;
13147
      setDeliveryDate_args typedOther = (setDeliveryDate_args)other;
8979
      createOrder_args typedOther = (createOrder_args)other;
13148
 
8980
 
13149
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
8981
      lastComparison = Boolean.valueOf(isSetOrder()).compareTo(isSetOrder());
13150
      if (lastComparison != 0) {
-
 
13151
        return lastComparison;
-
 
13152
      }
-
 
13153
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
13154
      if (lastComparison != 0) {
8982
      if (lastComparison != 0) {
13155
        return lastComparison;
8983
        return lastComparison;
13156
      }
8984
      }
13157
      lastComparison = Boolean.valueOf(isSetShippingid()).compareTo(isSetShippingid());
-
 
13158
      if (lastComparison != 0) {
-
 
13159
        return lastComparison;
-
 
13160
      }
-
 
13161
      lastComparison = TBaseHelper.compareTo(shippingid, typedOther.shippingid);
-
 
13162
      if (lastComparison != 0) {
-
 
13163
        return lastComparison;
-
 
13164
      }
-
 
13165
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());
-
 
13166
      if (lastComparison != 0) {
-
 
13167
        return lastComparison;
-
 
13168
      }
-
 
13169
      lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);
8985
      lastComparison = TBaseHelper.compareTo(order, typedOther.order);
13170
      if (lastComparison != 0) {
8986
      if (lastComparison != 0) {
13171
        return lastComparison;
8987
        return lastComparison;
13172
      }
8988
      }
13173
      return 0;
8989
      return 0;
13174
    }
8990
    }
Line 13185... Line 9001...
13185
        _Fields fieldId = _Fields.findByThriftId(field.id);
9001
        _Fields fieldId = _Fields.findByThriftId(field.id);
13186
        if (fieldId == null) {
9002
        if (fieldId == null) {
13187
          TProtocolUtil.skip(iprot, field.type);
9003
          TProtocolUtil.skip(iprot, field.type);
13188
        } else {
9004
        } else {
13189
          switch (fieldId) {
9005
          switch (fieldId) {
13190
            case TRANSACTION_ID:
-
 
13191
              if (field.type == TType.I64) {
-
 
13192
                this.transactionId = iprot.readI64();
-
 
13193
                setTransactionIdIsSet(true);
-
 
13194
              } else { 
-
 
13195
                TProtocolUtil.skip(iprot, field.type);
-
 
13196
              }
-
 
13197
              break;
-
 
13198
            case SHIPPINGID:
-
 
13199
              if (field.type == TType.I64) {
-
 
13200
                this.shippingid = iprot.readI64();
-
 
13201
                setShippingidIsSet(true);
-
 
13202
              } else { 
-
 
13203
                TProtocolUtil.skip(iprot, field.type);
-
 
13204
              }
-
 
13205
              break;
-
 
13206
            case TIMESTAMP:
9006
            case ORDER:
13207
              if (field.type == TType.I64) {
9007
              if (field.type == TType.STRUCT) {
13208
                this.timestamp = iprot.readI64();
9008
                this.order = new Order();
13209
                setTimestampIsSet(true);
9009
                this.order.read(iprot);
13210
              } else { 
9010
              } else { 
13211
                TProtocolUtil.skip(iprot, field.type);
9011
                TProtocolUtil.skip(iprot, field.type);
13212
              }
9012
              }
13213
              break;
9013
              break;
13214
          }
9014
          }
Line 13221... Line 9021...
13221
 
9021
 
13222
    public void write(TProtocol oprot) throws TException {
9022
    public void write(TProtocol oprot) throws TException {
13223
      validate();
9023
      validate();
13224
 
9024
 
13225
      oprot.writeStructBegin(STRUCT_DESC);
9025
      oprot.writeStructBegin(STRUCT_DESC);
13226
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
13227
      oprot.writeI64(this.transactionId);
-
 
13228
      oprot.writeFieldEnd();
9026
      if (this.order != null) {
13229
      oprot.writeFieldBegin(SHIPPINGID_FIELD_DESC);
9027
        oprot.writeFieldBegin(ORDER_FIELD_DESC);
13230
      oprot.writeI64(this.shippingid);
9028
        this.order.write(oprot);
13231
      oprot.writeFieldEnd();
9029
        oprot.writeFieldEnd();
13232
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
-
 
13233
      oprot.writeI64(this.timestamp);
-
 
13234
      oprot.writeFieldEnd();
9030
      }
13235
      oprot.writeFieldStop();
9031
      oprot.writeFieldStop();
13236
      oprot.writeStructEnd();
9032
      oprot.writeStructEnd();
13237
    }
9033
    }
13238
 
9034
 
13239
    @Override
9035
    @Override
13240
    public String toString() {
9036
    public String toString() {
13241
      StringBuilder sb = new StringBuilder("setDeliveryDate_args(");
9037
      StringBuilder sb = new StringBuilder("createOrder_args(");
13242
      boolean first = true;
9038
      boolean first = true;
13243
 
9039
 
13244
      sb.append("transactionId:");
9040
      sb.append("order:");
13245
      sb.append(this.transactionId);
-
 
13246
      first = false;
-
 
13247
      if (!first) sb.append(", ");
9041
      if (this.order == null) {
13248
      sb.append("shippingid:");
9042
        sb.append("null");
13249
      sb.append(this.shippingid);
-
 
13250
      first = false;
9043
      } else {
13251
      if (!first) sb.append(", ");
-
 
13252
      sb.append("timestamp:");
9044
        sb.append(this.order);
13253
      sb.append(this.timestamp);
9045
      }
13254
      first = false;
9046
      first = false;
13255
      sb.append(")");
9047
      sb.append(")");
13256
      return sb.toString();
9048
      return sb.toString();
13257
    }
9049
    }
13258
 
9050
 
Line 13260... Line 9052...
13260
      // check for required fields
9052
      // check for required fields
13261
    }
9053
    }
13262
 
9054
 
13263
  }
9055
  }
13264
 
9056
 
13265
  public static class setDeliveryDate_result implements TBase<setDeliveryDate_result._Fields>, java.io.Serializable, Cloneable, Comparable<setDeliveryDate_result>   {
9057
  public static class createOrder_result implements TBase<createOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<createOrder_result>   {
13266
    private static final TStruct STRUCT_DESC = new TStruct("setDeliveryDate_result");
9058
    private static final TStruct STRUCT_DESC = new TStruct("createOrder_result");
13267
 
9059
 
13268
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
9060
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
13269
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
9061
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
13270
 
9062
 
13271
    private boolean success;
9063
    private long success;
13272
    private TransactionServiceException ex;
9064
    private TransactionServiceException ex;
13273
 
9065
 
13274
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13275
    public enum _Fields implements TFieldIdEnum {
9067
    public enum _Fields implements TFieldIdEnum {
13276
      SUCCESS((short)0, "success"),
9068
      SUCCESS((short)0, "success"),
Line 13331... Line 9123...
13331
    private static final int __SUCCESS_ISSET_ID = 0;
9123
    private static final int __SUCCESS_ISSET_ID = 0;
13332
    private BitSet __isset_bit_vector = new BitSet(1);
9124
    private BitSet __isset_bit_vector = new BitSet(1);
13333
 
9125
 
13334
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9126
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13335
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
9127
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
13336
          new FieldValueMetaData(TType.BOOL)));
9128
          new FieldValueMetaData(TType.I64)));
13337
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
9129
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
13338
          new FieldValueMetaData(TType.STRUCT)));
9130
          new FieldValueMetaData(TType.STRUCT)));
13339
    }});
9131
    }});
13340
 
9132
 
13341
    static {
9133
    static {
13342
      FieldMetaData.addStructMetaDataMap(setDeliveryDate_result.class, metaDataMap);
9134
      FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);
13343
    }
9135
    }
13344
 
9136
 
13345
    public setDeliveryDate_result() {
9137
    public createOrder_result() {
13346
    }
9138
    }
13347
 
9139
 
13348
    public setDeliveryDate_result(
9140
    public createOrder_result(
13349
      boolean success,
9141
      long success,
13350
      TransactionServiceException ex)
9142
      TransactionServiceException ex)
13351
    {
9143
    {
13352
      this();
9144
      this();
13353
      this.success = success;
9145
      this.success = success;
13354
      setSuccessIsSet(true);
9146
      setSuccessIsSet(true);
Line 13356... Line 9148...
13356
    }
9148
    }
13357
 
9149
 
13358
    /**
9150
    /**
13359
     * Performs a deep copy on <i>other</i>.
9151
     * Performs a deep copy on <i>other</i>.
13360
     */
9152
     */
13361
    public setDeliveryDate_result(setDeliveryDate_result other) {
9153
    public createOrder_result(createOrder_result other) {
13362
      __isset_bit_vector.clear();
9154
      __isset_bit_vector.clear();
13363
      __isset_bit_vector.or(other.__isset_bit_vector);
9155
      __isset_bit_vector.or(other.__isset_bit_vector);
13364
      this.success = other.success;
9156
      this.success = other.success;
13365
      if (other.isSetEx()) {
9157
      if (other.isSetEx()) {
13366
        this.ex = new TransactionServiceException(other.ex);
9158
        this.ex = new TransactionServiceException(other.ex);
13367
      }
9159
      }
13368
    }
9160
    }
13369
 
9161
 
13370
    public setDeliveryDate_result deepCopy() {
9162
    public createOrder_result deepCopy() {
13371
      return new setDeliveryDate_result(this);
9163
      return new createOrder_result(this);
13372
    }
9164
    }
13373
 
9165
 
13374
    @Deprecated
9166
    @Deprecated
13375
    public setDeliveryDate_result clone() {
9167
    public createOrder_result clone() {
13376
      return new setDeliveryDate_result(this);
9168
      return new createOrder_result(this);
13377
    }
9169
    }
13378
 
9170
 
13379
    public boolean isSuccess() {
9171
    public long getSuccess() {
13380
      return this.success;
9172
      return this.success;
13381
    }
9173
    }
13382
 
9174
 
13383
    public setDeliveryDate_result setSuccess(boolean success) {
9175
    public createOrder_result setSuccess(long success) {
13384
      this.success = success;
9176
      this.success = success;
13385
      setSuccessIsSet(true);
9177
      setSuccessIsSet(true);
13386
      return this;
9178
      return this;
13387
    }
9179
    }
13388
 
9180
 
Line 13401... Line 9193...
13401
 
9193
 
13402
    public TransactionServiceException getEx() {
9194
    public TransactionServiceException getEx() {
13403
      return this.ex;
9195
      return this.ex;
13404
    }
9196
    }
13405
 
9197
 
13406
    public setDeliveryDate_result setEx(TransactionServiceException ex) {
9198
    public createOrder_result setEx(TransactionServiceException ex) {
13407
      this.ex = ex;
9199
      this.ex = ex;
13408
      return this;
9200
      return this;
13409
    }
9201
    }
13410
 
9202
 
13411
    public void unsetEx() {
9203
    public void unsetEx() {
Line 13427... Line 9219...
13427
      switch (field) {
9219
      switch (field) {
13428
      case SUCCESS:
9220
      case SUCCESS:
13429
        if (value == null) {
9221
        if (value == null) {
13430
          unsetSuccess();
9222
          unsetSuccess();
13431
        } else {
9223
        } else {
13432
          setSuccess((Boolean)value);
9224
          setSuccess((Long)value);
13433
        }
9225
        }
13434
        break;
9226
        break;
13435
 
9227
 
13436
      case EX:
9228
      case EX:
13437
        if (value == null) {
9229
        if (value == null) {
Line 13449... Line 9241...
13449
    }
9241
    }
13450
 
9242
 
13451
    public Object getFieldValue(_Fields field) {
9243
    public Object getFieldValue(_Fields field) {
13452
      switch (field) {
9244
      switch (field) {
13453
      case SUCCESS:
9245
      case SUCCESS:
13454
        return new Boolean(isSuccess());
9246
        return new Long(getSuccess());
13455
 
9247
 
13456
      case EX:
9248
      case EX:
13457
        return getEx();
9249
        return getEx();
13458
 
9250
 
13459
      }
9251
      }
Line 13481... Line 9273...
13481
 
9273
 
13482
    @Override
9274
    @Override
13483
    public boolean equals(Object that) {
9275
    public boolean equals(Object that) {
13484
      if (that == null)
9276
      if (that == null)
13485
        return false;
9277
        return false;
13486
      if (that instanceof setDeliveryDate_result)
9278
      if (that instanceof createOrder_result)
13487
        return this.equals((setDeliveryDate_result)that);
9279
        return this.equals((createOrder_result)that);
13488
      return false;
9280
      return false;
13489
    }
9281
    }
13490
 
9282
 
13491
    public boolean equals(setDeliveryDate_result that) {
9283
    public boolean equals(createOrder_result that) {
13492
      if (that == null)
9284
      if (that == null)
13493
        return false;
9285
        return false;
13494
 
9286
 
13495
      boolean this_present_success = true;
9287
      boolean this_present_success = true;
13496
      boolean that_present_success = true;
9288
      boolean that_present_success = true;
Line 13516... Line 9308...
13516
    @Override
9308
    @Override
13517
    public int hashCode() {
9309
    public int hashCode() {
13518
      return 0;
9310
      return 0;
13519
    }
9311
    }
13520
 
9312
 
13521
    public int compareTo(setDeliveryDate_result other) {
9313
    public int compareTo(createOrder_result other) {
13522
      if (!getClass().equals(other.getClass())) {
9314
      if (!getClass().equals(other.getClass())) {
13523
        return getClass().getName().compareTo(other.getClass().getName());
9315
        return getClass().getName().compareTo(other.getClass().getName());
13524
      }
9316
      }
13525
 
9317
 
13526
      int lastComparison = 0;
9318
      int lastComparison = 0;
13527
      setDeliveryDate_result typedOther = (setDeliveryDate_result)other;
9319
      createOrder_result typedOther = (createOrder_result)other;
13528
 
9320
 
13529
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
9321
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
13530
      if (lastComparison != 0) {
9322
      if (lastComparison != 0) {
13531
        return lastComparison;
9323
        return lastComparison;
13532
      }
9324
      }
Line 13558... Line 9350...
13558
        if (fieldId == null) {
9350
        if (fieldId == null) {
13559
          TProtocolUtil.skip(iprot, field.type);
9351
          TProtocolUtil.skip(iprot, field.type);
13560
        } else {
9352
        } else {
13561
          switch (fieldId) {
9353
          switch (fieldId) {
13562
            case SUCCESS:
9354
            case SUCCESS:
13563
              if (field.type == TType.BOOL) {
9355
              if (field.type == TType.I64) {
13564
                this.success = iprot.readBool();
9356
                this.success = iprot.readI64();
13565
                setSuccessIsSet(true);
9357
                setSuccessIsSet(true);
13566
              } else { 
9358
              } else { 
13567
                TProtocolUtil.skip(iprot, field.type);
9359
                TProtocolUtil.skip(iprot, field.type);
13568
              }
9360
              }
13569
              break;
9361
              break;
Line 13586... Line 9378...
13586
    public void write(TProtocol oprot) throws TException {
9378
    public void write(TProtocol oprot) throws TException {
13587
      oprot.writeStructBegin(STRUCT_DESC);
9379
      oprot.writeStructBegin(STRUCT_DESC);
13588
 
9380
 
13589
      if (this.isSetSuccess()) {
9381
      if (this.isSetSuccess()) {
13590
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9382
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13591
        oprot.writeBool(this.success);
9383
        oprot.writeI64(this.success);
13592
        oprot.writeFieldEnd();
9384
        oprot.writeFieldEnd();
13593
      } else if (this.isSetEx()) {
9385
      } else if (this.isSetEx()) {
13594
        oprot.writeFieldBegin(EX_FIELD_DESC);
9386
        oprot.writeFieldBegin(EX_FIELD_DESC);
13595
        this.ex.write(oprot);
9387
        this.ex.write(oprot);
13596
        oprot.writeFieldEnd();
9388
        oprot.writeFieldEnd();
Line 13599... Line 9391...
13599
      oprot.writeStructEnd();
9391
      oprot.writeStructEnd();
13600
    }
9392
    }
13601
 
9393
 
13602
    @Override
9394
    @Override
13603
    public String toString() {
9395
    public String toString() {
13604
      StringBuilder sb = new StringBuilder("setDeliveryDate_result(");
9396
      StringBuilder sb = new StringBuilder("createOrder_result(");
13605
      boolean first = true;
9397
      boolean first = true;
13606
 
9398
 
13607
      sb.append("success:");
9399
      sb.append("success:");
13608
      sb.append(this.success);
9400
      sb.append(this.success);
13609
      first = false;
9401
      first = false;
Line 13623... Line 9415...
13623
      // check for required fields
9415
      // check for required fields
13624
    }
9416
    }
13625
 
9417
 
13626
  }
9418
  }
13627
 
9419
 
13628
  public static class changeShippingStatus_args implements TBase<changeShippingStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeShippingStatus_args>   {
9420
  public static class getOrder_args implements TBase<getOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrder_args>   {
13629
    private static final TStruct STRUCT_DESC = new TStruct("changeShippingStatus_args");
9421
    private static final TStruct STRUCT_DESC = new TStruct("getOrder_args");
13630
 
9422
 
13631
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
-
 
13632
    private static final TField SHIPPING_ID_FIELD_DESC = new TField("shippingId", TType.I64, (short)2);
-
 
13633
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3);
9423
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
13634
    private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)4);
-
 
13635
 
9424
 
13636
    private long transactionId;
-
 
13637
    private long shippingId;
9425
    private long id;
13638
    private ShipmentStatus status;
-
 
13639
    private String description;
-
 
13640
 
9426
 
13641
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9427
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13642
    public enum _Fields implements TFieldIdEnum {
9428
    public enum _Fields implements TFieldIdEnum {
13643
      TRANSACTION_ID((short)1, "transactionId"),
-
 
13644
      SHIPPING_ID((short)2, "shippingId"),
-
 
13645
      /**
-
 
13646
       * 
-
 
13647
       * @see ShipmentStatus
-
 
13648
       */
-
 
13649
      STATUS((short)3, "status"),
9429
      ID((short)1, "id");
13650
      DESCRIPTION((short)4, "description");
-
 
13651
 
9430
 
13652
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
9431
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
13653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9432
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13654
 
9433
 
13655
      static {
9434
      static {
Line 13699... Line 9478...
13699
        return _fieldName;
9478
        return _fieldName;
13700
      }
9479
      }
13701
    }
9480
    }
13702
 
9481
 
13703
    // isset id assignments
9482
    // isset id assignments
13704
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
13705
    private static final int __SHIPPINGID_ISSET_ID = 1;
9483
    private static final int __ID_ISSET_ID = 0;
13706
    private BitSet __isset_bit_vector = new BitSet(2);
9484
    private BitSet __isset_bit_vector = new BitSet(1);
13707
 
9485
 
13708
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9486
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13709
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
-
 
13710
          new FieldValueMetaData(TType.I64)));
-
 
13711
      put(_Fields.SHIPPING_ID, new FieldMetaData("shippingId", TFieldRequirementType.DEFAULT, 
9487
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
13712
          new FieldValueMetaData(TType.I64)));
9488
          new FieldValueMetaData(TType.I64)));
13713
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
13714
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
-
 
13715
      put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-
 
13716
          new FieldValueMetaData(TType.STRING)));
-
 
13717
    }});
9489
    }});
13718
 
9490
 
13719
    static {
9491
    static {
13720
      FieldMetaData.addStructMetaDataMap(changeShippingStatus_args.class, metaDataMap);
9492
      FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);
13721
    }
9493
    }
13722
 
9494
 
13723
    public changeShippingStatus_args() {
9495
    public getOrder_args() {
13724
    }
9496
    }
13725
 
9497
 
13726
    public changeShippingStatus_args(
9498
    public getOrder_args(
13727
      long transactionId,
-
 
13728
      long shippingId,
9499
      long id)
13729
      ShipmentStatus status,
-
 
13730
      String description)
-
 
13731
    {
9500
    {
13732
      this();
9501
      this();
13733
      this.transactionId = transactionId;
-
 
13734
      setTransactionIdIsSet(true);
-
 
13735
      this.shippingId = shippingId;
9502
      this.id = id;
13736
      setShippingIdIsSet(true);
9503
      setIdIsSet(true);
13737
      this.status = status;
-
 
13738
      this.description = description;
-
 
13739
    }
9504
    }
13740
 
9505
 
13741
    /**
9506
    /**
13742
     * Performs a deep copy on <i>other</i>.
9507
     * Performs a deep copy on <i>other</i>.
13743
     */
9508
     */
13744
    public changeShippingStatus_args(changeShippingStatus_args other) {
9509
    public getOrder_args(getOrder_args other) {
13745
      __isset_bit_vector.clear();
9510
      __isset_bit_vector.clear();
13746
      __isset_bit_vector.or(other.__isset_bit_vector);
9511
      __isset_bit_vector.or(other.__isset_bit_vector);
13747
      this.transactionId = other.transactionId;
-
 
13748
      this.shippingId = other.shippingId;
-
 
13749
      if (other.isSetStatus()) {
-
 
13750
        this.status = other.status;
9512
      this.id = other.id;
13751
      }
-
 
13752
      if (other.isSetDescription()) {
-
 
13753
        this.description = other.description;
-
 
13754
      }
-
 
13755
    }
9513
    }
13756
 
9514
 
13757
    public changeShippingStatus_args deepCopy() {
9515
    public getOrder_args deepCopy() {
13758
      return new changeShippingStatus_args(this);
9516
      return new getOrder_args(this);
13759
    }
9517
    }
13760
 
9518
 
13761
    @Deprecated
9519
    @Deprecated
13762
    public changeShippingStatus_args clone() {
9520
    public getOrder_args clone() {
13763
      return new changeShippingStatus_args(this);
9521
      return new getOrder_args(this);
13764
    }
-
 
13765
 
-
 
13766
    public long getTransactionId() {
-
 
13767
      return this.transactionId;
-
 
13768
    }
-
 
13769
 
-
 
13770
    public changeShippingStatus_args setTransactionId(long transactionId) {
-
 
13771
      this.transactionId = transactionId;
-
 
13772
      setTransactionIdIsSet(true);
-
 
13773
      return this;
-
 
13774
    }
-
 
13775
 
-
 
13776
    public void unsetTransactionId() {
-
 
13777
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
13778
    }
-
 
13779
 
-
 
13780
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
-
 
13781
    public boolean isSetTransactionId() {
-
 
13782
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
13783
    }
-
 
13784
 
-
 
13785
    public void setTransactionIdIsSet(boolean value) {
-
 
13786
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
13787
    }
-
 
13788
 
-
 
13789
    public long getShippingId() {
-
 
13790
      return this.shippingId;
-
 
13791
    }
-
 
13792
 
-
 
13793
    public changeShippingStatus_args setShippingId(long shippingId) {
-
 
13794
      this.shippingId = shippingId;
-
 
13795
      setShippingIdIsSet(true);
-
 
13796
      return this;
-
 
13797
    }
-
 
13798
 
-
 
13799
    public void unsetShippingId() {
-
 
13800
      __isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);
-
 
13801
    }
-
 
13802
 
-
 
13803
    /** Returns true if field shippingId is set (has been asigned a value) and false otherwise */
-
 
13804
    public boolean isSetShippingId() {
-
 
13805
      return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);
-
 
13806
    }
-
 
13807
 
-
 
13808
    public void setShippingIdIsSet(boolean value) {
-
 
13809
      __isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);
-
 
13810
    }
9522
    }
13811
 
9523
 
13812
    /**
-
 
13813
     * 
-
 
13814
     * @see ShipmentStatus
-
 
13815
     */
-
 
13816
    public ShipmentStatus getStatus() {
9524
    public long getId() {
13817
      return this.status;
-
 
13818
    }
-
 
13819
 
-
 
13820
    /**
-
 
13821
     * 
-
 
13822
     * @see ShipmentStatus
-
 
13823
     */
-
 
13824
    public changeShippingStatus_args setStatus(ShipmentStatus status) {
-
 
13825
      this.status = status;
-
 
13826
      return this;
9525
      return this.id;
13827
    }
-
 
13828
 
-
 
13829
    public void unsetStatus() {
-
 
13830
      this.status = null;
-
 
13831
    }
-
 
13832
 
-
 
13833
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
13834
    public boolean isSetStatus() {
-
 
13835
      return this.status != null;
-
 
13836
    }
-
 
13837
 
-
 
13838
    public void setStatusIsSet(boolean value) {
-
 
13839
      if (!value) {
-
 
13840
        this.status = null;
-
 
13841
      }
-
 
13842
    }
-
 
13843
 
-
 
13844
    public String getDescription() {
-
 
13845
      return this.description;
-
 
13846
    }
9526
    }
13847
 
9527
 
13848
    public changeShippingStatus_args setDescription(String description) {
9528
    public getOrder_args setId(long id) {
13849
      this.description = description;
9529
      this.id = id;
-
 
9530
      setIdIsSet(true);
13850
      return this;
9531
      return this;
13851
    }
9532
    }
13852
 
9533
 
13853
    public void unsetDescription() {
9534
    public void unsetId() {
13854
      this.description = null;
9535
      __isset_bit_vector.clear(__ID_ISSET_ID);
13855
    }
9536
    }
13856
 
9537
 
13857
    /** Returns true if field description is set (has been asigned a value) and false otherwise */
9538
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
13858
    public boolean isSetDescription() {
9539
    public boolean isSetId() {
13859
      return this.description != null;
9540
      return __isset_bit_vector.get(__ID_ISSET_ID);
13860
    }
9541
    }
13861
 
9542
 
13862
    public void setDescriptionIsSet(boolean value) {
9543
    public void setIdIsSet(boolean value) {
13863
      if (!value) {
-
 
13864
        this.description = null;
9544
      __isset_bit_vector.set(__ID_ISSET_ID, value);
13865
      }
-
 
13866
    }
9545
    }
13867
 
9546
 
13868
    public void setFieldValue(_Fields field, Object value) {
9547
    public void setFieldValue(_Fields field, Object value) {
13869
      switch (field) {
9548
      switch (field) {
13870
      case TRANSACTION_ID:
-
 
13871
        if (value == null) {
-
 
13872
          unsetTransactionId();
-
 
13873
        } else {
-
 
13874
          setTransactionId((Long)value);
-
 
13875
        }
-
 
13876
        break;
-
 
13877
 
-
 
13878
      case SHIPPING_ID:
-
 
13879
        if (value == null) {
-
 
13880
          unsetShippingId();
-
 
13881
        } else {
-
 
13882
          setShippingId((Long)value);
-
 
13883
        }
-
 
13884
        break;
-
 
13885
 
-
 
13886
      case STATUS:
9549
      case ID:
13887
        if (value == null) {
-
 
13888
          unsetStatus();
-
 
13889
        } else {
-
 
13890
          setStatus((ShipmentStatus)value);
-
 
13891
        }
-
 
13892
        break;
-
 
13893
 
-
 
13894
      case DESCRIPTION:
-
 
13895
        if (value == null) {
9550
        if (value == null) {
13896
          unsetDescription();
9551
          unsetId();
13897
        } else {
9552
        } else {
13898
          setDescription((String)value);
9553
          setId((Long)value);
13899
        }
9554
        }
13900
        break;
9555
        break;
13901
 
9556
 
13902
      }
9557
      }
13903
    }
9558
    }
Line 13906... Line 9561...
13906
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
9561
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
13907
    }
9562
    }
13908
 
9563
 
13909
    public Object getFieldValue(_Fields field) {
9564
    public Object getFieldValue(_Fields field) {
13910
      switch (field) {
9565
      switch (field) {
13911
      case TRANSACTION_ID:
-
 
13912
        return new Long(getTransactionId());
-
 
13913
 
-
 
13914
      case SHIPPING_ID:
9566
      case ID:
13915
        return new Long(getShippingId());
9567
        return new Long(getId());
13916
 
-
 
13917
      case STATUS:
-
 
13918
        return getStatus();
-
 
13919
 
-
 
13920
      case DESCRIPTION:
-
 
13921
        return getDescription();
-
 
13922
 
9568
 
13923
      }
9569
      }
13924
      throw new IllegalStateException();
9570
      throw new IllegalStateException();
13925
    }
9571
    }
13926
 
9572
 
Line 13929... Line 9575...
13929
    }
9575
    }
13930
 
9576
 
13931
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9577
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13932
    public boolean isSet(_Fields field) {
9578
    public boolean isSet(_Fields field) {
13933
      switch (field) {
9579
      switch (field) {
13934
      case TRANSACTION_ID:
-
 
13935
        return isSetTransactionId();
-
 
13936
      case SHIPPING_ID:
-
 
13937
        return isSetShippingId();
-
 
13938
      case STATUS:
9580
      case ID:
13939
        return isSetStatus();
9581
        return isSetId();
13940
      case DESCRIPTION:
-
 
13941
        return isSetDescription();
-
 
13942
      }
9582
      }
13943
      throw new IllegalStateException();
9583
      throw new IllegalStateException();
13944
    }
9584
    }
13945
 
9585
 
13946
    public boolean isSet(int fieldID) {
9586
    public boolean isSet(int fieldID) {
Line 13949... Line 9589...
13949
 
9589
 
13950
    @Override
9590
    @Override
13951
    public boolean equals(Object that) {
9591
    public boolean equals(Object that) {
13952
      if (that == null)
9592
      if (that == null)
13953
        return false;
9593
        return false;
13954
      if (that instanceof changeShippingStatus_args)
9594
      if (that instanceof getOrder_args)
13955
        return this.equals((changeShippingStatus_args)that);
9595
        return this.equals((getOrder_args)that);
13956
      return false;
9596
      return false;
13957
    }
9597
    }
13958
 
9598
 
13959
    public boolean equals(changeShippingStatus_args that) {
9599
    public boolean equals(getOrder_args that) {
13960
      if (that == null)
9600
      if (that == null)
13961
        return false;
9601
        return false;
13962
 
9602
 
13963
      boolean this_present_transactionId = true;
-
 
13964
      boolean that_present_transactionId = true;
-
 
13965
      if (this_present_transactionId || that_present_transactionId) {
-
 
13966
        if (!(this_present_transactionId && that_present_transactionId))
-
 
13967
          return false;
-
 
13968
        if (this.transactionId != that.transactionId)
-
 
13969
          return false;
-
 
13970
      }
-
 
13971
 
-
 
13972
      boolean this_present_shippingId = true;
9603
      boolean this_present_id = true;
13973
      boolean that_present_shippingId = true;
9604
      boolean that_present_id = true;
13974
      if (this_present_shippingId || that_present_shippingId) {
-
 
13975
        if (!(this_present_shippingId && that_present_shippingId))
-
 
13976
          return false;
-
 
13977
        if (this.shippingId != that.shippingId)
-
 
13978
          return false;
-
 
13979
      }
-
 
13980
 
-
 
13981
      boolean this_present_status = true && this.isSetStatus();
-
 
13982
      boolean that_present_status = true && that.isSetStatus();
-
 
13983
      if (this_present_status || that_present_status) {
9605
      if (this_present_id || that_present_id) {
13984
        if (!(this_present_status && that_present_status))
9606
        if (!(this_present_id && that_present_id))
13985
          return false;
-
 
13986
        if (!this.status.equals(that.status))
-
 
13987
          return false;
-
 
13988
      }
-
 
13989
 
-
 
13990
      boolean this_present_description = true && this.isSetDescription();
-
 
13991
      boolean that_present_description = true && that.isSetDescription();
-
 
13992
      if (this_present_description || that_present_description) {
-
 
13993
        if (!(this_present_description && that_present_description))
-
 
13994
          return false;
9607
          return false;
13995
        if (!this.description.equals(that.description))
9608
        if (this.id != that.id)
13996
          return false;
9609
          return false;
13997
      }
9610
      }
13998
 
9611
 
13999
      return true;
9612
      return true;
14000
    }
9613
    }
Line 14002... Line 9615...
14002
    @Override
9615
    @Override
14003
    public int hashCode() {
9616
    public int hashCode() {
14004
      return 0;
9617
      return 0;
14005
    }
9618
    }
14006
 
9619
 
14007
    public int compareTo(changeShippingStatus_args other) {
9620
    public int compareTo(getOrder_args other) {
14008
      if (!getClass().equals(other.getClass())) {
9621
      if (!getClass().equals(other.getClass())) {
14009
        return getClass().getName().compareTo(other.getClass().getName());
9622
        return getClass().getName().compareTo(other.getClass().getName());
14010
      }
9623
      }
14011
 
9624
 
14012
      int lastComparison = 0;
9625
      int lastComparison = 0;
14013
      changeShippingStatus_args typedOther = (changeShippingStatus_args)other;
9626
      getOrder_args typedOther = (getOrder_args)other;
14014
 
9627
 
14015
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
-
 
14016
      if (lastComparison != 0) {
-
 
14017
        return lastComparison;
-
 
14018
      }
-
 
14019
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
14020
      if (lastComparison != 0) {
-
 
14021
        return lastComparison;
-
 
14022
      }
-
 
14023
      lastComparison = Boolean.valueOf(isSetShippingId()).compareTo(isSetShippingId());
-
 
14024
      if (lastComparison != 0) {
-
 
14025
        return lastComparison;
-
 
14026
      }
-
 
14027
      lastComparison = TBaseHelper.compareTo(shippingId, typedOther.shippingId);
-
 
14028
      if (lastComparison != 0) {
-
 
14029
        return lastComparison;
-
 
14030
      }
-
 
14031
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
9628
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
14032
      if (lastComparison != 0) {
-
 
14033
        return lastComparison;
-
 
14034
      }
-
 
14035
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
14036
      if (lastComparison != 0) {
-
 
14037
        return lastComparison;
-
 
14038
      }
-
 
14039
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
-
 
14040
      if (lastComparison != 0) {
9629
      if (lastComparison != 0) {
14041
        return lastComparison;
9630
        return lastComparison;
14042
      }
9631
      }
14043
      lastComparison = TBaseHelper.compareTo(description, typedOther.description);
9632
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
14044
      if (lastComparison != 0) {
9633
      if (lastComparison != 0) {
14045
        return lastComparison;
9634
        return lastComparison;
14046
      }
9635
      }
14047
      return 0;
9636
      return 0;
14048
    }
9637
    }
Line 14059... Line 9648...
14059
        _Fields fieldId = _Fields.findByThriftId(field.id);
9648
        _Fields fieldId = _Fields.findByThriftId(field.id);
14060
        if (fieldId == null) {
9649
        if (fieldId == null) {
14061
          TProtocolUtil.skip(iprot, field.type);
9650
          TProtocolUtil.skip(iprot, field.type);
14062
        } else {
9651
        } else {
14063
          switch (fieldId) {
9652
          switch (fieldId) {
14064
            case TRANSACTION_ID:
-
 
14065
              if (field.type == TType.I64) {
-
 
14066
                this.transactionId = iprot.readI64();
-
 
14067
                setTransactionIdIsSet(true);
-
 
14068
              } else { 
-
 
14069
                TProtocolUtil.skip(iprot, field.type);
-
 
14070
              }
-
 
14071
              break;
-
 
14072
            case SHIPPING_ID:
9653
            case ID:
14073
              if (field.type == TType.I64) {
9654
              if (field.type == TType.I64) {
14074
                this.shippingId = iprot.readI64();
9655
                this.id = iprot.readI64();
14075
                setShippingIdIsSet(true);
9656
                setIdIsSet(true);
14076
              } else { 
-
 
14077
                TProtocolUtil.skip(iprot, field.type);
-
 
14078
              }
-
 
14079
              break;
-
 
14080
            case STATUS:
-
 
14081
              if (field.type == TType.I32) {
-
 
14082
                this.status = ShipmentStatus.findByValue(iprot.readI32());
-
 
14083
              } else { 
-
 
14084
                TProtocolUtil.skip(iprot, field.type);
-
 
14085
              }
-
 
14086
              break;
-
 
14087
            case DESCRIPTION:
-
 
14088
              if (field.type == TType.STRING) {
-
 
14089
                this.description = iprot.readString();
-
 
14090
              } else { 
9657
              } else { 
14091
                TProtocolUtil.skip(iprot, field.type);
9658
                TProtocolUtil.skip(iprot, field.type);
14092
              }
9659
              }
14093
              break;
9660
              break;
14094
          }
9661
          }
Line 14101... Line 9668...
14101
 
9668
 
14102
    public void write(TProtocol oprot) throws TException {
9669
    public void write(TProtocol oprot) throws TException {
14103
      validate();
9670
      validate();
14104
 
9671
 
14105
      oprot.writeStructBegin(STRUCT_DESC);
9672
      oprot.writeStructBegin(STRUCT_DESC);
14106
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
14107
      oprot.writeI64(this.transactionId);
-
 
14108
      oprot.writeFieldEnd();
-
 
14109
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
9673
      oprot.writeFieldBegin(ID_FIELD_DESC);
14110
      oprot.writeI64(this.shippingId);
9674
      oprot.writeI64(this.id);
14111
      oprot.writeFieldEnd();
9675
      oprot.writeFieldEnd();
14112
      if (this.status != null) {
-
 
14113
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
14114
        oprot.writeI32(this.status.getValue());
-
 
14115
        oprot.writeFieldEnd();
-
 
14116
      }
-
 
14117
      if (this.description != null) {
-
 
14118
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
-
 
14119
        oprot.writeString(this.description);
-
 
14120
        oprot.writeFieldEnd();
-
 
14121
      }
-
 
14122
      oprot.writeFieldStop();
9676
      oprot.writeFieldStop();
14123
      oprot.writeStructEnd();
9677
      oprot.writeStructEnd();
14124
    }
9678
    }
14125
 
9679
 
14126
    @Override
9680
    @Override
14127
    public String toString() {
9681
    public String toString() {
14128
      StringBuilder sb = new StringBuilder("changeShippingStatus_args(");
9682
      StringBuilder sb = new StringBuilder("getOrder_args(");
14129
      boolean first = true;
9683
      boolean first = true;
14130
 
9684
 
14131
      sb.append("transactionId:");
-
 
14132
      sb.append(this.transactionId);
-
 
14133
      first = false;
-
 
14134
      if (!first) sb.append(", ");
-
 
14135
      sb.append("shippingId:");
-
 
14136
      sb.append(this.shippingId);
-
 
14137
      first = false;
-
 
14138
      if (!first) sb.append(", ");
-
 
14139
      sb.append("status:");
9685
      sb.append("id:");
14140
      if (this.status == null) {
-
 
14141
        sb.append("null");
-
 
14142
      } else {
-
 
14143
        String status_name = status.name();
-
 
14144
        if (status_name != null) {
-
 
14145
          sb.append(status_name);
-
 
14146
          sb.append(" (");
-
 
14147
        }
-
 
14148
        sb.append(this.status);
9686
      sb.append(this.id);
14149
        if (status_name != null) {
-
 
14150
          sb.append(")");
-
 
14151
        }
-
 
14152
      }
-
 
14153
      first = false;
-
 
14154
      if (!first) sb.append(", ");
-
 
14155
      sb.append("description:");
-
 
14156
      if (this.description == null) {
-
 
14157
        sb.append("null");
-
 
14158
      } else {
-
 
14159
        sb.append(this.description);
-
 
14160
      }
-
 
14161
      first = false;
9687
      first = false;
14162
      sb.append(")");
9688
      sb.append(")");
14163
      return sb.toString();
9689
      return sb.toString();
14164
    }
9690
    }
14165
 
9691
 
Line 14167... Line 9693...
14167
      // check for required fields
9693
      // check for required fields
14168
    }
9694
    }
14169
 
9695
 
14170
  }
9696
  }
14171
 
9697
 
14172
  public static class changeShippingStatus_result implements TBase<changeShippingStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<changeShippingStatus_result>   {
9698
  public static class getOrder_result implements TBase<getOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrder_result>   {
14173
    private static final TStruct STRUCT_DESC = new TStruct("changeShippingStatus_result");
9699
    private static final TStruct STRUCT_DESC = new TStruct("getOrder_result");
14174
 
9700
 
14175
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
9701
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
14176
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
9702
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
14177
 
9703
 
14178
    private boolean success;
9704
    private Order success;
14179
    private TransactionServiceException ex;
9705
    private TransactionServiceException ex;
14180
 
9706
 
14181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9707
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14182
    public enum _Fields implements TFieldIdEnum {
9708
    public enum _Fields implements TFieldIdEnum {
14183
      SUCCESS((short)0, "success"),
9709
      SUCCESS((short)0, "success"),
Line 14233... Line 9759...
14233
        return _fieldName;
9759
        return _fieldName;
14234
      }
9760
      }
14235
    }
9761
    }
14236
 
9762
 
14237
    // isset id assignments
9763
    // isset id assignments
14238
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
14239
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14240
 
9764
 
14241
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9765
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14242
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
9766
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
14243
          new FieldValueMetaData(TType.BOOL)));
9767
          new StructMetaData(TType.STRUCT, Order.class)));
14244
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
9768
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
14245
          new FieldValueMetaData(TType.STRUCT)));
9769
          new FieldValueMetaData(TType.STRUCT)));
14246
    }});
9770
    }});
14247
 
9771
 
14248
    static {
9772
    static {
14249
      FieldMetaData.addStructMetaDataMap(changeShippingStatus_result.class, metaDataMap);
9773
      FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);
14250
    }
9774
    }
14251
 
9775
 
14252
    public changeShippingStatus_result() {
9776
    public getOrder_result() {
14253
    }
9777
    }
14254
 
9778
 
14255
    public changeShippingStatus_result(
9779
    public getOrder_result(
14256
      boolean success,
9780
      Order success,
14257
      TransactionServiceException ex)
9781
      TransactionServiceException ex)
14258
    {
9782
    {
14259
      this();
9783
      this();
14260
      this.success = success;
9784
      this.success = success;
14261
      setSuccessIsSet(true);
-
 
14262
      this.ex = ex;
9785
      this.ex = ex;
14263
    }
9786
    }
14264
 
9787
 
14265
    /**
9788
    /**
14266
     * Performs a deep copy on <i>other</i>.
9789
     * Performs a deep copy on <i>other</i>.
14267
     */
9790
     */
14268
    public changeShippingStatus_result(changeShippingStatus_result other) {
9791
    public getOrder_result(getOrder_result other) {
14269
      __isset_bit_vector.clear();
9792
      if (other.isSetSuccess()) {
14270
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14271
      this.success = other.success;
9793
        this.success = new Order(other.success);
-
 
9794
      }
14272
      if (other.isSetEx()) {
9795
      if (other.isSetEx()) {
14273
        this.ex = new TransactionServiceException(other.ex);
9796
        this.ex = new TransactionServiceException(other.ex);
14274
      }
9797
      }
14275
    }
9798
    }
14276
 
9799
 
14277
    public changeShippingStatus_result deepCopy() {
9800
    public getOrder_result deepCopy() {
14278
      return new changeShippingStatus_result(this);
9801
      return new getOrder_result(this);
14279
    }
9802
    }
14280
 
9803
 
14281
    @Deprecated
9804
    @Deprecated
14282
    public changeShippingStatus_result clone() {
9805
    public getOrder_result clone() {
14283
      return new changeShippingStatus_result(this);
9806
      return new getOrder_result(this);
14284
    }
9807
    }
14285
 
9808
 
14286
    public boolean isSuccess() {
9809
    public Order getSuccess() {
14287
      return this.success;
9810
      return this.success;
14288
    }
9811
    }
14289
 
9812
 
14290
    public changeShippingStatus_result setSuccess(boolean success) {
9813
    public getOrder_result setSuccess(Order success) {
14291
      this.success = success;
9814
      this.success = success;
14292
      setSuccessIsSet(true);
-
 
14293
      return this;
9815
      return this;
14294
    }
9816
    }
14295
 
9817
 
14296
    public void unsetSuccess() {
9818
    public void unsetSuccess() {
14297
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9819
      this.success = null;
14298
    }
9820
    }
14299
 
9821
 
14300
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9822
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
14301
    public boolean isSetSuccess() {
9823
    public boolean isSetSuccess() {
14302
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9824
      return this.success != null;
14303
    }
9825
    }
14304
 
9826
 
14305
    public void setSuccessIsSet(boolean value) {
9827
    public void setSuccessIsSet(boolean value) {
-
 
9828
      if (!value) {
14306
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9829
        this.success = null;
-
 
9830
      }
14307
    }
9831
    }
14308
 
9832
 
14309
    public TransactionServiceException getEx() {
9833
    public TransactionServiceException getEx() {
14310
      return this.ex;
9834
      return this.ex;
14311
    }
9835
    }
14312
 
9836
 
14313
    public changeShippingStatus_result setEx(TransactionServiceException ex) {
9837
    public getOrder_result setEx(TransactionServiceException ex) {
14314
      this.ex = ex;
9838
      this.ex = ex;
14315
      return this;
9839
      return this;
14316
    }
9840
    }
14317
 
9841
 
14318
    public void unsetEx() {
9842
    public void unsetEx() {
Line 14334... Line 9858...
14334
      switch (field) {
9858
      switch (field) {
14335
      case SUCCESS:
9859
      case SUCCESS:
14336
        if (value == null) {
9860
        if (value == null) {
14337
          unsetSuccess();
9861
          unsetSuccess();
14338
        } else {
9862
        } else {
14339
          setSuccess((Boolean)value);
9863
          setSuccess((Order)value);
14340
        }
9864
        }
14341
        break;
9865
        break;
14342
 
9866
 
14343
      case EX:
9867
      case EX:
14344
        if (value == null) {
9868
        if (value == null) {
Line 14356... Line 9880...
14356
    }
9880
    }
14357
 
9881
 
14358
    public Object getFieldValue(_Fields field) {
9882
    public Object getFieldValue(_Fields field) {
14359
      switch (field) {
9883
      switch (field) {
14360
      case SUCCESS:
9884
      case SUCCESS:
14361
        return new Boolean(isSuccess());
9885
        return getSuccess();
14362
 
9886
 
14363
      case EX:
9887
      case EX:
14364
        return getEx();
9888
        return getEx();
14365
 
9889
 
14366
      }
9890
      }
Line 14388... Line 9912...
14388
 
9912
 
14389
    @Override
9913
    @Override
14390
    public boolean equals(Object that) {
9914
    public boolean equals(Object that) {
14391
      if (that == null)
9915
      if (that == null)
14392
        return false;
9916
        return false;
14393
      if (that instanceof changeShippingStatus_result)
9917
      if (that instanceof getOrder_result)
14394
        return this.equals((changeShippingStatus_result)that);
9918
        return this.equals((getOrder_result)that);
14395
      return false;
9919
      return false;
14396
    }
9920
    }
14397
 
9921
 
14398
    public boolean equals(changeShippingStatus_result that) {
9922
    public boolean equals(getOrder_result that) {
14399
      if (that == null)
9923
      if (that == null)
14400
        return false;
9924
        return false;
14401
 
9925
 
14402
      boolean this_present_success = true;
9926
      boolean this_present_success = true && this.isSetSuccess();
14403
      boolean that_present_success = true;
9927
      boolean that_present_success = true && that.isSetSuccess();
14404
      if (this_present_success || that_present_success) {
9928
      if (this_present_success || that_present_success) {
14405
        if (!(this_present_success && that_present_success))
9929
        if (!(this_present_success && that_present_success))
14406
          return false;
9930
          return false;
14407
        if (this.success != that.success)
9931
        if (!this.success.equals(that.success))
14408
          return false;
9932
          return false;
14409
      }
9933
      }
14410
 
9934
 
14411
      boolean this_present_ex = true && this.isSetEx();
9935
      boolean this_present_ex = true && this.isSetEx();
14412
      boolean that_present_ex = true && that.isSetEx();
9936
      boolean that_present_ex = true && that.isSetEx();
Line 14423... Line 9947...
14423
    @Override
9947
    @Override
14424
    public int hashCode() {
9948
    public int hashCode() {
14425
      return 0;
9949
      return 0;
14426
    }
9950
    }
14427
 
9951
 
14428
    public int compareTo(changeShippingStatus_result other) {
9952
    public int compareTo(getOrder_result other) {
14429
      if (!getClass().equals(other.getClass())) {
9953
      if (!getClass().equals(other.getClass())) {
14430
        return getClass().getName().compareTo(other.getClass().getName());
9954
        return getClass().getName().compareTo(other.getClass().getName());
14431
      }
9955
      }
14432
 
9956
 
14433
      int lastComparison = 0;
9957
      int lastComparison = 0;
14434
      changeShippingStatus_result typedOther = (changeShippingStatus_result)other;
9958
      getOrder_result typedOther = (getOrder_result)other;
14435
 
9959
 
14436
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
9960
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
14437
      if (lastComparison != 0) {
9961
      if (lastComparison != 0) {
14438
        return lastComparison;
9962
        return lastComparison;
14439
      }
9963
      }
Line 14465... Line 9989...
14465
        if (fieldId == null) {
9989
        if (fieldId == null) {
14466
          TProtocolUtil.skip(iprot, field.type);
9990
          TProtocolUtil.skip(iprot, field.type);
14467
        } else {
9991
        } else {
14468
          switch (fieldId) {
9992
          switch (fieldId) {
14469
            case SUCCESS:
9993
            case SUCCESS:
14470
              if (field.type == TType.BOOL) {
9994
              if (field.type == TType.STRUCT) {
14471
                this.success = iprot.readBool();
9995
                this.success = new Order();
14472
                setSuccessIsSet(true);
9996
                this.success.read(iprot);
14473
              } else { 
9997
              } else { 
14474
                TProtocolUtil.skip(iprot, field.type);
9998
                TProtocolUtil.skip(iprot, field.type);
14475
              }
9999
              }
14476
              break;
10000
              break;
14477
            case EX:
10001
            case EX:
Line 14493... Line 10017...
14493
    public void write(TProtocol oprot) throws TException {
10017
    public void write(TProtocol oprot) throws TException {
14494
      oprot.writeStructBegin(STRUCT_DESC);
10018
      oprot.writeStructBegin(STRUCT_DESC);
14495
 
10019
 
14496
      if (this.isSetSuccess()) {
10020
      if (this.isSetSuccess()) {
14497
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10021
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14498
        oprot.writeBool(this.success);
10022
        this.success.write(oprot);
14499
        oprot.writeFieldEnd();
10023
        oprot.writeFieldEnd();
14500
      } else if (this.isSetEx()) {
10024
      } else if (this.isSetEx()) {
14501
        oprot.writeFieldBegin(EX_FIELD_DESC);
10025
        oprot.writeFieldBegin(EX_FIELD_DESC);
14502
        this.ex.write(oprot);
10026
        this.ex.write(oprot);
14503
        oprot.writeFieldEnd();
10027
        oprot.writeFieldEnd();
Line 14506... Line 10030...
14506
      oprot.writeStructEnd();
10030
      oprot.writeStructEnd();
14507
    }
10031
    }
14508
 
10032
 
14509
    @Override
10033
    @Override
14510
    public String toString() {
10034
    public String toString() {
14511
      StringBuilder sb = new StringBuilder("changeShippingStatus_result(");
10035
      StringBuilder sb = new StringBuilder("getOrder_result(");
14512
      boolean first = true;
10036
      boolean first = true;
14513
 
10037
 
14514
      sb.append("success:");
10038
      sb.append("success:");
-
 
10039
      if (this.success == null) {
-
 
10040
        sb.append("null");
-
 
10041
      } else {
14515
      sb.append(this.success);
10042
        sb.append(this.success);
-
 
10043
      }
14516
      first = false;
10044
      first = false;
14517
      if (!first) sb.append(", ");
10045
      if (!first) sb.append(", ");
14518
      sb.append("ex:");
10046
      sb.append("ex:");
14519
      if (this.ex == null) {
10047
      if (this.ex == null) {
14520
        sb.append("null");
10048
        sb.append("null");
Line 14530... Line 10058...
14530
      // check for required fields
10058
      // check for required fields
14531
    }
10059
    }
14532
 
10060
 
14533
  }
10061
  }
14534
 
10062
 
14535
  public static class addTrail_args implements TBase<addTrail_args._Fields>, java.io.Serializable, Cloneable, Comparable<addTrail_args>   {
10063
  public static class getLineItemsForOrder_args implements TBase<getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLineItemsForOrder_args>   {
14536
    private static final TStruct STRUCT_DESC = new TStruct("addTrail_args");
10064
    private static final TStruct STRUCT_DESC = new TStruct("getLineItemsForOrder_args");
14537
 
10065
 
14538
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
10066
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
14539
    private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
-
 
14540
 
10067
 
14541
    private long transactionId;
10068
    private long orderId;
14542
    private String description;
-
 
14543
 
10069
 
14544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10070
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14545
    public enum _Fields implements TFieldIdEnum {
10071
    public enum _Fields implements TFieldIdEnum {
14546
      TRANSACTION_ID((short)1, "transactionId"),
10072
      ORDER_ID((short)1, "orderId");
14547
      DESCRIPTION((short)2, "description");
-
 
14548
 
10073
 
14549
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
10074
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
14550
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14551
 
10076
 
14552
      static {
10077
      static {
Line 14596... Line 10121...
14596
        return _fieldName;
10121
        return _fieldName;
14597
      }
10122
      }
14598
    }
10123
    }
14599
 
10124
 
14600
    // isset id assignments
10125
    // isset id assignments
14601
    private static final int __TRANSACTIONID_ISSET_ID = 0;
10126
    private static final int __ORDERID_ISSET_ID = 0;
14602
    private BitSet __isset_bit_vector = new BitSet(1);
10127
    private BitSet __isset_bit_vector = new BitSet(1);
14603
 
10128
 
14604
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10129
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14605
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
10130
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
14606
          new FieldValueMetaData(TType.I64)));
10131
          new FieldValueMetaData(TType.I64)));
14607
      put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-
 
14608
          new FieldValueMetaData(TType.STRING)));
-
 
14609
    }});
10132
    }});
14610
 
10133
 
14611
    static {
10134
    static {
14612
      FieldMetaData.addStructMetaDataMap(addTrail_args.class, metaDataMap);
10135
      FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);
14613
    }
10136
    }
14614
 
10137
 
14615
    public addTrail_args() {
10138
    public getLineItemsForOrder_args() {
14616
    }
10139
    }
14617
 
10140
 
14618
    public addTrail_args(
10141
    public getLineItemsForOrder_args(
14619
      long transactionId,
10142
      long orderId)
14620
      String description)
-
 
14621
    {
10143
    {
14622
      this();
10144
      this();
14623
      this.transactionId = transactionId;
10145
      this.orderId = orderId;
14624
      setTransactionIdIsSet(true);
10146
      setOrderIdIsSet(true);
14625
      this.description = description;
-
 
14626
    }
10147
    }
14627
 
10148
 
14628
    /**
10149
    /**
14629
     * Performs a deep copy on <i>other</i>.
10150
     * Performs a deep copy on <i>other</i>.
14630
     */
10151
     */
14631
    public addTrail_args(addTrail_args other) {
10152
    public getLineItemsForOrder_args(getLineItemsForOrder_args other) {
14632
      __isset_bit_vector.clear();
10153
      __isset_bit_vector.clear();
14633
      __isset_bit_vector.or(other.__isset_bit_vector);
10154
      __isset_bit_vector.or(other.__isset_bit_vector);
14634
      this.transactionId = other.transactionId;
10155
      this.orderId = other.orderId;
14635
      if (other.isSetDescription()) {
-
 
14636
        this.description = other.description;
-
 
14637
      }
-
 
14638
    }
10156
    }
14639
 
10157
 
14640
    public addTrail_args deepCopy() {
10158
    public getLineItemsForOrder_args deepCopy() {
14641
      return new addTrail_args(this);
10159
      return new getLineItemsForOrder_args(this);
14642
    }
10160
    }
14643
 
10161
 
14644
    @Deprecated
10162
    @Deprecated
14645
    public addTrail_args clone() {
10163
    public getLineItemsForOrder_args clone() {
14646
      return new addTrail_args(this);
10164
      return new getLineItemsForOrder_args(this);
14647
    }
10165
    }
14648
 
10166
 
14649
    public long getTransactionId() {
10167
    public long getOrderId() {
14650
      return this.transactionId;
10168
      return this.orderId;
14651
    }
10169
    }
14652
 
10170
 
14653
    public addTrail_args setTransactionId(long transactionId) {
10171
    public getLineItemsForOrder_args setOrderId(long orderId) {
14654
      this.transactionId = transactionId;
10172
      this.orderId = orderId;
14655
      setTransactionIdIsSet(true);
10173
      setOrderIdIsSet(true);
14656
      return this;
10174
      return this;
14657
    }
10175
    }
14658
 
10176
 
14659
    public void unsetTransactionId() {
10177
    public void unsetOrderId() {
14660
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
10178
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14661
    }
10179
    }
14662
 
10180
 
14663
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
10181
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
14664
    public boolean isSetTransactionId() {
10182
    public boolean isSetOrderId() {
14665
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
10183
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14666
    }
-
 
14667
 
-
 
14668
    public void setTransactionIdIsSet(boolean value) {
-
 
14669
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
14670
    }
-
 
14671
 
-
 
14672
    public String getDescription() {
-
 
14673
      return this.description;
-
 
14674
    }
-
 
14675
 
-
 
14676
    public addTrail_args setDescription(String description) {
-
 
14677
      this.description = description;
-
 
14678
      return this;
-
 
14679
    }
10184
    }
14680
 
10185
 
14681
    public void unsetDescription() {
-
 
14682
      this.description = null;
-
 
14683
    }
-
 
14684
 
-
 
14685
    /** Returns true if field description is set (has been asigned a value) and false otherwise */
-
 
14686
    public boolean isSetDescription() {
-
 
14687
      return this.description != null;
-
 
14688
    }
-
 
14689
 
-
 
14690
    public void setDescriptionIsSet(boolean value) {
10186
    public void setOrderIdIsSet(boolean value) {
14691
      if (!value) {
-
 
14692
        this.description = null;
10187
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14693
      }
-
 
14694
    }
10188
    }
14695
 
10189
 
14696
    public void setFieldValue(_Fields field, Object value) {
10190
    public void setFieldValue(_Fields field, Object value) {
14697
      switch (field) {
10191
      switch (field) {
14698
      case TRANSACTION_ID:
-
 
14699
        if (value == null) {
-
 
14700
          unsetTransactionId();
-
 
14701
        } else {
-
 
14702
          setTransactionId((Long)value);
-
 
14703
        }
-
 
14704
        break;
-
 
14705
 
-
 
14706
      case DESCRIPTION:
10192
      case ORDER_ID:
14707
        if (value == null) {
10193
        if (value == null) {
14708
          unsetDescription();
10194
          unsetOrderId();
14709
        } else {
10195
        } else {
14710
          setDescription((String)value);
10196
          setOrderId((Long)value);
14711
        }
10197
        }
14712
        break;
10198
        break;
14713
 
10199
 
14714
      }
10200
      }
14715
    }
10201
    }
Line 14718... Line 10204...
14718
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
10204
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
14719
    }
10205
    }
14720
 
10206
 
14721
    public Object getFieldValue(_Fields field) {
10207
    public Object getFieldValue(_Fields field) {
14722
      switch (field) {
10208
      switch (field) {
14723
      case TRANSACTION_ID:
10209
      case ORDER_ID:
14724
        return new Long(getTransactionId());
10210
        return new Long(getOrderId());
14725
 
-
 
14726
      case DESCRIPTION:
-
 
14727
        return getDescription();
-
 
14728
 
10211
 
14729
      }
10212
      }
14730
      throw new IllegalStateException();
10213
      throw new IllegalStateException();
14731
    }
10214
    }
14732
 
10215
 
Line 14735... Line 10218...
14735
    }
10218
    }
14736
 
10219
 
14737
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10220
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
14738
    public boolean isSet(_Fields field) {
10221
    public boolean isSet(_Fields field) {
14739
      switch (field) {
10222
      switch (field) {
14740
      case TRANSACTION_ID:
-
 
14741
        return isSetTransactionId();
-
 
14742
      case DESCRIPTION:
10223
      case ORDER_ID:
14743
        return isSetDescription();
10224
        return isSetOrderId();
14744
      }
10225
      }
14745
      throw new IllegalStateException();
10226
      throw new IllegalStateException();
14746
    }
10227
    }
14747
 
10228
 
14748
    public boolean isSet(int fieldID) {
10229
    public boolean isSet(int fieldID) {
Line 14751... Line 10232...
14751
 
10232
 
14752
    @Override
10233
    @Override
14753
    public boolean equals(Object that) {
10234
    public boolean equals(Object that) {
14754
      if (that == null)
10235
      if (that == null)
14755
        return false;
10236
        return false;
14756
      if (that instanceof addTrail_args)
10237
      if (that instanceof getLineItemsForOrder_args)
14757
        return this.equals((addTrail_args)that);
10238
        return this.equals((getLineItemsForOrder_args)that);
14758
      return false;
10239
      return false;
14759
    }
10240
    }
14760
 
10241
 
14761
    public boolean equals(addTrail_args that) {
10242
    public boolean equals(getLineItemsForOrder_args that) {
14762
      if (that == null)
10243
      if (that == null)
14763
        return false;
10244
        return false;
14764
 
10245
 
14765
      boolean this_present_transactionId = true;
10246
      boolean this_present_orderId = true;
14766
      boolean that_present_transactionId = true;
10247
      boolean that_present_orderId = true;
14767
      if (this_present_transactionId || that_present_transactionId) {
10248
      if (this_present_orderId || that_present_orderId) {
14768
        if (!(this_present_transactionId && that_present_transactionId))
10249
        if (!(this_present_orderId && that_present_orderId))
14769
          return false;
10250
          return false;
14770
        if (this.transactionId != that.transactionId)
10251
        if (this.orderId != that.orderId)
14771
          return false;
-
 
14772
      }
-
 
14773
 
-
 
14774
      boolean this_present_description = true && this.isSetDescription();
-
 
14775
      boolean that_present_description = true && that.isSetDescription();
-
 
14776
      if (this_present_description || that_present_description) {
-
 
14777
        if (!(this_present_description && that_present_description))
-
 
14778
          return false;
-
 
14779
        if (!this.description.equals(that.description))
-
 
14780
          return false;
10252
          return false;
14781
      }
10253
      }
14782
 
10254
 
14783
      return true;
10255
      return true;
14784
    }
10256
    }
Line 14786... Line 10258...
14786
    @Override
10258
    @Override
14787
    public int hashCode() {
10259
    public int hashCode() {
14788
      return 0;
10260
      return 0;
14789
    }
10261
    }
14790
 
10262
 
14791
    public int compareTo(addTrail_args other) {
10263
    public int compareTo(getLineItemsForOrder_args other) {
14792
      if (!getClass().equals(other.getClass())) {
10264
      if (!getClass().equals(other.getClass())) {
14793
        return getClass().getName().compareTo(other.getClass().getName());
10265
        return getClass().getName().compareTo(other.getClass().getName());
14794
      }
10266
      }
14795
 
10267
 
14796
      int lastComparison = 0;
10268
      int lastComparison = 0;
14797
      addTrail_args typedOther = (addTrail_args)other;
10269
      getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;
14798
 
10270
 
14799
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
10271
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
14800
      if (lastComparison != 0) {
-
 
14801
        return lastComparison;
-
 
14802
      }
-
 
14803
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
-
 
14804
      if (lastComparison != 0) {
10272
      if (lastComparison != 0) {
14805
        return lastComparison;
10273
        return lastComparison;
14806
      }
10274
      }
14807
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
-
 
14808
      if (lastComparison != 0) {
-
 
14809
        return lastComparison;
-
 
14810
      }
-
 
14811
      lastComparison = TBaseHelper.compareTo(description, typedOther.description);
10275
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
14812
      if (lastComparison != 0) {
10276
      if (lastComparison != 0) {
14813
        return lastComparison;
10277
        return lastComparison;
14814
      }
10278
      }
14815
      return 0;
10279
      return 0;
14816
    }
10280
    }
Line 14827... Line 10291...
14827
        _Fields fieldId = _Fields.findByThriftId(field.id);
10291
        _Fields fieldId = _Fields.findByThriftId(field.id);
14828
        if (fieldId == null) {
10292
        if (fieldId == null) {
14829
          TProtocolUtil.skip(iprot, field.type);
10293
          TProtocolUtil.skip(iprot, field.type);
14830
        } else {
10294
        } else {
14831
          switch (fieldId) {
10295
          switch (fieldId) {
14832
            case TRANSACTION_ID:
10296
            case ORDER_ID:
14833
              if (field.type == TType.I64) {
10297
              if (field.type == TType.I64) {
14834
                this.transactionId = iprot.readI64();
10298
                this.orderId = iprot.readI64();
14835
                setTransactionIdIsSet(true);
10299
                setOrderIdIsSet(true);
14836
              } else { 
-
 
14837
                TProtocolUtil.skip(iprot, field.type);
-
 
14838
              }
-
 
14839
              break;
-
 
14840
            case DESCRIPTION:
-
 
14841
              if (field.type == TType.STRING) {
-
 
14842
                this.description = iprot.readString();
-
 
14843
              } else { 
10300
              } else { 
14844
                TProtocolUtil.skip(iprot, field.type);
10301
                TProtocolUtil.skip(iprot, field.type);
14845
              }
10302
              }
14846
              break;
10303
              break;
14847
          }
10304
          }
Line 14854... Line 10311...
14854
 
10311
 
14855
    public void write(TProtocol oprot) throws TException {
10312
    public void write(TProtocol oprot) throws TException {
14856
      validate();
10313
      validate();
14857
 
10314
 
14858
      oprot.writeStructBegin(STRUCT_DESC);
10315
      oprot.writeStructBegin(STRUCT_DESC);
14859
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
10316
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14860
      oprot.writeI64(this.transactionId);
10317
      oprot.writeI64(this.orderId);
14861
      oprot.writeFieldEnd();
10318
      oprot.writeFieldEnd();
14862
      if (this.description != null) {
-
 
14863
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
-
 
14864
        oprot.writeString(this.description);
-
 
14865
        oprot.writeFieldEnd();
-
 
14866
      }
-
 
14867
      oprot.writeFieldStop();
10319
      oprot.writeFieldStop();
14868
      oprot.writeStructEnd();
10320
      oprot.writeStructEnd();
14869
    }
10321
    }
14870
 
10322
 
14871
    @Override
10323
    @Override
14872
    public String toString() {
10324
    public String toString() {
14873
      StringBuilder sb = new StringBuilder("addTrail_args(");
10325
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");
14874
      boolean first = true;
10326
      boolean first = true;
14875
 
10327
 
14876
      sb.append("transactionId:");
10328
      sb.append("orderId:");
14877
      sb.append(this.transactionId);
10329
      sb.append(this.orderId);
14878
      first = false;
-
 
14879
      if (!first) sb.append(", ");
-
 
14880
      sb.append("description:");
-
 
14881
      if (this.description == null) {
-
 
14882
        sb.append("null");
-
 
14883
      } else {
-
 
14884
        sb.append(this.description);
-
 
14885
      }
-
 
14886
      first = false;
10330
      first = false;
14887
      sb.append(")");
10331
      sb.append(")");
14888
      return sb.toString();
10332
      return sb.toString();
14889
    }
10333
    }
14890
 
10334
 
Line 14892... Line 10336...
14892
      // check for required fields
10336
      // check for required fields
14893
    }
10337
    }
14894
 
10338
 
14895
  }
10339
  }
14896
 
10340
 
14897
  public static class addTrail_result implements TBase<addTrail_result._Fields>, java.io.Serializable, Cloneable, Comparable<addTrail_result>   {
10341
  public static class getLineItemsForOrder_result implements TBase<getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLineItemsForOrder_result>   {
14898
    private static final TStruct STRUCT_DESC = new TStruct("addTrail_result");
10342
    private static final TStruct STRUCT_DESC = new TStruct("getLineItemsForOrder_result");
14899
 
10343
 
14900
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
10344
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
14901
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
10345
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
14902
 
10346
 
14903
    private boolean success;
10347
    private List<LineItem> success;
14904
    private TransactionServiceException ex;
10348
    private TransactionServiceException ex;
14905
 
10349
 
14906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10350
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14907
    public enum _Fields implements TFieldIdEnum {
10351
    public enum _Fields implements TFieldIdEnum {
14908
      SUCCESS((short)0, "success"),
10352
      SUCCESS((short)0, "success"),
Line 14958... Line 10402...
14958
        return _fieldName;
10402
        return _fieldName;
14959
      }
10403
      }
14960
    }
10404
    }
14961
 
10405
 
14962
    // isset id assignments
10406
    // isset id assignments
14963
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
14964
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14965
 
10407
 
14966
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10408
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14967
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
10409
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
14968
          new FieldValueMetaData(TType.BOOL)));
10410
          new ListMetaData(TType.LIST, 
-
 
10411
              new StructMetaData(TType.STRUCT, LineItem.class))));
14969
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
10412
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
14970
          new FieldValueMetaData(TType.STRUCT)));
10413
          new FieldValueMetaData(TType.STRUCT)));
14971
    }});
10414
    }});
14972
 
10415
 
14973
    static {
10416
    static {
14974
      FieldMetaData.addStructMetaDataMap(addTrail_result.class, metaDataMap);
10417
      FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);
14975
    }
10418
    }
14976
 
10419
 
14977
    public addTrail_result() {
10420
    public getLineItemsForOrder_result() {
14978
    }
10421
    }
14979
 
10422
 
14980
    public addTrail_result(
10423
    public getLineItemsForOrder_result(
14981
      boolean success,
10424
      List<LineItem> success,
14982
      TransactionServiceException ex)
10425
      TransactionServiceException ex)
14983
    {
10426
    {
14984
      this();
10427
      this();
14985
      this.success = success;
10428
      this.success = success;
14986
      setSuccessIsSet(true);
-
 
14987
      this.ex = ex;
10429
      this.ex = ex;
14988
    }
10430
    }
14989
 
10431
 
14990
    /**
10432
    /**
14991
     * Performs a deep copy on <i>other</i>.
10433
     * Performs a deep copy on <i>other</i>.
14992
     */
10434
     */
14993
    public addTrail_result(addTrail_result other) {
10435
    public getLineItemsForOrder_result(getLineItemsForOrder_result other) {
14994
      __isset_bit_vector.clear();
10436
      if (other.isSetSuccess()) {
-
 
10437
        List<LineItem> __this__success = new ArrayList<LineItem>();
14995
      __isset_bit_vector.or(other.__isset_bit_vector);
10438
        for (LineItem other_element : other.success) {
-
 
10439
          __this__success.add(new LineItem(other_element));
-
 
10440
        }
14996
      this.success = other.success;
10441
        this.success = __this__success;
-
 
10442
      }
14997
      if (other.isSetEx()) {
10443
      if (other.isSetEx()) {
14998
        this.ex = new TransactionServiceException(other.ex);
10444
        this.ex = new TransactionServiceException(other.ex);
14999
      }
10445
      }
15000
    }
10446
    }
15001
 
10447
 
15002
    public addTrail_result deepCopy() {
10448
    public getLineItemsForOrder_result deepCopy() {
15003
      return new addTrail_result(this);
10449
      return new getLineItemsForOrder_result(this);
15004
    }
10450
    }
15005
 
10451
 
15006
    @Deprecated
10452
    @Deprecated
15007
    public addTrail_result clone() {
10453
    public getLineItemsForOrder_result clone() {
15008
      return new addTrail_result(this);
10454
      return new getLineItemsForOrder_result(this);
15009
    }
10455
    }
15010
 
10456
 
15011
    public boolean isSuccess() {
10457
    public int getSuccessSize() {
-
 
10458
      return (this.success == null) ? 0 : this.success.size();
-
 
10459
    }
-
 
10460
 
-
 
10461
    public java.util.Iterator<LineItem> getSuccessIterator() {
-
 
10462
      return (this.success == null) ? null : this.success.iterator();
-
 
10463
    }
-
 
10464
 
-
 
10465
    public void addToSuccess(LineItem elem) {
-
 
10466
      if (this.success == null) {
-
 
10467
        this.success = new ArrayList<LineItem>();
-
 
10468
      }
-
 
10469
      this.success.add(elem);
-
 
10470
    }
-
 
10471
 
-
 
10472
    public List<LineItem> getSuccess() {
15012
      return this.success;
10473
      return this.success;
15013
    }
10474
    }
15014
 
10475
 
15015
    public addTrail_result setSuccess(boolean success) {
10476
    public getLineItemsForOrder_result setSuccess(List<LineItem> success) {
15016
      this.success = success;
10477
      this.success = success;
15017
      setSuccessIsSet(true);
-
 
15018
      return this;
10478
      return this;
15019
    }
10479
    }
15020
 
10480
 
15021
    public void unsetSuccess() {
10481
    public void unsetSuccess() {
15022
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10482
      this.success = null;
15023
    }
10483
    }
15024
 
10484
 
15025
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
10485
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
15026
    public boolean isSetSuccess() {
10486
    public boolean isSetSuccess() {
15027
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10487
      return this.success != null;
15028
    }
10488
    }
15029
 
10489
 
15030
    public void setSuccessIsSet(boolean value) {
10490
    public void setSuccessIsSet(boolean value) {
-
 
10491
      if (!value) {
15031
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10492
        this.success = null;
-
 
10493
      }
15032
    }
10494
    }
15033
 
10495
 
15034
    public TransactionServiceException getEx() {
10496
    public TransactionServiceException getEx() {
15035
      return this.ex;
10497
      return this.ex;
15036
    }
10498
    }
15037
 
10499
 
15038
    public addTrail_result setEx(TransactionServiceException ex) {
10500
    public getLineItemsForOrder_result setEx(TransactionServiceException ex) {
15039
      this.ex = ex;
10501
      this.ex = ex;
15040
      return this;
10502
      return this;
15041
    }
10503
    }
15042
 
10504
 
15043
    public void unsetEx() {
10505
    public void unsetEx() {
Line 15059... Line 10521...
15059
      switch (field) {
10521
      switch (field) {
15060
      case SUCCESS:
10522
      case SUCCESS:
15061
        if (value == null) {
10523
        if (value == null) {
15062
          unsetSuccess();
10524
          unsetSuccess();
15063
        } else {
10525
        } else {
15064
          setSuccess((Boolean)value);
10526
          setSuccess((List<LineItem>)value);
15065
        }
10527
        }
15066
        break;
10528
        break;
15067
 
10529
 
15068
      case EX:
10530
      case EX:
15069
        if (value == null) {
10531
        if (value == null) {
Line 15081... Line 10543...
15081
    }
10543
    }
15082
 
10544
 
15083
    public Object getFieldValue(_Fields field) {
10545
    public Object getFieldValue(_Fields field) {
15084
      switch (field) {
10546
      switch (field) {
15085
      case SUCCESS:
10547
      case SUCCESS:
15086
        return new Boolean(isSuccess());
10548
        return getSuccess();
15087
 
10549
 
15088
      case EX:
10550
      case EX:
15089
        return getEx();
10551
        return getEx();
15090
 
10552
 
15091
      }
10553
      }
Line 15113... Line 10575...
15113
 
10575
 
15114
    @Override
10576
    @Override
15115
    public boolean equals(Object that) {
10577
    public boolean equals(Object that) {
15116
      if (that == null)
10578
      if (that == null)
15117
        return false;
10579
        return false;
15118
      if (that instanceof addTrail_result)
10580
      if (that instanceof getLineItemsForOrder_result)
15119
        return this.equals((addTrail_result)that);
10581
        return this.equals((getLineItemsForOrder_result)that);
15120
      return false;
10582
      return false;
15121
    }
10583
    }
15122
 
10584
 
15123
    public boolean equals(addTrail_result that) {
10585
    public boolean equals(getLineItemsForOrder_result that) {
15124
      if (that == null)
10586
      if (that == null)
15125
        return false;
10587
        return false;
15126
 
10588
 
15127
      boolean this_present_success = true;
10589
      boolean this_present_success = true && this.isSetSuccess();
15128
      boolean that_present_success = true;
10590
      boolean that_present_success = true && that.isSetSuccess();
15129
      if (this_present_success || that_present_success) {
10591
      if (this_present_success || that_present_success) {
15130
        if (!(this_present_success && that_present_success))
10592
        if (!(this_present_success && that_present_success))
15131
          return false;
10593
          return false;
15132
        if (this.success != that.success)
10594
        if (!this.success.equals(that.success))
15133
          return false;
10595
          return false;
15134
      }
10596
      }
15135
 
10597
 
15136
      boolean this_present_ex = true && this.isSetEx();
10598
      boolean this_present_ex = true && this.isSetEx();
15137
      boolean that_present_ex = true && that.isSetEx();
10599
      boolean that_present_ex = true && that.isSetEx();
Line 15148... Line 10610...
15148
    @Override
10610
    @Override
15149
    public int hashCode() {
10611
    public int hashCode() {
15150
      return 0;
10612
      return 0;
15151
    }
10613
    }
15152
 
10614
 
15153
    public int compareTo(addTrail_result other) {
10615
    public int compareTo(getLineItemsForOrder_result other) {
15154
      if (!getClass().equals(other.getClass())) {
10616
      if (!getClass().equals(other.getClass())) {
15155
        return getClass().getName().compareTo(other.getClass().getName());
10617
        return getClass().getName().compareTo(other.getClass().getName());
15156
      }
10618
      }
15157
 
10619
 
15158
      int lastComparison = 0;
10620
      int lastComparison = 0;
15159
      addTrail_result typedOther = (addTrail_result)other;
10621
      getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;
15160
 
10622
 
15161
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10623
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
15162
      if (lastComparison != 0) {
10624
      if (lastComparison != 0) {
15163
        return lastComparison;
10625
        return lastComparison;
15164
      }
10626
      }
Line 15190... Line 10652...
15190
        if (fieldId == null) {
10652
        if (fieldId == null) {
15191
          TProtocolUtil.skip(iprot, field.type);
10653
          TProtocolUtil.skip(iprot, field.type);
15192
        } else {
10654
        } else {
15193
          switch (fieldId) {
10655
          switch (fieldId) {
15194
            case SUCCESS:
10656
            case SUCCESS:
15195
              if (field.type == TType.BOOL) {
10657
              if (field.type == TType.LIST) {
-
 
10658
                {
15196
                this.success = iprot.readBool();
10659
                  TList _list33 = iprot.readListBegin();
-
 
10660
                  this.success = new ArrayList<LineItem>(_list33.size);
-
 
10661
                  for (int _i34 = 0; _i34 < _list33.size; ++_i34)
-
 
10662
                  {
-
 
10663
                    LineItem _elem35;
-
 
10664
                    _elem35 = new LineItem();
15197
                setSuccessIsSet(true);
10665
                    _elem35.read(iprot);
-
 
10666
                    this.success.add(_elem35);
-
 
10667
                  }
-
 
10668
                  iprot.readListEnd();
-
 
10669
                }
15198
              } else { 
10670
              } else { 
15199
                TProtocolUtil.skip(iprot, field.type);
10671
                TProtocolUtil.skip(iprot, field.type);
15200
              }
10672
              }
15201
              break;
10673
              break;
15202
            case EX:
10674
            case EX:
Line 15218... Line 10690...
15218
    public void write(TProtocol oprot) throws TException {
10690
    public void write(TProtocol oprot) throws TException {
15219
      oprot.writeStructBegin(STRUCT_DESC);
10691
      oprot.writeStructBegin(STRUCT_DESC);
15220
 
10692
 
15221
      if (this.isSetSuccess()) {
10693
      if (this.isSetSuccess()) {
15222
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10694
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10695
        {
-
 
10696
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
10697
          for (LineItem _iter36 : this.success)
-
 
10698
          {
-
 
10699
            _iter36.write(oprot);
-
 
10700
          }
15223
        oprot.writeBool(this.success);
10701
          oprot.writeListEnd();
-
 
10702
        }
15224
        oprot.writeFieldEnd();
10703
        oprot.writeFieldEnd();
15225
      } else if (this.isSetEx()) {
10704
      } else if (this.isSetEx()) {
15226
        oprot.writeFieldBegin(EX_FIELD_DESC);
10705
        oprot.writeFieldBegin(EX_FIELD_DESC);
15227
        this.ex.write(oprot);
10706
        this.ex.write(oprot);
15228
        oprot.writeFieldEnd();
10707
        oprot.writeFieldEnd();
Line 15231... Line 10710...
15231
      oprot.writeStructEnd();
10710
      oprot.writeStructEnd();
15232
    }
10711
    }
15233
 
10712
 
15234
    @Override
10713
    @Override
15235
    public String toString() {
10714
    public String toString() {
15236
      StringBuilder sb = new StringBuilder("addTrail_result(");
10715
      StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");
15237
      boolean first = true;
10716
      boolean first = true;
15238
 
10717
 
15239
      sb.append("success:");
10718
      sb.append("success:");
-
 
10719
      if (this.success == null) {
-
 
10720
        sb.append("null");
-
 
10721
      } else {
15240
      sb.append(this.success);
10722
        sb.append(this.success);
-
 
10723
      }
15241
      first = false;
10724
      first = false;
15242
      if (!first) sb.append(", ");
10725
      if (!first) sb.append(", ");
15243
      sb.append("ex:");
10726
      sb.append("ex:");
15244
      if (this.ex == null) {
10727
      if (this.ex == null) {
15245
        sb.append("null");
10728
        sb.append("null");
Line 15258... Line 10741...
15258
  }
10741
  }
15259
 
10742
 
15260
  public static class getAlerts_args implements TBase<getAlerts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_args>   {
10743
  public static class getAlerts_args implements TBase<getAlerts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_args>   {
15261
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_args");
10744
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_args");
15262
 
10745
 
15263
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
10746
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
15264
    private static final TField VALID_FIELD_DESC = new TField("valid", TType.BOOL, (short)2);
10747
    private static final TField VALID_FIELD_DESC = new TField("valid", TType.BOOL, (short)2);
15265
 
10748
 
15266
    private long transactionId;
10749
    private long orderId;
15267
    private boolean valid;
10750
    private boolean valid;
15268
 
10751
 
15269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10752
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15270
    public enum _Fields implements TFieldIdEnum {
10753
    public enum _Fields implements TFieldIdEnum {
15271
      TRANSACTION_ID((short)1, "transactionId"),
10754
      ORDER_ID((short)1, "orderId"),
15272
      VALID((short)2, "valid");
10755
      VALID((short)2, "valid");
15273
 
10756
 
15274
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
10757
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
15275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10758
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15276
 
10759
 
Line 15321... Line 10804...
15321
        return _fieldName;
10804
        return _fieldName;
15322
      }
10805
      }
15323
    }
10806
    }
15324
 
10807
 
15325
    // isset id assignments
10808
    // isset id assignments
15326
    private static final int __TRANSACTIONID_ISSET_ID = 0;
10809
    private static final int __ORDERID_ISSET_ID = 0;
15327
    private static final int __VALID_ISSET_ID = 1;
10810
    private static final int __VALID_ISSET_ID = 1;
15328
    private BitSet __isset_bit_vector = new BitSet(2);
10811
    private BitSet __isset_bit_vector = new BitSet(2);
15329
 
10812
 
15330
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10813
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
15331
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
10814
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
15332
          new FieldValueMetaData(TType.I64)));
10815
          new FieldValueMetaData(TType.I64)));
15333
      put(_Fields.VALID, new FieldMetaData("valid", TFieldRequirementType.DEFAULT, 
10816
      put(_Fields.VALID, new FieldMetaData("valid", TFieldRequirementType.DEFAULT, 
15334
          new FieldValueMetaData(TType.BOOL)));
10817
          new FieldValueMetaData(TType.BOOL)));
15335
    }});
10818
    }});
15336
 
10819
 
Line 15340... Line 10823...
15340
 
10823
 
15341
    public getAlerts_args() {
10824
    public getAlerts_args() {
15342
    }
10825
    }
15343
 
10826
 
15344
    public getAlerts_args(
10827
    public getAlerts_args(
15345
      long transactionId,
10828
      long orderId,
15346
      boolean valid)
10829
      boolean valid)
15347
    {
10830
    {
15348
      this();
10831
      this();
15349
      this.transactionId = transactionId;
10832
      this.orderId = orderId;
15350
      setTransactionIdIsSet(true);
10833
      setOrderIdIsSet(true);
15351
      this.valid = valid;
10834
      this.valid = valid;
15352
      setValidIsSet(true);
10835
      setValidIsSet(true);
15353
    }
10836
    }
15354
 
10837
 
15355
    /**
10838
    /**
15356
     * Performs a deep copy on <i>other</i>.
10839
     * Performs a deep copy on <i>other</i>.
15357
     */
10840
     */
15358
    public getAlerts_args(getAlerts_args other) {
10841
    public getAlerts_args(getAlerts_args other) {
15359
      __isset_bit_vector.clear();
10842
      __isset_bit_vector.clear();
15360
      __isset_bit_vector.or(other.__isset_bit_vector);
10843
      __isset_bit_vector.or(other.__isset_bit_vector);
15361
      this.transactionId = other.transactionId;
10844
      this.orderId = other.orderId;
15362
      this.valid = other.valid;
10845
      this.valid = other.valid;
15363
    }
10846
    }
15364
 
10847
 
15365
    public getAlerts_args deepCopy() {
10848
    public getAlerts_args deepCopy() {
15366
      return new getAlerts_args(this);
10849
      return new getAlerts_args(this);
Line 15369... Line 10852...
15369
    @Deprecated
10852
    @Deprecated
15370
    public getAlerts_args clone() {
10853
    public getAlerts_args clone() {
15371
      return new getAlerts_args(this);
10854
      return new getAlerts_args(this);
15372
    }
10855
    }
15373
 
10856
 
15374
    public long getTransactionId() {
10857
    public long getOrderId() {
15375
      return this.transactionId;
10858
      return this.orderId;
15376
    }
10859
    }
15377
 
10860
 
15378
    public getAlerts_args setTransactionId(long transactionId) {
10861
    public getAlerts_args setOrderId(long orderId) {
15379
      this.transactionId = transactionId;
10862
      this.orderId = orderId;
15380
      setTransactionIdIsSet(true);
10863
      setOrderIdIsSet(true);
15381
      return this;
10864
      return this;
15382
    }
10865
    }
15383
 
10866
 
15384
    public void unsetTransactionId() {
10867
    public void unsetOrderId() {
15385
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
10868
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15386
    }
10869
    }
15387
 
10870
 
15388
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
10871
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
15389
    public boolean isSetTransactionId() {
10872
    public boolean isSetOrderId() {
15390
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
10873
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15391
    }
10874
    }
15392
 
10875
 
15393
    public void setTransactionIdIsSet(boolean value) {
10876
    public void setOrderIdIsSet(boolean value) {
15394
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
10877
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15395
    }
10878
    }
15396
 
10879
 
15397
    public boolean isValid() {
10880
    public boolean isValid() {
15398
      return this.valid;
10881
      return this.valid;
15399
    }
10882
    }
Line 15417... Line 10900...
15417
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
10900
      __isset_bit_vector.set(__VALID_ISSET_ID, value);
15418
    }
10901
    }
15419
 
10902
 
15420
    public void setFieldValue(_Fields field, Object value) {
10903
    public void setFieldValue(_Fields field, Object value) {
15421
      switch (field) {
10904
      switch (field) {
15422
      case TRANSACTION_ID:
10905
      case ORDER_ID:
15423
        if (value == null) {
10906
        if (value == null) {
15424
          unsetTransactionId();
10907
          unsetOrderId();
15425
        } else {
10908
        } else {
15426
          setTransactionId((Long)value);
10909
          setOrderId((Long)value);
15427
        }
10910
        }
15428
        break;
10911
        break;
15429
 
10912
 
15430
      case VALID:
10913
      case VALID:
15431
        if (value == null) {
10914
        if (value == null) {
Line 15442... Line 10925...
15442
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
10925
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
15443
    }
10926
    }
15444
 
10927
 
15445
    public Object getFieldValue(_Fields field) {
10928
    public Object getFieldValue(_Fields field) {
15446
      switch (field) {
10929
      switch (field) {
15447
      case TRANSACTION_ID:
10930
      case ORDER_ID:
15448
        return new Long(getTransactionId());
10931
        return new Long(getOrderId());
15449
 
10932
 
15450
      case VALID:
10933
      case VALID:
15451
        return new Boolean(isValid());
10934
        return new Boolean(isValid());
15452
 
10935
 
15453
      }
10936
      }
Line 15459... Line 10942...
15459
    }
10942
    }
15460
 
10943
 
15461
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10944
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
15462
    public boolean isSet(_Fields field) {
10945
    public boolean isSet(_Fields field) {
15463
      switch (field) {
10946
      switch (field) {
15464
      case TRANSACTION_ID:
10947
      case ORDER_ID:
15465
        return isSetTransactionId();
10948
        return isSetOrderId();
15466
      case VALID:
10949
      case VALID:
15467
        return isSetValid();
10950
        return isSetValid();
15468
      }
10951
      }
15469
      throw new IllegalStateException();
10952
      throw new IllegalStateException();
15470
    }
10953
    }
Line 15484... Line 10967...
15484
 
10967
 
15485
    public boolean equals(getAlerts_args that) {
10968
    public boolean equals(getAlerts_args that) {
15486
      if (that == null)
10969
      if (that == null)
15487
        return false;
10970
        return false;
15488
 
10971
 
15489
      boolean this_present_transactionId = true;
10972
      boolean this_present_orderId = true;
15490
      boolean that_present_transactionId = true;
10973
      boolean that_present_orderId = true;
15491
      if (this_present_transactionId || that_present_transactionId) {
10974
      if (this_present_orderId || that_present_orderId) {
15492
        if (!(this_present_transactionId && that_present_transactionId))
10975
        if (!(this_present_orderId && that_present_orderId))
15493
          return false;
10976
          return false;
15494
        if (this.transactionId != that.transactionId)
10977
        if (this.orderId != that.orderId)
15495
          return false;
10978
          return false;
15496
      }
10979
      }
15497
 
10980
 
15498
      boolean this_present_valid = true;
10981
      boolean this_present_valid = true;
15499
      boolean that_present_valid = true;
10982
      boolean that_present_valid = true;
Line 15518... Line 11001...
15518
      }
11001
      }
15519
 
11002
 
15520
      int lastComparison = 0;
11003
      int lastComparison = 0;
15521
      getAlerts_args typedOther = (getAlerts_args)other;
11004
      getAlerts_args typedOther = (getAlerts_args)other;
15522
 
11005
 
15523
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
11006
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
15524
      if (lastComparison != 0) {
11007
      if (lastComparison != 0) {
15525
        return lastComparison;
11008
        return lastComparison;
15526
      }
11009
      }
15527
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
11010
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
15528
      if (lastComparison != 0) {
11011
      if (lastComparison != 0) {
15529
        return lastComparison;
11012
        return lastComparison;
15530
      }
11013
      }
15531
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(isSetValid());
11014
      lastComparison = Boolean.valueOf(isSetValid()).compareTo(isSetValid());
15532
      if (lastComparison != 0) {
11015
      if (lastComparison != 0) {
Line 15551... Line 11034...
15551
        _Fields fieldId = _Fields.findByThriftId(field.id);
11034
        _Fields fieldId = _Fields.findByThriftId(field.id);
15552
        if (fieldId == null) {
11035
        if (fieldId == null) {
15553
          TProtocolUtil.skip(iprot, field.type);
11036
          TProtocolUtil.skip(iprot, field.type);
15554
        } else {
11037
        } else {
15555
          switch (fieldId) {
11038
          switch (fieldId) {
15556
            case TRANSACTION_ID:
11039
            case ORDER_ID:
15557
              if (field.type == TType.I64) {
11040
              if (field.type == TType.I64) {
15558
                this.transactionId = iprot.readI64();
11041
                this.orderId = iprot.readI64();
15559
                setTransactionIdIsSet(true);
11042
                setOrderIdIsSet(true);
15560
              } else { 
11043
              } else { 
15561
                TProtocolUtil.skip(iprot, field.type);
11044
                TProtocolUtil.skip(iprot, field.type);
15562
              }
11045
              }
15563
              break;
11046
              break;
15564
            case VALID:
11047
            case VALID:
Line 15579... Line 11062...
15579
 
11062
 
15580
    public void write(TProtocol oprot) throws TException {
11063
    public void write(TProtocol oprot) throws TException {
15581
      validate();
11064
      validate();
15582
 
11065
 
15583
      oprot.writeStructBegin(STRUCT_DESC);
11066
      oprot.writeStructBegin(STRUCT_DESC);
15584
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
11067
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15585
      oprot.writeI64(this.transactionId);
11068
      oprot.writeI64(this.orderId);
15586
      oprot.writeFieldEnd();
11069
      oprot.writeFieldEnd();
15587
      oprot.writeFieldBegin(VALID_FIELD_DESC);
11070
      oprot.writeFieldBegin(VALID_FIELD_DESC);
15588
      oprot.writeBool(this.valid);
11071
      oprot.writeBool(this.valid);
15589
      oprot.writeFieldEnd();
11072
      oprot.writeFieldEnd();
15590
      oprot.writeFieldStop();
11073
      oprot.writeFieldStop();
Line 15594... Line 11077...
15594
    @Override
11077
    @Override
15595
    public String toString() {
11078
    public String toString() {
15596
      StringBuilder sb = new StringBuilder("getAlerts_args(");
11079
      StringBuilder sb = new StringBuilder("getAlerts_args(");
15597
      boolean first = true;
11080
      boolean first = true;
15598
 
11081
 
15599
      sb.append("transactionId:");
11082
      sb.append("orderId:");
15600
      sb.append(this.transactionId);
11083
      sb.append(this.orderId);
15601
      first = false;
11084
      first = false;
15602
      if (!first) sb.append(", ");
11085
      if (!first) sb.append(", ");
15603
      sb.append("valid:");
11086
      sb.append("valid:");
15604
      sb.append(this.valid);
11087
      sb.append(this.valid);
15605
      first = false;
11088
      first = false;
Line 15865... Line 11348...
15865
        } else {
11348
        } else {
15866
          switch (fieldId) {
11349
          switch (fieldId) {
15867
            case SUCCESS:
11350
            case SUCCESS:
15868
              if (field.type == TType.LIST) {
11351
              if (field.type == TType.LIST) {
15869
                {
11352
                {
15870
                  TList _list50 = iprot.readListBegin();
11353
                  TList _list37 = iprot.readListBegin();
15871
                  this.success = new ArrayList<Alert>(_list50.size);
11354
                  this.success = new ArrayList<Alert>(_list37.size);
15872
                  for (int _i51 = 0; _i51 < _list50.size; ++_i51)
11355
                  for (int _i38 = 0; _i38 < _list37.size; ++_i38)
15873
                  {
11356
                  {
15874
                    Alert _elem52;
11357
                    Alert _elem39;
15875
                    _elem52 = new Alert();
11358
                    _elem39 = new Alert();
15876
                    _elem52.read(iprot);
11359
                    _elem39.read(iprot);
15877
                    this.success.add(_elem52);
11360
                    this.success.add(_elem39);
15878
                  }
11361
                  }
15879
                  iprot.readListEnd();
11362
                  iprot.readListEnd();
15880
                }
11363
                }
15881
              } else { 
11364
              } else { 
15882
                TProtocolUtil.skip(iprot, field.type);
11365
                TProtocolUtil.skip(iprot, field.type);
Line 15895... Line 11378...
15895
 
11378
 
15896
      if (this.isSetSuccess()) {
11379
      if (this.isSetSuccess()) {
15897
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11380
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15898
        {
11381
        {
15899
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
11382
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15900
          for (Alert _iter53 : this.success)
11383
          for (Alert _iter40 : this.success)
15901
          {
11384
          {
15902
            _iter53.write(oprot);
11385
            _iter40.write(oprot);
15903
          }
11386
          }
15904
          oprot.writeListEnd();
11387
          oprot.writeListEnd();
15905
        }
11388
        }
15906
        oprot.writeFieldEnd();
11389
        oprot.writeFieldEnd();
15907
      }
11390
      }
Line 15932... Line 11415...
15932
  }
11415
  }
15933
 
11416
 
15934
  public static class setAlert_args implements TBase<setAlert_args._Fields>, java.io.Serializable, Cloneable, Comparable<setAlert_args>   {
11417
  public static class setAlert_args implements TBase<setAlert_args._Fields>, java.io.Serializable, Cloneable, Comparable<setAlert_args>   {
15935
    private static final TStruct STRUCT_DESC = new TStruct("setAlert_args");
11418
    private static final TStruct STRUCT_DESC = new TStruct("setAlert_args");
15936
 
11419
 
15937
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);
11420
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
15938
    private static final TField UNSET_FIELD_DESC = new TField("unset", TType.BOOL, (short)2);
11421
    private static final TField UNSET_FIELD_DESC = new TField("unset", TType.BOOL, (short)2);
15939
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I64, (short)3);
11422
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I64, (short)3);
15940
    private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)4);
11423
    private static final TField COMMENT_FIELD_DESC = new TField("comment", TType.STRING, (short)4);
15941
 
11424
 
15942
    private long transactionId;
11425
    private long orderId;
15943
    private boolean unset;
11426
    private boolean unset;
15944
    private long type;
11427
    private long type;
15945
    private String comment;
11428
    private String comment;
15946
 
11429
 
15947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15948
    public enum _Fields implements TFieldIdEnum {
11431
    public enum _Fields implements TFieldIdEnum {
15949
      TRANSACTION_ID((short)1, "transactionId"),
11432
      ORDER_ID((short)1, "orderId"),
15950
      UNSET((short)2, "unset"),
11433
      UNSET((short)2, "unset"),
15951
      TYPE((short)3, "type"),
11434
      TYPE((short)3, "type"),
15952
      COMMENT((short)4, "comment");
11435
      COMMENT((short)4, "comment");
15953
 
11436
 
15954
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
11437
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
Line 16001... Line 11484...
16001
        return _fieldName;
11484
        return _fieldName;
16002
      }
11485
      }
16003
    }
11486
    }
16004
 
11487
 
16005
    // isset id assignments
11488
    // isset id assignments
16006
    private static final int __TRANSACTIONID_ISSET_ID = 0;
11489
    private static final int __ORDERID_ISSET_ID = 0;
16007
    private static final int __UNSET_ISSET_ID = 1;
11490
    private static final int __UNSET_ISSET_ID = 1;
16008
    private static final int __TYPE_ISSET_ID = 2;
11491
    private static final int __TYPE_ISSET_ID = 2;
16009
    private BitSet __isset_bit_vector = new BitSet(3);
11492
    private BitSet __isset_bit_vector = new BitSet(3);
16010
 
11493
 
16011
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11494
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
16012
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT, 
11495
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
16013
          new FieldValueMetaData(TType.I64)));
11496
          new FieldValueMetaData(TType.I64)));
16014
      put(_Fields.UNSET, new FieldMetaData("unset", TFieldRequirementType.DEFAULT, 
11497
      put(_Fields.UNSET, new FieldMetaData("unset", TFieldRequirementType.DEFAULT, 
16015
          new FieldValueMetaData(TType.BOOL)));
11498
          new FieldValueMetaData(TType.BOOL)));
16016
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
11499
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
16017
          new FieldValueMetaData(TType.I64)));
11500
          new FieldValueMetaData(TType.I64)));
Line 16025... Line 11508...
16025
 
11508
 
16026
    public setAlert_args() {
11509
    public setAlert_args() {
16027
    }
11510
    }
16028
 
11511
 
16029
    public setAlert_args(
11512
    public setAlert_args(
16030
      long transactionId,
11513
      long orderId,
16031
      boolean unset,
11514
      boolean unset,
16032
      long type,
11515
      long type,
16033
      String comment)
11516
      String comment)
16034
    {
11517
    {
16035
      this();
11518
      this();
16036
      this.transactionId = transactionId;
11519
      this.orderId = orderId;
16037
      setTransactionIdIsSet(true);
11520
      setOrderIdIsSet(true);
16038
      this.unset = unset;
11521
      this.unset = unset;
16039
      setUnsetIsSet(true);
11522
      setUnsetIsSet(true);
16040
      this.type = type;
11523
      this.type = type;
16041
      setTypeIsSet(true);
11524
      setTypeIsSet(true);
16042
      this.comment = comment;
11525
      this.comment = comment;
Line 16046... Line 11529...
16046
     * Performs a deep copy on <i>other</i>.
11529
     * Performs a deep copy on <i>other</i>.
16047
     */
11530
     */
16048
    public setAlert_args(setAlert_args other) {
11531
    public setAlert_args(setAlert_args other) {
16049
      __isset_bit_vector.clear();
11532
      __isset_bit_vector.clear();
16050
      __isset_bit_vector.or(other.__isset_bit_vector);
11533
      __isset_bit_vector.or(other.__isset_bit_vector);
16051
      this.transactionId = other.transactionId;
11534
      this.orderId = other.orderId;
16052
      this.unset = other.unset;
11535
      this.unset = other.unset;
16053
      this.type = other.type;
11536
      this.type = other.type;
16054
      if (other.isSetComment()) {
11537
      if (other.isSetComment()) {
16055
        this.comment = other.comment;
11538
        this.comment = other.comment;
16056
      }
11539
      }
Line 16063... Line 11546...
16063
    @Deprecated
11546
    @Deprecated
16064
    public setAlert_args clone() {
11547
    public setAlert_args clone() {
16065
      return new setAlert_args(this);
11548
      return new setAlert_args(this);
16066
    }
11549
    }
16067
 
11550
 
16068
    public long getTransactionId() {
11551
    public long getOrderId() {
16069
      return this.transactionId;
11552
      return this.orderId;
16070
    }
11553
    }
16071
 
11554
 
16072
    public setAlert_args setTransactionId(long transactionId) {
11555
    public setAlert_args setOrderId(long orderId) {
16073
      this.transactionId = transactionId;
11556
      this.orderId = orderId;
16074
      setTransactionIdIsSet(true);
11557
      setOrderIdIsSet(true);
16075
      return this;
11558
      return this;
16076
    }
11559
    }
16077
 
11560
 
16078
    public void unsetTransactionId() {
11561
    public void unsetOrderId() {
16079
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
11562
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
16080
    }
11563
    }
16081
 
11564
 
16082
    /** Returns true if field transactionId is set (has been asigned a value) and false otherwise */
11565
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
16083
    public boolean isSetTransactionId() {
11566
    public boolean isSetOrderId() {
16084
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
11567
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
16085
    }
11568
    }
16086
 
11569
 
16087
    public void setTransactionIdIsSet(boolean value) {
11570
    public void setOrderIdIsSet(boolean value) {
16088
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
11571
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
16089
    }
11572
    }
16090
 
11573
 
16091
    public boolean isUnset() {
11574
    public boolean isUnset() {
16092
      return this.unset;
11575
      return this.unset;
16093
    }
11576
    }
Line 16158... Line 11641...
16158
      }
11641
      }
16159
    }
11642
    }
16160
 
11643
 
16161
    public void setFieldValue(_Fields field, Object value) {
11644
    public void setFieldValue(_Fields field, Object value) {
16162
      switch (field) {
11645
      switch (field) {
16163
      case TRANSACTION_ID:
11646
      case ORDER_ID:
16164
        if (value == null) {
11647
        if (value == null) {
16165
          unsetTransactionId();
11648
          unsetOrderId();
16166
        } else {
11649
        } else {
16167
          setTransactionId((Long)value);
11650
          setOrderId((Long)value);
16168
        }
11651
        }
16169
        break;
11652
        break;
16170
 
11653
 
16171
      case UNSET:
11654
      case UNSET:
16172
        if (value == null) {
11655
        if (value == null) {
Line 16199... Line 11682...
16199
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
11682
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
16200
    }
11683
    }
16201
 
11684
 
16202
    public Object getFieldValue(_Fields field) {
11685
    public Object getFieldValue(_Fields field) {
16203
      switch (field) {
11686
      switch (field) {
16204
      case TRANSACTION_ID:
11687
      case ORDER_ID:
16205
        return new Long(getTransactionId());
11688
        return new Long(getOrderId());
16206
 
11689
 
16207
      case UNSET:
11690
      case UNSET:
16208
        return new Boolean(isUnset());
11691
        return new Boolean(isUnset());
16209
 
11692
 
16210
      case TYPE:
11693
      case TYPE:
Line 16222... Line 11705...
16222
    }
11705
    }
16223
 
11706
 
16224
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11707
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
16225
    public boolean isSet(_Fields field) {
11708
    public boolean isSet(_Fields field) {
16226
      switch (field) {
11709
      switch (field) {
16227
      case TRANSACTION_ID:
11710
      case ORDER_ID:
16228
        return isSetTransactionId();
11711
        return isSetOrderId();
16229
      case UNSET:
11712
      case UNSET:
16230
        return isSetUnset();
11713
        return isSetUnset();
16231
      case TYPE:
11714
      case TYPE:
16232
        return isSetType();
11715
        return isSetType();
16233
      case COMMENT:
11716
      case COMMENT:
Line 16251... Line 11734...
16251
 
11734
 
16252
    public boolean equals(setAlert_args that) {
11735
    public boolean equals(setAlert_args that) {
16253
      if (that == null)
11736
      if (that == null)
16254
        return false;
11737
        return false;
16255
 
11738
 
16256
      boolean this_present_transactionId = true;
11739
      boolean this_present_orderId = true;
16257
      boolean that_present_transactionId = true;
11740
      boolean that_present_orderId = true;
16258
      if (this_present_transactionId || that_present_transactionId) {
11741
      if (this_present_orderId || that_present_orderId) {
16259
        if (!(this_present_transactionId && that_present_transactionId))
11742
        if (!(this_present_orderId && that_present_orderId))
16260
          return false;
11743
          return false;
16261
        if (this.transactionId != that.transactionId)
11744
        if (this.orderId != that.orderId)
16262
          return false;
11745
          return false;
16263
      }
11746
      }
16264
 
11747
 
16265
      boolean this_present_unset = true;
11748
      boolean this_present_unset = true;
16266
      boolean that_present_unset = true;
11749
      boolean that_present_unset = true;
Line 16303... Line 11786...
16303
      }
11786
      }
16304
 
11787
 
16305
      int lastComparison = 0;
11788
      int lastComparison = 0;
16306
      setAlert_args typedOther = (setAlert_args)other;
11789
      setAlert_args typedOther = (setAlert_args)other;
16307
 
11790
 
16308
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());
11791
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
16309
      if (lastComparison != 0) {
11792
      if (lastComparison != 0) {
16310
        return lastComparison;
11793
        return lastComparison;
16311
      }
11794
      }
16312
      lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);
11795
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
16313
      if (lastComparison != 0) {
11796
      if (lastComparison != 0) {
16314
        return lastComparison;
11797
        return lastComparison;
16315
      }
11798
      }
16316
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(isSetUnset());
11799
      lastComparison = Boolean.valueOf(isSetUnset()).compareTo(isSetUnset());
16317
      if (lastComparison != 0) {
11800
      if (lastComparison != 0) {
Line 16352... Line 11835...
16352
        _Fields fieldId = _Fields.findByThriftId(field.id);
11835
        _Fields fieldId = _Fields.findByThriftId(field.id);
16353
        if (fieldId == null) {
11836
        if (fieldId == null) {
16354
          TProtocolUtil.skip(iprot, field.type);
11837
          TProtocolUtil.skip(iprot, field.type);
16355
        } else {
11838
        } else {
16356
          switch (fieldId) {
11839
          switch (fieldId) {
16357
            case TRANSACTION_ID:
11840
            case ORDER_ID:
16358
              if (field.type == TType.I64) {
11841
              if (field.type == TType.I64) {
16359
                this.transactionId = iprot.readI64();
11842
                this.orderId = iprot.readI64();
16360
                setTransactionIdIsSet(true);
11843
                setOrderIdIsSet(true);
16361
              } else { 
11844
              } else { 
16362
                TProtocolUtil.skip(iprot, field.type);
11845
                TProtocolUtil.skip(iprot, field.type);
16363
              }
11846
              }
16364
              break;
11847
              break;
16365
            case UNSET:
11848
            case UNSET:
Line 16395... Line 11878...
16395
 
11878
 
16396
    public void write(TProtocol oprot) throws TException {
11879
    public void write(TProtocol oprot) throws TException {
16397
      validate();
11880
      validate();
16398
 
11881
 
16399
      oprot.writeStructBegin(STRUCT_DESC);
11882
      oprot.writeStructBegin(STRUCT_DESC);
16400
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
11883
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
16401
      oprot.writeI64(this.transactionId);
11884
      oprot.writeI64(this.orderId);
16402
      oprot.writeFieldEnd();
11885
      oprot.writeFieldEnd();
16403
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
11886
      oprot.writeFieldBegin(UNSET_FIELD_DESC);
16404
      oprot.writeBool(this.unset);
11887
      oprot.writeBool(this.unset);
16405
      oprot.writeFieldEnd();
11888
      oprot.writeFieldEnd();
16406
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
11889
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
Line 16418... Line 11901...
16418
    @Override
11901
    @Override
16419
    public String toString() {
11902
    public String toString() {
16420
      StringBuilder sb = new StringBuilder("setAlert_args(");
11903
      StringBuilder sb = new StringBuilder("setAlert_args(");
16421
      boolean first = true;
11904
      boolean first = true;
16422
 
11905
 
16423
      sb.append("transactionId:");
11906
      sb.append("orderId:");
16424
      sb.append(this.transactionId);
11907
      sb.append(this.orderId);
16425
      first = false;
11908
      first = false;
16426
      if (!first) sb.append(", ");
11909
      if (!first) sb.append(", ");
16427
      sb.append("unset:");
11910
      sb.append("unset:");
16428
      sb.append(this.unset);
11911
      sb.append(this.unset);
16429
      first = false;
11912
      first = false;
Line 16630... Line 12113...
16630
      boolean first = true;
12113
      boolean first = true;
16631
 
12114
 
16632
      sb.append(")");
12115
      sb.append(")");
16633
      return sb.toString();
12116
      return sb.toString();
16634
    }
12117
    }
16635
 
-
 
16636
    public void validate() throws TException {
-
 
16637
      // check for required fields
-
 
16638
    }
-
 
16639
 
-
 
16640
  }
-
 
16641
 
-
 
16642
  public static class getExtraInfo_args implements TBase<getExtraInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getExtraInfo_args>   {
-
 
16643
    private static final TStruct STRUCT_DESC = new TStruct("getExtraInfo_args");
-
 
16644
 
-
 
16645
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transaction_id", TType.I64, (short)1);
-
 
16646
 
-
 
16647
    private long transaction_id;
-
 
16648
 
-
 
16649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16650
    public enum _Fields implements TFieldIdEnum {
-
 
16651
      TRANSACTION_ID((short)1, "transaction_id");
-
 
16652
 
-
 
16653
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16654
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16655
 
-
 
16656
      static {
-
 
16657
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16658
          byId.put((int)field._thriftId, field);
-
 
16659
          byName.put(field.getFieldName(), field);
-
 
16660
        }
-
 
16661
      }
-
 
16662
 
-
 
16663
      /**
-
 
16664
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16665
       */
-
 
16666
      public static _Fields findByThriftId(int fieldId) {
-
 
16667
        return byId.get(fieldId);
-
 
16668
      }
-
 
16669
 
-
 
16670
      /**
-
 
16671
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16672
       * if it is not found.
-
 
16673
       */
-
 
16674
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16675
        _Fields fields = findByThriftId(fieldId);
-
 
16676
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16677
        return fields;
-
 
16678
      }
-
 
16679
 
-
 
16680
      /**
-
 
16681
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16682
       */
-
 
16683
      public static _Fields findByName(String name) {
-
 
16684
        return byName.get(name);
-
 
16685
      }
-
 
16686
 
-
 
16687
      private final short _thriftId;
-
 
16688
      private final String _fieldName;
-
 
16689
 
-
 
16690
      _Fields(short thriftId, String fieldName) {
-
 
16691
        _thriftId = thriftId;
-
 
16692
        _fieldName = fieldName;
-
 
16693
      }
-
 
16694
 
-
 
16695
      public short getThriftFieldId() {
-
 
16696
        return _thriftId;
-
 
16697
      }
-
 
16698
 
-
 
16699
      public String getFieldName() {
-
 
16700
        return _fieldName;
-
 
16701
      }
-
 
16702
    }
-
 
16703
 
-
 
16704
    // isset id assignments
-
 
16705
    private static final int __TRANSACTION_ID_ISSET_ID = 0;
-
 
16706
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
16707
 
-
 
16708
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16709
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transaction_id", TFieldRequirementType.DEFAULT, 
-
 
16710
          new FieldValueMetaData(TType.I64)));
-
 
16711
    }});
-
 
16712
 
-
 
16713
    static {
-
 
16714
      FieldMetaData.addStructMetaDataMap(getExtraInfo_args.class, metaDataMap);
-
 
16715
    }
-
 
16716
 
-
 
16717
    public getExtraInfo_args() {
-
 
16718
    }
-
 
16719
 
-
 
16720
    public getExtraInfo_args(
-
 
16721
      long transaction_id)
-
 
16722
    {
-
 
16723
      this();
-
 
16724
      this.transaction_id = transaction_id;
-
 
16725
      setTransaction_idIsSet(true);
-
 
16726
    }
-
 
16727
 
-
 
16728
    /**
-
 
16729
     * Performs a deep copy on <i>other</i>.
-
 
16730
     */
-
 
16731
    public getExtraInfo_args(getExtraInfo_args other) {
-
 
16732
      __isset_bit_vector.clear();
-
 
16733
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16734
      this.transaction_id = other.transaction_id;
-
 
16735
    }
-
 
16736
 
-
 
16737
    public getExtraInfo_args deepCopy() {
-
 
16738
      return new getExtraInfo_args(this);
-
 
16739
    }
-
 
16740
 
-
 
16741
    @Deprecated
-
 
16742
    public getExtraInfo_args clone() {
-
 
16743
      return new getExtraInfo_args(this);
-
 
16744
    }
-
 
16745
 
-
 
16746
    public long getTransaction_id() {
-
 
16747
      return this.transaction_id;
-
 
16748
    }
-
 
16749
 
-
 
16750
    public getExtraInfo_args setTransaction_id(long transaction_id) {
-
 
16751
      this.transaction_id = transaction_id;
-
 
16752
      setTransaction_idIsSet(true);
-
 
16753
      return this;
-
 
16754
    }
-
 
16755
 
-
 
16756
    public void unsetTransaction_id() {
-
 
16757
      __isset_bit_vector.clear(__TRANSACTION_ID_ISSET_ID);
-
 
16758
    }
-
 
16759
 
-
 
16760
    /** Returns true if field transaction_id is set (has been asigned a value) and false otherwise */
-
 
16761
    public boolean isSetTransaction_id() {
-
 
16762
      return __isset_bit_vector.get(__TRANSACTION_ID_ISSET_ID);
-
 
16763
    }
-
 
16764
 
-
 
16765
    public void setTransaction_idIsSet(boolean value) {
-
 
16766
      __isset_bit_vector.set(__TRANSACTION_ID_ISSET_ID, value);
-
 
16767
    }
-
 
16768
 
-
 
16769
    public void setFieldValue(_Fields field, Object value) {
-
 
16770
      switch (field) {
-
 
16771
      case TRANSACTION_ID:
-
 
16772
        if (value == null) {
-
 
16773
          unsetTransaction_id();
-
 
16774
        } else {
-
 
16775
          setTransaction_id((Long)value);
-
 
16776
        }
-
 
16777
        break;
-
 
16778
 
-
 
16779
      }
-
 
16780
    }
-
 
16781
 
-
 
16782
    public void setFieldValue(int fieldID, Object value) {
-
 
16783
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
16784
    }
-
 
16785
 
-
 
16786
    public Object getFieldValue(_Fields field) {
-
 
16787
      switch (field) {
-
 
16788
      case TRANSACTION_ID:
-
 
16789
        return new Long(getTransaction_id());
-
 
16790
 
-
 
16791
      }
-
 
16792
      throw new IllegalStateException();
-
 
16793
    }
-
 
16794
 
-
 
16795
    public Object getFieldValue(int fieldId) {
-
 
16796
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
16797
    }
-
 
16798
 
-
 
16799
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
16800
    public boolean isSet(_Fields field) {
-
 
16801
      switch (field) {
-
 
16802
      case TRANSACTION_ID:
-
 
16803
        return isSetTransaction_id();
-
 
16804
      }
-
 
16805
      throw new IllegalStateException();
-
 
16806
    }
-
 
16807
 
-
 
16808
    public boolean isSet(int fieldID) {
-
 
16809
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
16810
    }
-
 
16811
 
-
 
16812
    @Override
-
 
16813
    public boolean equals(Object that) {
-
 
16814
      if (that == null)
-
 
16815
        return false;
-
 
16816
      if (that instanceof getExtraInfo_args)
-
 
16817
        return this.equals((getExtraInfo_args)that);
-
 
16818
      return false;
-
 
16819
    }
-
 
16820
 
-
 
16821
    public boolean equals(getExtraInfo_args that) {
-
 
16822
      if (that == null)
-
 
16823
        return false;
-
 
16824
 
-
 
16825
      boolean this_present_transaction_id = true;
-
 
16826
      boolean that_present_transaction_id = true;
-
 
16827
      if (this_present_transaction_id || that_present_transaction_id) {
-
 
16828
        if (!(this_present_transaction_id && that_present_transaction_id))
-
 
16829
          return false;
-
 
16830
        if (this.transaction_id != that.transaction_id)
-
 
16831
          return false;
-
 
16832
      }
-
 
16833
 
-
 
16834
      return true;
-
 
16835
    }
-
 
16836
 
-
 
16837
    @Override
-
 
16838
    public int hashCode() {
-
 
16839
      return 0;
-
 
16840
    }
-
 
16841
 
-
 
16842
    public int compareTo(getExtraInfo_args other) {
-
 
16843
      if (!getClass().equals(other.getClass())) {
-
 
16844
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16845
      }
-
 
16846
 
-
 
16847
      int lastComparison = 0;
-
 
16848
      getExtraInfo_args typedOther = (getExtraInfo_args)other;
-
 
16849
 
-
 
16850
      lastComparison = Boolean.valueOf(isSetTransaction_id()).compareTo(isSetTransaction_id());
-
 
16851
      if (lastComparison != 0) {
-
 
16852
        return lastComparison;
-
 
16853
      }
-
 
16854
      lastComparison = TBaseHelper.compareTo(transaction_id, typedOther.transaction_id);
-
 
16855
      if (lastComparison != 0) {
-
 
16856
        return lastComparison;
-
 
16857
      }
-
 
16858
      return 0;
-
 
16859
    }
-
 
16860
 
-
 
16861
    public void read(TProtocol iprot) throws TException {
-
 
16862
      TField field;
-
 
16863
      iprot.readStructBegin();
-
 
16864
      while (true)
-
 
16865
      {
-
 
16866
        field = iprot.readFieldBegin();
-
 
16867
        if (field.type == TType.STOP) { 
-
 
16868
          break;
-
 
16869
        }
-
 
16870
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
16871
        if (fieldId == null) {
-
 
16872
          TProtocolUtil.skip(iprot, field.type);
-
 
16873
        } else {
-
 
16874
          switch (fieldId) {
-
 
16875
            case TRANSACTION_ID:
-
 
16876
              if (field.type == TType.I64) {
-
 
16877
                this.transaction_id = iprot.readI64();
-
 
16878
                setTransaction_idIsSet(true);
-
 
16879
              } else { 
-
 
16880
                TProtocolUtil.skip(iprot, field.type);
-
 
16881
              }
-
 
16882
              break;
-
 
16883
          }
-
 
16884
          iprot.readFieldEnd();
-
 
16885
        }
-
 
16886
      }
-
 
16887
      iprot.readStructEnd();
-
 
16888
      validate();
-
 
16889
    }
-
 
16890
 
-
 
16891
    public void write(TProtocol oprot) throws TException {
-
 
16892
      validate();
-
 
16893
 
-
 
16894
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16895
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
16896
      oprot.writeI64(this.transaction_id);
-
 
16897
      oprot.writeFieldEnd();
-
 
16898
      oprot.writeFieldStop();
-
 
16899
      oprot.writeStructEnd();
-
 
16900
    }
-
 
16901
 
-
 
16902
    @Override
-
 
16903
    public String toString() {
-
 
16904
      StringBuilder sb = new StringBuilder("getExtraInfo_args(");
-
 
16905
      boolean first = true;
-
 
16906
 
-
 
16907
      sb.append("transaction_id:");
-
 
16908
      sb.append(this.transaction_id);
-
 
16909
      first = false;
-
 
16910
      sb.append(")");
-
 
16911
      return sb.toString();
-
 
16912
    }
-
 
16913
 
-
 
16914
    public void validate() throws TException {
-
 
16915
      // check for required fields
-
 
16916
    }
-
 
16917
 
-
 
16918
  }
-
 
16919
 
-
 
16920
  public static class getExtraInfo_result implements TBase<getExtraInfo_result._Fields>, java.io.Serializable, Cloneable, Comparable<getExtraInfo_result>   {
-
 
16921
    private static final TStruct STRUCT_DESC = new TStruct("getExtraInfo_result");
-
 
16922
 
-
 
16923
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
16924
 
-
 
16925
    private ExtraOrderInfo success;
-
 
16926
 
-
 
16927
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16928
    public enum _Fields implements TFieldIdEnum {
-
 
16929
      SUCCESS((short)0, "success");
-
 
16930
 
-
 
16931
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16933
 
-
 
16934
      static {
-
 
16935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16936
          byId.put((int)field._thriftId, field);
-
 
16937
          byName.put(field.getFieldName(), field);
-
 
16938
        }
-
 
16939
      }
-
 
16940
 
-
 
16941
      /**
-
 
16942
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16943
       */
-
 
16944
      public static _Fields findByThriftId(int fieldId) {
-
 
16945
        return byId.get(fieldId);
-
 
16946
      }
-
 
16947
 
-
 
16948
      /**
-
 
16949
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16950
       * if it is not found.
-
 
16951
       */
-
 
16952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16953
        _Fields fields = findByThriftId(fieldId);
-
 
16954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16955
        return fields;
-
 
16956
      }
-
 
16957
 
-
 
16958
      /**
-
 
16959
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16960
       */
-
 
16961
      public static _Fields findByName(String name) {
-
 
16962
        return byName.get(name);
-
 
16963
      }
-
 
16964
 
-
 
16965
      private final short _thriftId;
-
 
16966
      private final String _fieldName;
-
 
16967
 
-
 
16968
      _Fields(short thriftId, String fieldName) {
-
 
16969
        _thriftId = thriftId;
-
 
16970
        _fieldName = fieldName;
-
 
16971
      }
-
 
16972
 
-
 
16973
      public short getThriftFieldId() {
-
 
16974
        return _thriftId;
-
 
16975
      }
-
 
16976
 
-
 
16977
      public String getFieldName() {
-
 
16978
        return _fieldName;
-
 
16979
      }
-
 
16980
    }
-
 
16981
 
-
 
16982
    // isset id assignments
-
 
16983
 
-
 
16984
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16985
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
16986
          new StructMetaData(TType.STRUCT, ExtraOrderInfo.class)));
-
 
16987
    }});
-
 
16988
 
-
 
16989
    static {
-
 
16990
      FieldMetaData.addStructMetaDataMap(getExtraInfo_result.class, metaDataMap);
-
 
16991
    }
-
 
16992
 
-
 
16993
    public getExtraInfo_result() {
-
 
16994
    }
-
 
16995
 
-
 
16996
    public getExtraInfo_result(
-
 
16997
      ExtraOrderInfo success)
-
 
16998
    {
-
 
16999
      this();
-
 
17000
      this.success = success;
-
 
17001
    }
-
 
17002
 
-
 
17003
    /**
-
 
17004
     * Performs a deep copy on <i>other</i>.
-
 
17005
     */
-
 
17006
    public getExtraInfo_result(getExtraInfo_result other) {
-
 
17007
      if (other.isSetSuccess()) {
-
 
17008
        this.success = new ExtraOrderInfo(other.success);
-
 
17009
      }
-
 
17010
    }
-
 
17011
 
-
 
17012
    public getExtraInfo_result deepCopy() {
-
 
17013
      return new getExtraInfo_result(this);
-
 
17014
    }
-
 
17015
 
-
 
17016
    @Deprecated
-
 
17017
    public getExtraInfo_result clone() {
-
 
17018
      return new getExtraInfo_result(this);
-
 
17019
    }
-
 
17020
 
-
 
17021
    public ExtraOrderInfo getSuccess() {
-
 
17022
      return this.success;
-
 
17023
    }
-
 
17024
 
-
 
17025
    public getExtraInfo_result setSuccess(ExtraOrderInfo success) {
-
 
17026
      this.success = success;
-
 
17027
      return this;
-
 
17028
    }
-
 
17029
 
-
 
17030
    public void unsetSuccess() {
-
 
17031
      this.success = null;
-
 
17032
    }
-
 
17033
 
-
 
17034
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
17035
    public boolean isSetSuccess() {
-
 
17036
      return this.success != null;
-
 
17037
    }
-
 
17038
 
-
 
17039
    public void setSuccessIsSet(boolean value) {
-
 
17040
      if (!value) {
-
 
17041
        this.success = null;
-
 
17042
      }
-
 
17043
    }
-
 
17044
 
-
 
17045
    public void setFieldValue(_Fields field, Object value) {
-
 
17046
      switch (field) {
-
 
17047
      case SUCCESS:
-
 
17048
        if (value == null) {
-
 
17049
          unsetSuccess();
-
 
17050
        } else {
-
 
17051
          setSuccess((ExtraOrderInfo)value);
-
 
17052
        }
-
 
17053
        break;
-
 
17054
 
-
 
17055
      }
-
 
17056
    }
-
 
17057
 
-
 
17058
    public void setFieldValue(int fieldID, Object value) {
-
 
17059
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17060
    }
-
 
17061
 
-
 
17062
    public Object getFieldValue(_Fields field) {
-
 
17063
      switch (field) {
-
 
17064
      case SUCCESS:
-
 
17065
        return getSuccess();
-
 
17066
 
-
 
17067
      }
-
 
17068
      throw new IllegalStateException();
-
 
17069
    }
-
 
17070
 
-
 
17071
    public Object getFieldValue(int fieldId) {
-
 
17072
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17073
    }
-
 
17074
 
-
 
17075
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17076
    public boolean isSet(_Fields field) {
-
 
17077
      switch (field) {
-
 
17078
      case SUCCESS:
-
 
17079
        return isSetSuccess();
-
 
17080
      }
-
 
17081
      throw new IllegalStateException();
-
 
17082
    }
-
 
17083
 
-
 
17084
    public boolean isSet(int fieldID) {
-
 
17085
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17086
    }
-
 
17087
 
-
 
17088
    @Override
-
 
17089
    public boolean equals(Object that) {
-
 
17090
      if (that == null)
-
 
17091
        return false;
-
 
17092
      if (that instanceof getExtraInfo_result)
-
 
17093
        return this.equals((getExtraInfo_result)that);
-
 
17094
      return false;
-
 
17095
    }
-
 
17096
 
-
 
17097
    public boolean equals(getExtraInfo_result that) {
-
 
17098
      if (that == null)
-
 
17099
        return false;
-
 
17100
 
-
 
17101
      boolean this_present_success = true && this.isSetSuccess();
-
 
17102
      boolean that_present_success = true && that.isSetSuccess();
-
 
17103
      if (this_present_success || that_present_success) {
-
 
17104
        if (!(this_present_success && that_present_success))
-
 
17105
          return false;
-
 
17106
        if (!this.success.equals(that.success))
-
 
17107
          return false;
-
 
17108
      }
-
 
17109
 
-
 
17110
      return true;
-
 
17111
    }
-
 
17112
 
-
 
17113
    @Override
-
 
17114
    public int hashCode() {
-
 
17115
      return 0;
-
 
17116
    }
-
 
17117
 
-
 
17118
    public int compareTo(getExtraInfo_result other) {
-
 
17119
      if (!getClass().equals(other.getClass())) {
-
 
17120
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17121
      }
-
 
17122
 
-
 
17123
      int lastComparison = 0;
-
 
17124
      getExtraInfo_result typedOther = (getExtraInfo_result)other;
-
 
17125
 
-
 
17126
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
17127
      if (lastComparison != 0) {
-
 
17128
        return lastComparison;
-
 
17129
      }
-
 
17130
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
17131
      if (lastComparison != 0) {
-
 
17132
        return lastComparison;
-
 
17133
      }
-
 
17134
      return 0;
-
 
17135
    }
-
 
17136
 
-
 
17137
    public void read(TProtocol iprot) throws TException {
-
 
17138
      TField field;
-
 
17139
      iprot.readStructBegin();
-
 
17140
      while (true)
-
 
17141
      {
-
 
17142
        field = iprot.readFieldBegin();
-
 
17143
        if (field.type == TType.STOP) { 
-
 
17144
          break;
-
 
17145
        }
-
 
17146
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17147
        if (fieldId == null) {
-
 
17148
          TProtocolUtil.skip(iprot, field.type);
-
 
17149
        } else {
-
 
17150
          switch (fieldId) {
-
 
17151
            case SUCCESS:
-
 
17152
              if (field.type == TType.STRUCT) {
-
 
17153
                this.success = new ExtraOrderInfo();
-
 
17154
                this.success.read(iprot);
-
 
17155
              } else { 
-
 
17156
                TProtocolUtil.skip(iprot, field.type);
-
 
17157
              }
-
 
17158
              break;
-
 
17159
          }
-
 
17160
          iprot.readFieldEnd();
-
 
17161
        }
-
 
17162
      }
-
 
17163
      iprot.readStructEnd();
-
 
17164
      validate();
-
 
17165
    }
-
 
17166
 
-
 
17167
    public void write(TProtocol oprot) throws TException {
-
 
17168
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17169
 
-
 
17170
      if (this.isSetSuccess()) {
-
 
17171
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17172
        this.success.write(oprot);
-
 
17173
        oprot.writeFieldEnd();
-
 
17174
      }
-
 
17175
      oprot.writeFieldStop();
-
 
17176
      oprot.writeStructEnd();
-
 
17177
    }
-
 
17178
 
-
 
17179
    @Override
-
 
17180
    public String toString() {
-
 
17181
      StringBuilder sb = new StringBuilder("getExtraInfo_result(");
-
 
17182
      boolean first = true;
-
 
17183
 
-
 
17184
      sb.append("success:");
-
 
17185
      if (this.success == null) {
-
 
17186
        sb.append("null");
-
 
17187
      } else {
-
 
17188
        sb.append(this.success);
-
 
17189
      }
-
 
17190
      first = false;
-
 
17191
      sb.append(")");
-
 
17192
      return sb.toString();
-
 
17193
    }
-
 
17194
 
-
 
17195
    public void validate() throws TException {
-
 
17196
      // check for required fields
-
 
17197
    }
-
 
17198
 
-
 
17199
  }
-
 
17200
 
-
 
17201
  public static class setExtraInfo_args implements TBase<setExtraInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<setExtraInfo_args>   {
-
 
17202
    private static final TStruct STRUCT_DESC = new TStruct("setExtraInfo_args");
-
 
17203
 
-
 
17204
    private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transaction_id", TType.I64, (short)1);
-
 
17205
    private static final TField SKU_ID_FIELD_DESC = new TField("sku_id", TType.I64, (short)2);
-
 
17206
    private static final TField MODEL_FIELD_DESC = new TField("model", TType.STRING, (short)3);
-
 
17207
    private static final TField COLOUR_FIELD_DESC = new TField("colour", TType.STRING, (short)4);
-
 
17208
    private static final TField VENDOR_FIELD_DESC = new TField("vendor", TType.STRING, (short)5);
-
 
17209
 
-
 
17210
    private long transaction_id;
-
 
17211
    private long sku_id;
-
 
17212
    private String model;
-
 
17213
    private String colour;
-
 
17214
    private String vendor;
-
 
17215
 
-
 
17216
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17217
    public enum _Fields implements TFieldIdEnum {
-
 
17218
      TRANSACTION_ID((short)1, "transaction_id"),
-
 
17219
      SKU_ID((short)2, "sku_id"),
-
 
17220
      MODEL((short)3, "model"),
-
 
17221
      COLOUR((short)4, "colour"),
-
 
17222
      VENDOR((short)5, "vendor");
-
 
17223
 
-
 
17224
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17226
 
-
 
17227
      static {
-
 
17228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17229
          byId.put((int)field._thriftId, field);
-
 
17230
          byName.put(field.getFieldName(), field);
-
 
17231
        }
-
 
17232
      }
-
 
17233
 
-
 
17234
      /**
-
 
17235
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17236
       */
-
 
17237
      public static _Fields findByThriftId(int fieldId) {
-
 
17238
        return byId.get(fieldId);
-
 
17239
      }
-
 
17240
 
-
 
17241
      /**
-
 
17242
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17243
       * if it is not found.
-
 
17244
       */
-
 
17245
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17246
        _Fields fields = findByThriftId(fieldId);
-
 
17247
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17248
        return fields;
-
 
17249
      }
-
 
17250
 
-
 
17251
      /**
-
 
17252
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17253
       */
-
 
17254
      public static _Fields findByName(String name) {
-
 
17255
        return byName.get(name);
-
 
17256
      }
-
 
17257
 
-
 
17258
      private final short _thriftId;
-
 
17259
      private final String _fieldName;
-
 
17260
 
-
 
17261
      _Fields(short thriftId, String fieldName) {
-
 
17262
        _thriftId = thriftId;
-
 
17263
        _fieldName = fieldName;
-
 
17264
      }
-
 
17265
 
-
 
17266
      public short getThriftFieldId() {
-
 
17267
        return _thriftId;
-
 
17268
      }
-
 
17269
 
-
 
17270
      public String getFieldName() {
-
 
17271
        return _fieldName;
-
 
17272
      }
-
 
17273
    }
-
 
17274
 
-
 
17275
    // isset id assignments
-
 
17276
    private static final int __TRANSACTION_ID_ISSET_ID = 0;
-
 
17277
    private static final int __SKU_ID_ISSET_ID = 1;
-
 
17278
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
17279
 
-
 
17280
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17281
      put(_Fields.TRANSACTION_ID, new FieldMetaData("transaction_id", TFieldRequirementType.DEFAULT, 
-
 
17282
          new FieldValueMetaData(TType.I64)));
-
 
17283
      put(_Fields.SKU_ID, new FieldMetaData("sku_id", TFieldRequirementType.DEFAULT, 
-
 
17284
          new FieldValueMetaData(TType.I64)));
-
 
17285
      put(_Fields.MODEL, new FieldMetaData("model", TFieldRequirementType.DEFAULT, 
-
 
17286
          new FieldValueMetaData(TType.STRING)));
-
 
17287
      put(_Fields.COLOUR, new FieldMetaData("colour", TFieldRequirementType.DEFAULT, 
-
 
17288
          new FieldValueMetaData(TType.STRING)));
-
 
17289
      put(_Fields.VENDOR, new FieldMetaData("vendor", TFieldRequirementType.DEFAULT, 
-
 
17290
          new FieldValueMetaData(TType.STRING)));
-
 
17291
    }});
-
 
17292
 
-
 
17293
    static {
-
 
17294
      FieldMetaData.addStructMetaDataMap(setExtraInfo_args.class, metaDataMap);
-
 
17295
    }
-
 
17296
 
-
 
17297
    public setExtraInfo_args() {
-
 
17298
    }
-
 
17299
 
-
 
17300
    public setExtraInfo_args(
-
 
17301
      long transaction_id,
-
 
17302
      long sku_id,
-
 
17303
      String model,
-
 
17304
      String colour,
-
 
17305
      String vendor)
-
 
17306
    {
-
 
17307
      this();
-
 
17308
      this.transaction_id = transaction_id;
-
 
17309
      setTransaction_idIsSet(true);
-
 
17310
      this.sku_id = sku_id;
-
 
17311
      setSku_idIsSet(true);
-
 
17312
      this.model = model;
-
 
17313
      this.colour = colour;
-
 
17314
      this.vendor = vendor;
-
 
17315
    }
-
 
17316
 
-
 
17317
    /**
-
 
17318
     * Performs a deep copy on <i>other</i>.
-
 
17319
     */
-
 
17320
    public setExtraInfo_args(setExtraInfo_args other) {
-
 
17321
      __isset_bit_vector.clear();
-
 
17322
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17323
      this.transaction_id = other.transaction_id;
-
 
17324
      this.sku_id = other.sku_id;
-
 
17325
      if (other.isSetModel()) {
-
 
17326
        this.model = other.model;
-
 
17327
      }
-
 
17328
      if (other.isSetColour()) {
-
 
17329
        this.colour = other.colour;
-
 
17330
      }
-
 
17331
      if (other.isSetVendor()) {
-
 
17332
        this.vendor = other.vendor;
-
 
17333
      }
-
 
17334
    }
-
 
17335
 
-
 
17336
    public setExtraInfo_args deepCopy() {
-
 
17337
      return new setExtraInfo_args(this);
-
 
17338
    }
-
 
17339
 
-
 
17340
    @Deprecated
-
 
17341
    public setExtraInfo_args clone() {
-
 
17342
      return new setExtraInfo_args(this);
-
 
17343
    }
-
 
17344
 
-
 
17345
    public long getTransaction_id() {
-
 
17346
      return this.transaction_id;
-
 
17347
    }
-
 
17348
 
-
 
17349
    public setExtraInfo_args setTransaction_id(long transaction_id) {
-
 
17350
      this.transaction_id = transaction_id;
-
 
17351
      setTransaction_idIsSet(true);
-
 
17352
      return this;
-
 
17353
    }
-
 
17354
 
-
 
17355
    public void unsetTransaction_id() {
-
 
17356
      __isset_bit_vector.clear(__TRANSACTION_ID_ISSET_ID);
-
 
17357
    }
-
 
17358
 
-
 
17359
    /** Returns true if field transaction_id is set (has been asigned a value) and false otherwise */
-
 
17360
    public boolean isSetTransaction_id() {
-
 
17361
      return __isset_bit_vector.get(__TRANSACTION_ID_ISSET_ID);
-
 
17362
    }
-
 
17363
 
-
 
17364
    public void setTransaction_idIsSet(boolean value) {
-
 
17365
      __isset_bit_vector.set(__TRANSACTION_ID_ISSET_ID, value);
-
 
17366
    }
-
 
17367
 
-
 
17368
    public long getSku_id() {
-
 
17369
      return this.sku_id;
-
 
17370
    }
-
 
17371
 
-
 
17372
    public setExtraInfo_args setSku_id(long sku_id) {
-
 
17373
      this.sku_id = sku_id;
-
 
17374
      setSku_idIsSet(true);
-
 
17375
      return this;
-
 
17376
    }
-
 
17377
 
-
 
17378
    public void unsetSku_id() {
-
 
17379
      __isset_bit_vector.clear(__SKU_ID_ISSET_ID);
-
 
17380
    }
-
 
17381
 
-
 
17382
    /** Returns true if field sku_id is set (has been asigned a value) and false otherwise */
-
 
17383
    public boolean isSetSku_id() {
-
 
17384
      return __isset_bit_vector.get(__SKU_ID_ISSET_ID);
-
 
17385
    }
-
 
17386
 
-
 
17387
    public void setSku_idIsSet(boolean value) {
-
 
17388
      __isset_bit_vector.set(__SKU_ID_ISSET_ID, value);
-
 
17389
    }
-
 
17390
 
-
 
17391
    public String getModel() {
-
 
17392
      return this.model;
-
 
17393
    }
-
 
17394
 
-
 
17395
    public setExtraInfo_args setModel(String model) {
-
 
17396
      this.model = model;
-
 
17397
      return this;
-
 
17398
    }
-
 
17399
 
-
 
17400
    public void unsetModel() {
-
 
17401
      this.model = null;
-
 
17402
    }
-
 
17403
 
-
 
17404
    /** Returns true if field model is set (has been asigned a value) and false otherwise */
-
 
17405
    public boolean isSetModel() {
-
 
17406
      return this.model != null;
-
 
17407
    }
-
 
17408
 
-
 
17409
    public void setModelIsSet(boolean value) {
-
 
17410
      if (!value) {
-
 
17411
        this.model = null;
-
 
17412
      }
-
 
17413
    }
-
 
17414
 
-
 
17415
    public String getColour() {
-
 
17416
      return this.colour;
-
 
17417
    }
-
 
17418
 
-
 
17419
    public setExtraInfo_args setColour(String colour) {
-
 
17420
      this.colour = colour;
-
 
17421
      return this;
-
 
17422
    }
-
 
17423
 
-
 
17424
    public void unsetColour() {
-
 
17425
      this.colour = null;
-
 
17426
    }
-
 
17427
 
-
 
17428
    /** Returns true if field colour is set (has been asigned a value) and false otherwise */
-
 
17429
    public boolean isSetColour() {
-
 
17430
      return this.colour != null;
-
 
17431
    }
-
 
17432
 
-
 
17433
    public void setColourIsSet(boolean value) {
-
 
17434
      if (!value) {
-
 
17435
        this.colour = null;
-
 
17436
      }
-
 
17437
    }
-
 
17438
 
-
 
17439
    public String getVendor() {
-
 
17440
      return this.vendor;
-
 
17441
    }
-
 
17442
 
-
 
17443
    public setExtraInfo_args setVendor(String vendor) {
-
 
17444
      this.vendor = vendor;
-
 
17445
      return this;
-
 
17446
    }
-
 
17447
 
-
 
17448
    public void unsetVendor() {
-
 
17449
      this.vendor = null;
-
 
17450
    }
-
 
17451
 
-
 
17452
    /** Returns true if field vendor is set (has been asigned a value) and false otherwise */
-
 
17453
    public boolean isSetVendor() {
-
 
17454
      return this.vendor != null;
-
 
17455
    }
-
 
17456
 
-
 
17457
    public void setVendorIsSet(boolean value) {
-
 
17458
      if (!value) {
-
 
17459
        this.vendor = null;
-
 
17460
      }
-
 
17461
    }
-
 
17462
 
-
 
17463
    public void setFieldValue(_Fields field, Object value) {
-
 
17464
      switch (field) {
-
 
17465
      case TRANSACTION_ID:
-
 
17466
        if (value == null) {
-
 
17467
          unsetTransaction_id();
-
 
17468
        } else {
-
 
17469
          setTransaction_id((Long)value);
-
 
17470
        }
-
 
17471
        break;
-
 
17472
 
-
 
17473
      case SKU_ID:
-
 
17474
        if (value == null) {
-
 
17475
          unsetSku_id();
-
 
17476
        } else {
-
 
17477
          setSku_id((Long)value);
-
 
17478
        }
-
 
17479
        break;
-
 
17480
 
-
 
17481
      case MODEL:
-
 
17482
        if (value == null) {
-
 
17483
          unsetModel();
-
 
17484
        } else {
-
 
17485
          setModel((String)value);
-
 
17486
        }
-
 
17487
        break;
-
 
17488
 
-
 
17489
      case COLOUR:
-
 
17490
        if (value == null) {
-
 
17491
          unsetColour();
-
 
17492
        } else {
-
 
17493
          setColour((String)value);
-
 
17494
        }
-
 
17495
        break;
-
 
17496
 
-
 
17497
      case VENDOR:
-
 
17498
        if (value == null) {
-
 
17499
          unsetVendor();
-
 
17500
        } else {
-
 
17501
          setVendor((String)value);
-
 
17502
        }
-
 
17503
        break;
-
 
17504
 
-
 
17505
      }
-
 
17506
    }
-
 
17507
 
-
 
17508
    public void setFieldValue(int fieldID, Object value) {
-
 
17509
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17510
    }
-
 
17511
 
-
 
17512
    public Object getFieldValue(_Fields field) {
-
 
17513
      switch (field) {
-
 
17514
      case TRANSACTION_ID:
-
 
17515
        return new Long(getTransaction_id());
-
 
17516
 
-
 
17517
      case SKU_ID:
-
 
17518
        return new Long(getSku_id());
-
 
17519
 
-
 
17520
      case MODEL:
-
 
17521
        return getModel();
-
 
17522
 
-
 
17523
      case COLOUR:
-
 
17524
        return getColour();
-
 
17525
 
-
 
17526
      case VENDOR:
-
 
17527
        return getVendor();
-
 
17528
 
-
 
17529
      }
-
 
17530
      throw new IllegalStateException();
-
 
17531
    }
-
 
17532
 
-
 
17533
    public Object getFieldValue(int fieldId) {
-
 
17534
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17535
    }
-
 
17536
 
-
 
17537
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17538
    public boolean isSet(_Fields field) {
-
 
17539
      switch (field) {
-
 
17540
      case TRANSACTION_ID:
-
 
17541
        return isSetTransaction_id();
-
 
17542
      case SKU_ID:
-
 
17543
        return isSetSku_id();
-
 
17544
      case MODEL:
-
 
17545
        return isSetModel();
-
 
17546
      case COLOUR:
-
 
17547
        return isSetColour();
-
 
17548
      case VENDOR:
-
 
17549
        return isSetVendor();
-
 
17550
      }
-
 
17551
      throw new IllegalStateException();
-
 
17552
    }
-
 
17553
 
-
 
17554
    public boolean isSet(int fieldID) {
-
 
17555
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17556
    }
-
 
17557
 
-
 
17558
    @Override
-
 
17559
    public boolean equals(Object that) {
-
 
17560
      if (that == null)
-
 
17561
        return false;
-
 
17562
      if (that instanceof setExtraInfo_args)
-
 
17563
        return this.equals((setExtraInfo_args)that);
-
 
17564
      return false;
-
 
17565
    }
-
 
17566
 
-
 
17567
    public boolean equals(setExtraInfo_args that) {
-
 
17568
      if (that == null)
-
 
17569
        return false;
-
 
17570
 
-
 
17571
      boolean this_present_transaction_id = true;
-
 
17572
      boolean that_present_transaction_id = true;
-
 
17573
      if (this_present_transaction_id || that_present_transaction_id) {
-
 
17574
        if (!(this_present_transaction_id && that_present_transaction_id))
-
 
17575
          return false;
-
 
17576
        if (this.transaction_id != that.transaction_id)
-
 
17577
          return false;
-
 
17578
      }
-
 
17579
 
-
 
17580
      boolean this_present_sku_id = true;
-
 
17581
      boolean that_present_sku_id = true;
-
 
17582
      if (this_present_sku_id || that_present_sku_id) {
-
 
17583
        if (!(this_present_sku_id && that_present_sku_id))
-
 
17584
          return false;
-
 
17585
        if (this.sku_id != that.sku_id)
-
 
17586
          return false;
-
 
17587
      }
-
 
17588
 
-
 
17589
      boolean this_present_model = true && this.isSetModel();
-
 
17590
      boolean that_present_model = true && that.isSetModel();
-
 
17591
      if (this_present_model || that_present_model) {
-
 
17592
        if (!(this_present_model && that_present_model))
-
 
17593
          return false;
-
 
17594
        if (!this.model.equals(that.model))
-
 
17595
          return false;
-
 
17596
      }
-
 
17597
 
-
 
17598
      boolean this_present_colour = true && this.isSetColour();
-
 
17599
      boolean that_present_colour = true && that.isSetColour();
-
 
17600
      if (this_present_colour || that_present_colour) {
-
 
17601
        if (!(this_present_colour && that_present_colour))
-
 
17602
          return false;
-
 
17603
        if (!this.colour.equals(that.colour))
-
 
17604
          return false;
-
 
17605
      }
-
 
17606
 
-
 
17607
      boolean this_present_vendor = true && this.isSetVendor();
-
 
17608
      boolean that_present_vendor = true && that.isSetVendor();
-
 
17609
      if (this_present_vendor || that_present_vendor) {
-
 
17610
        if (!(this_present_vendor && that_present_vendor))
-
 
17611
          return false;
-
 
17612
        if (!this.vendor.equals(that.vendor))
-
 
17613
          return false;
-
 
17614
      }
-
 
17615
 
-
 
17616
      return true;
-
 
17617
    }
-
 
17618
 
-
 
17619
    @Override
-
 
17620
    public int hashCode() {
-
 
17621
      return 0;
-
 
17622
    }
-
 
17623
 
-
 
17624
    public int compareTo(setExtraInfo_args other) {
-
 
17625
      if (!getClass().equals(other.getClass())) {
-
 
17626
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17627
      }
-
 
17628
 
-
 
17629
      int lastComparison = 0;
-
 
17630
      setExtraInfo_args typedOther = (setExtraInfo_args)other;
-
 
17631
 
-
 
17632
      lastComparison = Boolean.valueOf(isSetTransaction_id()).compareTo(isSetTransaction_id());
-
 
17633
      if (lastComparison != 0) {
-
 
17634
        return lastComparison;
-
 
17635
      }
-
 
17636
      lastComparison = TBaseHelper.compareTo(transaction_id, typedOther.transaction_id);
-
 
17637
      if (lastComparison != 0) {
-
 
17638
        return lastComparison;
-
 
17639
      }
-
 
17640
      lastComparison = Boolean.valueOf(isSetSku_id()).compareTo(isSetSku_id());
-
 
17641
      if (lastComparison != 0) {
-
 
17642
        return lastComparison;
-
 
17643
      }
-
 
17644
      lastComparison = TBaseHelper.compareTo(sku_id, typedOther.sku_id);
-
 
17645
      if (lastComparison != 0) {
-
 
17646
        return lastComparison;
-
 
17647
      }
-
 
17648
      lastComparison = Boolean.valueOf(isSetModel()).compareTo(isSetModel());
-
 
17649
      if (lastComparison != 0) {
-
 
17650
        return lastComparison;
-
 
17651
      }
-
 
17652
      lastComparison = TBaseHelper.compareTo(model, typedOther.model);
-
 
17653
      if (lastComparison != 0) {
-
 
17654
        return lastComparison;
-
 
17655
      }
-
 
17656
      lastComparison = Boolean.valueOf(isSetColour()).compareTo(isSetColour());
-
 
17657
      if (lastComparison != 0) {
-
 
17658
        return lastComparison;
-
 
17659
      }
-
 
17660
      lastComparison = TBaseHelper.compareTo(colour, typedOther.colour);
-
 
17661
      if (lastComparison != 0) {
-
 
17662
        return lastComparison;
-
 
17663
      }
-
 
17664
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(isSetVendor());
-
 
17665
      if (lastComparison != 0) {
-
 
17666
        return lastComparison;
-
 
17667
      }
-
 
17668
      lastComparison = TBaseHelper.compareTo(vendor, typedOther.vendor);
-
 
17669
      if (lastComparison != 0) {
-
 
17670
        return lastComparison;
-
 
17671
      }
-
 
17672
      return 0;
-
 
17673
    }
-
 
17674
 
-
 
17675
    public void read(TProtocol iprot) throws TException {
-
 
17676
      TField field;
-
 
17677
      iprot.readStructBegin();
-
 
17678
      while (true)
-
 
17679
      {
-
 
17680
        field = iprot.readFieldBegin();
-
 
17681
        if (field.type == TType.STOP) { 
-
 
17682
          break;
-
 
17683
        }
-
 
17684
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17685
        if (fieldId == null) {
-
 
17686
          TProtocolUtil.skip(iprot, field.type);
-
 
17687
        } else {
-
 
17688
          switch (fieldId) {
-
 
17689
            case TRANSACTION_ID:
-
 
17690
              if (field.type == TType.I64) {
-
 
17691
                this.transaction_id = iprot.readI64();
-
 
17692
                setTransaction_idIsSet(true);
-
 
17693
              } else { 
-
 
17694
                TProtocolUtil.skip(iprot, field.type);
-
 
17695
              }
-
 
17696
              break;
-
 
17697
            case SKU_ID:
-
 
17698
              if (field.type == TType.I64) {
-
 
17699
                this.sku_id = iprot.readI64();
-
 
17700
                setSku_idIsSet(true);
-
 
17701
              } else { 
-
 
17702
                TProtocolUtil.skip(iprot, field.type);
-
 
17703
              }
-
 
17704
              break;
-
 
17705
            case MODEL:
-
 
17706
              if (field.type == TType.STRING) {
-
 
17707
                this.model = iprot.readString();
-
 
17708
              } else { 
-
 
17709
                TProtocolUtil.skip(iprot, field.type);
-
 
17710
              }
-
 
17711
              break;
-
 
17712
            case COLOUR:
-
 
17713
              if (field.type == TType.STRING) {
-
 
17714
                this.colour = iprot.readString();
-
 
17715
              } else { 
-
 
17716
                TProtocolUtil.skip(iprot, field.type);
-
 
17717
              }
-
 
17718
              break;
-
 
17719
            case VENDOR:
-
 
17720
              if (field.type == TType.STRING) {
-
 
17721
                this.vendor = iprot.readString();
-
 
17722
              } else { 
-
 
17723
                TProtocolUtil.skip(iprot, field.type);
-
 
17724
              }
-
 
17725
              break;
-
 
17726
          }
-
 
17727
          iprot.readFieldEnd();
-
 
17728
        }
-
 
17729
      }
-
 
17730
      iprot.readStructEnd();
-
 
17731
      validate();
-
 
17732
    }
-
 
17733
 
-
 
17734
    public void write(TProtocol oprot) throws TException {
-
 
17735
      validate();
-
 
17736
 
-
 
17737
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17738
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
17739
      oprot.writeI64(this.transaction_id);
-
 
17740
      oprot.writeFieldEnd();
-
 
17741
      oprot.writeFieldBegin(SKU_ID_FIELD_DESC);
-
 
17742
      oprot.writeI64(this.sku_id);
-
 
17743
      oprot.writeFieldEnd();
-
 
17744
      if (this.model != null) {
-
 
17745
        oprot.writeFieldBegin(MODEL_FIELD_DESC);
-
 
17746
        oprot.writeString(this.model);
-
 
17747
        oprot.writeFieldEnd();
-
 
17748
      }
-
 
17749
      if (this.colour != null) {
-
 
17750
        oprot.writeFieldBegin(COLOUR_FIELD_DESC);
-
 
17751
        oprot.writeString(this.colour);
-
 
17752
        oprot.writeFieldEnd();
-
 
17753
      }
-
 
17754
      if (this.vendor != null) {
-
 
17755
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
-
 
17756
        oprot.writeString(this.vendor);
-
 
17757
        oprot.writeFieldEnd();
-
 
17758
      }
-
 
17759
      oprot.writeFieldStop();
-
 
17760
      oprot.writeStructEnd();
-
 
17761
    }
-
 
17762
 
-
 
17763
    @Override
-
 
17764
    public String toString() {
-
 
17765
      StringBuilder sb = new StringBuilder("setExtraInfo_args(");
-
 
17766
      boolean first = true;
-
 
17767
 
-
 
17768
      sb.append("transaction_id:");
-
 
17769
      sb.append(this.transaction_id);
-
 
17770
      first = false;
-
 
17771
      if (!first) sb.append(", ");
-
 
17772
      sb.append("sku_id:");
-
 
17773
      sb.append(this.sku_id);
-
 
17774
      first = false;
-
 
17775
      if (!first) sb.append(", ");
-
 
17776
      sb.append("model:");
-
 
17777
      if (this.model == null) {
-
 
17778
        sb.append("null");
-
 
17779
      } else {
-
 
17780
        sb.append(this.model);
-
 
17781
      }
-
 
17782
      first = false;
-
 
17783
      if (!first) sb.append(", ");
-
 
17784
      sb.append("colour:");
-
 
17785
      if (this.colour == null) {
-
 
17786
        sb.append("null");
-
 
17787
      } else {
-
 
17788
        sb.append(this.colour);
-
 
17789
      }
-
 
17790
      first = false;
-
 
17791
      if (!first) sb.append(", ");
-
 
17792
      sb.append("vendor:");
-
 
17793
      if (this.vendor == null) {
-
 
17794
        sb.append("null");
-
 
17795
      } else {
-
 
17796
        sb.append(this.vendor);
-
 
17797
      }
-
 
17798
      first = false;
-
 
17799
      sb.append(")");
-
 
17800
      return sb.toString();
-
 
17801
    }
-
 
17802
 
-
 
17803
    public void validate() throws TException {
-
 
17804
      // check for required fields
-
 
17805
    }
-
 
17806
 
-
 
17807
  }
-
 
17808
 
-
 
17809
  public static class setExtraInfo_result implements TBase<setExtraInfo_result._Fields>, java.io.Serializable, Cloneable, Comparable<setExtraInfo_result>   {
-
 
17810
    private static final TStruct STRUCT_DESC = new TStruct("setExtraInfo_result");
-
 
17811
 
-
 
17812
 
-
 
17813
 
-
 
17814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17815
    public enum _Fields implements TFieldIdEnum {
-
 
17816
;
-
 
17817
 
-
 
17818
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17820
 
-
 
17821
      static {
-
 
17822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17823
          byId.put((int)field._thriftId, field);
-
 
17824
          byName.put(field.getFieldName(), field);
-
 
17825
        }
-
 
17826
      }
-
 
17827
 
-
 
17828
      /**
-
 
17829
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17830
       */
-
 
17831
      public static _Fields findByThriftId(int fieldId) {
-
 
17832
        return byId.get(fieldId);
-
 
17833
      }
-
 
17834
 
-
 
17835
      /**
-
 
17836
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17837
       * if it is not found.
-
 
17838
       */
-
 
17839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17840
        _Fields fields = findByThriftId(fieldId);
-
 
17841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17842
        return fields;
-
 
17843
      }
-
 
17844
 
-
 
17845
      /**
-
 
17846
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17847
       */
-
 
17848
      public static _Fields findByName(String name) {
-
 
17849
        return byName.get(name);
-
 
17850
      }
-
 
17851
 
-
 
17852
      private final short _thriftId;
-
 
17853
      private final String _fieldName;
-
 
17854
 
-
 
17855
      _Fields(short thriftId, String fieldName) {
-
 
17856
        _thriftId = thriftId;
-
 
17857
        _fieldName = fieldName;
-
 
17858
      }
-
 
17859
 
-
 
17860
      public short getThriftFieldId() {
-
 
17861
        return _thriftId;
-
 
17862
      }
-
 
17863
 
-
 
17864
      public String getFieldName() {
-
 
17865
        return _fieldName;
-
 
17866
      }
-
 
17867
    }
-
 
17868
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17869
    }});
-
 
17870
 
-
 
17871
    static {
-
 
17872
      FieldMetaData.addStructMetaDataMap(setExtraInfo_result.class, metaDataMap);
-
 
17873
    }
-
 
17874
 
-
 
17875
    public setExtraInfo_result() {
-
 
17876
    }
-
 
17877
 
-
 
17878
    /**
-
 
17879
     * Performs a deep copy on <i>other</i>.
-
 
17880
     */
-
 
17881
    public setExtraInfo_result(setExtraInfo_result other) {
-
 
17882
    }
-
 
17883
 
-
 
17884
    public setExtraInfo_result deepCopy() {
-
 
17885
      return new setExtraInfo_result(this);
-
 
17886
    }
-
 
17887
 
-
 
17888
    @Deprecated
-
 
17889
    public setExtraInfo_result clone() {
-
 
17890
      return new setExtraInfo_result(this);
-
 
17891
    }
-
 
17892
 
-
 
17893
    public void setFieldValue(_Fields field, Object value) {
-
 
17894
      switch (field) {
-
 
17895
      }
-
 
17896
    }
-
 
17897
 
-
 
17898
    public void setFieldValue(int fieldID, Object value) {
-
 
17899
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17900
    }
-
 
17901
 
-
 
17902
    public Object getFieldValue(_Fields field) {
-
 
17903
      switch (field) {
-
 
17904
      }
-
 
17905
      throw new IllegalStateException();
-
 
17906
    }
-
 
17907
 
-
 
17908
    public Object getFieldValue(int fieldId) {
-
 
17909
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17910
    }
-
 
17911
 
-
 
17912
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17913
    public boolean isSet(_Fields field) {
-
 
17914
      switch (field) {
-
 
17915
      }
-
 
17916
      throw new IllegalStateException();
-
 
17917
    }
-
 
17918
 
-
 
17919
    public boolean isSet(int fieldID) {
-
 
17920
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17921
    }
-
 
17922
 
-
 
17923
    @Override
-
 
17924
    public boolean equals(Object that) {
-
 
17925
      if (that == null)
-
 
17926
        return false;
-
 
17927
      if (that instanceof setExtraInfo_result)
-
 
17928
        return this.equals((setExtraInfo_result)that);
-
 
17929
      return false;
-
 
17930
    }
-
 
17931
 
-
 
17932
    public boolean equals(setExtraInfo_result that) {
-
 
17933
      if (that == null)
-
 
17934
        return false;
-
 
17935
 
-
 
17936
      return true;
-
 
17937
    }
-
 
17938
 
-
 
17939
    @Override
-
 
17940
    public int hashCode() {
-
 
17941
      return 0;
-
 
17942
    }
-
 
17943
 
-
 
17944
    public int compareTo(setExtraInfo_result other) {
-
 
17945
      if (!getClass().equals(other.getClass())) {
-
 
17946
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17947
      }
-
 
17948
 
-
 
17949
      int lastComparison = 0;
-
 
17950
      setExtraInfo_result typedOther = (setExtraInfo_result)other;
-
 
17951
 
-
 
17952
      return 0;
-
 
17953
    }
-
 
17954
 
-
 
17955
    public void read(TProtocol iprot) throws TException {
-
 
17956
      TField field;
-
 
17957
      iprot.readStructBegin();
-
 
17958
      while (true)
-
 
17959
      {
-
 
17960
        field = iprot.readFieldBegin();
-
 
17961
        if (field.type == TType.STOP) { 
-
 
17962
          break;
-
 
17963
        }
-
 
17964
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17965
        if (fieldId == null) {
-
 
17966
          TProtocolUtil.skip(iprot, field.type);
-
 
17967
        } else {
-
 
17968
          switch (fieldId) {
-
 
17969
          }
-
 
17970
          iprot.readFieldEnd();
-
 
17971
        }
-
 
17972
      }
-
 
17973
      iprot.readStructEnd();
-
 
17974
      validate();
-
 
17975
    }
-
 
17976
 
-
 
17977
    public void write(TProtocol oprot) throws TException {
-
 
17978
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17979
 
-
 
17980
      oprot.writeFieldStop();
-
 
17981
      oprot.writeStructEnd();
-
 
17982
    }
-
 
17983
 
-
 
17984
    @Override
-
 
17985
    public String toString() {
-
 
17986
      StringBuilder sb = new StringBuilder("setExtraInfo_result(");
-
 
17987
      boolean first = true;
-
 
17988
 
-
 
17989
      sb.append(")");
-
 
17990
      return sb.toString();
-
 
17991
    }
-
 
17992
 
12118
 
17993
    public void validate() throws TException {
12119
    public void validate() throws TException {
17994
      // check for required fields
12120
      // check for required fields
17995
    }
12121
    }
17996
 
12122