Subversion Repositories SmartDukaan

Rev

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

Rev 1114 Rev 1133
Line 44... Line 44...
44
 
44
 
45
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
45
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
46
 
46
 
47
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
47
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
48
 
48
 
-
 
49
    /**
-
 
50
     * Returns orders within a range of their billing dates
-
 
51
     * 
-
 
52
     * @param status
-
 
53
     * @param start_billing_date
-
 
54
     * @param end_billing_date
-
 
55
     * @param warehouse_id
-
 
56
     */
49
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
57
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
50
 
58
 
51
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
59
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
52
 
60
 
53
    public boolean addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TransactionServiceException, TException;
61
    public boolean addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TransactionServiceException, TException;
Line 82... Line 90...
82
     * @param providerId
90
     * @param providerId
83
     * @param pickupDetails
91
     * @param pickupDetails
84
     */
92
     */
85
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,Long> pickupDetails) throws TransactionServiceException, TException;
93
    public List<Order> markOrdersAsPickedUp(long providerId, Map<String,Long> pickupDetails) throws TransactionServiceException, TException;
86
 
94
 
-
 
95
    /**
-
 
96
     * Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
-
 
97
     * the name of the receiver.
-
 
98
     * Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
99
     * 
-
 
100
     * @param providerId
-
 
101
     * @param deliveredOrders
-
 
102
     */
-
 
103
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, TException;
-
 
104
 
-
 
105
    /**
-
 
106
     * Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
-
 
107
     * Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
108
     * 
-
 
109
     * @param providerId
-
 
110
     * @param returnedOrders
-
 
111
     */
-
 
112
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, TException;
-
 
113
 
87
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
114
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException;
88
 
115
 
89
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
116
    public void setAlert(long orderId, boolean unset, long type, String comment) throws TException;
90
 
117
 
91
  }
118
  }
Line 849... Line 876...
849
        throw result.ex;
876
        throw result.ex;
850
      }
877
      }
851
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
878
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
852
    }
879
    }
853
 
880
 
-
 
881
    public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, TException
-
 
882
    {
-
 
883
      send_markOrdersAsDelivered(providerId, deliveredOrders);
-
 
884
      recv_markOrdersAsDelivered();
-
 
885
    }
-
 
886
 
-
 
887
    public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TException
-
 
888
    {
-
 
889
      oprot_.writeMessageBegin(new TMessage("markOrdersAsDelivered", TMessageType.CALL, seqid_));
-
 
890
      markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
-
 
891
      args.providerId = providerId;
-
 
892
      args.deliveredOrders = deliveredOrders;
-
 
893
      args.write(oprot_);
-
 
894
      oprot_.writeMessageEnd();
-
 
895
      oprot_.getTransport().flush();
-
 
896
    }
-
 
897
 
-
 
898
    public void recv_markOrdersAsDelivered() throws TransactionServiceException, TException
-
 
899
    {
-
 
900
      TMessage msg = iprot_.readMessageBegin();
-
 
901
      if (msg.type == TMessageType.EXCEPTION) {
-
 
902
        TApplicationException x = TApplicationException.read(iprot_);
-
 
903
        iprot_.readMessageEnd();
-
 
904
        throw x;
-
 
905
      }
-
 
906
      markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
-
 
907
      result.read(iprot_);
-
 
908
      iprot_.readMessageEnd();
-
 
909
      if (result.ex != null) {
-
 
910
        throw result.ex;
-
 
911
      }
-
 
912
      return;
-
 
913
    }
-
 
914
 
-
 
915
    public void markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, TException
-
 
916
    {
-
 
917
      send_markOrdersAsFailed(providerId, returnedOrders);
-
 
918
      recv_markOrdersAsFailed();
-
 
919
    }
-
 
920
 
-
 
921
    public void send_markOrdersAsFailed(long providerId, Map<String,String> returnedOrders) throws TException
-
 
922
    {
-
 
923
      oprot_.writeMessageBegin(new TMessage("markOrdersAsFailed", TMessageType.CALL, seqid_));
-
 
924
      markOrdersAsFailed_args args = new markOrdersAsFailed_args();
-
 
925
      args.providerId = providerId;
-
 
926
      args.returnedOrders = returnedOrders;
-
 
927
      args.write(oprot_);
-
 
928
      oprot_.writeMessageEnd();
-
 
929
      oprot_.getTransport().flush();
-
 
930
    }
-
 
931
 
-
 
932
    public void recv_markOrdersAsFailed() throws TransactionServiceException, TException
-
 
933
    {
-
 
934
      TMessage msg = iprot_.readMessageBegin();
-
 
935
      if (msg.type == TMessageType.EXCEPTION) {
-
 
936
        TApplicationException x = TApplicationException.read(iprot_);
-
 
937
        iprot_.readMessageEnd();
-
 
938
        throw x;
-
 
939
      }
-
 
940
      markOrdersAsFailed_result result = new markOrdersAsFailed_result();
-
 
941
      result.read(iprot_);
-
 
942
      iprot_.readMessageEnd();
-
 
943
      if (result.ex != null) {
-
 
944
        throw result.ex;
-
 
945
      }
-
 
946
      return;
-
 
947
    }
-
 
948
 
854
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException
949
    public List<Alert> getAlerts(long orderId, boolean valid) throws TException
855
    {
950
    {
856
      send_getAlerts(orderId, valid);
951
      send_getAlerts(orderId, valid);
857
      return recv_getAlerts();
952
      return recv_getAlerts();
858
    }
953
    }
Line 942... Line 1037...
942
      processMap_.put("createOrder", new createOrder());
1037
      processMap_.put("createOrder", new createOrder());
943
      processMap_.put("getOrder", new getOrder());
1038
      processMap_.put("getOrder", new getOrder());
944
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
1039
      processMap_.put("getLineItemsForOrder", new getLineItemsForOrder());
945
      processMap_.put("markOrdersAsManifested", new markOrdersAsManifested());
1040
      processMap_.put("markOrdersAsManifested", new markOrdersAsManifested());
946
      processMap_.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
1041
      processMap_.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
-
 
1042
      processMap_.put("markOrdersAsDelivered", new markOrdersAsDelivered());
-
 
1043
      processMap_.put("markOrdersAsFailed", new markOrdersAsFailed());
947
      processMap_.put("getAlerts", new getAlerts());
1044
      processMap_.put("getAlerts", new getAlerts());
948
      processMap_.put("setAlert", new setAlert());
1045
      processMap_.put("setAlert", new setAlert());
949
    }
1046
    }
950
 
1047
 
951
    protected static interface ProcessFunction {
1048
    protected static interface ProcessFunction {
Line 1527... Line 1624...
1527
        oprot.getTransport().flush();
1624
        oprot.getTransport().flush();
1528
      }
1625
      }
1529
 
1626
 
1530
    }
1627
    }
1531
 
1628
 
-
 
1629
    private class markOrdersAsDelivered implements ProcessFunction {
-
 
1630
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1631
      {
-
 
1632
        markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();
-
 
1633
        args.read(iprot);
-
 
1634
        iprot.readMessageEnd();
-
 
1635
        markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();
-
 
1636
        try {
-
 
1637
          iface_.markOrdersAsDelivered(args.providerId, args.deliveredOrders);
-
 
1638
        } catch (TransactionServiceException ex) {
-
 
1639
          result.ex = ex;
-
 
1640
        } catch (Throwable th) {
-
 
1641
          LOGGER.error("Internal error processing markOrdersAsDelivered", th);
-
 
1642
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markOrdersAsDelivered");
-
 
1643
          oprot.writeMessageBegin(new TMessage("markOrdersAsDelivered", TMessageType.EXCEPTION, seqid));
-
 
1644
          x.write(oprot);
-
 
1645
          oprot.writeMessageEnd();
-
 
1646
          oprot.getTransport().flush();
-
 
1647
          return;
-
 
1648
        }
-
 
1649
        oprot.writeMessageBegin(new TMessage("markOrdersAsDelivered", TMessageType.REPLY, seqid));
-
 
1650
        result.write(oprot);
-
 
1651
        oprot.writeMessageEnd();
-
 
1652
        oprot.getTransport().flush();
-
 
1653
      }
-
 
1654
 
-
 
1655
    }
