Subversion Repositories SmartDukaan

Rev

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

Rev 3374 Rev 3427
Line 52... Line 52...
52
     * @param warehouse_id
52
     * @param warehouse_id
53
     */
53
     */
54
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
54
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
55
 
55
 
56
    /**
56
    /**
-
 
57
     * Returns orders for a particular provider and warehouse which were shipped between the given dates.
-
 
58
     * Pass providerId and warehouseId as -1 to ignore both the parameters.
-
 
59
     * 
-
 
60
     * @param fromShippingDate
-
 
61
     * @param toShippingDate
-
 
62
     * @param providerId
-
 
63
     * @param warehouseId
-
 
64
     */
-
 
65
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId) throws TransactionServiceException, TException;
-
 
66
 
-
 
67
    /**
57
     * Returns order ids for orders which can be returned
68
     * Returns order ids for orders which can be returned
58
     * 
69
     * 
59
     * @param customer_id
70
     * @param customer_id
60
     * @param limit
71
     * @param limit
61
     */
72
     */
Line 746... Line 757...
746
        throw result.ex;
757
        throw result.ex;
747
      }
758
      }
748
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
759
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
749
    }
760
    }
750
 
761
 
-
 
762
    public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId) throws TransactionServiceException, TException
-
 
763
    {
-
 
764
      send_getOrdersByShippingDate(fromShippingDate, toShippingDate, providerId, warehouseId);
-
 
765
      return recv_getOrdersByShippingDate();
-
 
766
    }
-
 
767
 
-
 
768
    public void send_getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId) throws TException
-
 
769
    {
-
 
770
      oprot_.writeMessageBegin(new TMessage("getOrdersByShippingDate", TMessageType.CALL, seqid_));
-
 
771
      getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
-
 
772
      args.fromShippingDate = fromShippingDate;
-
 
773
      args.toShippingDate = toShippingDate;
-
 
774
      args.providerId = providerId;
-
 
775
      args.warehouseId = warehouseId;
-
 
776
      args.write(oprot_);
-
 
777
      oprot_.writeMessageEnd();
-
 
778
      oprot_.getTransport().flush();
-
 
779
    }
-
 
780
 
-
 
781
    public List<Order> recv_getOrdersByShippingDate() throws TransactionServiceException, TException
-
 
782
    {
-
 
783
      TMessage msg = iprot_.readMessageBegin();
-
 
784
      if (msg.type == TMessageType.EXCEPTION) {
-
 
785
        TApplicationException x = TApplicationException.read(iprot_);
-
 
786
        iprot_.readMessageEnd();
-
 
787
        throw x;
-
 
788
      }
-
 
789
      getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
-
 
790
      result.read(iprot_);
-
 
791
      iprot_.readMessageEnd();
-
 
792
      if (result.isSetSuccess()) {
-
 
793
        return result.success;
-
 
794
      }
-
 
795
      if (result.ex != null) {
-
 
796
        throw result.ex;
-
 
797
      }
-
 
798
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
-
 
799
    }
-
 
800
 
751
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException
801
    public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, TException
752
    {
802
    {
753
      send_getReturnableOrdersForCustomer(customer_id, limit);
803
      send_getReturnableOrdersForCustomer(customer_id, limit);
754
      return recv_getReturnableOrdersForCustomer();
804
      return recv_getReturnableOrdersForCustomer();
755
    }
805
    }
Line 2191... Line 2241...
2191
      processMap_.put("getTransactionStatus", new getTransactionStatus());
2241
      processMap_.put("getTransactionStatus", new getTransactionStatus());
2192
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
2242
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
2193
      processMap_.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
2243
      processMap_.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());
2194
      processMap_.put("getAllOrders", new getAllOrders());
2244
      processMap_.put("getAllOrders", new getAllOrders());
2195
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
2245
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
-
 
2246
      processMap_.put("getOrdersByShippingDate", new getOrdersByShippingDate());
2196
      processMap_.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
2247
      processMap_.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());
2197
      processMap_.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
2248
      processMap_.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());
2198
      processMap_.put("changeOrderStatus", new changeOrderStatus());
2249
      processMap_.put("changeOrderStatus", new changeOrderStatus());
2199
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
2250
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
2200
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
2251
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
Line 2508... Line 2559...
2508
        oprot.getTransport().flush();
2559
        oprot.getTransport().flush();
2509
      }
2560
      }
2510
 
2561
 
2511
    }
2562
    }
2512
 
2563
 
-
 
2564
    private class getOrdersByShippingDate implements ProcessFunction {
-
 
2565
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2566
      {
-
 
2567
        getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();
-
 
2568
        args.read(iprot);
-
 
2569
        iprot.readMessageEnd();
-
 
2570
        getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();
-
 
2571
        try {
-
 
2572
          result.success = iface_.getOrdersByShippingDate(args.fromShippingDate, args.toShippingDate, args.providerId, args.warehouseId);
-
 
2573
        } catch (TransactionServiceException ex) {
-
 
2574
          result.ex = ex;
-
 
2575
        } catch (Throwable th) {
-
 
2576
          LOGGER.error("Internal error processing getOrdersByShippingDate", th);
-
 
2577
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersByShippingDate");
-
 
2578
          oprot.writeMessageBegin(new TMessage("getOrdersByShippingDate", TMessageType.EXCEPTION, seqid));
-
 
2579
          x.write(oprot);
-
 
2580
          oprot.writeMessageEnd();
-
 
2581
          oprot.getTransport().flush();
-
 
2582
          return;
-
 
2583
        }
-
 
2584
        oprot.writeMessageBegin(new TMessage("getOrdersByShippingDate", TMessageType.REPLY, seqid));
-
 
2585
        result.write(oprot);
-
 
2586
        oprot.writeMessageEnd();
-
 
2587
        oprot.getTransport().flush();
-
 
2588
      }
-
 
2589
 
-
 
2590
    }
-
 
2591
 
2513
    private class getReturnableOrdersForCustomer implements ProcessFunction {
2592
    private class getReturnableOrdersForCustomer implements ProcessFunction {
2514
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2593
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2515
      {
2594
      {
2516
        getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
2595
        getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();
2517
        args.read(iprot);
2596
        args.read(iprot);
Line 10461... Line 10540...
10461
      // check for required fields
10540
      // check for required fields
10462
    }
10541
    }
10463
 
10542
 
10464
  }
10543
  }
10465
 
10544
 
-
 
10545
  public static class getOrdersByShippingDate_args implements TBase<getOrdersByShippingDate_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersByShippingDate_args>   {
-
 
10546
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersByShippingDate_args");
-
 
10547
 
-
 
10548
    private static final TField FROM_SHIPPING_DATE_FIELD_DESC = new TField("fromShippingDate", TType.I64, (short)1);
-
 
10549
    private static final TField TO_SHIPPING_DATE_FIELD_DESC = new TField("toShippingDate", TType.I64, (short)2);
-
 
10550
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)3);
-
 
10551
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)4);
-
 
10552
 
-
 
10553
    private long fromShippingDate;
-
 
10554
    private long toShippingDate;
-
 
10555
    private long providerId;
-
 
10556
    private long warehouseId;
-
 
10557
 
-
 
10558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10559
    public enum _Fields implements TFieldIdEnum {
-
 
10560
      FROM_SHIPPING_DATE((short)1, "fromShippingDate"),
-
 
10561
      TO_SHIPPING_DATE((short)2, "toShippingDate"),
-
 
10562
      PROVIDER_ID((short)3, "providerId"),
-
 
10563
      WAREHOUSE_ID((short)4, "warehouseId");
-
 
10564
 
-
 
10565
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10566
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10567
 
-
 
10568
      static {
-
 
10569
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10570
          byId.put((int)field._thriftId, field);
-
 
10571
          byName.put(field.getFieldName(), field);
-
 
10572
        }
-
 
10573
      }
-
 
10574
 
-
 
10575
      /**
-
 
10576
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10577
       */
-
 
10578
      public static _Fields findByThriftId(int fieldId) {
-
 
10579
        return byId.get(fieldId);
-
 
10580
      }
-
 
10581
 
-
 
10582
      /**
-
 
10583
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10584
       * if it is not found.
-
 
10585
       */
-
 
10586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10587
        _Fields fields = findByThriftId(fieldId);
-
 
10588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10589
        return fields;
-
 
10590
      }
-
 
10591
 
-
 
10592
      /**
-
 
10593
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10594
       */
-
 
10595
      public static _Fields findByName(String name) {
-
 
10596
        return byName.get(name);
-
 
10597
      }
-
 
10598
 
-
 
10599
      private final short _thriftId;
-
 
10600
      private final String _fieldName;
-
 
10601
 
-
 
10602
      _Fields(short thriftId, String fieldName) {
-
 
10603
        _thriftId = thriftId;
-
 
10604
        _fieldName = fieldName;
-
 
10605
      }
-
 
10606
 
-
 
10607
      public short getThriftFieldId() {
-
 
10608
        return _thriftId;
-
 
10609
      }
-
 
10610
 
-
 
10611
      public String getFieldName() {
-
 
10612
        return _fieldName;
-
 
10613
      }
-
 
10614
    }
-
 
10615
 
-
 
10616
    // isset id assignments
-
 
10617
    private static final int __FROMSHIPPINGDATE_ISSET_ID = 0;
-
 
10618
    private static final int __TOSHIPPINGDATE_ISSET_ID = 1;
-
 
10619
    private static final int __PROVIDERID_ISSET_ID = 2;
-
 
10620
    private static final int __WAREHOUSEID_ISSET_ID = 3;
-
 
10621
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
10622
 
-
 
10623
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10624
      put(_Fields.FROM_SHIPPING_DATE, new FieldMetaData("fromShippingDate", TFieldRequirementType.DEFAULT, 
-
 
10625
          new FieldValueMetaData(TType.I64)));
-
 
10626
      put(_Fields.TO_SHIPPING_DATE, new FieldMetaData("toShippingDate", TFieldRequirementType.DEFAULT, 
-
 
10627
          new FieldValueMetaData(TType.I64)));
-
 
10628
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
10629
          new FieldValueMetaData(TType.I64)));
-
 
10630
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
10631
          new FieldValueMetaData(TType.I64)));
-
 
10632
    }});
-
 
10633
 
-
 
10634
    static {
-
 
10635
      FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_args.class, metaDataMap);
-
 
10636
    }
-
 
10637
 
-
 
10638
    public getOrdersByShippingDate_args() {
-
 
10639
    }
-
 
10640
 
-
 
10641
    public getOrdersByShippingDate_args(
-
 
10642
      long fromShippingDate,
-
 
10643
      long toShippingDate,
-
 
10644
      long providerId,
-
 
10645
      long warehouseId)
-
 