-
 
1656
 
-
 
1657
    private class markOrdersAsFailed implements ProcessFunction {
-
 
1658
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1659
      {
-
 
1660
        markOrdersAsFailed_args args = new markOrdersAsFailed_args();
-
 
1661
        args.read(iprot);
-
 
1662
        iprot.readMessageEnd();
-
 
1663
        markOrdersAsFailed_result result = new markOrdersAsFailed_result();
-
 
1664
        try {
-
 
1665
          iface_.markOrdersAsFailed(args.providerId, args.returnedOrders);
-
 
1666
        } catch (TransactionServiceException ex) {
-
 
1667
          result.ex = ex;
-
 
1668
        } catch (Throwable th) {
-
 
1669
          LOGGER.error("Internal error processing markOrdersAsFailed", th);
-
 
1670
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markOrdersAsFailed");
-
 
1671
          oprot.writeMessageBegin(new TMessage("markOrdersAsFailed", TMessageType.EXCEPTION, seqid));
-
 
1672
          x.write(oprot);
-
 
1673
          oprot.writeMessageEnd();
-
 
1674
          oprot.getTransport().flush();
-
 
1675
          return;
-
 
1676
        }
-
 
1677
        oprot.writeMessageBegin(new TMessage("markOrdersAsFailed", TMessageType.REPLY, seqid));
-
 
1678
        result.write(oprot);
-
 
1679
        oprot.writeMessageEnd();
-
 
1680
        oprot.getTransport().flush();
-
 
1681
      }
-
 
1682
 
-
 
1683
    }
-
 
1684
 
1532
    private class getAlerts implements ProcessFunction {
1685
    private class getAlerts implements ProcessFunction {
1533
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1686
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1534
      {
1687
      {
1535
        getAlerts_args args = new getAlerts_args();
1688
        getAlerts_args args = new getAlerts_args();
1536
        args.read(iprot);
1689
        args.read(iprot);
Line 16308... Line 16461...
16308
      // check for required fields
16461
      // check for required fields
16309
    }
16462
    }
16310
 
16463
 
16311
  }
16464
  }
16312
 
16465
 
-
 
16466
  public static class markOrdersAsDelivered_args implements TBase<markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
-
 
16467
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsDelivered_args");
-
 
16468
 
-
 
16469
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
-
 
16470
    private static final TField DELIVERED_ORDERS_FIELD_DESC = new TField("deliveredOrders", TType.MAP, (short)2);
-
 
16471
 
-
 
16472
    private long providerId;
-
 
16473
    private Map<String,String> deliveredOrders;
-
 
16474
 
-
 
16475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16476
    public enum _Fields implements TFieldIdEnum {
-
 
16477
      PROVIDER_ID((short)1, "providerId"),
-
 
16478
      DELIVERED_ORDERS((short)2, "deliveredOrders");
-
 
16479
 
-
 
16480
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16481
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16482
 
-
 
16483
      static {
-
 
16484
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16485
          byId.put((int)field._thriftId, field);
-
 
16486
          byName.put(field.getFieldName(), field);
-
 
16487
        }
-
 
16488
      }
-
 
16489
 
-
 
16490
      /**
-
 
16491
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16492
       */
-
 
16493
      public static _Fields findByThriftId(int fieldId) {
-
 
16494
        return byId.get(fieldId);
-
 
16495
      }
-
 
16496
 
-
 
16497
      /**
-
 
16498
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16499
       * if it is not found.
-
 
16500
       */
-
 
16501
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16502
        _Fields fields = findByThriftId(fieldId);
-
 
16503
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16504
        return fields;
-
 
16505
      }
-
 
16506
 
-
 
16507
      /**
-
 
16508
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16509
       */
-
 
16510
      public static _Fields findByName(String name) {
-
 
16511
        return byName.get(name);
-
 
16512
      }
-
 
16513
 
-
 
16514
      private final short _thriftId;
-
 
16515
      private final String _fieldName;
-
 
16516
 
-
 
16517
      _Fields(short thriftId, String fieldName) {
-
 
16518
        _thriftId = thriftId;
-
 
16519
        _fieldName = fieldName;
-
 
16520
      }
-
 
16521
 
-
 
16522
      public short getThriftFieldId() {
-
 
16523
        return _thriftId;
-
 
16524
      }
-
 
16525
 
-
 
16526
      public String getFieldName() {
-
 
16527
        return _fieldName;
-
 
16528
      }
-
 
16529
    }
-
 
16530
 
-
 
16531
    // isset id assignments
-
 
16532
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
16533
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
16534
 
-
 
16535
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16536
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
16537
          new FieldValueMetaData(TType.I64)));
-
 
16538
      put(_Fields.DELIVERED_ORDERS, new FieldMetaData("deliveredOrders", TFieldRequirementType.DEFAULT, 
-
 
16539
          new MapMetaData(TType.MAP, 
-
 
16540
              new FieldValueMetaData(TType.STRING), 
-
 
16541
              new FieldValueMetaData(TType.STRING))));
-
 
16542
    }});
-
 
16543
 
-
 
16544
    static {
-
 
16545
      FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);
-
 
16546
    }
-
 
16547
 
-
 
16548
    public markOrdersAsDelivered_args() {
-
 
16549
    }
-
 
16550
 
-
 
16551
    public markOrdersAsDelivered_args(
-
 
16552
      long providerId,
-
 
16553
      Map<String,String> deliveredOrders)
-
 
16554
    {
-
 
16555
      this();
-
 
16556
      this.providerId = providerId;
-
 
16557
      setProviderIdIsSet(true);
-
 
16558
      this.deliveredOrders = deliveredOrders;
-
 
16559
    }
-
 
16560
 
-
 
16561
    /**
-
 
16562
     * Performs a deep copy on <i>other</i>.
-
 
16563
     */
-
 
16564
    public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {
-
 
16565
      __isset_bit_vector.clear();
-
 
16566
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16567
      this.providerId = other.providerId;
-
 
16568
      if (other.isSetDeliveredOrders()) {
-
 
16569
        Map<String,String> __this__deliveredOrders = new HashMap<String,String>();
-
 
16570
        for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {
-
 
16571
 
-
 
16572
          String other_element_key = other_element.getKey();
-
 
16573
          String other_element_value = other_element.getValue();
-
 
16574
 
-
 
16575
          String __this__deliveredOrders_copy_key = other_element_key;
-
 
16576
 
-
 
16577
          String __this__deliveredOrders_copy_value = other_element_value;
-
 
16578
 
-
 
16579
          __this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);
-
 
16580
        }
-
 
16581
        this.deliveredOrders = __this__deliveredOrders;
-
 
16582
      }
-
 
16583
    }
-
 
16584
 
-
 
16585
    public markOrdersAsDelivered_args deepCopy() {
-
 
16586
      return new markOrdersAsDelivered_args(this);
-
 
16587
    }
-
 
16588
 
-
 
16589
    @Deprecated
-
 
16590
    public markOrdersAsDelivered_args clone() {
-
 
16591
      return new markOrdersAsDelivered_args(this);
-
 
16592
    }
-
 
16593
 
-
 
16594
    public long getProviderId() {
-
 
16595
      return this.providerId;
-
 
16596
    }
-
 
16597
 
-
 
16598
    public markOrdersAsDelivered_args setProviderId(long providerId) {
-
 
16599
      this.providerId = providerId;
-
 
16600
      setProviderIdIsSet(true);
-
 
16601
      return this;
-
 
16602
    }
-
 
16603
 
-
 
16604
    public void unsetProviderId() {
-
 
16605
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
16606
    }
-
 
16607
 
-
 
16608
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
16609
    public boolean isSetProviderId() {
-
 
16610
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
16611
    }
-
 
16612
 
-
 
16613
    public void setProviderIdIsSet(boolean value) {
-
 
16614
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
16615
    }
-
 
16616
 
-
 
16617
    public int getDeliveredOrdersSize() {
-
 
16618
      return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();
-
 
16619
    }
-
 
16620
 
-
 
16621
    public void putToDeliveredOrders(String key, String val) {
-
 
16622
      if (this.deliveredOrders == null) {
-
 
16623
        this.deliveredOrders = new HashMap<String,String>();
-
 
16624
      }
-
 
16625
      this.deliveredOrders.put(key, val);
-
 
16626
    }
-
 
16627
 
-
 
16628
    public Map<String,String> getDeliveredOrders() {
-
 
16629
      return this.deliveredOrders;
-
 
16630
    }
-
 
16631
 
-
 
16632
    public markOrdersAsDelivered_args setDeliveredOrders(Map<String,String> deliveredOrders) {
-
 
16633
      this.deliveredOrders = deliveredOrders;
-
 
16634
      return this;
-
 
16635
    }
-
 
16636
 
-
 
16637
    public void unsetDeliveredOrders() {
-
 
16638
      this.deliveredOrders = null;
-
 
16639
    }
-
 
16640
 
-
 
16641
    /** Returns true if field deliveredOrders is set (has been asigned a value) and false otherwise */
-
 
16642
    public boolean isSetDeliveredOrders() {
-
 
16643
      return this.deliveredOrders != null;
-
 
16644
    }
-
 
16645
 
-
 
16646
    public void setDeliveredOrdersIsSet(boolean value) {
-
 
16647
      if (!value) {
-
 
16648
        this.deliveredOrders = null;
-
 
16649
      }
-
 
16650
    }
-
 
16651
 
-
 
16652
    public void setFieldValue(_Fields field, Object value) {
-
 
16653
      switch (field) {
-
 
16654
      case PROVIDER_ID:
-
 
16655
        if (value == null) {
-
 
16656
          unsetProviderId();
-
 
16657
        } else {
-
 
16658
          setProviderId((Long)value);
-
 
16659
        }
-
 
16660
        break;
-
 
16661
 
-
 
16662
      case DELIVERED_ORDERS:
-
 
16663
        if (value == null) {
-
 
16664
          unsetDeliveredOrders();
-
 
16665
        } else {
-
 
16666
          setDeliveredOrders((Map<String,String>)value);
-
 
16667
        }
-
 
16668
        break;
-
 
16669
 
-
 
16670
      }
-
 
16671
    }
-
 
16672
 
-
 
16673
    public void setFieldValue(int fieldID, Object value) {
-
 
16674
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
16675
    }
-
 
16676
 
-
 
16677
    public Object getFieldValue(_Fields field) {
-
 
16678
      switch (field) {
-
 
16679
      case PROVIDER_ID:
-
 
16680
        return new Long(getProviderId());
-
 
16681
 
-
 
16682
      case DELIVERED_ORDERS:
-
 
16683
        return getDeliveredOrders();
-
 
16684
 
-
 
16685
      }
-
 
16686
      throw new IllegalStateException();
-
 
16687
    }
-
 
16688
 
-
 
16689
    public Object getFieldValue(int fieldId) {
-
 
16690
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
16691
    }
-
 
16692
 
-
 
16693
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
16694
    public boolean isSet(_Fields field) {
-
 
16695
      switch (field) {
-
 
16696
      case PROVIDER_ID:
-
 
16697
        return isSetProviderId();
-
 
16698
      case DELIVERED_ORDERS:
-
 
16699
        return isSetDeliveredOrders();
-
 
16700
      }
-
 
16701
      throw new IllegalStateException();
-
 
16702
    }
-
 
16703
 
-
 
16704
    public boolean isSet(int fieldID) {
-
 
16705
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
16706
    }
-
 
16707
 
-
 
16708
    @Override
-
 
16709
    public boolean equals(Object that) {
-
 
16710
      if (that == null)
-
 
16711
        return false;
-
 
16712
      if (that instanceof markOrdersAsDelivered_args)
-
 
16713
        return this.equals((markOrdersAsDelivered_args)that);
-
 
16714
      return false;
-
 
16715
    }
-
 
16716
 
-
 
16717
    public boolean equals(markOrdersAsDelivered_args that) {
-
 
16718
      if (that == null)
-
 
16719
        return false;
-
 
16720
 
-
 
16721
      boolean this_present_providerId = true;
-
 
16722
      boolean that_present_providerId = true;
-
 
16723
      if (this_present_providerId || that_present_providerId) {
-
 
16724
        if (!(this_present_providerId && that_present_providerId))
-
 
16725
          return false;
-
 
16726
        if (this.providerId != that.providerId)
-
 
16727
          return false;
-
 
16728
      }
-
 
16729
 
-
 
16730
      boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();
-
 
16731
      boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();
-
 
16732
      if (this_present_deliveredOrders || that_present_deliveredOrders) {
-
 
16733
        if (!(this_present_deliveredOrders && that_present_deliveredOrders))
-
 
16734
          return false;
-
 
16735
        if (!this.deliveredOrders.equals(that.deliveredOrders))
-
 
16736
          return false;
-
 
16737
      }
-
 
16738
 
-
 
16739
      return true;
-
 
16740
    }
-
 
16741
 
-
 
16742
    @Override
-
 
16743
    public int hashCode() {
-
 
16744
      return 0;
-
 
16745
    }
-
 
16746
 
-
 
16747
    public void read(TProtocol iprot) throws TException {
-
 
16748
      TField field;
-
 
16749
      iprot.readStructBegin();
-
 
16750
      while (true)
-
 
16751
      {
-
 
16752
        field = iprot.readFieldBegin();
-
 
16753
        if (field.type == TType.STOP) { 
-
 
16754
          break;
-
 
16755
        }
-
 
16756
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
16757
        if (fieldId == null) {
-
 
16758
          TProtocolUtil.skip(iprot, field.type);
-
 
16759
        } else {
-
 
16760
          switch (fieldId) {
-
 
16761
            case PROVIDER_ID:
-
 
16762
              if (field.type == TType.I64) {
-
 
16763
                this.providerId = iprot.readI64();
-
 
16764
                setProviderIdIsSet(true);
-
 
16765
              } else { 
-
 
16766
                TProtocolUtil.skip(iprot, field.type);
-
 
16767
              }
-
 
16768
              break;
-
 
16769
            case DELIVERED_ORDERS:
-
 
16770
              if (field.type == TType.MAP) {
-
 
16771
                {
-
 
16772
                  TMap _map45 = iprot.readMapBegin();
-
 
16773
                  this.deliveredOrders = new HashMap<String,String>(2*_map45.size);
-
 
16774
                  for (int _i46 = 0; _i46 < _map45.size; ++_i46)
-
 
16775
                  {
-
 
16776
                    String _key47;
-
 
16777
                    String _val48;
-
 
16778
                    _key47 = iprot.readString();
-
 
16779
                    _val48 = iprot.readString();
-
 
16780
                    this.deliveredOrders.put(_key47, _val48);
-
 
16781
                  }
-
 
16782
                  iprot.readMapEnd();
-
 
16783
                }
-
 
16784
              } else { 
-
 
16785
                TProtocolUtil.skip(iprot, field.type);
-
 
16786
              }
-
 
16787
              break;
-
 
16788
          }
-
 
16789
          iprot.readFieldEnd();
-
 
16790
        }
-
 
16791
      }
-
 
16792
      iprot.readStructEnd();
-
 
16793
      validate();
-
 
16794
    }
-
 
16795
 
-
 