10646
    {
-
 
10647
      this();
-
 
10648
      this.fromShippingDate = fromShippingDate;
-
 
10649
      setFromShippingDateIsSet(true);
-
 
10650
      this.toShippingDate = toShippingDate;
-
 
10651
      setToShippingDateIsSet(true);
-
 
10652
      this.providerId = providerId;
-
 
10653
      setProviderIdIsSet(true);
-
 
10654
      this.warehouseId = warehouseId;
-
 
10655
      setWarehouseIdIsSet(true);
-
 
10656
    }
-
 
10657
 
-
 
10658
    /**
-
 
10659
     * Performs a deep copy on <i>other</i>.
-
 
10660
     */
-
 
10661
    public getOrdersByShippingDate_args(getOrdersByShippingDate_args other) {
-
 
10662
      __isset_bit_vector.clear();
-
 
10663
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10664
      this.fromShippingDate = other.fromShippingDate;
-
 
10665
      this.toShippingDate = other.toShippingDate;
-
 
10666
      this.providerId = other.providerId;
-
 
10667
      this.warehouseId = other.warehouseId;
-
 
10668
    }
-
 
10669
 
-
 
10670
    public getOrdersByShippingDate_args deepCopy() {
-
 
10671
      return new getOrdersByShippingDate_args(this);
-
 
10672
    }
-
 
10673
 
-
 
10674
    @Deprecated
-
 
10675
    public getOrdersByShippingDate_args clone() {
-
 
10676
      return new getOrdersByShippingDate_args(this);
-
 
10677
    }
-
 
10678
 
-
 
10679
    public long getFromShippingDate() {
-
 
10680
      return this.fromShippingDate;
-
 
10681
    }
-
 
10682
 
-
 
10683
    public getOrdersByShippingDate_args setFromShippingDate(long fromShippingDate) {
-
 
10684
      this.fromShippingDate = fromShippingDate;
-
 
10685
      setFromShippingDateIsSet(true);
-
 
10686
      return this;
-
 
10687
    }
-
 
10688
 
-
 
10689
    public void unsetFromShippingDate() {
-
 
10690
      __isset_bit_vector.clear(__FROMSHIPPINGDATE_ISSET_ID);
-
 
10691
    }
-
 
10692
 
-
 
10693
    /** Returns true if field fromShippingDate is set (has been asigned a value) and false otherwise */
-
 
10694
    public boolean isSetFromShippingDate() {
-
 
10695
      return __isset_bit_vector.get(__FROMSHIPPINGDATE_ISSET_ID);
-
 
10696
    }
-
 
10697
 
-
 
10698
    public void setFromShippingDateIsSet(boolean value) {
-
 
10699
      __isset_bit_vector.set(__FROMSHIPPINGDATE_ISSET_ID, value);
-
 
10700
    }
-
 
10701
 
-
 
10702
    public long getToShippingDate() {
-
 
10703
      return this.toShippingDate;
-
 
10704
    }
-
 
10705
 
-
 
10706
    public getOrdersByShippingDate_args setToShippingDate(long toShippingDate) {
-
 
10707
      this.toShippingDate = toShippingDate;
-
 
10708
      setToShippingDateIsSet(true);
-
 
10709
      return this;
-
 
10710
    }
-
 
10711
 
-
 
10712
    public void unsetToShippingDate() {
-
 
10713
      __isset_bit_vector.clear(__TOSHIPPINGDATE_ISSET_ID);
-
 
10714
    }
-
 
10715
 
-
 
10716
    /** Returns true if field toShippingDate is set (has been asigned a value) and false otherwise */
-
 
10717
    public boolean isSetToShippingDate() {
-
 
10718
      return __isset_bit_vector.get(__TOSHIPPINGDATE_ISSET_ID);
-
 
10719
    }
-
 
10720
 
-
 
10721
    public void setToShippingDateIsSet(boolean value) {
-
 
10722
      __isset_bit_vector.set(__TOSHIPPINGDATE_ISSET_ID, value);
-
 
10723
    }
-
 
10724
 
-
 
10725
    public long getProviderId() {
-
 
10726
      return this.providerId;
-
 
10727
    }
-
 
10728
 
-
 
10729
    public getOrdersByShippingDate_args setProviderId(long providerId) {
-
 
10730
      this.providerId = providerId;
-
 
10731
      setProviderIdIsSet(true);
-
 
10732
      return this;
-
 
10733
    }
-
 
10734
 
-
 
10735
    public void unsetProviderId() {
-
 
10736
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
10737
    }
-
 
10738
 
-
 
10739
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
10740
    public boolean isSetProviderId() {
-
 
10741
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
10742
    }
-
 
10743
 
-
 
10744
    public void setProviderIdIsSet(boolean value) {
-
 
10745
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
10746
    }
-
 
10747
 
-
 
10748
    public long getWarehouseId() {
-
 
10749
      return this.warehouseId;
-
 
10750
    }
-
 
10751
 
-
 
10752
    public getOrdersByShippingDate_args setWarehouseId(long warehouseId) {
-
 
10753
      this.warehouseId = warehouseId;
-
 
10754
      setWarehouseIdIsSet(true);
-
 
10755
      return this;
-
 
10756
    }
-
 
10757
 
-
 
10758
    public void unsetWarehouseId() {
-
 
10759
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
10760
    }
-
 
10761
 
-
 
10762
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
-
 
10763
    public boolean isSetWarehouseId() {
-
 
10764
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
10765
    }
-
 
10766
 
-
 
10767
    public void setWarehouseIdIsSet(boolean value) {
-
 
10768
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
10769
    }
-
 
10770
 
-
 
10771
    public void setFieldValue(_Fields field, Object value) {
-
 
10772
      switch (field) {
-
 
10773
      case FROM_SHIPPING_DATE:
-
 
10774
        if (value == null) {
-
 
10775
          unsetFromShippingDate();
-
 
10776
        } else {
-
 
10777
          setFromShippingDate((Long)value);
-
 
10778
        }
-
 
10779
        break;
-
 
10780
 
-
 
10781
      case TO_SHIPPING_DATE:
-
 
10782
        if (value == null) {
-
 
10783
          unsetToShippingDate();
-
 
10784
        } else {
-
 
10785
          setToShippingDate((Long)value);
-
 
10786
        }
-
 
10787
        break;
-
 
10788
 
-
 
10789
      case PROVIDER_ID:
-
 
10790
        if (value == null) {
-
 
10791
          unsetProviderId();
-
 
10792
        } else {
-
 
10793
          setProviderId((Long)value);
-
 
10794
        }
-
 
10795
        break;
-
 
10796
 
-
 
10797
      case WAREHOUSE_ID:
-
 
10798
        if (value == null) {
-
 
10799
          unsetWarehouseId();
-
 
10800
        } else {
-
 
10801
          setWarehouseId((Long)value);
-
 
10802
        }
-
 
10803
        break;
-
 
10804
 
-
 
10805
      }
-
 
10806
    }
-
 
10807
 
-
 
10808
    public void setFieldValue(int fieldID, Object value) {
-
 
10809
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10810
    }
-
 
10811
 
-
 
10812
    public Object getFieldValue(_Fields field) {
-
 
10813
      switch (field) {
-
 
10814
      case FROM_SHIPPING_DATE:
-
 
10815
        return new Long(getFromShippingDate());
-
 
10816
 
-
 
10817
      case TO_SHIPPING_DATE:
-
 
10818
        return new Long(getToShippingDate());
-
 
10819
 
-
 
10820
      case PROVIDER_ID:
-
 
10821
        return new Long(getProviderId());
-
 
10822
 
-
 
10823
      case WAREHOUSE_ID:
-
 
10824
        return new Long(getWarehouseId());
-
 
10825
 
-
 
10826
      }
-
 
10827
      throw new IllegalStateException();
-
 
10828
    }
-
 
10829
 
-
 
10830
    public Object getFieldValue(int fieldId) {
-
 
10831
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10832
    }
-
 
10833
 
-
 
10834
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10835
    public boolean isSet(_Fields field) {
-
 
10836
      switch (field) {
-
 
10837
      case FROM_SHIPPING_DATE:
-
 
10838
        return isSetFromShippingDate();
-
 
10839
      case TO_SHIPPING_DATE:
-
 
10840
        return isSetToShippingDate();
-
 
10841
      case PROVIDER_ID:
-
 
10842
        return isSetProviderId();
-
 
10843
      case WAREHOUSE_ID:
-
 
10844
        return isSetWarehouseId();
-
 
10845
      }
-
 
10846
      throw new IllegalStateException();
-
 
10847
    }
-
 
10848
 
-
 
10849
    public boolean isSet(int fieldID) {
-
 
10850
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10851
    }
-
 
10852
 
-
 
10853
    @Override
-
 
10854
    public boolean equals(Object that) {
-
 
10855
      if (that == null)
-
 
10856
        return false;
-
 
10857
      if (that instanceof getOrdersByShippingDate_args)
-
 
10858
        return this.equals((getOrdersByShippingDate_args)that);
-
 
10859
      return false;
-
 
10860
    }
-
 
10861
 
-
 
10862
    public boolean equals(getOrdersByShippingDate_args that) {
-
 
10863
      if (that == null)
-
 
10864
        return false;
-
 
10865
 
-
 
10866
      boolean this_present_fromShippingDate = true;
-
 
10867
      boolean that_present_fromShippingDate = true;
-
 
10868
      if (this_present_fromShippingDate || that_present_fromShippingDate) {
-
 
10869
        if (!(this_present_fromShippingDate && that_present_fromShippingDate))
-
 
10870
          return false;
-
 
10871
        if (this.fromShippingDate != that.fromShippingDate)
-
 
10872
          return false;
-
 
10873
      }
-
 
10874
 
-
 
10875
      boolean this_present_toShippingDate = true;
-
 
10876
      boolean that_present_toShippingDate = true;
-
 
10877
      if (this_present_toShippingDate || that_present_toShippingDate) {
-
 
10878
        if (!(this_present_toShippingDate && that_present_toShippingDate))
-
 
10879
          return false;
-
 
10880
        if (this.toShippingDate != that.toShippingDate)
-
 
10881
          return false;
-
 
10882
      }
-
 
10883
 
-
 
10884
      boolean this_present_providerId = true;
-
 
10885
      boolean that_present_providerId = true;
-
 
10886
      if (this_present_providerId || that_present_providerId) {
-
 
10887
        if (!(this_present_providerId && that_present_providerId))
-
 
10888
          return false;
-
 
10889
        if (this.providerId != that.providerId)
-
 
10890
          return false;
-
 
10891
      }
-
 
10892
 
-
 
10893
      boolean this_present_warehouseId = true;
-
 
10894
      boolean that_present_warehouseId = true;
-
 
10895
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
10896
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
10897
          return false;
-
 
10898
        if (this.warehouseId != that.warehouseId)
-
 
10899
          return false;
-
 
10900
      }