16796
    public void write(TProtocol oprot) throws TException {
-
 
16797
      validate();
-
 
16798
 
-
 
16799
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16800
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
16801
      oprot.writeI64(this.providerId);
-
 
16802
      oprot.writeFieldEnd();
-
 
16803
      if (this.deliveredOrders != null) {
-
 
16804
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
-
 
16805
        {
-
 
16806
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
-
 
16807
          for (Map.Entry<String, String> _iter49 : this.deliveredOrders.entrySet())
-
 
16808
          {
-
 
16809
            oprot.writeString(_iter49.getKey());
-
 
16810
            oprot.writeString(_iter49.getValue());
-
 
16811
          }
-
 
16812
          oprot.writeMapEnd();
-
 
16813
        }
-
 
16814
        oprot.writeFieldEnd();
-
 
16815
      }
-
 
16816
      oprot.writeFieldStop();
-
 
16817
      oprot.writeStructEnd();
-
 
16818
    }
-
 
16819
 
-
 
16820
    @Override
-
 
16821
    public String toString() {
-
 
16822
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");
-
 
16823
      boolean first = true;
-
 
16824
 
-
 
16825
      sb.append("providerId:");
-
 
16826
      sb.append(this.providerId);
-
 
16827
      first = false;
-
 
16828
      if (!first) sb.append(", ");
-
 
16829
      sb.append("deliveredOrders:");
-
 
16830
      if (this.deliveredOrders == null) {
-
 
16831
        sb.append("null");
-
 
16832
      } else {
-
 
16833
        sb.append(this.deliveredOrders);
-
 
16834
      }
-
 
16835
      first = false;
-
 
16836
      sb.append(")");
-
 
16837
      return sb.toString();
-
 
16838
    }
-
 
16839
 
-
 
16840
    public void validate() throws TException {
-
 
16841
      // check for required fields
-
 
16842
    }
-
 
16843
 
-
 
16844
  }
-
 
16845
 
-
 
16846
  public static class markOrdersAsDelivered_result implements TBase<markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsDelivered_result>   {
-
 
16847
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsDelivered_result");
-
 
16848
 
-
 
16849
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
16850
 
-
 
16851
    private TransactionServiceException ex;
-
 
16852
 
-
 
16853
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16854
    public enum _Fields implements TFieldIdEnum {
-
 
16855
      EX((short)1, "ex");
-
 
16856
 
-
 
16857
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
16858
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16859
 
-
 
16860
      static {
-
 
16861
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16862
          byId.put((int)field._thriftId, field);
-
 
16863
          byName.put(field.getFieldName(), field);
-
 
16864
        }
-
 
16865
      }
-
 
16866
 
-
 
16867
      /**
-
 
16868
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16869
       */
-
 
16870
      public static _Fields findByThriftId(int fieldId) {
-
 
16871
        return byId.get(fieldId);
-
 
16872
      }
-
 
16873
 
-
 
16874
      /**
-
 
16875
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16876
       * if it is not found.
-
 
16877
       */
-
 
16878
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16879
        _Fields fields = findByThriftId(fieldId);
-
 
16880
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16881
        return fields;
-
 
16882
      }
-
 
16883
 
-
 
16884
      /**
-
 
16885
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16886
       */
-
 
16887
      public static _Fields findByName(String name) {
-
 
16888
        return byName.get(name);
-
 
16889
      }
-
 
16890
 
-
 
16891
      private final short _thriftId;
-
 
16892
      private final String _fieldName;
-
 
16893
 
-
 
16894
      _Fields(short thriftId, String fieldName) {
-
 
16895
        _thriftId = thriftId;
-
 
16896
        _fieldName = fieldName;
-
 
16897
      }
-
 
16898
 
-
 
16899
      public short getThriftFieldId() {
-
 
16900
        return _thriftId;
-
 
16901
      }
-
 
16902
 
-
 
16903
      public String getFieldName() {
-
 
16904
        return _fieldName;
-
 
16905
      }
-
 
16906
    }
-
 
16907
 
-
 
16908
    // isset id assignments
-
 
16909
 
-
 
16910
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
16911
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
16912
          new FieldValueMetaData(TType.STRUCT)));
-
 
16913
    }});
-
 
16914
 
-
 
16915
    static {
-
 
16916
      FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);
-
 
16917
    }
-
 
16918
 
-
 
16919
    public markOrdersAsDelivered_result() {
-
 
16920
    }
-
 
16921
 
-
 
16922
    public markOrdersAsDelivered_result(
-
 
16923
      TransactionServiceException ex)
-
 
16924
    {
-
 
16925
      this();
-
 
16926
      this.ex = ex;
-
 
16927
    }
-
 
16928
 
-
 
16929
    /**
-
 
16930
     * Performs a deep copy on <i>other</i>.
-
 
16931
     */
-
 
16932
    public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {
-
 
16933
      if (other.isSetEx()) {
-
 
16934
        this.ex = new TransactionServiceException(other.ex);
-
 
16935
      }
-
 
16936
    }
-
 
16937
 
-
 
16938
    public markOrdersAsDelivered_result deepCopy() {
-
 
16939
      return new markOrdersAsDelivered_result(this);
-
 
16940
    }
-
 
16941
 
-
 
16942
    @Deprecated
-
 
16943
    public markOrdersAsDelivered_result clone() {
-
 
16944
      return new markOrdersAsDelivered_result(this);
-
 
16945
    }
-
 
16946
 
-
 
16947
    public TransactionServiceException getEx() {
-
 
16948
      return this.ex;
-
 
16949
    }
-
 
16950
 
-
 
16951
    public markOrdersAsDelivered_result setEx(TransactionServiceException ex) {
-
 
16952
      this.ex = ex;
-
 
16953
      return this;
-
 
16954
    }
-
 
16955
 
-
 
16956
    public void unsetEx() {
-
 
16957
      this.ex = null;
-
 
16958
    }
-
 
16959
 
-
 
16960
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
16961
    public boolean isSetEx() {
-
 
16962
      return this.ex != null;
-
 
16963
    }
-
 
16964
 
-
 
16965
    public void setExIsSet(boolean value) {
-
 
16966
      if (!value) {
-
 
16967
        this.ex = null;
-
 
16968
      }
-
 
16969
    }
-
 
16970
 
-
 
16971
    public void setFieldValue(_Fields field, Object value) {
-
 
16972
      switch (field) {
-
 
16973
      case EX:
-
 
16974
        if (value == null) {
-
 
16975
          unsetEx();
-
 
16976
        } else {
-
 
16977
          setEx((TransactionServiceException)value);
-
 
16978
        }
-
 
16979
        break;
-
 
16980
 
-
 
16981
      }
-
 
16982
    }
-
 
16983
 
-
 
16984
    public void setFieldValue(int fieldID, Object value) {
-
 
16985
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
16986
    }
-
 
16987
 
-
 
16988
    public Object getFieldValue(_Fields field) {
-
 
16989
      switch (field) {
-
 
16990
      case EX:
-
 
16991
        return getEx();
-
 
16992
 
-
 
16993
      }
-
 
16994
      throw new IllegalStateException();
-
 
16995
    }
-
 
16996
 
-
 
16997
    public Object getFieldValue(int fieldId) {
-
 
16998
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
16999
    }
-
 
17000
 
-
 
17001
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17002
    public boolean isSet(_Fields field) {
-
 
17003
      switch (field) {
-
 
17004
      case EX:
-
 
17005
        return isSetEx();
-
 
17006
      }
-
 
17007
      throw new IllegalStateException();
-
 
17008
    }
-
 
17009
 
-
 
17010
    public boolean isSet(int fieldID) {
-
 
17011
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17012
    }
-
 
17013
 
-
 
17014
    @Override
-
 
17015
    public boolean equals(Object that) {
-
 
17016
      if (that == null)
-
 
17017
        return false;
-
 
17018
      if (that instanceof markOrdersAsDelivered_result)
-
 
17019
        return this.equals((markOrdersAsDelivered_result)that);
-
 
17020
      return false;
-
 
17021
    }
-
 
17022
 
-
 
17023
    public boolean equals(markOrdersAsDelivered_result that) {
-
 
17024
      if (that == null)
-
 
17025
        return false;
-
 
17026
 
-
 
17027
      boolean this_present_ex = true && this.isSetEx();
-
 
17028
      boolean that_present_ex = true && that.isSetEx();
-
 
17029
      if (this_present_ex || that_present_ex) {
-
 
17030
        if (!(this_present_ex && that_present_ex))
-
 
17031
          return false;
-
 
17032
        if (!this.ex.equals(that.ex))
-
 
17033
          return false;
-
 
17034
      }
-
 
17035
 
-
 
17036
      return true;
-
 
17037
    }
-
 
17038
 
-
 
17039
    @Override
-
 
17040
    public int hashCode() {
-
 
17041
      return 0;
-
 
17042
    }
-
 
17043
 
-
 
17044
    public int compareTo(markOrdersAsDelivered_result other) {
-
 
17045
      if (!getClass().equals(other.getClass())) {
-
 
17046
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17047
      }
-
 
17048
 
-
 
17049
      int lastComparison = 0;
-
 
17050
      markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;
-
 
17051
 
-
 
17052
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
17053
      if (lastComparison != 0) {
-
 
17054
        return lastComparison;
-
 
17055
      }
-
 
17056
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
17057
      if (lastComparison != 0) {
-
 
17058
        return lastComparison;
-
 
17059
      }
-
 
17060
      return 0;
-
 
17061
    }
-
 
17062
 
-
 
17063
    public void read(TProtocol iprot) throws TException {
-
 
17064
      TField field;
-
 
17065
      iprot.readStructBegin();
-
 
17066
      while (true)
-
 
17067
      {
-
 
17068
        field = iprot.readFieldBegin();
-
 
17069
        if (field.type == TType.STOP) { 
-
 
17070
          break;
-
 
17071
        }
-
 
17072
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17073
        if (fieldId == null) {
-
 
17074
          TProtocolUtil.skip(iprot, field.type);
-
 
17075
        } else {
-
 
17076
          switch (fieldId) {
-
 
17077
            case EX:
-
 
17078
              if (field.type == TType.STRUCT) {
-
 
17079
                this.ex = new TransactionServiceException();
-
 
17080
                this.ex.read(iprot);
-
 
17081
              } else { 
-
 
17082
                TProtocolUtil.skip(iprot, field.type);
-
 
17083
              }
-
 
17084
              break;
-
 
17085
          }
-
 
17086
          iprot.readFieldEnd();
-
 
17087
        }
-
 
17088
      }
-
 
17089
      iprot.readStructEnd();
-
 
17090
      validate();
-
 
17091
    }
-
 
17092
 
-
 
17093
    public void write(TProtocol oprot) throws TException {
-
 
17094
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17095
 
-
 
17096
      if (this.isSetEx()) {
-
 
17097
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
17098
        this.ex.write(oprot);
-
 
17099
        oprot.writeFieldEnd();
-
 
17100
      }
-
 
17101
      oprot.writeFieldStop();
-
 
17102
      oprot.writeStructEnd();
-
 
17103
    }
-
 
17104
 
-
 
17105
    @Override
-
 
17106
    public String toString() {
-
 
17107
      StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");
-
 
17108
      boolean first = true;
-
 
17109
 
-
 
17110
      sb.append("ex:");
-
 
17111
      if (this.ex == null) {
-
 
17112
        sb.append("null");
-
 
17113
      } else {
-
 
17114
        sb.append(this.ex);
-
 
17115
      }
-
 
17116
      first = false;
-
 
17117
      sb.append(")");
-
 
17118
      return sb.toString();
-
 
17119
    }
-
 
17120
 
-
 
17121
    public void validate() throws TException {
-
 
17122
      // check for required fields
-
 
17123
    }
-
 
17124
 
-
 
17125
  }
-
 
17126
 
-
 
17127
  public static class markOrdersAsFailed_args implements TBase<markOrdersAsFailed_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17128
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsFailed_args");
-
 
17129
 
-
 
17130
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
-
 
17131
    private static final TField RETURNED_ORDERS_FIELD_DESC = new TField("returnedOrders", TType.MAP, (short)2);
-
 
17132
 
-
 
17133
    private long providerId;
-
 
17134
    private Map<String,String> returnedOrders;
-
 
17135
 
-
 
17136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17137
    public enum _Fields implements TFieldIdEnum {
-
 
17138
      PROVIDER_ID((short)1, "providerId"),
-
 
17139
      RETURNED_ORDERS((short)2, "returnedOrders");
-
 
17140
 
-
 
17141
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17142
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17143
 
-
 
17144
      static {
-
 
17145
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17146
          byId.put((int)field._thriftId, field);
-
 
17147
          byName.put(field.getFieldName(), field);
-
 
17148
        }
-
 
17149
      }
-
 
17150
 
-
 
17151
      /**
-
 
17152
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17153
       */
-
 
17154
      public static _Fields findByThriftId(int fieldId) {
-
 
17155
        return byId.get(fieldId);
-
 
17156
      }
-
 
17157
 
-
 
17158
      /**
-
 
17159
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17160
       * if it is not found.
-
 
17161
       */
-
 
17162
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17163
        _Fields fields = findByThriftId(fieldId);
-
 
17164
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17165
        return fields;
-
 
17166
      }
-
 
17167
 
-
 
17168
      /**
-
 
17169
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17170
       */
-
 
17171
      public static _Fields findByName(String name) {
-
 
17172
        return byName.get(name);
-
 
17173
      }
-
 
17174
 
-
 
17175
      private final short _thriftId;
-
 
17176
      private final String _fieldName;
-
 
17177
 
-
 
17178
      _Fields(short thriftId, String fieldName) {
-
 
17179
        _thriftId = thriftId;
-
 
17180
        _fieldName = fieldName;
-
 
17181
      }
-
 
17182
 
-
 
17183
      public short getThriftFieldId() {
-
 
17184
        return _thriftId;
-
 
17185
      }
-
 
17186
 
-
 
17187
      public String getFieldName() {
-
 
17188
        return _fieldName;
-
 
17189
      }
-
 
17190
    }
-
 
17191
 
-
 
17192
    // isset id assignments
-
 
17193
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
17194
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17195
 
-
 
17196
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17197
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
17198
          new FieldValueMetaData(TType.I64)));
-
 
17199
      put(_Fields.RETURNED_ORDERS, new FieldMetaData("returnedOrders", TFieldRequirementType.DEFAULT, 
-
 
17200
          new MapMetaData(TType.MAP, 
-
 
17201
              new FieldValueMetaData(TType.STRING), 
-
 
17202
              new FieldValueMetaData(TType.STRING))));
-
 
17203
    }});
-
 
17204
 
-
 
17205
    static {
-
 
17206
      FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_args.class, metaDataMap);
-
 
17207
    }
-
 
17208
 
-
 
17209
    public markOrdersAsFailed_args() {
-
 
17210
    }
-
 
17211
 
-
 
17212
    public markOrdersAsFailed_args(
-
 
17213
      long providerId,
-
 
17214
      Map<String,String> returnedOrders)
-
 
17215
    {
-
 
17216
      this();
-
 
17217
      this.providerId = providerId;
-
 
17218
      setProviderIdIsSet(true);
-
 
17219
      this.returnedOrders = returnedOrders;
-
 
17220
    }
-
 
17221
 
-
 
17222
    /**
-
 
17223
     * Performs a deep copy on <i>other</i>.
-
 
17224
     */
-
 
17225
    public markOrdersAsFailed_args(markOrdersAsFailed_args other) {
-
 
17226
      __isset_bit_vector.clear();
-
 
17227
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17228
      this.providerId = other.providerId;
-
 
17229
      if (other.isSetReturnedOrders()) {
-
 
17230
        Map<String,String> __this__returnedOrders = new HashMap<String,String>();
-
 
17231
        for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {
-
 
17232
 
-
 
17233
          String other_element_key = other_element.getKey();
-
 
17234
          String other_element_value = other_element.getValue();
-
 
17235
 
-
 
17236
          String __this__returnedOrders_copy_key = other_element_key;
-
 
17237
 
-
 
17238
          String __this__returnedOrders_copy_value = other_element_value;
-
 
17239
 
-
 
17240
          __this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);
-
 
17241
        }
-
 
17242
        this.returnedOrders = __this__returnedOrders;
-
 
17243
      }