-
 
10901
 
-
 
10902
      return true;
-
 
10903
    }
-
 
10904
 
-
 
10905
    @Override
-
 
10906
    public int hashCode() {
-
 
10907
      return 0;
-
 
10908
    }
-
 
10909
 
-
 
10910
    public int compareTo(getOrdersByShippingDate_args other) {
-
 
10911
      if (!getClass().equals(other.getClass())) {
-
 
10912
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10913
      }
-
 
10914
 
-
 
10915
      int lastComparison = 0;
-
 
10916
      getOrdersByShippingDate_args typedOther = (getOrdersByShippingDate_args)other;
-
 
10917
 
-
 
10918
      lastComparison = Boolean.valueOf(isSetFromShippingDate()).compareTo(isSetFromShippingDate());
-
 
10919
      if (lastComparison != 0) {
-
 
10920
        return lastComparison;
-
 
10921
      }
-
 
10922
      lastComparison = TBaseHelper.compareTo(fromShippingDate, typedOther.fromShippingDate);
-
 
10923
      if (lastComparison != 0) {
-
 
10924
        return lastComparison;
-
 
10925
      }
-
 
10926
      lastComparison = Boolean.valueOf(isSetToShippingDate()).compareTo(isSetToShippingDate());
-
 
10927
      if (lastComparison != 0) {
-
 
10928
        return lastComparison;
-
 
10929
      }
-
 
10930
      lastComparison = TBaseHelper.compareTo(toShippingDate, typedOther.toShippingDate);
-
 
10931
      if (lastComparison != 0) {
-
 
10932
        return lastComparison;
-
 
10933
      }
-
 
10934
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
-
 
10935
      if (lastComparison != 0) {
-
 
10936
        return lastComparison;
-
 
10937
      }
-
 
10938
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
-
 
10939
      if (lastComparison != 0) {
-
 
10940
        return lastComparison;
-
 
10941
      }
-
 
10942
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
-
 
10943
      if (lastComparison != 0) {
-
 
10944
        return lastComparison;
-
 
10945
      }
-
 
10946
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
-
 
10947
      if (lastComparison != 0) {
-
 
10948
        return lastComparison;
-
 
10949
      }
-
 
10950
      return 0;
-
 
10951
    }
-
 
10952
 
-
 
10953
    public void read(TProtocol iprot) throws TException {
-
 
10954
      TField field;
-
 
10955
      iprot.readStructBegin();
-
 
10956
      while (true)
-
 
10957
      {
-
 
10958
        field = iprot.readFieldBegin();
-
 
10959
        if (field.type == TType.STOP) { 
-
 
10960
          break;
-
 
10961
        }
-
 
10962
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10963
        if (fieldId == null) {
-
 
10964
          TProtocolUtil.skip(iprot, field.type);
-
 
10965
        } else {
-
 
10966
          switch (fieldId) {
-
 
10967
            case FROM_SHIPPING_DATE:
-
 
10968
              if (field.type == TType.I64) {
-
 
10969
                this.fromShippingDate = iprot.readI64();
-
 
10970
                setFromShippingDateIsSet(true);
-
 
10971
              } else { 
-
 
10972
                TProtocolUtil.skip(iprot, field.type);
-
 
10973
              }
-
 
10974
              break;
-
 
10975
            case TO_SHIPPING_DATE:
-
 
10976
              if (field.type == TType.I64) {
-
 
10977
                this.toShippingDate = iprot.readI64();
-
 
10978
                setToShippingDateIsSet(true);
-
 
10979
              } else { 
-
 
10980
                TProtocolUtil.skip(iprot, field.type);
-
 
10981
              }
-
 
10982
              break;
-
 
10983
            case PROVIDER_ID:
-
 
10984
              if (field.type == TType.I64) {
-
 
10985
                this.providerId = iprot.readI64();
-
 
10986
                setProviderIdIsSet(true);
-
 
10987
              } else { 
-
 
10988
                TProtocolUtil.skip(iprot, field.type);
-
 
10989
              }
-
 
10990
              break;
-
 
10991
            case WAREHOUSE_ID:
-
 
10992
              if (field.type == TType.I64) {
-
 
10993
                this.warehouseId = iprot.readI64();
-
 
10994
                setWarehouseIdIsSet(true);
-
 
10995
              } else { 
-
 
10996
                TProtocolUtil.skip(iprot, field.type);
-
 
10997
              }
-
 
10998
              break;
-
 
10999
          }
-
 
11000
          iprot.readFieldEnd();
-
 
11001
        }
-
 
11002
      }
-
 
11003
      iprot.readStructEnd();
-
 
11004
      validate();
-
 
11005
    }
-
 
11006
 
-
 
11007
    public void write(TProtocol oprot) throws TException {
-
 
11008
      validate();
-
 
11009
 
-
 
11010
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11011
      oprot.writeFieldBegin(FROM_SHIPPING_DATE_FIELD_DESC);
-
 
11012
      oprot.writeI64(this.fromShippingDate);
-
 
11013
      oprot.writeFieldEnd();
-
 
11014
      oprot.writeFieldBegin(TO_SHIPPING_DATE_FIELD_DESC);
-
 
11015
      oprot.writeI64(this.toShippingDate);
-
 
11016
      oprot.writeFieldEnd();
-
 
11017
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
11018
      oprot.writeI64(this.providerId);
-
 
11019
      oprot.writeFieldEnd();
-
 
11020
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
11021
      oprot.writeI64(this.warehouseId);
-
 
11022
      oprot.writeFieldEnd();
-
 
11023
      oprot.writeFieldStop();
-
 
11024
      oprot.writeStructEnd();
-
 
11025
    }
-
 
11026
 
-
 
11027
    @Override
-
 
11028
    public String toString() {
-
 
11029
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_args(");
-
 
11030
      boolean first = true;
-
 
11031
 
-
 
11032
      sb.append("fromShippingDate:");
-
 
11033
      sb.append(this.fromShippingDate);
-
 
11034
      first = false;
-
 
11035
      if (!first) sb.append(", ");
-
 
11036
      sb.append("toShippingDate:");
-
 
11037
      sb.append(this.toShippingDate);
-
 
11038
      first = false;
-
 
11039
      if (!first) sb.append(", ");
-
 
11040
      sb.append("providerId:");
-
 
11041
      sb.append(this.providerId);
-
 
11042
      first = false;
-
 
11043
      if (!first) sb.append(", ");
-
 
11044
      sb.append("warehouseId:");
-
 
11045
      sb.append(this.warehouseId);
-
 
11046
      first = false;
-
 
11047
      sb.append(")");
-
 
11048
      return sb.toString();
-
 
11049
    }
-
 
11050
 
-
 
11051
    public void validate() throws TException {
-
 
11052
      // check for required fields
-
 
11053
    }
-
 
11054
 
-
 
11055
  }
-
 
11056
 
-
 
11057
  public static class getOrdersByShippingDate_result implements TBase<getOrdersByShippingDate_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersByShippingDate_result>   {
-
 
11058
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersByShippingDate_result");
-
 
11059
 
-
 
11060
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
11061
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
11062
 
-
 
11063
    private List<Order> success;
-
 
11064
    private TransactionServiceException ex;
-
 
11065
 
-
 
11066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11067
    public enum _Fields implements TFieldIdEnum {
-
 
11068
      SUCCESS((short)0, "success"),
-
 
11069
      EX((short)1, "ex");
-
 
11070
 
-
 
11071
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
11072
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11073
 
-
 
11074
      static {
-
 
11075
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11076
          byId.put((int)field._thriftId, field);
-
 
11077
          byName.put(field.getFieldName(), field);
-
 
11078
        }
-
 
11079
      }
-
 
11080
 
-
 
11081
      /**
-
 
11082
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11083
       */
-
 
11084
      public static _Fields findByThriftId(int fieldId) {
-
 
11085
        return byId.get(fieldId);
-
 
11086
      }
-
 
11087
 
-
 
11088
      /**
-
 
11089
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11090
       * if it is not found.
-
 
11091
       */
-
 
11092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11093
        _Fields fields = findByThriftId(fieldId);
-
 
11094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11095
        return fields;
-
 
11096
      }
-
 
11097
 
-
 
11098
      /**
-
 
11099
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11100
       */
-
 
11101
      public static _Fields findByName(String name) {
-
 
11102
        return byName.get(name);
-
 
11103
      }
-
 
11104
 
-
 
11105
      private final short _thriftId;
-
 
11106
      private final String _fieldName;
-
 
11107
 
-
 
11108
      _Fields(short thriftId, String fieldName) {
-
 
11109
        _thriftId = thriftId;
-
 
11110
        _fieldName = fieldName;
-
 
11111
      }
-
 
11112
 
-
 
11113
      public short getThriftFieldId() {
-
 
11114
        return _thriftId;
-
 
11115
      }
-
 
11116
 
-
 
11117
      public String getFieldName() {
-
 
11118
        return _fieldName;
-
 
11119
      }
-
 
11120
    }
-
 
11121
 
-
 
11122
    // isset id assignments
-
 
11123
 
-
 
11124
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
11125
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
11126
          new ListMetaData(TType.LIST, 
-
 
11127
              new StructMetaData(TType.STRUCT, Order.class))));
-
 
11128
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
11129
          new FieldValueMetaData(TType.STRUCT)));
-
 
11130
    }});
-
 
11131
 
-
 
11132
    static {
-
 
11133
      FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_result.class, metaDataMap);
-
 
11134
    }
-
 
11135
 
-
 
11136
    public getOrdersByShippingDate_result() {
-
 
11137
    }
-
 
11138
 
-
 
11139
    public getOrdersByShippingDate_result(
-
 
11140
      List<Order> success,
-
 
11141
      TransactionServiceException ex)
-
 
11142
    {
-
 
11143
      this();
-
 
11144
      this.success = success;
-
 
11145
      this.ex = ex;
-
 
11146
    }
-
 
11147
 
-
 
11148
    /**
-
 
11149
     * Performs a deep copy on <i>other</i>.
-
 
11150
     */
-
 
11151
    public getOrdersByShippingDate_result(getOrdersByShippingDate_result other) {
-
 
11152
      if (other.isSetSuccess()) {
-
 
11153
        List<Order> __this__success = new ArrayList<Order>();
-
 
11154
        for (Order other_element : other.success) {
-
 
11155
          __this__success.add(new Order(other_element));
-
 
11156
        }
-
 
11157
        this.success = __this__success;
-
 
11158
      }
-
 
11159
      if (other.isSetEx()) {
-
 
11160
        this.ex = new TransactionServiceException(other.ex);
-
 
11161
      }
-
 
11162
    }