-
 
17244
    }
-
 
17245
 
-
 
17246
    public markOrdersAsFailed_args deepCopy() {
-
 
17247
      return new markOrdersAsFailed_args(this);
-
 
17248
    }
-
 
17249
 
-
 
17250
    @Deprecated
-
 
17251
    public markOrdersAsFailed_args clone() {
-
 
17252
      return new markOrdersAsFailed_args(this);
-
 
17253
    }
-
 
17254
 
-
 
17255
    public long getProviderId() {
-
 
17256
      return this.providerId;
-
 
17257
    }
-
 
17258
 
-
 
17259
    public markOrdersAsFailed_args setProviderId(long providerId) {
-
 
17260
      this.providerId = providerId;
-
 
17261
      setProviderIdIsSet(true);
-
 
17262
      return this;
-
 
17263
    }
-
 
17264
 
-
 
17265
    public void unsetProviderId() {
-
 
17266
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
17267
    }
-
 
17268
 
-
 
17269
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
17270
    public boolean isSetProviderId() {
-
 
17271
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
17272
    }
-
 
17273
 
-
 
17274
    public void setProviderIdIsSet(boolean value) {
-
 
17275
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
17276
    }
-
 
17277
 
-
 
17278
    public int getReturnedOrdersSize() {
-
 
17279
      return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();
-
 
17280
    }
-
 
17281
 
-
 
17282
    public void putToReturnedOrders(String key, String val) {
-
 
17283
      if (this.returnedOrders == null) {
-
 
17284
        this.returnedOrders = new HashMap<String,String>();
-
 
17285
      }
-
 
17286
      this.returnedOrders.put(key, val);
-
 
17287
    }
-
 
17288
 
-
 
17289
    public Map<String,String> getReturnedOrders() {
-
 
17290
      return this.returnedOrders;
-
 
17291
    }
-
 
17292
 
-
 
17293
    public markOrdersAsFailed_args setReturnedOrders(Map<String,String> returnedOrders) {
-
 
17294
      this.returnedOrders = returnedOrders;
-
 
17295
      return this;
-
 
17296
    }
-
 
17297
 
-
 
17298
    public void unsetReturnedOrders() {
-
 
17299
      this.returnedOrders = null;
-
 
17300
    }
-
 
17301
 
-
 
17302
    /** Returns true if field returnedOrders is set (has been asigned a value) and false otherwise */
-
 
17303
    public boolean isSetReturnedOrders() {
-
 
17304
      return this.returnedOrders != null;
-
 
17305
    }
-
 
17306
 
-
 
17307
    public void setReturnedOrdersIsSet(boolean value) {
-
 
17308
      if (!value) {
-
 
17309
        this.returnedOrders = null;
-
 
17310
      }
-
 
17311
    }
-
 
17312
 
-
 
17313
    public void setFieldValue(_Fields field, Object value) {
-
 
17314
      switch (field) {
-
 
17315
      case PROVIDER_ID:
-
 
17316
        if (value == null) {
-
 
17317
          unsetProviderId();
-
 
17318
        } else {
-
 
17319
          setProviderId((Long)value);
-
 
17320
        }
-
 
17321
        break;
-
 
17322
 
-
 
17323
      case RETURNED_ORDERS:
-
 
17324
        if (value == null) {
-
 
17325
          unsetReturnedOrders();
-
 
17326
        } else {
-
 
17327
          setReturnedOrders((Map<String,String>)value);
-
 
17328
        }
-
 
17329
        break;
-
 
17330
 
-
 
17331
      }
-
 
17332
    }
-
 
17333
 
-
 
17334
    public void setFieldValue(int fieldID, Object value) {
-
 
17335
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17336
    }
-
 
17337
 
-
 
17338
    public Object getFieldValue(_Fields field) {
-
 
17339
      switch (field) {
-
 
17340
      case PROVIDER_ID:
-
 
17341
        return new Long(getProviderId());
-
 
17342
 
-
 
17343
      case RETURNED_ORDERS:
-
 
17344
        return getReturnedOrders();
-
 
17345
 
-
 
17346
      }
-
 
17347
      throw new IllegalStateException();
-
 
17348
    }
-
 
17349
 
-
 
17350
    public Object getFieldValue(int fieldId) {
-
 
17351
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17352
    }
-
 
17353
 
-
 
17354
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17355
    public boolean isSet(_Fields field) {
-
 
17356
      switch (field) {
-
 
17357
      case PROVIDER_ID:
-
 
17358
        return isSetProviderId();
-
 
17359
      case RETURNED_ORDERS:
-
 
17360
        return isSetReturnedOrders();
-
 
17361
      }
-
 
17362
      throw new IllegalStateException();
-
 
17363
    }
-
 
17364
 
-
 
17365
    public boolean isSet(int fieldID) {
-
 
17366
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17367
    }
-
 
17368
 
-
 
17369
    @Override
-
 
17370
    public boolean equals(Object that) {
-
 
17371
      if (that == null)
-
 
17372
        return false;
-
 
17373
      if (that instanceof markOrdersAsFailed_args)
-
 
17374
        return this.equals((markOrdersAsFailed_args)that);
-
 
17375
      return false;
-
 
17376
    }
-
 
17377
 
-
 
17378
    public boolean equals(markOrdersAsFailed_args that) {
-
 
17379
      if (that == null)
-
 
17380
        return false;
-
 
17381
 
-
 
17382
      boolean this_present_providerId = true;
-
 
17383
      boolean that_present_providerId = true;
-
 
17384
      if (this_present_providerId || that_present_providerId) {
-
 
17385
        if (!(this_present_providerId && that_present_providerId))
-
 
17386
          return false;
-
 
17387
        if (this.providerId != that.providerId)
-
 
17388
          return false;
-
 
17389
      }
-
 
17390
 
-
 
17391
      boolean this_present_returnedOrders = true && this.isSetReturnedOrders();
-
 
17392
      boolean that_present_returnedOrders = true && that.isSetReturnedOrders();
-
 
17393
      if (this_present_returnedOrders || that_present_returnedOrders) {
-
 
17394
        if (!(this_present_returnedOrders && that_present_returnedOrders))
-
 
17395
          return false;
-
 
17396
        if (!this.returnedOrders.equals(that.returnedOrders))
-
 
17397
          return false;
-
 
17398
      }
-
 
17399
 
-
 
17400
      return true;
-
 
17401
    }
-
 
17402
 
-
 
17403
    @Override
-
 
17404
    public int hashCode() {
-
 
17405
      return 0;
-
 
17406
    }
-
 
17407
 
-
 
17408
    public void read(TProtocol iprot) throws TException {
-
 
17409
      TField field;
-
 
17410
      iprot.readStructBegin();
-
 
17411
      while (true)
-
 
17412
      {
-
 
17413
        field = iprot.readFieldBegin();
-
 
17414
        if (field.type == TType.STOP) { 
-
 
17415
          break;
-
 
17416
        }
-
 
17417
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17418
        if (fieldId == null) {
-
 
17419
          TProtocolUtil.skip(iprot, field.type);
-
 
17420
        } else {
-
 
17421
          switch (fieldId) {
-
 
17422
            case PROVIDER_ID:
-
 
17423
              if (field.type == TType.I64) {
-
 
17424
                this.providerId = iprot.readI64();
-
 
17425
                setProviderIdIsSet(true);
-
 
17426
              } else { 
-
 
17427
                TProtocolUtil.skip(iprot, field.type);
-
 
17428
              }
-
 
17429
              break;
-
 
17430
            case RETURNED_ORDERS:
-
 
17431
              if (field.type == TType.MAP) {
-
 
17432
                {
-
 
17433
                  TMap _map50 = iprot.readMapBegin();
-
 
17434
                  this.returnedOrders = new HashMap<String,String>(2*_map50.size);
-
 
17435
                  for (int _i51 = 0; _i51 < _map50.size; ++_i51)
-
 
17436
                  {
-
 
17437
                    String _key52;
-
 
17438
                    String _val53;
-
 
17439
                    _key52 = iprot.readString();
-
 
17440
                    _val53 = iprot.readString();
-
 
17441
                    this.returnedOrders.put(_key52, _val53);
-
 
17442
                  }
-
 
17443
                  iprot.readMapEnd();
-
 
17444
                }
-
 
17445
              } else { 
-
 
17446
                TProtocolUtil.skip(iprot, field.type);
-
 
17447
              }
-
 
17448
              break;
-
 
17449
          }
-
 
17450
          iprot.readFieldEnd();
-
 
17451
        }
-
 
17452
      }
-
 
17453
      iprot.readStructEnd();
-
 
17454
      validate();
-
 
17455
    }
-
 
17456
 
-
 
17457
    public void write(TProtocol oprot) throws TException {
-
 
17458
      validate();
-
 
17459
 
-
 
17460
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17461
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
17462
      oprot.writeI64(this.providerId);
-
 
17463
      oprot.writeFieldEnd();
-
 
17464
      if (this.returnedOrders != null) {
-
 
17465
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
-
 
17466
        {
-
 
17467
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
-
 
17468
          for (Map.Entry<String, String> _iter54 : this.returnedOrders.entrySet())
-
 
17469
          {
-
 
17470
            oprot.writeString(_iter54.getKey());
-
 
17471
            oprot.writeString(_iter54.getValue());
-
 
17472
          }
-
 
17473
          oprot.writeMapEnd();
-
 
17474
        }
-
 
17475
        oprot.writeFieldEnd();
-
 
17476
      }
-
 
17477
      oprot.writeFieldStop();
-
 
17478
      oprot.writeStructEnd();
-
 
17479
    }
-
 
17480
 
-
 
17481
    @Override
-
 
17482
    public String toString() {
-
 
17483
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_args(");
-
 
17484
      boolean first = true;
-
 
17485
 
-
 
17486
      sb.append("providerId:");
-
 
17487
      sb.append(this.providerId);
-
 
17488
      first = false;
-
 
17489
      if (!first) sb.append(", ");
-
 
17490
      sb.append("returnedOrders:");
-
 
17491
      if (this.returnedOrders == null) {
-
 
17492
        sb.append("null");
-
 
17493
      } else {
-
 
17494
        sb.append(this.returnedOrders);
-
 
17495
      }
-
 
17496
      first = false;
-
 
17497
      sb.append(")");
-
 
17498
      return sb.toString();
-
 
17499
    }
-
 
17500
 
-
 
17501
    public void validate() throws TException {
-
 
17502
      // check for required fields
-
 
17503
    }
-
 
17504
 
-
 
17505
  }
-
 
17506
 
-
 
17507
  public static class markOrdersAsFailed_result implements TBase<markOrdersAsFailed_result._Fields>, java.io.Serializable, Cloneable, Comparable<markOrdersAsFailed_result>   {
-
 
17508
    private static final TStruct STRUCT_DESC = new TStruct("markOrdersAsFailed_result");
-
 
17509
 
-
 
17510
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
17511
 
-
 
17512
    private TransactionServiceException ex;
-
 
17513
 
-
 
17514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17515
    public enum _Fields implements TFieldIdEnum {
-
 
17516
      EX((short)1, "ex");
-
 
17517
 
-
 
17518
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
17519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17520
 
-
 
17521
      static {
-
 
17522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17523
          byId.put((int)field._thriftId, field);
-
 
17524
          byName.put(field.getFieldName(), field);
-
 
17525
        }
-
 
17526
      }
-
 
17527
 
-
 
17528
      /**
-
 
17529
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17530
       */
-
 
17531
      public static _Fields findByThriftId(int fieldId) {
-
 
17532
        return byId.get(fieldId);
-
 
17533
      }
-
 
17534
 
-
 
17535
      /**
-
 
17536
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17537
       * if it is not found.
-
 
17538
       */
-
 
17539
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17540
        _Fields fields = findByThriftId(fieldId);
-
 
17541
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17542
        return fields;
-
 
17543
      }
-
 
17544
 
-
 
17545
      /**
-
 
17546
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17547
       */
-
 
17548
      public static _Fields findByName(String name) {
-
 
17549
        return byName.get(name);
-
 
17550
      }
-
 
17551
 
-
 
17552
      private final short _thriftId;
-
 
17553
      private final String _fieldName;
-
 
17554
 
-
 
17555
      _Fields(short thriftId, String fieldName) {
-
 
17556
        _thriftId = thriftId;
-
 
17557
        _fieldName = fieldName;
-
 
17558
      }
-
 
17559
 
-
 
17560
      public short getThriftFieldId() {
-
 
17561
        return _thriftId;
-
 
17562
      }
-
 
17563
 
-
 
17564
      public String getFieldName() {
-
 
17565
        return _fieldName;
-
 
17566
      }
-
 
17567
    }
-
 
17568
 
-
 
17569
    // isset id assignments
-
 
17570
 
-
 
17571
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
17572
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
17573
          new FieldValueMetaData(TType.STRUCT)));
-
 
17574
    }});
-
 
17575
 
-
 
17576
    static {
-
 
17577
      FieldMetaData.addStructMetaDataMap(markOrdersAsFailed_result.class, metaDataMap);
-
 
17578
    }
-
 
17579
 
-
 
17580
    public markOrdersAsFailed_result() {
-
 
17581
    }
-
 
17582
 
-
 
17583
    public markOrdersAsFailed_result(
-
 
17584
      TransactionServiceException ex)
-
 
17585
    {
-
 
17586
      this();
-
 
17587
      this.ex = ex;
-
 
17588
    }
-
 
17589
 
-
 
17590
    /**
-
 
17591
     * Performs a deep copy on <i>other</i>.
-
 
17592
     */
-
 
17593
    public markOrdersAsFailed_result(markOrdersAsFailed_result other) {
-
 
17594
      if (other.isSetEx()) {
-
 
17595
        this.ex = new TransactionServiceException(other.ex);
-
 
17596
      }
-
 
17597
    }
-
 
17598
 
-
 
17599
    public markOrdersAsFailed_result deepCopy() {
-
 
17600
      return new markOrdersAsFailed_result(this);
-
 
17601
    }
-
 
17602
 
-
 
17603
    @Deprecated
-
 
17604
    public markOrdersAsFailed_result clone() {
-
 
17605
      return new markOrdersAsFailed_result(this);
-
 
17606
    }
-
 
17607
 
-
 
17608
    public TransactionServiceException getEx() {
-
 
17609
      return this.ex;
-
 
17610
    }
-
 
17611
 
-
 
17612
    public markOrdersAsFailed_result setEx(TransactionServiceException ex) {
-
 
17613
      this.ex = ex;
-
 
17614
      return this;
-
 
17615
    }
-
 
17616
 
-
 
17617
    public void unsetEx() {
-
 
17618
      this.ex = null;
-
 
17619
    }
-
 
17620
 
-
 
17621
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
17622
    public boolean isSetEx() {
-
 
17623
      return this.ex != null;
-
 
17624
    }
-
 
17625
 
-
 
17626
    public void setExIsSet(boolean value) {
-
 
17627
      if (!value) {
-
 
17628
        this.ex = null;
-
 
17629
      }
-
 
17630
    }
-
 
17631
 
-
 
17632
    public void setFieldValue(_Fields field, Object value) {
-
 
17633
      switch (field) {
-
 
17634
      case EX:
-
 
17635
        if (value == null) {
-
 
17636
          unsetEx();
-
 
17637
        } else {
-
 
17638
          setEx((TransactionServiceException)value);
-
 
17639
        }
-
 
17640
        break;
-
 
17641
 
-
 
17642
      }
-
 
17643
    }
-
 
17644
 
-
 