-
 
11163
 
-
 
11164
    public getOrdersByShippingDate_result deepCopy() {
-
 
11165
      return new getOrdersByShippingDate_result(this);
-
 
11166
    }
-
 
11167
 
-
 
11168
    @Deprecated
-
 
11169
    public getOrdersByShippingDate_result clone() {
-
 
11170
      return new getOrdersByShippingDate_result(this);
-
 
11171
    }
-
 
11172
 
-
 
11173
    public int getSuccessSize() {
-
 
11174
      return (this.success == null) ? 0 : this.success.size();
-
 
11175
    }
-
 
11176
 
-
 
11177
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
11178
      return (this.success == null) ? null : this.success.iterator();
-
 
11179
    }
-
 
11180
 
-
 
11181
    public void addToSuccess(Order elem) {
-
 
11182
      if (this.success == null) {
-
 
11183
        this.success = new ArrayList<Order>();
-
 
11184
      }
-
 
11185
      this.success.add(elem);
-
 
11186
    }
-
 
11187
 
-
 
11188
    public List<Order> getSuccess() {
-
 
11189
      return this.success;
-
 
11190
    }
-
 
11191
 
-
 
11192
    public getOrdersByShippingDate_result setSuccess(List<Order> success) {
-
 
11193
      this.success = success;
-
 
11194
      return this;
-
 
11195
    }
-
 
11196
 
-
 
11197
    public void unsetSuccess() {
-
 
11198
      this.success = null;
-
 
11199
    }
-
 
11200
 
-
 
11201
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
11202
    public boolean isSetSuccess() {
-
 
11203
      return this.success != null;
-
 
11204
    }
-
 
11205
 
-
 
11206
    public void setSuccessIsSet(boolean value) {
-
 
11207
      if (!value) {
-
 
11208
        this.success = null;
-
 
11209
      }
-
 
11210
    }
-
 
11211
 
-
 
11212
    public TransactionServiceException getEx() {
-
 
11213
      return this.ex;
-
 
11214
    }
-
 
11215
 
-
 
11216
    public getOrdersByShippingDate_result setEx(TransactionServiceException ex) {
-
 
11217
      this.ex = ex;
-
 
11218
      return this;
-
 
11219
    }
-
 
11220
 
-
 
11221
    public void unsetEx() {
-
 
11222
      this.ex = null;
-
 
11223
    }
-
 
11224
 
-
 
11225
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
11226
    public boolean isSetEx() {
-
 
11227
      return this.ex != null;
-
 
11228
    }
-
 
11229
 
-
 
11230
    public void setExIsSet(boolean value) {
-
 
11231
      if (!value) {
-
 
11232
        this.ex = null;
-
 
11233
      }
-
 
11234
    }
-
 
11235
 
-
 
11236
    public void setFieldValue(_Fields field, Object value) {
-
 
11237
      switch (field) {
-
 
11238
      case SUCCESS:
-
 
11239
        if (value == null) {
-
 
11240
          unsetSuccess();
-
 
11241
        } else {
-
 
11242
          setSuccess((List<Order>)value);
-
 
11243
        }
-
 
11244
        break;
-
 
11245
 
-
 
11246
      case EX:
-
 
11247
        if (value == null) {
-
 
11248
          unsetEx();
-
 
11249
        } else {
-
 
11250
          setEx((TransactionServiceException)value);
-
 
11251
        }
-
 
11252
        break;
-
 
11253
 
-
 
11254
      }
-
 
11255
    }
-
 
11256
 
-
 
11257
    public void setFieldValue(int fieldID, Object value) {
-
 
11258
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
11259
    }
-
 
11260
 
-
 
11261
    public Object getFieldValue(_Fields field) {
-
 
11262
      switch (field) {
-
 
11263
      case SUCCESS:
-
 
11264
        return getSuccess();
-
 
11265
 
-
 
11266
      case EX:
-
 
11267
        return getEx();
-
 
11268
 
-
 
11269
      }
-
 
11270
      throw new IllegalStateException();
-
 
11271
    }
-
 
11272
 
-
 
11273
    public Object getFieldValue(int fieldId) {
-
 
11274
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
11275
    }
-
 
11276
 
-
 
11277
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
11278
    public boolean isSet(_Fields field) {
-
 
11279
      switch (field) {
-
 
11280
      case SUCCESS:
-
 
11281
        return isSetSuccess();
-
 
11282
      case EX:
-
 
11283
        return isSetEx();
-
 
11284
      }
-
 
11285
      throw new IllegalStateException();
-
 
11286
    }
-
 
11287
 
-
 
11288
    public boolean isSet(int fieldID) {
-
 
11289
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
11290
    }
-
 
11291
 
-
 
11292
    @Override
-
 
11293
    public boolean equals(Object that) {
-
 
11294
      if (that == null)
-
 
11295
        return false;
-
 
11296
      if (that instanceof getOrdersByShippingDate_result)
-
 
11297
        return this.equals((getOrdersByShippingDate_result)that);
-
 
11298
      return false;
-
 
11299
    }
-
 
11300
 
-
 
11301
    public boolean equals(getOrdersByShippingDate_result that) {
-
 
11302
      if (that == null)
-
 
11303
        return false;
-
 
11304
 
-
 
11305
      boolean this_present_success = true && this.isSetSuccess();
-
 
11306
      boolean that_present_success = true && that.isSetSuccess();
-
 
11307
      if (this_present_success || that_present_success) {
-
 
11308
        if (!(this_present_success && that_present_success))
-
 
11309
          return false;
-
 
11310
        if (!this.success.equals(that.success))
-
 
11311
          return false;
-
 
11312
      }
-
 
11313
 
-
 
11314
      boolean this_present_ex = true && this.isSetEx();
-
 
11315
      boolean that_present_ex = true && that.isSetEx();
-
 
11316
      if (this_present_ex || that_present_ex) {
-
 
11317
        if (!(this_present_ex && that_present_ex))
-
 
11318
          return false;
-
 
11319
        if (!this.ex.equals(that.ex))
-
 
11320
          return false;
-
 
11321
      }
-
 
11322
 
-
 
11323
      return true;
-
 
11324
    }
-
 
11325
 
-
 
11326
    @Override
-
 
11327
    public int hashCode() {
-
 
11328
      return 0;
-
 
11329
    }
-
 
11330
 
-
 
11331
    public int compareTo(getOrdersByShippingDate_result other) {
-
 
11332
      if (!getClass().equals(other.getClass())) {
-
 
11333
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11334
      }
-
 
11335
 
-
 
11336
      int lastComparison = 0;
-
 
11337
      getOrdersByShippingDate_result typedOther = (getOrdersByShippingDate_result)other;
-
 
11338
 
-
 
11339
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
11340
      if (lastComparison != 0) {
-
 
11341
        return lastComparison;
-
 
11342
      }
-
 
11343
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
11344
      if (lastComparison != 0) {
-
 
11345
        return lastComparison;
-
 
11346
      }
-
 
11347
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
11348
      if (lastComparison != 0) {
-
 
11349
        return lastComparison;
-
 
11350
      }
-
 
11351
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
11352
      if (lastComparison != 0) {
-
 
11353
        return lastComparison;
-
 
11354
      }
-
 
11355
      return 0;
-
 
11356
    }
-
 
11357
 
-
 
11358
    public void read(TProtocol iprot) throws TException {
-
 
11359
      TField field;
-
 
11360
      iprot.readStructBegin();
-
 
11361
      while (true)
-
 
11362
      {
-
 
11363
        field = iprot.readFieldBegin();
-
 
11364
        if (field.type == TType.STOP) { 
-
 
11365
          break;
-
 
11366
        }
-
 
11367
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
11368
        if (fieldId == null) {
-
 
11369
          TProtocolUtil.skip(iprot, field.type);
-
 
11370
        } else {
-
 
11371
          switch (fieldId) {
-
 
11372
            case SUCCESS:
-
 
11373
              if (field.type == TType.LIST) {
-
 
11374
                {
-
 
11375
                  TList _list24 = iprot.readListBegin();
-
 
11376
                  this.success = new ArrayList<Order>(_list24.size);
-
 
11377
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
11378
                  {
-
 
11379
                    Order _elem26;
-
 
11380
                    _elem26 = new Order();
-
 
11381
                    _elem26.read(iprot);
-
 
11382
                    this.success.add(_elem26);
-
 
11383
                  }
-
 
11384
                  iprot.readListEnd();
-
 
11385
                }
-
 
11386
              } else { 
-
 
11387
                TProtocolUtil.skip(iprot, field.type);
-
 
11388
              }
-
 
11389
              break;
-
 
11390
            case EX:
-
 
11391
              if (field.type == TType.STRUCT) {
-
 
11392
                this.ex = new TransactionServiceException();
-
 
11393
                this.ex.read(iprot);
-
 
11394
              } else { 
-
 
11395
                TProtocolUtil.skip(iprot, field.type);
-
 
11396
              }
-
 
11397
              break;
-
 
11398
          }
-
 
11399
          iprot.readFieldEnd();
-
 
11400
        }
-
 
11401
      }
-
 
11402
      iprot.readStructEnd();
-
 
11403
      validate();
-
 
11404
    }
-
 
11405
 
-
 
11406
    public void write(TProtocol oprot) throws TException {
-
 
11407
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11408
 
-
 
11409
      if (this.isSetSuccess()) {
-
 
11410
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11411
        {
-
 
11412
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
11413
          for (Order _iter27 : this.success)
-
 
11414
          {
-
 
11415
            _iter27.write(oprot);
-
 
11416
          }
-
 
11417
          oprot.writeListEnd();
-
 
11418
        }
-
 
11419
        oprot.writeFieldEnd();
-
 
11420
      } else if (this.isSetEx()) {
-
 
11421
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
11422
        this.ex.write(oprot);
-
 
11423
        oprot.writeFieldEnd();
-
 
11424
      }
-
 
11425
      oprot.writeFieldStop();
-
 
11426
      oprot.writeStructEnd();
-
 
11427
    }
-
 
11428
 
-
 
11429
    @Override
-
 
11430
    public String toString() {
-
 
11431
      StringBuilder sb = new StringBuilder("getOrdersByShippingDate_result(");
-
 
11432
      boolean first = true;
-
 
11433
 
-
 
11434
      sb.append("success:");
-
 
11435
      if (this.success == null) {
-
 
11436
        sb.append("null");
-
 
11437
      } else {
-
 
11438
        sb.append(this.success);
-
 
11439
      }
-
 
11440
      first = false;
-
 
11441
      if (!first) sb.append(", ");
-
 
11442
      sb.append("ex:");
-
 
11443
      if (this.ex == null) {
-
 
11444
        sb.append("null");
-
 
11445
      } else {
-
 
11446
        sb.append(this.ex);
-
 
11447
      }
-
 
11448
      first = false;
-
 
11449
      sb.append(")");
-
 
11450
      return sb.toString();
-
 
11451
    }
-
 
11452
 
-
 
11453
    public void validate() throws TException {
-
 
11454
      // check for required fields
-
 
11455
    }
-
 
11456
 
-
 
11457
  }
-
 
11458
 
10466
  public static class getReturnableOrdersForCustomer_args implements TBase<getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getReturnableOrdersForCustomer_args>   {
11459
  public static class getReturnableOrdersForCustomer_args implements TBase<getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getReturnableOrdersForCustomer_args>   {
10467
    private static final TStruct STRUCT_DESC = new TStruct("getReturnableOrdersForCustomer_args");
11460
    private static final TStruct STRUCT_DESC = new TStruct("getReturnableOrdersForCustomer_args");
10468
 
11461
 
10469
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)1);
11462
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)1);
10470
    private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)2);
11463
    private static final TField LIMIT_FIELD_DESC = new TField("limit", TType.I64, (short)2);
Line 11135... Line 12128...
11135
        } else {
12128
        } else {
11136
          switch (fieldId) {
12129
          switch (fieldId) {
11137
            case SUCCESS:
12130
            case SUCCESS:
11138
              if (field.type == TType.LIST) {
12131
              if (field.type == TType.LIST) {
11139
                {
12132
                {
11140
                  TList _list24 = iprot.readListBegin();
12133
                  TList _list28 = iprot.readListBegin();
11141
                  this.success = new ArrayList<Long>(_list24.size);
12134
                  this.success = new ArrayList<Long>(_list28.size);
11142
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
12135
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11143
                  {
12136
                  {
11144
                    long _elem26;
12137
                    long _elem30;
11145
                    _elem26 = iprot.readI64();
12138
                    _elem30 = iprot.readI64();
11146
                    this.success.add(_elem26);
12139
                    this.success.add(_elem30);
11147
                  }
12140
                  }
11148
                  iprot.readListEnd();
12141
                  iprot.readListEnd();
11149
                }
12142
                }
11150
              } else { 
12143
              } else { 
11151
                TProtocolUtil.skip(iprot, field.type);
12144
                TProtocolUtil.skip(iprot, field.type);
Line 11172... Line 12165...
11172
 
12165
 
11173
      if (this.isSetSuccess()) {
12166
      if (this.isSetSuccess()) {
11174
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12167
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11175
        {
12168
        {
11176
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
12169
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
11177
          for (long _iter27 : this.success)
12170
          for (long _iter31 : this.success)
11178
          {
12171
          {
11179
            oprot.writeI64(_iter27);
12172
            oprot.writeI64(_iter31);
11180
          }
12173
          }
11181
          oprot.writeListEnd();
12174
          oprot.writeListEnd();
11182
        }
12175
        }
11183
        oprot.writeFieldEnd();
12176
        oprot.writeFieldEnd();
11184
      } else if (this.isSetEx()) {
12177
      } else if (this.isSetEx()) {
Line 11892... Line 12885...
11892
        } else {
12885
        } else {
11893
          switch (fieldId) {
12886
          switch (fieldId) {
11894
            case SUCCESS:
12887
            case SUCCESS:
11895
              if (field.type == TType.LIST) {
12888
              if (field.type == TType.LIST) {
11896
                {
12889
                {
11897
                  TList _list28 = iprot.readListBegin();
12890
                  TList _list32 = iprot.readListBegin();
11898
                  this.success = new ArrayList<Long>(_list28.size);
12891
                  this.success = new ArrayList<Long>(_list32.size);
11899
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
12892
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
11900
                  {
12893
                  {
11901
                    long _elem30;
12894
                    long _elem34;
11902
                    _elem30 = iprot.readI64();
12895
                    _elem34 = iprot.readI64();
11903
                    this.success.add(_elem30);
12896
                    this.success.add(_elem34);
11904
                  }
12897
                  }
11905
                  iprot.readListEnd();
12898
                  iprot.readListEnd();
11906
                }
12899
                }
11907
              } else { 
12900
              } else { 
11908
                TProtocolUtil.skip(iprot, field.type);
12901
                TProtocolUtil.skip(iprot, field.type);
Line 11929... Line 12922...
11929
 
12922
 
11930
      if (this.isSetSuccess()) {
12923
      if (this.isSetSuccess()) {
11931
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12924
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11932
        {
12925
        {
11933
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
12926
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
11934
          for (long _iter31 : this.success)
12927
          for (long _iter35 : this.success)
11935
          {
12928
          {
11936
            oprot.writeI64(_iter31);
12929
            oprot.writeI64(_iter35);
11937
          }
12930
          }
11938
          oprot.writeListEnd();
12931
          oprot.writeListEnd();
11939
        }
12932
        }
11940
        oprot.writeFieldEnd();
12933
        oprot.writeFieldEnd();
11941
      } else if (this.isSetEx()) {
12934
      } else if (this.isSetEx()) {
Line 13478... Line 14471...
13478
        } else {
14471
        } else {
13479
          switch (fieldId) {
14472
          switch (fieldId) {
13480
            case SUCCESS:
14473
            case SUCCESS:
13481
              if (field.type == TType.LIST) {
14474
              if (field.type == TType.LIST) {
13482
                {
14475
                {
13483
                  TList _list32 = iprot.readListBegin();
14476
                  TList _list36 = iprot.readListBegin();
13484
                  this.success = new ArrayList<Order>(_list32.size);
14477
                  this.success = new ArrayList<Order>(_list36.size);
13485
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
14478
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
13486
                  {
14479
                  {
13487
                    Order _elem34;
14480
                    Order _elem38;
13488
                    _elem34 = new Order();
14481
                    _elem38 = new Order();
13489
                    _elem34.read(iprot);
14482
                    _elem38.read(iprot);
13490
                    this.success.add(_elem34);
14483
                    this.success.add(_elem38);
13491
                  }
14484
                  }
13492
                  iprot.readListEnd();
14485
                  iprot.readListEnd();
13493
                }
14486
                }
13494
              } else { 
14487
              } else { 
13495
                TProtocolUtil.skip(iprot, field.type);
14488
                TProtocolUtil.skip(iprot, field.type);
Line 13516... Line 14509...
13516
 
14509
 
13517
      if (this.isSetSuccess()) {
14510
      if (this.isSetSuccess()) {
13518
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14511
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13519
        {
14512
        {
13520
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
14513
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
13521
          for (Order _iter35 : this.success)
14514
          for (Order _iter39 : this.success)
13522
          {
14515
          {
13523
            _iter35.write(oprot);
14516
            _iter39.write(oprot);
13524
          }
14517
          }
13525
          oprot.writeListEnd();
14518
          oprot.writeListEnd();
13526
        }
14519
        }
13527
        oprot.writeFieldEnd();
14520
        oprot.writeFieldEnd();
13528
      } else if (this.isSetEx()) {
14521
      } else if (this.isSetEx()) {
Line 14032... Line 15025...
14032
              }
15025
              }
14033
              break;
15026
              break;
14034
            case STATUSES:
15027
            case STATUSES:
14035
              if (field.type == TType.LIST) {
15028
              if (field.type == TType.LIST) {
14036
                {
15029
                {
14037
                  TList _list36 = iprot.readListBegin();
15030
                  TList _list40 = iprot.readListBegin();
14038
                  this.statuses = new ArrayList<OrderStatus>(_list36.size);
15031
                  this.statuses = new ArrayList<OrderStatus>(_list40.size);
14039
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
15032
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
14040
                  {
15033
                  {
14041
                    OrderStatus _elem38;
15034
                    OrderStatus _elem42;
14042
                    _elem38 = OrderStatus.findByValue(iprot.readI32());
15035
                    _elem42 = OrderStatus.findByValue(iprot.readI32());
14043
                    this.statuses.add(_elem38);
15036
                    this.statuses.add(_elem42);
14044
                  }
15037
                  }
14045
                  iprot.readListEnd();
15038
                  iprot.readListEnd();
14046
                }
15039
                }
14047
              } else { 
15040
              } else { 
14048
                TProtocolUtil.skip(iprot, field.type);
15041
                TProtocolUtil.skip(iprot, field.type);
Line 14071... Line 15064...
14071
      oprot.writeFieldEnd();
15064
      oprot.writeFieldEnd();
14072
      if (this.statuses != null) {
15065
      if (this.statuses != null) {
14073
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
15066
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
14074
        {
15067
        {
14075
          oprot.writeListBegin(new TList(TType.I32, this.statuses.size()));
15068
          oprot.writeListBegin(new TList(TType.I32, this.statuses.size()));
14076
          for (OrderStatus _iter39 : this.statuses)
15069
          for (OrderStatus _iter43 : this.statuses)
14077
          {
15070
          {
14078
            oprot.writeI32(_iter39.getValue());
15071
            oprot.writeI32(_iter43.getValue());
14079
          }
15072
          }
14080
          oprot.writeListEnd();
15073
          oprot.writeListEnd();
14081
        }
15074
        }
14082
        oprot.writeFieldEnd();
15075
        oprot.writeFieldEnd();
14083
      }
15076
      }
Line 14435... Line 15428...
14435
        } else {
15428
        } else {
14436
          switch (fieldId) {
15429
          switch (fieldId) {
14437
            case SUCCESS:
15430
            case SUCCESS:
14438
              if (field.type == TType.LIST) {
15431
              if (field.type == TType.LIST) {
14439
                {
15432
                {
14440
                  TList _list40 = iprot.readListBegin();
15433
                  TList _list44 = iprot.readListBegin();
14441
                  this.success = new ArrayList<Order>(_list40.size);
15434
                  this.success = new ArrayList<Order>(_list44.size);
14442
                  for (int _i41 = 0; _i41 < _list40.size; ++_i41)
15435
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
14443
                  {
15436
                  {
14444
                    Order _elem42;
15437
                    Order _elem46;
14445
                    _elem42 = new Order();
15438
                    _elem46 = new Order();
14446
                    _elem42.read(iprot);
15439
                    _elem46.read(iprot);
14447
                    this.success.add(_elem42);
15440
                    this.success.add(_elem46);
14448
                  }
15441
                  }
14449
                  iprot.readListEnd();
15442
                  iprot.readListEnd();
14450
                }
15443
                }
14451
              } else { 
15444
              } else { 
14452
                TProtocolUtil.skip(iprot, field.type);
15445
                TProtocolUtil.skip(iprot, field.type);
Line 14473... Line 15466...
14473
 
15466
 
14474
      if (this.isSetSuccess()) {
15467
      if (this.isSetSuccess()) {
14475
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15468
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14476
        {
15469
        {
14477
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15470
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
14478
          for (Order _iter43 : this.success)
15471
          for (Order _iter47 : this.success)
14479
          {
15472
          {
14480
            _iter43.write(oprot);
15473
            _iter47.write(oprot);
14481
          }
15474
          }
14482
          oprot.writeListEnd();
15475
          oprot.writeListEnd();
14483
        }
15476
        }
14484
        oprot.writeFieldEnd();
15477
        oprot.writeFieldEnd();
14485
      } else if (this.isSetEx()) {
15478
      } else if (this.isSetEx()) {
Line 16403... Line 17396...
16403
        } else {
17396
        } else {
16404
          switch (fieldId) {
17397
          switch (fieldId) {
16405
            case SUCCESS:
17398
            case SUCCESS:
16406
              if (field.type == TType.LIST) {
17399
              if (field.type == TType.LIST) {
16407
                {
17400
                {
16408
                  TList _list44 = iprot.readListBegin();
17401
                  TList _list48 = iprot.readListBegin();
16409
                  this.success = new ArrayList<LineItem>(_list44.size);
17402
                  this.success = new ArrayList<LineItem>(_list48.size);
16410
                  for (int _i45 = 0; _i45 < _list44.size; ++_i45)
17403
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
16411
                  {
17404
                  {
16412
                    LineItem _elem46;
17405
                    LineItem _elem50;
16413
                    _elem46 = new LineItem();
17406
                    _elem50 = new LineItem();
16414
                    _elem46.read(iprot);
17407
                    _elem50.read(iprot);
16415
                    this.success.add(_elem46);
17408
                    this.success.add(_elem50);
16416
                  }
17409
                  }
16417
                  iprot.readListEnd();
17410
                  iprot.readListEnd();
16418
                }
17411
                }
16419
              } else { 
17412
              } else { 
16420
                TProtocolUtil.skip(iprot, field.type);
17413
                TProtocolUtil.skip(iprot, field.type);
Line 16441... Line 17434...
16441
 
17434
 
16442
      if (this.isSetSuccess()) {
17435
      if (this.isSetSuccess()) {
16443
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17436
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16444
        {
17437
        {
16445
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17438
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16446
          for (LineItem _iter47 : this.success)
17439
          for (LineItem _iter51 : this.success)
16447
          {
17440
          {
16448
            _iter47.write(oprot);
17441
            _iter51.write(oprot);
16449
          }
17442
          }
16450
          oprot.writeListEnd();
17443
          oprot.writeListEnd();
16451
        }
17444
        }
16452
        oprot.writeFieldEnd();
17445
        oprot.writeFieldEnd();
16453
      } else if (this.isSetEx()) {
17446
      } else if (this.isSetEx()) {
Line 17818... Line 18811...
17818
        } else {
18811
        } else {
17819
          switch (fieldId) {
18812
          switch (fieldId) {
17820
            case SUCCESS:
18813
            case SUCCESS:
17821
              if (field.type == TType.LIST) {
18814
              if (field.type == TType.LIST) {
17822
                {
18815
                {
17823
                  TList _list48 = iprot.readListBegin();
18816
                  TList _list52 = iprot.readListBegin();
17824
                  this.success = new ArrayList<Alert>(_list48.size);
18817
                  this.success = new ArrayList<Alert>(_list52.size);
17825
                  for (int _i49 = 0; _i49 < _list48.size; ++_i49)
18818
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
17826
                  {
18819
                  {
17827
                    Alert _elem50;
18820
                    Alert _elem54;
17828
                    _elem50 = new Alert();
18821
                    _elem54 = new Alert();
17829
                    _elem50.read(iprot);
18822
                    _elem54.read(iprot);
17830
                    this.success.add(_elem50);
18823
                    this.success.add(_elem54);
17831
                  }
18824
                  }
17832
                  iprot.readListEnd();
18825
                  iprot.readListEnd();
17833
                }
18826
                }
17834
              } else { 
18827
              } else { 
17835
                TProtocolUtil.skip(iprot, field.type);
18828
                TProtocolUtil.skip(iprot, field.type);
Line 17848... Line 18841...
17848
 
18841
 
17849
      if (this.isSetSuccess()) {
18842
      if (this.isSetSuccess()) {
17850
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18843
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17851
        {
18844
        {
17852
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18845
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17853
          for (Alert _iter51 : this.success)
18846
          for (Alert _iter55 : this.success)
17854
          {
18847
          {
17855
            _iter51.write(oprot);
18848
            _iter55.write(oprot);
17856
          }
18849
          }
17857
          oprot.writeListEnd();
18850
          oprot.writeListEnd();
17858
        }
18851
        }
17859
        oprot.writeFieldEnd();
18852
        oprot.writeFieldEnd();
17860
      }
18853
      }
Line 19975... Line 20968...
19975
        } else {
20968
        } else {
19976
          switch (fieldId) {
20969
          switch (fieldId) {
19977
            case SUCCESS:
20970
            case SUCCESS:
19978
              if (field.type == TType.LIST) {
20971
              if (field.type == TType.LIST) {
19979
                {
20972
                {
19980
                  TList _list52 = iprot.readListBegin();
20973
                  TList _list56 = iprot.readListBegin();
19981
                  this.success = new ArrayList<Double>(_list52.size);
20974
                  this.success = new ArrayList<Double>(_list56.size);
19982
                  for (int _i53 = 0; _i53 < _list52.size; ++_i53)
20975
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
19983
                  {
20976
                  {
19984
                    double _elem54;
20977
                    double _elem58;
19985
                    _elem54 = iprot.readDouble();
20978
                    _elem58 = iprot.readDouble();
19986
                    this.success.add(_elem54);
20979
                    this.success.add(_elem58);
19987
                  }
20980
                  }
19988
                  iprot.readListEnd();
20981
                  iprot.readListEnd();
19989
                }
20982
                }
19990
              } else { 
20983
              } else { 
19991
                TProtocolUtil.skip(iprot, field.type);
20984
                TProtocolUtil.skip(iprot, field.type);
Line 20004... Line 20997...
20004
 
20997
 
20005
      if (this.isSetSuccess()) {
20998
      if (this.isSetSuccess()) {
20006
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20999
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20007
        {
21000
        {
20008
          oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
21001
          oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
20009
          for (double _iter55 : this.success)
21002
          for (double _iter59 : this.success)
20010
          {
21003
          {
20011
            oprot.writeDouble(_iter55);
21004
            oprot.writeDouble(_iter59);
20012
          }
21005
          }
20013
          oprot.writeListEnd();
21006
          oprot.writeListEnd();
20014
        }
21007
        }
20015
        oprot.writeFieldEnd();
21008
        oprot.writeFieldEnd();
20016
      }
21009
      }
Line 20570... Line 21563...
20570
        } else {
21563
        } else {
20571
          switch (fieldId) {
21564
          switch (fieldId) {
20572
            case SUCCESS:
21565
            case SUCCESS:
20573
              if (field.type == TType.LIST) {
21566
              if (field.type == TType.LIST) {
20574
                {
21567
                {
20575
                  TList _list56 = iprot.readListBegin();
21568
                  TList _list60 = iprot.readListBegin();
20576
                  this.success = new ArrayList<Order>(_list56.size);
21569
                  this.success = new ArrayList<Order>(_list60.size);
20577
                  for (int _i57 = 0; _i57 < _list56.size; ++_i57)
21570
                  for (int _i61 = 0; _i61 < _list60.size; ++_i61)
20578
                  {
21571
                  {
20579
                    Order _elem58;
21572
                    Order _elem62;
20580
                    _elem58 = new Order();
21573
                    _elem62 = new Order();
20581
                    _elem58.read(iprot);
21574
                    _elem62.read(iprot);
20582
                    this.success.add(_elem58);
21575
                    this.success.add(_elem62);
20583
                  }
21576
                  }
20584
                  iprot.readListEnd();
21577
                  iprot.readListEnd();
20585
                }
21578
                }
20586
              } else { 
21579
              } else { 
20587
                TProtocolUtil.skip(iprot, field.type);
21580
                TProtocolUtil.skip(iprot, field.type);
Line 20600... Line 21593...
20600
 
21593
 
20601
      if (this.isSetSuccess()) {
21594
      if (this.isSetSuccess()) {
20602
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21595
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20603
        {
21596
        {
20604
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21597
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
20605
          for (Order _iter59 : this.success)
21598
          for (Order _iter63 : this.success)
20606
          {
21599
          {
20607
            _iter59.write(oprot);
21600
            _iter63.write(oprot);
20608
          }
21601
          }
20609
          oprot.writeListEnd();
21602
          oprot.writeListEnd();
20610
        }
21603
        }
20611
        oprot.writeFieldEnd();
21604
        oprot.writeFieldEnd();
20612
      }
21605
      }
Line 21230... Line 22223...
21230
        } else {
22223
        } else {
21231
          switch (fieldId) {
22224
          switch (fieldId) {
21232
            case SUCCESS:
22225
            case SUCCESS:
21233
              if (field.type == TType.LIST) {
22226
              if (field.type == TType.LIST) {
21234
                {
22227
                {
21235
                  TList _list60 = iprot.readListBegin();
22228
                  TList _list64 = iprot.readListBegin();
21236
                  this.success = new ArrayList<Order>(_list60.size);
22229
                  this.success = new ArrayList<Order>(_list64.size);
21237
                  for (int _i61 = 0; _i61 < _list60.size; ++_i61)
22230
                  for (int _i65 = 0; _i65 < _list64.size; ++_i65)
21238
                  {
22231
                  {
21239
                    Order _elem62;
22232
                    Order _elem66;
21240
                    _elem62 = new Order();
22233
                    _elem66 = new Order();
21241
                    _elem62.read(iprot);
22234
                    _elem66.read(iprot);
21242
                    this.success.add(_elem62);
22235
                    this.success.add(_elem66);
21243
                  }
22236
                  }
21244
                  iprot.readListEnd();
22237
                  iprot.readListEnd();
21245
                }
22238
                }
21246
              } else { 
22239
              } else { 
21247
                TProtocolUtil.skip(iprot, field.type);
22240
                TProtocolUtil.skip(iprot, field.type);
Line 21268... Line 22261...
21268
 
22261
 
21269
      if (this.isSetSuccess()) {
22262
      if (this.isSetSuccess()) {
21270
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22263
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21271
        {
22264
        {
21272
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
22265
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
21273
          for (Order _iter63 : this.success)
22266
          for (Order _iter67 : this.success)
21274
          {
22267
          {
21275
            _iter63.write(oprot);
22268
            _iter67.write(oprot);
21276
          }
22269
          }
21277
          oprot.writeListEnd();
22270
          oprot.writeListEnd();
21278
        }
22271
        }
21279
        oprot.writeFieldEnd();
22272
        oprot.writeFieldEnd();
21280
      } else if (this.isSetEx()) {
22273
      } else if (this.isSetEx()) {
Line 26833... Line 27826...
26833
              }
27826
              }
26834
              break;
27827
              break;
26835
            case PICKUP_DETAILS:
27828
            case PICKUP_DETAILS:
26836
              if (field.type == TType.MAP) {
27829
              if (field.type == TType.MAP) {
26837
                {
27830
                {
26838
                  TMap _map64 = iprot.readMapBegin();
27831
                  TMap _map68 = iprot.readMapBegin();
26839
                  this.pickupDetails = new HashMap<String,String>(2*_map64.size);
27832
                  this.pickupDetails = new HashMap<String,String>(2*_map68.size);
26840
                  for (int _i65 = 0; _i65 < _map64.size; ++_i65)
27833
                  for (int _i69 = 0; _i69 < _map68.size; ++_i69)
26841
                  {
27834
                  {
26842
                    String _key66;
27835
                    String _key70;
26843
                    String _val67;
27836
                    String _val71;
26844
                    _key66 = iprot.readString();
27837
                    _key70 = iprot.readString();
26845
                    _val67 = iprot.readString();
27838
                    _val71 = iprot.readString();
26846
                    this.pickupDetails.put(_key66, _val67);
27839
                    this.pickupDetails.put(_key70, _val71);
26847
                  }
27840
                  }
26848
                  iprot.readMapEnd();
27841
                  iprot.readMapEnd();
26849
                }
27842
                }
26850
              } else { 
27843
              } else { 
26851
                TProtocolUtil.skip(iprot, field.type);
27844
                TProtocolUtil.skip(iprot, field.type);
Line 26868... Line 27861...
26868
      oprot.writeFieldEnd();
27861
      oprot.writeFieldEnd();
26869
      if (this.pickupDetails != null) {
27862
      if (this.pickupDetails != null) {
26870
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
27863
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
26871
        {
27864
        {
26872
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
27865
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
26873
          for (Map.Entry<String, String> _iter68 : this.pickupDetails.entrySet())
27866
          for (Map.Entry<String, String> _iter72 : this.pickupDetails.entrySet())
26874
          {
27867
          {
26875
            oprot.writeString(_iter68.getKey());
27868
            oprot.writeString(_iter72.getKey());
26876
            oprot.writeString(_iter68.getValue());
27869
            oprot.writeString(_iter72.getValue());
26877
          }
27870
          }
26878
          oprot.writeMapEnd();
27871
          oprot.writeMapEnd();
26879
        }
27872
        }
26880
        oprot.writeFieldEnd();
27873
        oprot.writeFieldEnd();
26881
      }
27874
      }
Line 27225... Line 28218...
27225
        } else {
28218
        } else {
27226
          switch (fieldId) {
28219
          switch (fieldId) {
27227
            case SUCCESS:
28220
            case SUCCESS:
27228
              if (field.type == TType.LIST) {
28221
              if (field.type == TType.LIST) {
27229
                {
28222
                {
27230
                  TList _list69 = iprot.readListBegin();
28223
                  TList _list73 = iprot.readListBegin();
27231
                  this.success = new ArrayList<Order>(_list69.size);
28224
                  this.success = new ArrayList<Order>(_list73.size);
27232
                  for (int _i70 = 0; _i70 < _list69.size; ++_i70)
28225
                  for (int _i74 = 0; _i74 < _list73.size; ++_i74)
27233
                  {
28226
                  {
27234
                    Order _elem71;
28227
                    Order _elem75;
27235
                    _elem71 = new Order();
28228
                    _elem75 = new Order();
27236
                    _elem71.read(iprot);
28229
                    _elem75.read(iprot);
27237
                    this.success.add(_elem71);
28230
                    this.success.add(_elem75);
27238
                  }
28231
                  }
27239
                  iprot.readListEnd();
28232
                  iprot.readListEnd();
27240
                }
28233
                }
27241
              } else { 
28234
              } else { 
27242
                TProtocolUtil.skip(iprot, field.type);
28235
                TProtocolUtil.skip(iprot, field.type);
Line 27263... Line 28256...
27263
 
28256
 
27264
      if (this.isSetSuccess()) {
28257
      if (this.isSetSuccess()) {
27265
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28258
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27266
        {
28259
        {
27267
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
28260
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
27268
          for (Order _iter72 : this.success)
28261
          for (Order _iter76 : this.success)
27269
          {
28262
          {
27270
            _iter72.write(oprot);
28263
            _iter76.write(oprot);
27271
          }
28264
          }
27272
          oprot.writeListEnd();
28265
          oprot.writeListEnd();
27273
        }
28266
        }
27274
        oprot.writeFieldEnd();
28267
        oprot.writeFieldEnd();
27275
      } else if (this.isSetEx()) {
28268
      } else if (this.isSetEx()) {
Line 27615... Line 28608...
27615
              }
28608
              }
27616
              break;
28609
              break;
27617
            case DELIVERED_ORDERS:
28610
            case DELIVERED_ORDERS:
27618
              if (field.type == TType.MAP) {
28611
              if (field.type == TType.MAP) {
27619
                {
28612
                {
27620
                  TMap _map73 = iprot.readMapBegin();
28613
                  TMap _map77 = iprot.readMapBegin();
27621
                  this.deliveredOrders = new HashMap<String,String>(2*_map73.size);
28614
                  this.deliveredOrders = new HashMap<String,String>(2*_map77.size);
27622
                  for (int _i74 = 0; _i74 < _map73.size; ++_i74)
28615
                  for (int _i78 = 0; _i78 < _map77.size; ++_i78)
27623
                  {
28616
                  {
27624
                    String _key75;
28617
                    String _key79;
27625
                    String _val76;
28618
                    String _val80;
27626
                    _key75 = iprot.readString();
28619
                    _key79 = iprot.readString();
27627
                    _val76 = iprot.readString();
28620
                    _val80 = iprot.readString();
27628
                    this.deliveredOrders.put(_key75, _val76);
28621
                    this.deliveredOrders.put(_key79, _val80);
27629
                  }
28622
                  }
27630
                  iprot.readMapEnd();
28623
                  iprot.readMapEnd();
27631
                }
28624
                }
27632
              } else { 
28625
              } else { 
27633
                TProtocolUtil.skip(iprot, field.type);
28626
                TProtocolUtil.skip(iprot, field.type);
Line 27650... Line 28643...
27650
      oprot.writeFieldEnd();
28643
      oprot.writeFieldEnd();
27651
      if (this.deliveredOrders != null) {
28644
      if (this.deliveredOrders != null) {
27652
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
28645
        oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);
27653
        {
28646
        {
27654
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
28647
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.deliveredOrders.size()));
27655
          for (Map.Entry<String, String> _iter77 : this.deliveredOrders.entrySet())
28648
          for (Map.Entry<String, String> _iter81 : this.deliveredOrders.entrySet())
27656
          {
28649
          {
27657
            oprot.writeString(_iter77.getKey());
28650
            oprot.writeString(_iter81.getKey());
27658
            oprot.writeString(_iter77.getValue());
28651
            oprot.writeString(_iter81.getValue());
27659
          }
28652
          }
27660
          oprot.writeMapEnd();
28653
          oprot.writeMapEnd();
27661
        }
28654
        }
27662
        oprot.writeFieldEnd();
28655
        oprot.writeFieldEnd();
27663
      }
28656
      }
Line 28276... Line 29269...
28276
              }
29269
              }
28277
              break;
29270
              break;
28278
            case RETURNED_ORDERS:
29271
            case RETURNED_ORDERS:
28279
              if (field.type == TType.MAP) {
29272
              if (field.type == TType.MAP) {
28280
                {
29273
                {
28281
                  TMap _map78 = iprot.readMapBegin();
29274
                  TMap _map82 = iprot.readMapBegin();
28282
                  this.returnedOrders = new HashMap<String,String>(2*_map78.size);
29275
                  this.returnedOrders = new HashMap<String,String>(2*_map82.size);
28283
                  for (int _i79 = 0; _i79 < _map78.size; ++_i79)
29276
                  for (int _i83 = 0; _i83 < _map82.size; ++_i83)
28284
                  {
29277
                  {
28285
                    String _key80;
29278
                    String _key84;
28286
                    String _val81;
29279
                    String _val85;
28287
                    _key80 = iprot.readString();
29280
                    _key84 = iprot.readString();
28288
                    _val81 = iprot.readString();
29281
                    _val85 = iprot.readString();
28289
                    this.returnedOrders.put(_key80, _val81);
29282
                    this.returnedOrders.put(_key84, _val85);
28290
                  }
29283
                  }
28291
                  iprot.readMapEnd();
29284
                  iprot.readMapEnd();
28292
                }
29285
                }
28293
              } else { 
29286
              } else { 
28294
                TProtocolUtil.skip(iprot, field.type);
29287
                TProtocolUtil.skip(iprot, field.type);
Line 28311... Line 29304...
28311
      oprot.writeFieldEnd();
29304
      oprot.writeFieldEnd();
28312
      if (this.returnedOrders != null) {
29305
      if (this.returnedOrders != null) {
28313
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
29306
        oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);
28314
        {
29307
        {
28315
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
29308
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.returnedOrders.size()));
28316
          for (Map.Entry<String, String> _iter82 : this.returnedOrders.entrySet())
29309
          for (Map.Entry<String, String> _iter86 : this.returnedOrders.entrySet())
28317
          {
29310
          {
28318
            oprot.writeString(_iter82.getKey());
29311
            oprot.writeString(_iter86.getKey());
28319
            oprot.writeString(_iter82.getValue());
29312
            oprot.writeString(_iter86.getValue());
28320
          }
29313
          }
28321
          oprot.writeMapEnd();
29314
          oprot.writeMapEnd();
28322
        }
29315
        }
28323
        oprot.writeFieldEnd();
29316
        oprot.writeFieldEnd();
28324
      }
29317
      }
Line 28937... Line 29930...
28937
              }
29930
              }
28938
              break;
29931
              break;
28939
            case UNDELIVERED_ORDERS:
29932
            case UNDELIVERED_ORDERS:
28940
              if (field.type == TType.MAP) {
29933
              if (field.type == TType.MAP) {
28941
                {
29934
                {
28942
                  TMap _map83 = iprot.readMapBegin();
29935
                  TMap _map87 = iprot.readMapBegin();
28943
                  this.undeliveredOrders = new HashMap<String,String>(2*_map83.size);
29936
                  this.undeliveredOrders = new HashMap<String,String>(2*_map87.size);
28944
                  for (int _i84 = 0; _i84 < _map83.size; ++_i84)
29937
                  for (int _i88 = 0; _i88 < _map87.size; ++_i88)
28945
                  {
29938
                  {
28946
                    String _key85;
29939
                    String _key89;
28947
                    String _val86;
29940
                    String _val90;
28948
                    _key85 = iprot.readString();
29941
                    _key89 = iprot.readString();
28949
                    _val86 = iprot.readString();
29942
                    _val90 = iprot.readString();
28950
                    this.undeliveredOrders.put(_key85, _val86);
29943
                    this.undeliveredOrders.put(_key89, _val90);
28951
                  }
29944
                  }
28952
                  iprot.readMapEnd();
29945
                  iprot.readMapEnd();
28953
                }
29946
                }
28954
              } else { 
29947
              } else { 
28955
                TProtocolUtil.skip(iprot, field.type);
29948
                TProtocolUtil.skip(iprot, field.type);
Line 28972... Line 29965...
28972
      oprot.writeFieldEnd();
29965
      oprot.writeFieldEnd();
28973
      if (this.undeliveredOrders != null) {
29966
      if (this.undeliveredOrders != null) {
28974
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
29967
        oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);
28975
        {
29968
        {
28976
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.undeliveredOrders.size()));
29969
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.undeliveredOrders.size()));
28977
          for (Map.Entry<String, String> _iter87 : this.undeliveredOrders.entrySet())
29970
          for (Map.Entry<String, String> _iter91 : this.undeliveredOrders.entrySet())
28978
          {
29971
          {
28979
            oprot.writeString(_iter87.getKey());
29972
            oprot.writeString(_iter91.getKey());
28980
            oprot.writeString(_iter87.getValue());
29973
            oprot.writeString(_iter91.getValue());
28981
          }
29974
          }
28982
          oprot.writeMapEnd();
29975
          oprot.writeMapEnd();
28983
        }
29976
        }
28984
        oprot.writeFieldEnd();
29977
        oprot.writeFieldEnd();
28985
      }
29978
      }
Line 29902... Line 30895...
29902
        } else {
30895
        } else {
29903
          switch (fieldId) {
30896
          switch (fieldId) {
29904
            case SUCCESS:
30897
            case SUCCESS:
29905
              if (field.type == TType.LIST) {
30898
              if (field.type == TType.LIST) {
29906
                {
30899
                {
29907
                  TList _list88 = iprot.readListBegin();
30900
                  TList _list92 = iprot.readListBegin();
29908
                  this.success = new ArrayList<Order>(_list88.size);
30901
                  this.success = new ArrayList<Order>(_list92.size);
29909
                  for (int _i89 = 0; _i89 < _list88.size; ++_i89)
30902
                  for (int _i93 = 0; _i93 < _list92.size; ++_i93)
29910
                  {
30903
                  {
29911
                    Order _elem90;
30904
                    Order _elem94;
29912
                    _elem90 = new Order();
30905
                    _elem94 = new Order();
29913
                    _elem90.read(iprot);
30906
                    _elem94.read(iprot);
29914
                    this.success.add(_elem90);
30907
                    this.success.add(_elem94);
29915
                  }
30908
                  }
29916
                  iprot.readListEnd();
30909
                  iprot.readListEnd();
29917
                }
30910
                }
29918
              } else { 
30911
              } else { 
29919
                TProtocolUtil.skip(iprot, field.type);
30912
                TProtocolUtil.skip(iprot, field.type);
Line 29932... Line 30925...
29932
 
30925
 
29933
      if (this.isSetSuccess()) {
30926
      if (this.isSetSuccess()) {
29934
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30927
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29935
        {
30928
        {
29936
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
30929
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
29937
          for (Order _iter91 : this.success)
30930
          for (Order _iter95 : this.success)
29938
          {
30931
          {
29939
            _iter91.write(oprot);
30932
            _iter95.write(oprot);
29940
          }
30933
          }
29941
          oprot.writeListEnd();
30934
          oprot.writeListEnd();
29942
        }
30935
        }
29943
        oprot.writeFieldEnd();
30936
        oprot.writeFieldEnd();
29944
      }
30937
      }
Line 32279... Line 33272...
32279
              }
33272
              }
32280
              break;
33273
              break;
32281
            case PICKUP_DETAILS:
33274
            case PICKUP_DETAILS:
32282
              if (field.type == TType.MAP) {
33275
              if (field.type == TType.MAP) {
32283
                {
33276
                {
32284
                  TMap _map92 = iprot.readMapBegin();
33277
                  TMap _map96 = iprot.readMapBegin();
32285
                  this.pickupDetails = new HashMap<String,String>(2*_map92.size);
33278
                  this.pickupDetails = new HashMap<String,String>(2*_map96.size);
32286
                  for (int _i93 = 0; _i93 < _map92.size; ++_i93)
33279
                  for (int _i97 = 0; _i97 < _map96.size; ++_i97)
32287
                  {
33280
                  {
32288
                    String _key94;
33281
                    String _key98;
32289
                    String _val95;
33282
                    String _val99;
32290
                    _key94 = iprot.readString();
33283
                    _key98 = iprot.readString();
32291
                    _val95 = iprot.readString();
33284
                    _val99 = iprot.readString();
32292
                    this.pickupDetails.put(_key94, _val95);
33285
                    this.pickupDetails.put(_key98, _val99);
32293
                  }
33286
                  }
32294
                  iprot.readMapEnd();
33287
                  iprot.readMapEnd();
32295
                }
33288
                }
32296
              } else { 
33289
              } else { 
32297
                TProtocolUtil.skip(iprot, field.type);
33290
                TProtocolUtil.skip(iprot, field.type);
Line 32314... Line 33307...
32314
      oprot.writeFieldEnd();
33307
      oprot.writeFieldEnd();
32315
      if (this.pickupDetails != null) {
33308
      if (this.pickupDetails != null) {
32316
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
33309
        oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);
32317
        {
33310
        {
32318
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
33311
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.pickupDetails.size()));
32319
          for (Map.Entry<String, String> _iter96 : this.pickupDetails.entrySet())
33312
          for (Map.Entry<String, String> _iter100 : this.pickupDetails.entrySet())
32320
          {
33313
          {
32321
            oprot.writeString(_iter96.getKey());
33314
            oprot.writeString(_iter100.getKey());
32322
            oprot.writeString(_iter96.getValue());
33315
            oprot.writeString(_iter100.getValue());
32323
          }
33316
          }
32324
          oprot.writeMapEnd();
33317
          oprot.writeMapEnd();
32325
        }
33318
        }
32326
        oprot.writeFieldEnd();
33319
        oprot.writeFieldEnd();
32327
      }
33320
      }
Line 32607... Line 33600...
32607
        } else {
33600
        } else {
32608
          switch (fieldId) {
33601
          switch (fieldId) {
32609
            case SUCCESS:
33602
            case SUCCESS:
32610
              if (field.type == TType.LIST) {
33603
              if (field.type == TType.LIST) {
32611
                {
33604
                {
32612
                  TList _list97 = iprot.readListBegin();
33605
                  TList _list101 = iprot.readListBegin();
32613
                  this.success = new ArrayList<Order>(_list97.size);
33606
                  this.success = new ArrayList<Order>(_list101.size);
32614
                  for (int _i98 = 0; _i98 < _list97.size; ++_i98)
33607
                  for (int _i102 = 0; _i102 < _list101.size; ++_i102)
32615
                  {
33608
                  {
32616
                    Order _elem99;
33609
                    Order _elem103;
32617
                    _elem99 = new Order();
33610
                    _elem103 = new Order();
32618
                    _elem99.read(iprot);
33611
                    _elem103.read(iprot);
32619
                    this.success.add(_elem99);
33612
                    this.success.add(_elem103);
32620
                  }
33613
                  }
32621
                  iprot.readListEnd();
33614
                  iprot.readListEnd();
32622
                }
33615
                }
32623
              } else { 
33616
              } else { 
32624
                TProtocolUtil.skip(iprot, field.type);
33617
                TProtocolUtil.skip(iprot, field.type);
Line 32637... Line 33630...
32637
 
33630
 
32638
      if (this.isSetSuccess()) {
33631
      if (this.isSetSuccess()) {
32639
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33632
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32640
        {
33633
        {
32641
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
33634
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
32642
          for (Order _iter100 : this.success)
33635
          for (Order _iter104 : this.success)
32643
          {
33636
          {
32644
            _iter100.write(oprot);
33637
            _iter104.write(oprot);
32645
          }
33638
          }
32646
          oprot.writeListEnd();
33639
          oprot.writeListEnd();
32647
        }
33640
        }
32648
        oprot.writeFieldEnd();
33641
        oprot.writeFieldEnd();
32649
      }
33642
      }
Line 36169... Line 37162...
36169
        } else {
37162
        } else {
36170
          switch (fieldId) {
37163
          switch (fieldId) {
36171
            case SUCCESS:
37164
            case SUCCESS:
36172
              if (field.type == TType.LIST) {
37165
              if (field.type == TType.LIST) {
36173
                {
37166
                {
36174
                  TList _list101 = iprot.readListBegin();
37167
                  TList _list105 = iprot.readListBegin();
36175
                  this.success = new ArrayList<ReturnOrder>(_list101.size);
37168
                  this.success = new ArrayList<ReturnOrder>(_list105.size);
36176
                  for (int _i102 = 0; _i102 < _list101.size; ++_i102)
37169
                  for (int _i106 = 0; _i106 < _list105.size; ++_i106)
36177
                  {
37170
                  {
36178
                    ReturnOrder _elem103;
37171
                    ReturnOrder _elem107;
36179
                    _elem103 = new ReturnOrder();
37172
                    _elem107 = new ReturnOrder();
36180
                    _elem103.read(iprot);
37173
                    _elem107.read(iprot);
36181
                    this.success.add(_elem103);
37174
                    this.success.add(_elem107);
36182
                  }
37175
                  }
36183
                  iprot.readListEnd();
37176
                  iprot.readListEnd();
36184
                }
37177
                }
36185
              } else { 
37178
              } else { 
36186
                TProtocolUtil.skip(iprot, field.type);
37179
                TProtocolUtil.skip(iprot, field.type);
Line 36199... Line 37192...
36199
 
37192
 
36200
      if (this.isSetSuccess()) {
37193
      if (this.isSetSuccess()) {
36201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37194
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36202
        {
37195
        {
36203
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
37196
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
36204
          for (ReturnOrder _iter104 : this.success)
37197
          for (ReturnOrder _iter108 : this.success)
36205
          {
37198
          {
36206
            _iter104.write(oprot);
37199
            _iter108.write(oprot);
36207
          }
37200
          }
36208
          oprot.writeListEnd();
37201
          oprot.writeListEnd();
36209
        }
37202
        }
36210
        oprot.writeFieldEnd();
37203
        oprot.writeFieldEnd();
36211
      }
37204
      }