17645
    public void setFieldValue(int fieldID, Object value) {
-
 
17646
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
17647
    }
-
 
17648
 
-
 
17649
    public Object getFieldValue(_Fields field) {
-
 
17650
      switch (field) {
-
 
17651
      case EX:
-
 
17652
        return getEx();
-
 
17653
 
-
 
17654
      }
-
 
17655
      throw new IllegalStateException();
-
 
17656
    }
-
 
17657
 
-
 
17658
    public Object getFieldValue(int fieldId) {
-
 
17659
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
17660
    }
-
 
17661
 
-
 
17662
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
17663
    public boolean isSet(_Fields field) {
-
 
17664
      switch (field) {
-
 
17665
      case EX:
-
 
17666
        return isSetEx();
-
 
17667
      }
-
 
17668
      throw new IllegalStateException();
-
 
17669
    }
-
 
17670
 
-
 
17671
    public boolean isSet(int fieldID) {
-
 
17672
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
17673
    }
-
 
17674
 
-
 
17675
    @Override
-
 
17676
    public boolean equals(Object that) {
-
 
17677
      if (that == null)
-
 
17678
        return false;
-
 
17679
      if (that instanceof markOrdersAsFailed_result)
-
 
17680
        return this.equals((markOrdersAsFailed_result)that);
-
 
17681
      return false;
-
 
17682
    }
-
 
17683
 
-
 
17684
    public boolean equals(markOrdersAsFailed_result that) {
-
 
17685
      if (that == null)
-
 
17686
        return false;
-
 
17687
 
-
 
17688
      boolean this_present_ex = true && this.isSetEx();
-
 
17689
      boolean that_present_ex = true && that.isSetEx();
-
 
17690
      if (this_present_ex || that_present_ex) {
-
 
17691
        if (!(this_present_ex && that_present_ex))
-
 
17692
          return false;
-
 
17693
        if (!this.ex.equals(that.ex))
-
 
17694
          return false;
-
 
17695
      }
-
 
17696
 
-
 
17697
      return true;
-
 
17698
    }
-
 
17699
 
-
 
17700
    @Override
-
 
17701
    public int hashCode() {
-
 
17702
      return 0;
-
 
17703
    }
-
 
17704
 
-
 
17705
    public int compareTo(markOrdersAsFailed_result other) {
-
 
17706
      if (!getClass().equals(other.getClass())) {
-
 
17707
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17708
      }
-
 
17709
 
-
 
17710
      int lastComparison = 0;
-
 
17711
      markOrdersAsFailed_result typedOther = (markOrdersAsFailed_result)other;
-
 
17712
 
-
 
17713
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
17714
      if (lastComparison != 0) {
-
 
17715
        return lastComparison;
-
 
17716
      }
-
 
17717
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
17718
      if (lastComparison != 0) {
-
 
17719
        return lastComparison;
-
 
17720
      }
-
 
17721
      return 0;
-
 
17722
    }
-
 
17723
 
-
 
17724
    public void read(TProtocol iprot) throws TException {
-
 
17725
      TField field;
-
 
17726
      iprot.readStructBegin();
-
 
17727
      while (true)
-
 
17728
      {
-
 
17729
        field = iprot.readFieldBegin();
-
 
17730
        if (field.type == TType.STOP) { 
-
 
17731
          break;
-
 
17732
        }
-
 
17733
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
17734
        if (fieldId == null) {
-
 
17735
          TProtocolUtil.skip(iprot, field.type);
-
 
17736
        } else {
-
 
17737
          switch (fieldId) {
-
 
17738
            case EX:
-
 
17739
              if (field.type == TType.STRUCT) {
-
 
17740
                this.ex = new TransactionServiceException();
-
 
17741
                this.ex.read(iprot);
-
 
17742
              } else { 
-
 
17743
                TProtocolUtil.skip(iprot, field.type);
-
 
17744
              }
-
 
17745
              break;
-
 
17746
          }
-
 
17747
          iprot.readFieldEnd();
-
 
17748
        }
-
 
17749
      }
-
 
17750
      iprot.readStructEnd();
-
 
17751
      validate();
-
 
17752
    }
-
 
17753
 
-
 
17754
    public void write(TProtocol oprot) throws TException {
-
 
17755
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17756
 
-
 
17757
      if (this.isSetEx()) {
-
 
17758
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
17759
        this.ex.write(oprot);
-
 
17760
        oprot.writeFieldEnd();
-
 
17761
      }
-
 
17762
      oprot.writeFieldStop();
-
 
17763
      oprot.writeStructEnd();
-
 
17764
    }
-
 
17765
 
-
 
17766
    @Override
-
 
17767
    public String toString() {
-
 
17768
      StringBuilder sb = new StringBuilder("markOrdersAsFailed_result(");
-
 
17769
      boolean first = true;
-
 
17770
 
-
 
17771
      sb.append("ex:");
-
 
17772
      if (this.ex == null) {
-
 
17773
        sb.append("null");
-
 
17774
      } else {
-
 
17775
        sb.append(this.ex);
-
 
17776
      }
-
 
17777
      first = false;
-
 
17778
      sb.append(")");
-
 
17779
      return sb.toString();
-
 
17780
    }
-
 
17781
 
-
 
17782
    public void validate() throws TException {
-
 
17783
      // check for required fields
-
 
17784
    }
-
 
17785
 
-
 
17786
  }
-
 
17787
 
16313
  public static class getAlerts_args implements TBase<getAlerts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_args>   {
17788
  public static class getAlerts_args implements TBase<getAlerts_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAlerts_args>   {
16314
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_args");
17789
    private static final TStruct STRUCT_DESC = new TStruct("getAlerts_args");
16315
 
17790
 
16316
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
17791
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
16317
    private static final TField VALID_FIELD_DESC = new TField("valid", TType.BOOL, (short)2);
17792
    private static final TField VALID_FIELD_DESC = new TField("valid", TType.BOOL, (short)2);
Line 16918... Line 18393...
16918
        } else {
18393
        } else {
16919
          switch (fieldId) {
18394
          switch (fieldId) {
16920
            case SUCCESS:
18395
            case SUCCESS:
16921
              if (field.type == TType.LIST) {
18396
              if (field.type == TType.LIST) {
16922
                {
18397
                {
16923
                  TList _list45 = iprot.readListBegin();
18398
                  TList _list55 = iprot.readListBegin();
16924
                  this.success = new ArrayList<Alert>(_list45.size);
18399
                  this.success = new ArrayList<Alert>(_list55.size);
16925
                  for (int _i46 = 0; _i46 < _list45.size; ++_i46)
18400
                  for (int _i56 = 0; _i56 < _list55.size; ++_i56)
16926
                  {
18401
                  {
16927
                    Alert _elem47;
18402
                    Alert _elem57;
16928
                    _elem47 = new Alert();
18403
                    _elem57 = new Alert();
16929
                    _elem47.read(iprot);
18404
                    _elem57.read(iprot);
16930
                    this.success.add(_elem47);
18405
                    this.success.add(_elem57);
16931
                  }
18406
                  }
16932
                  iprot.readListEnd();
18407
                  iprot.readListEnd();
16933
                }
18408
                }
16934
              } else { 
18409
              } else { 
16935
                TProtocolUtil.skip(iprot, field.type);
18410
                TProtocolUtil.skip(iprot, field.type);
Line 16948... Line 18423...
16948
 
18423
 
16949
      if (this.isSetSuccess()) {
18424
      if (this.isSetSuccess()) {
16950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18425
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16951
        {
18426
        {
16952
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18427
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16953
          for (Alert _iter48 : this.success)
18428
          for (Alert _iter58 : this.success)
16954
          {
18429
          {
16955
            _iter48.write(oprot);
18430
            _iter58.write(oprot);
16956
          }
18431
          }
16957
          oprot.writeListEnd();
18432
          oprot.writeListEnd();
16958
        }
18433
        }
16959
        oprot.writeFieldEnd();
18434
        oprot.writeFieldEnd();
16960
      }
18435
      }