Subversion Repositories SmartDukaan

Rev

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

Rev 4496 Rev 4506
Line 628... Line 628...
628
     * @param awb
628
     * @param awb
629
     */
629
     */
630
    public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException;
630
    public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException;
631
 
631
 
632
    /**
632
    /**
633
     * Line items missing transfer price are return here. This data is derived out of already booked orders
633
     * Returns the order corresponding to a logistics provider id for a given order status
634
     */
634
     * 
635
    public List<LineItem> getMissingTransferPriceLineitems() throws org.apache.thrift.TException;
-
 
636
 
-
 
637
    /**
-
 
638
     * Updates transfer prices of the lineitems wherever missing. Throws exception in case it is
635
     * @param logistics_provider_id
639
     * unable to do so
636
     * @param order_status
640
     */
637
     */
641
    public void updateTransferPrices() throws TransactionServiceException, org.apache.thrift.TException;
638
    public List<Order> getOrdersForProviderForStatus(long logistics_provider_id, OrderStatus order_status) throws TransactionServiceException, org.apache.thrift.TException;
642
 
639
 
643
  }
640
  }
644
 
641
 
645
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
642
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
646
 
643
 
Line 798... Line 795...
798
 
795
 
799
    public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;
796
    public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;
800
 
797
 
801
    public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException;
798
    public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException;
802
 
799
 
803
    public void getMissingTransferPriceLineitems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMissingTransferPriceLineitems_call> resultHandler) throws org.apache.thrift.TException;
800
    public void getOrdersForProviderForStatus(long logistics_provider_id, OrderStatus order_status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForProviderForStatus_call> resultHandler) throws org.apache.thrift.TException;
804
 
-
 
805
    public void updateTransferPrices(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferPrices_call> resultHandler) throws org.apache.thrift.TException;
-
 
806
 
801
 
807
  }
802
  }
808
 
803
 
809
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
804
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
810
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
805
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 2843... Line 2838...
2843
        throw result.ex;
2838
        throw result.ex;
2844
      }
2839
      }
2845
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");
2840
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");
2846
    }
2841
    }
2847
 
2842
 
2848
    public List<LineItem> getMissingTransferPriceLineitems() throws org.apache.thrift.TException
2843
    public List<Order> getOrdersForProviderForStatus(long logistics_provider_id, OrderStatus order_status) throws TransactionServiceException, org.apache.thrift.TException
2849
    {
2844
    {
2850
      send_getMissingTransferPriceLineitems();
2845
      send_getOrdersForProviderForStatus(logistics_provider_id, order_status);
2851
      return recv_getMissingTransferPriceLineitems();
2846
      return recv_getOrdersForProviderForStatus();
2852
    }
2847
    }
2853
 
2848
 
2854
    public void send_getMissingTransferPriceLineitems() throws org.apache.thrift.TException
2849
    public void send_getOrdersForProviderForStatus(long logistics_provider_id, OrderStatus order_status) throws org.apache.thrift.TException
2855
    {
2850
    {
2856
      getMissingTransferPriceLineitems_args args = new getMissingTransferPriceLineitems_args();
2851
      getOrdersForProviderForStatus_args args = new getOrdersForProviderForStatus_args();
-
 
2852
      args.setLogistics_provider_id(logistics_provider_id);
-
 
2853
      args.setOrder_status(order_status);
2857
      sendBase("getMissingTransferPriceLineitems", args);
2854
      sendBase("getOrdersForProviderForStatus", args);
2858
    }
2855
    }
2859
 
2856
 
2860
    public List<LineItem> recv_getMissingTransferPriceLineitems() throws org.apache.thrift.TException
2857
    public List<Order> recv_getOrdersForProviderForStatus() throws TransactionServiceException, org.apache.thrift.TException
2861
    {
2858
    {
2862
      getMissingTransferPriceLineitems_result result = new getMissingTransferPriceLineitems_result();
2859
      getOrdersForProviderForStatus_result result = new getOrdersForProviderForStatus_result();
2863
      receiveBase(result, "getMissingTransferPriceLineitems");
2860
      receiveBase(result, "getOrdersForProviderForStatus");
2864
      if (result.isSetSuccess()) {
2861
      if (result.isSetSuccess()) {
2865
        return result.success;
2862
        return result.success;
2866
      }
2863
      }
2867
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMissingTransferPriceLineitems failed: unknown result");
-
 
2868
    }
-
 
2869
 
-
 
2870
    public void updateTransferPrices() throws TransactionServiceException, org.apache.thrift.TException
-
 
2871
    {
-
 
2872
      send_updateTransferPrices();
-
 
2873
      recv_updateTransferPrices();
-
 
2874
    }
-
 
2875
 
-
 
2876
    public void send_updateTransferPrices() throws org.apache.thrift.TException
-
 
2877
    {
-
 
2878
      updateTransferPrices_args args = new updateTransferPrices_args();
-
 
2879
      sendBase("updateTransferPrices", args);
-
 
2880
    }
-
 
2881
 
-
 
2882
    public void recv_updateTransferPrices() throws TransactionServiceException, org.apache.thrift.TException
-
 
2883
    {
-
 
2884
      updateTransferPrices_result result = new updateTransferPrices_result();
-
 
2885
      receiveBase(result, "updateTransferPrices");
-
 
2886
      if (result.ex != null) {
2864
      if (result.ex != null) {
2887
        throw result.ex;
2865
        throw result.ex;
2888
      }
2866
      }
2889
      return;
-
 
-
 
2867
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForProviderForStatus failed: unknown result");
2890
    }
2868
    }
2891
 
2869
 
2892
  }
2870
  }
2893
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2871
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2894
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2872
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
Line 5644... Line 5622...
5644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5622
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5645
        return (new Client(prot)).recv_getOrderForAwb();
5623
        return (new Client(prot)).recv_getOrderForAwb();
5646
      }
5624
      }
5647
    }
5625
    }
5648
 
5626
 
5649
    public void getMissingTransferPriceLineitems(org.apache.thrift.async.AsyncMethodCallback<getMissingTransferPriceLineitems_call> resultHandler) throws org.apache.thrift.TException {
-
 
5650
      checkReady();
-
 
5651
      getMissingTransferPriceLineitems_call method_call = new getMissingTransferPriceLineitems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5652
      this.___currentMethod = method_call;
-
 
5653
      ___manager.call(method_call);
-
 
5654
    }
-
 
5655
 
-
 
5656
    public static class getMissingTransferPriceLineitems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5657
      public getMissingTransferPriceLineitems_call(org.apache.thrift.async.AsyncMethodCallback<getMissingTransferPriceLineitems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
5627
    public void getOrdersForProviderForStatus(long logistics_provider_id, OrderStatus order_status, org.apache.thrift.async.AsyncMethodCallback<getOrdersForProviderForStatus_call> resultHandler) throws org.apache.thrift.TException {
5658
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5659
      }
-
 
5660
 
-
 
5661
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5662
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMissingTransferPriceLineitems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5663
        getMissingTransferPriceLineitems_args args = new getMissingTransferPriceLineitems_args();
-
 
5664
        args.write(prot);
-
 
5665
        prot.writeMessageEnd();
-
 
5666
      }
-
 
5667
 
-
 
5668
      public List<LineItem> getResult() throws org.apache.thrift.TException {
-
 
5669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5670
          throw new IllegalStateException("Method call not finished!");
-
 
5671
        }
-
 
5672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5674
        return (new Client(prot)).recv_getMissingTransferPriceLineitems();
-
 
5675
      }
-
 
5676
    }
-
 
5677
 
-
 
5678
    public void updateTransferPrices(org.apache.thrift.async.AsyncMethodCallback<updateTransferPrices_call> resultHandler) throws org.apache.thrift.TException {
-
 
5679
      checkReady();
5628
      checkReady();
5680
      updateTransferPrices_call method_call = new updateTransferPrices_call(resultHandler, this, ___protocolFactory, ___transport);
5629
      getOrdersForProviderForStatus_call method_call = new getOrdersForProviderForStatus_call(logistics_provider_id, order_status, resultHandler, this, ___protocolFactory, ___transport);
5681
      this.___currentMethod = method_call;
5630
      this.___currentMethod = method_call;
5682
      ___manager.call(method_call);
5631
      ___manager.call(method_call);
5683
    }
5632
    }
5684
 
5633
 
5685
    public static class updateTransferPrices_call extends org.apache.thrift.async.TAsyncMethodCall {
5634
    public static class getOrdersForProviderForStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5635
      private long logistics_provider_id;
-
 
5636
      private OrderStatus order_status;
5686
      public updateTransferPrices_call(org.apache.thrift.async.AsyncMethodCallback<updateTransferPrices_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
5637
      public getOrdersForProviderForStatus_call(long logistics_provider_id, OrderStatus order_status, org.apache.thrift.async.AsyncMethodCallback<getOrdersForProviderForStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
5687
        super(client, protocolFactory, transport, resultHandler, false);
5638
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5639
        this.logistics_provider_id = logistics_provider_id;
-
 
5640
        this.order_status = order_status;
5688
      }
5641
      }
5689
 
5642
 
5690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5643
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferPrices", org.apache.thrift.protocol.TMessageType.CALL, 0));
5644
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForProviderForStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
5692
        updateTransferPrices_args args = new updateTransferPrices_args();
5645
        getOrdersForProviderForStatus_args args = new getOrdersForProviderForStatus_args();
-
 
5646
        args.setLogistics_provider_id(logistics_provider_id);
-
 
5647
        args.setOrder_status(order_status);
5693
        args.write(prot);
5648
        args.write(prot);
5694
        prot.writeMessageEnd();
5649
        prot.writeMessageEnd();
5695
      }
5650
      }
5696
 
5651
 
5697
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
5652
      public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {
5698
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5653
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5699
          throw new IllegalStateException("Method call not finished!");
5654
          throw new IllegalStateException("Method call not finished!");
5700
        }
5655
        }
5701
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5656
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5702
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5657
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5703
        (new Client(prot)).recv_updateTransferPrices();
5658
        return (new Client(prot)).recv_getOrdersForProviderForStatus();
5704
      }
5659
      }
5705
    }
5660
    }
5706
 
5661
 
5707
  }
5662
  }
5708
 
5663
 
Line 5793... Line 5748...
5793
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5748
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5794
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5749
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5795
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5750
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5796
      processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());
5751
      processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());
5797
      processMap.put("getOrderForAwb", new getOrderForAwb());
5752
      processMap.put("getOrderForAwb", new getOrderForAwb());
5798
      processMap.put("getMissingTransferPriceLineitems", new getMissingTransferPriceLineitems());
5753
      processMap.put("getOrdersForProviderForStatus", new getOrdersForProviderForStatus());
5799
      processMap.put("updateTransferPrices", new updateTransferPrices());
-
 
5800
      return processMap;
5754
      return processMap;
5801
    }
5755
    }
5802
 
5756
 
5803
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
5757
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
5804
      public createTransaction() {
5758
      public createTransaction() {
Line 7331... Line 7285...
7331
        }
7285
        }
7332
        return result;
7286
        return result;
7333
      }
7287
      }
7334
    }
7288
    }
7335
 
7289
 
7336
    private static class getMissingTransferPriceLineitems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMissingTransferPriceLineitems_args> {
7290
    private static class getOrdersForProviderForStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForProviderForStatus_args> {
7337
      public getMissingTransferPriceLineitems() {
7291
      public getOrdersForProviderForStatus() {
7338
        super("getMissingTransferPriceLineitems");
7292
        super("getOrdersForProviderForStatus");
7339
      }
-
 
7340
 
-
 
7341
      protected getMissingTransferPriceLineitems_args getEmptyArgsInstance() {
-
 
7342
        return new getMissingTransferPriceLineitems_args();
-
 
7343
      }
-
 
7344
 
-
 
7345
      protected getMissingTransferPriceLineitems_result getResult(I iface, getMissingTransferPriceLineitems_args args) throws org.apache.thrift.TException {
-
 
7346
        getMissingTransferPriceLineitems_result result = new getMissingTransferPriceLineitems_result();
-
 
7347
        result.success = iface.getMissingTransferPriceLineitems();
-
 
7348
        return result;
-
 
7349
      }
-
 
7350
    }
-
 
7351
 
-
 
7352
    private static class updateTransferPrices<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferPrices_args> {
-
 
7353
      public updateTransferPrices() {
-
 
7354
        super("updateTransferPrices");
-
 
7355
      }
7293
      }
7356
 
7294
 
7357
      protected updateTransferPrices_args getEmptyArgsInstance() {
7295
      protected getOrdersForProviderForStatus_args getEmptyArgsInstance() {
7358
        return new updateTransferPrices_args();
7296
        return new getOrdersForProviderForStatus_args();
7359
      }
7297
      }
7360
 
7298
 
7361
      protected updateTransferPrices_result getResult(I iface, updateTransferPrices_args args) throws org.apache.thrift.TException {
7299
      protected getOrdersForProviderForStatus_result getResult(I iface, getOrdersForProviderForStatus_args args) throws org.apache.thrift.TException {
7362
        updateTransferPrices_result result = new updateTransferPrices_result();
7300
        getOrdersForProviderForStatus_result result = new getOrdersForProviderForStatus_result();
7363
        try {
7301
        try {
7364
          iface.updateTransferPrices();
7302
          result.success = iface.getOrdersForProviderForStatus(args.logistics_provider_id, args.order_status);
7365
        } catch (TransactionServiceException ex) {
7303
        } catch (TransactionServiceException ex) {
7366
          result.ex = ex;
7304
          result.ex = ex;
7367
        }
7305
        }
7368
        return result;
7306
        return result;
7369
      }
7307
      }
Line 65574... Line 65512...
65574
      }
65512
      }
65575
    }
65513
    }
65576
 
65514
 
65577
  }
65515
  }
65578
 
65516
 
65579
  public static class getMissingTransferPriceLineitems_args implements org.apache.thrift.TBase<getMissingTransferPriceLineitems_args, getMissingTransferPriceLineitems_args._Fields>, java.io.Serializable, Cloneable   {
65517
  public static class getOrdersForProviderForStatus_args implements org.apache.thrift.TBase<getOrdersForProviderForStatus_args, getOrdersForProviderForStatus_args._Fields>, java.io.Serializable, Cloneable   {
65580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMissingTransferPriceLineitems_args");
65518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForProviderForStatus_args");
65581
 
65519
 
-
 
65520
    private static final org.apache.thrift.protocol.TField LOGISTICS_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logistics_provider_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
65521
    private static final org.apache.thrift.protocol.TField ORDER_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("order_status", org.apache.thrift.protocol.TType.I32, (short)2);
65582
 
65522
 
-
 
65523
    private long logistics_provider_id; // required
-
 
65524
    private OrderStatus order_status; // required
65583
 
65525
 
65584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65586
;
-
 
65587
 
-
 
65588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65589
 
-
 
65590
      static {
-
 
65591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65592
          byName.put(field.getFieldName(), field);
-
 
65593
        }
-
 
65594
      }
-
 
65595
 
-
 
65596
      /**
-
 
65597
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65598
       */
-
 
65599
      public static _Fields findByThriftId(int fieldId) {
65528
      LOGISTICS_PROVIDER_ID((short)1, "logistics_provider_id"),
65600
        switch(fieldId) {
-
 
65601
          default:
-
 
65602
            return null;
-
 
65603
        }
-
 
65604
      }
-
 
65605
 
-
 
65606
      /**
65529
      /**
65607
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65608
       * if it is not found.
-
 
65609
       */
65530
       * 
65610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65611
        _Fields fields = findByThriftId(fieldId);
-
 
65612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65613
        return fields;
65531
       * @see OrderStatus
65614
      }
-
 
65615
 
-
 
65616
      /**
-
 
65617
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65618
       */
65532
       */
65619
      public static _Fields findByName(String name) {
-
 
65620
        return byName.get(name);
-
 
65621
      }
-
 
65622
 
-
 
65623
      private final short _thriftId;
-
 
65624
      private final String _fieldName;
-
 
65625
 
-
 
65626
      _Fields(short thriftId, String fieldName) {
-
 
65627
        _thriftId = thriftId;
-
 
65628
        _fieldName = fieldName;
-
 
65629
      }
-
 
65630
 
-
 
65631
      public short getThriftFieldId() {
-
 
65632
        return _thriftId;
-
 
65633
      }
-
 
65634
 
-
 
65635
      public String getFieldName() {
-
 
65636
        return _fieldName;
-
 
65637
      }
-
 
65638
    }
-
 
65639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65640
    static {
-
 
65641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMissingTransferPriceLineitems_args.class, metaDataMap);
-
 
65644
    }
-
 
65645
 
-
 
65646
    public getMissingTransferPriceLineitems_args() {
-
 
65647
    }
-
 
65648
 
-
 
65649
    /**
-
 
65650
     * Performs a deep copy on <i>other</i>.
-
 
65651
     */
-
 
65652
    public getMissingTransferPriceLineitems_args(getMissingTransferPriceLineitems_args other) {
-
 
65653
    }
-
 
65654
 
-
 
65655
    public getMissingTransferPriceLineitems_args deepCopy() {
-
 
65656
      return new getMissingTransferPriceLineitems_args(this);
-
 
65657
    }
-
 
65658
 
-
 
65659
    @Override
-
 
65660
    public void clear() {
-
 
65661
    }
-
 
65662
 
-
 
65663
    public void setFieldValue(_Fields field, Object value) {
-
 
65664
      switch (field) {
-
 
65665
      }
-
 
65666
    }
-
 
65667
 
-
 
65668
    public Object getFieldValue(_Fields field) {
-
 
65669
      switch (field) {
-
 
65670
      }
-
 
65671
      throw new IllegalStateException();
-
 
65672
    }
-
 
65673
 
-
 
65674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65675
    public boolean isSet(_Fields field) {
-
 
65676
      if (field == null) {
-
 
65677
        throw new IllegalArgumentException();
-
 
65678
      }
-
 
65679
 
-
 
65680
      switch (field) {
-
 
65681
      }
-
 
65682
      throw new IllegalStateException();
-
 
65683
    }
-
 
65684
 
-
 
65685
    @Override
-
 
65686
    public boolean equals(Object that) {
-
 
65687
      if (that == null)
-
 
65688
        return false;
-
 
65689
      if (that instanceof getMissingTransferPriceLineitems_args)
-
 
65690
        return this.equals((getMissingTransferPriceLineitems_args)that);
-
 
65691
      return false;
-
 
65692
    }
-
 
65693
 
-
 
65694
    public boolean equals(getMissingTransferPriceLineitems_args that) {
-
 
65695
      if (that == null)
-
 
65696
        return false;
-
 
65697
 
-
 
65698
      return true;
-
 
65699
    }
-
 
65700
 
-
 
65701
    @Override
-
 
65702
    public int hashCode() {
-
 
65703
      return 0;
-
 
65704
    }
-
 
65705
 
-
 
65706
    public int compareTo(getMissingTransferPriceLineitems_args other) {
-
 
65707
      if (!getClass().equals(other.getClass())) {
-
 
65708
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65709
      }
-
 
65710
 
-
 
65711
      int lastComparison = 0;
-
 
65712
      getMissingTransferPriceLineitems_args typedOther = (getMissingTransferPriceLineitems_args)other;
-
 
65713
 
-
 
65714
      return 0;
-
 
65715
    }
-
 
65716
 
-
 
65717
    public _Fields fieldForId(int fieldId) {
-
 
65718
      return _Fields.findByThriftId(fieldId);
-
 
65719
    }
-
 
65720
 
-
 
65721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
65722
      org.apache.thrift.protocol.TField field;
-
 
65723
      iprot.readStructBegin();
-
 
65724
      while (true)
-
 
65725
      {
-
 
65726
        field = iprot.readFieldBegin();
-
 
65727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
65728
          break;
-
 
65729
        }
-
 
65730
        switch (field.id) {
-
 
65731
          default:
-
 
65732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65733
        }
-
 
65734
        iprot.readFieldEnd();
-
 
65735
      }
-
 
65736
      iprot.readStructEnd();
-
 
65737
      validate();
-
 
65738
    }
-
 
65739
 
-
 
65740
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65741
      validate();
-
 
65742
 
-
 
65743
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65744
      oprot.writeFieldStop();
-
 
65745
      oprot.writeStructEnd();
-
 
65746
    }
-
 
65747
 
-
 
65748
    @Override
-
 
65749
    public String toString() {
-
 
65750
      StringBuilder sb = new StringBuilder("getMissingTransferPriceLineitems_args(");
-
 
65751
      boolean first = true;
-
 
65752
 
-
 
65753
      sb.append(")");
-
 
65754
      return sb.toString();
-
 
65755
    }
-
 
65756
 
-
 
65757
    public void validate() throws org.apache.thrift.TException {
-
 
65758
      // check for required fields
-
 
65759
    }
-
 
65760
 
-
 
65761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65762
      try {
-
 
65763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65764
      } catch (org.apache.thrift.TException te) {
-
 
65765
        throw new java.io.IOException(te);
-
 
65766
      }
-
 
65767
    }
-
 
65768
 
-
 
65769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65770
      try {
-
 
65771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65772
      } catch (org.apache.thrift.TException te) {
-
 
65773
        throw new java.io.IOException(te);
-
 
65774
      }
-
 
65775
    }
-
 
65776
 
-
 
65777
  }
-
 
65778
 
-
 
65779
  public static class getMissingTransferPriceLineitems_result implements org.apache.thrift.TBase<getMissingTransferPriceLineitems_result, getMissingTransferPriceLineitems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
65780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMissingTransferPriceLineitems_result");
-
 
65781
 
-
 
65782
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
65783
 
-
 
65784
    private List<LineItem> success; // required
-
 
65785
 
-
 
65786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65788
      SUCCESS((short)0, "success");
65533
      ORDER_STATUS((short)2, "order_status");
65789
 
65534
 
65790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65791
 
65536
 
65792
      static {
65537
      static {
65793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
65538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 65798... Line 65543...
65798
      /**
65543
      /**
65799
       * Find the _Fields constant that matches fieldId, or null if its not found.
65544
       * Find the _Fields constant that matches fieldId, or null if its not found.
65800
       */
65545
       */
65801
      public static _Fields findByThriftId(int fieldId) {
65546
      public static _Fields findByThriftId(int fieldId) {
65802
        switch(fieldId) {
65547
        switch(fieldId) {
-
 
65548
          case 1: // LOGISTICS_PROVIDER_ID
-
 
65549
            return LOGISTICS_PROVIDER_ID;
65803
          case 0: // SUCCESS
65550
          case 2: // ORDER_STATUS
65804
            return SUCCESS;
65551
            return ORDER_STATUS;
65805
          default:
65552
          default:
65806
            return null;
65553
            return null;
65807
        }
65554
        }
65808
      }
65555
      }
65809
 
65556
 
Line 65840... Line 65587...
65840
        return _fieldName;
65587
        return _fieldName;
65841
      }
65588
      }
65842
    }
65589
    }
65843
 
65590
 
65844
    // isset id assignments
65591
    // isset id assignments
-
 
65592
    private static final int __LOGISTICS_PROVIDER_ID_ISSET_ID = 0;
-
 
65593
    private BitSet __isset_bit_vector = new BitSet(1);
65845
 
65594
 
65846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
65595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
65847
    static {
65596
    static {
65848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
65597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
65849
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
65598
      tmpMap.put(_Fields.LOGISTICS_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("logistics_provider_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
65850
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
65599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
65600
      tmpMap.put(_Fields.ORDER_STATUS, new org.apache.thrift.meta_data.FieldMetaData("order_status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
65851
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
65601
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
65852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
65602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
65853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMissingTransferPriceLineitems_result.class, metaDataMap);
65603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForProviderForStatus_args.class, metaDataMap);
65854
    }
65604
    }
65855
 
65605
 
65856
    public getMissingTransferPriceLineitems_result() {
65606
    public getOrdersForProviderForStatus_args() {
65857
    }
65607
    }
65858
 
65608
 
65859
    public getMissingTransferPriceLineitems_result(
65609
    public getOrdersForProviderForStatus_args(
-
 
65610
      long logistics_provider_id,
65860
      List<LineItem> success)
65611
      OrderStatus order_status)
65861
    {
65612
    {
65862
      this();
65613
      this();
-
 
65614
      this.logistics_provider_id = logistics_provider_id;
-
 
65615
      setLogistics_provider_idIsSet(true);
65863
      this.success = success;
65616
      this.order_status = order_status;
65864
    }
65617
    }
65865
 
65618
 
65866
    /**
65619
    /**
65867
     * Performs a deep copy on <i>other</i>.
65620
     * Performs a deep copy on <i>other</i>.
65868
     */
65621
     */
65869
    public getMissingTransferPriceLineitems_result(getMissingTransferPriceLineitems_result other) {
65622
    public getOrdersForProviderForStatus_args(getOrdersForProviderForStatus_args other) {
65870
      if (other.isSetSuccess()) {
65623
      __isset_bit_vector.clear();
65871
        List<LineItem> __this__success = new ArrayList<LineItem>();
65624
      __isset_bit_vector.or(other.__isset_bit_vector);
65872
        for (LineItem other_element : other.success) {
65625
      this.logistics_provider_id = other.logistics_provider_id;
65873
          __this__success.add(new LineItem(other_element));
65626
      if (other.isSetOrder_status()) {
65874
        }
-
 
65875
        this.success = __this__success;
65627
        this.order_status = other.order_status;
65876
      }
65628
      }
65877
    }
65629
    }
65878
 
65630
 
65879
    public getMissingTransferPriceLineitems_result deepCopy() {
65631
    public getOrdersForProviderForStatus_args deepCopy() {
65880
      return new getMissingTransferPriceLineitems_result(this);
65632
      return new getOrdersForProviderForStatus_args(this);
65881
    }
65633
    }
65882
 
65634
 
65883
    @Override
65635
    @Override
65884
    public void clear() {
65636
    public void clear() {
-
 
65637
      setLogistics_provider_idIsSet(false);
-
 
65638
      this.logistics_provider_id = 0;
65885
      this.success = null;
65639
      this.order_status = null;
65886
    }
65640
    }
65887
 
65641
 
65888
    public int getSuccessSize() {
65642
    public long getLogistics_provider_id() {
65889
      return (this.success == null) ? 0 : this.success.size();
65643
      return this.logistics_provider_id;
65890
    }
65644
    }
65891
 
65645
 
65892
    public java.util.Iterator<LineItem> getSuccessIterator() {
65646
    public void setLogistics_provider_id(long logistics_provider_id) {
65893
      return (this.success == null) ? null : this.success.iterator();
65647
      this.logistics_provider_id = logistics_provider_id;
-
 
65648
      setLogistics_provider_idIsSet(true);
65894
    }
65649
    }
65895
 
65650
 
65896
    public void addToSuccess(LineItem elem) {
65651
    public void unsetLogistics_provider_id() {
65897
      if (this.success == null) {
-
 
65898
        this.success = new ArrayList<LineItem>();
65652
      __isset_bit_vector.clear(__LOGISTICS_PROVIDER_ID_ISSET_ID);
65899
      }
-
 
65900
      this.success.add(elem);
-
 
65901
    }
65653
    }
65902
 
65654
 
-
 
65655
    /** Returns true if field logistics_provider_id is set (has been assigned a value) and false otherwise */
65903
    public List<LineItem> getSuccess() {
65656
    public boolean isSetLogistics_provider_id() {
65904
      return this.success;
65657
      return __isset_bit_vector.get(__LOGISTICS_PROVIDER_ID_ISSET_ID);
65905
    }
65658
    }
65906
 
65659
 
65907
    public void setSuccess(List<LineItem> success) {
65660
    public void setLogistics_provider_idIsSet(boolean value) {
65908
      this.success = success;
65661
      __isset_bit_vector.set(__LOGISTICS_PROVIDER_ID_ISSET_ID, value);
65909
    }
65662
    }
65910
 
65663
 
-
 
65664
    /**
-
 
65665
     * 
-
 
65666
     * @see OrderStatus
-
 
65667
     */
65911
    public void unsetSuccess() {
65668
    public OrderStatus getOrder_status() {
65912
      this.success = null;
65669
      return this.order_status;
65913
    }
65670
    }
65914
 
65671
 
-
 
65672
    /**
-
 
65673
     * 
65915
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
65674
     * @see OrderStatus
-
 
65675
     */
65916
    public boolean isSetSuccess() {
65676
    public void setOrder_status(OrderStatus order_status) {
65917
      return this.success != null;
65677
      this.order_status = order_status;
65918
    }
65678
    }
65919
 
65679
 
-
 
65680
    public void unsetOrder_status() {
-
 
65681
      this.order_status = null;
-
 
65682
    }
-
 
65683
 
-
 
65684
    /** Returns true if field order_status is set (has been assigned a value) and false otherwise */
-
 
65685
    public boolean isSetOrder_status() {
-
 
65686
      return this.order_status != null;
-
 
65687
    }
-
 
65688
 
65920
    public void setSuccessIsSet(boolean value) {
65689
    public void setOrder_statusIsSet(boolean value) {
65921
      if (!value) {
65690
      if (!value) {
65922
        this.success = null;
65691
        this.order_status = null;
65923
      }
65692
      }
65924
    }
65693
    }
65925
 
65694
 
65926
    public void setFieldValue(_Fields field, Object value) {
65695
    public void setFieldValue(_Fields field, Object value) {
65927
      switch (field) {
65696
      switch (field) {
65928
      case SUCCESS:
65697
      case LOGISTICS_PROVIDER_ID:
65929
        if (value == null) {
65698
        if (value == null) {
65930
          unsetSuccess();
65699
          unsetLogistics_provider_id();
65931
        } else {
65700
        } else {
-
 
65701
          setLogistics_provider_id((Long)value);
-
 
65702
        }
-
 
65703
        break;
-
 
65704
 
-
 
65705
      case ORDER_STATUS:
-
 
65706
        if (value == null) {
-
 
65707
          unsetOrder_status();
-
 
65708
        } else {
65932
          setSuccess((List<LineItem>)value);
65709
          setOrder_status((OrderStatus)value);
65933
        }
65710
        }
65934
        break;
65711
        break;
65935
 
65712
 
65936
      }
65713
      }
65937
    }
65714
    }
65938
 
65715
 
65939
    public Object getFieldValue(_Fields field) {
65716
    public Object getFieldValue(_Fields field) {
65940
      switch (field) {
65717
      switch (field) {
-
 
65718
      case LOGISTICS_PROVIDER_ID:
-
 
65719
        return Long.valueOf(getLogistics_provider_id());
-
 
65720
 
65941
      case SUCCESS:
65721
      case ORDER_STATUS:
65942
        return getSuccess();
65722
        return getOrder_status();
65943
 
65723
 
65944
      }
65724
      }
65945
      throw new IllegalStateException();
65725
      throw new IllegalStateException();
65946
    }
65726
    }
65947
 
65727
 
Line 65950... Line 65730...
65950
      if (field == null) {
65730
      if (field == null) {
65951
        throw new IllegalArgumentException();
65731
        throw new IllegalArgumentException();
65952
      }
65732
      }
65953
 
65733
 
65954
      switch (field) {
65734
      switch (field) {
-
 
65735
      case LOGISTICS_PROVIDER_ID:
-
 
65736
        return isSetLogistics_provider_id();
65955
      case SUCCESS:
65737
      case ORDER_STATUS:
65956
        return isSetSuccess();
65738
        return isSetOrder_status();
65957
      }
65739
      }
65958
      throw new IllegalStateException();
65740
      throw new IllegalStateException();
65959
    }
65741
    }
65960
 
65742
 
65961
    @Override
65743
    @Override
65962
    public boolean equals(Object that) {
65744
    public boolean equals(Object that) {
65963
      if (that == null)
65745
      if (that == null)
65964
        return false;
65746
        return false;
65965
      if (that instanceof getMissingTransferPriceLineitems_result)
65747
      if (that instanceof getOrdersForProviderForStatus_args)
65966
        return this.equals((getMissingTransferPriceLineitems_result)that);
65748
        return this.equals((getOrdersForProviderForStatus_args)that);
65967
      return false;
65749
      return false;
65968
    }
65750
    }
65969
 
65751
 
65970
    public boolean equals(getMissingTransferPriceLineitems_result that) {
65752
    public boolean equals(getOrdersForProviderForStatus_args that) {
65971
      if (that == null)
65753
      if (that == null)
65972
        return false;
65754
        return false;
65973
 
65755
 
65974
      boolean this_present_success = true && this.isSetSuccess();
65756
      boolean this_present_logistics_provider_id = true;
65975
      boolean that_present_success = true && that.isSetSuccess();
65757
      boolean that_present_logistics_provider_id = true;
65976
      if (this_present_success || that_present_success) {
65758
      if (this_present_logistics_provider_id || that_present_logistics_provider_id) {
65977
        if (!(this_present_success && that_present_success))
65759
        if (!(this_present_logistics_provider_id && that_present_logistics_provider_id))
65978
          return false;
65760
          return false;
-
 
65761
        if (this.logistics_provider_id != that.logistics_provider_id)
-
 
65762
          return false;
-
 
65763
      }
-
 
65764
 
-
 
65765
      boolean this_present_order_status = true && this.isSetOrder_status();
-
 
65766
      boolean that_present_order_status = true && that.isSetOrder_status();
-
 
65767
      if (this_present_order_status || that_present_order_status) {
-
 
65768
        if (!(this_present_order_status && that_present_order_status))
-
 
65769
          return false;
65979
        if (!this.success.equals(that.success))
65770
        if (!this.order_status.equals(that.order_status))
65980
          return false;
65771
          return false;
65981
      }
65772
      }
65982
 
65773
 
65983
      return true;
65774
      return true;
65984
    }
65775
    }
Line 65986... Line 65777...
65986
    @Override
65777
    @Override
65987
    public int hashCode() {
65778
    public int hashCode() {
65988
      return 0;
65779
      return 0;
65989
    }
65780
    }
65990
 
65781
 
65991
    public int compareTo(getMissingTransferPriceLineitems_result other) {
65782
    public int compareTo(getOrdersForProviderForStatus_args other) {
65992
      if (!getClass().equals(other.getClass())) {
65783
      if (!getClass().equals(other.getClass())) {
65993
        return getClass().getName().compareTo(other.getClass().getName());
65784
        return getClass().getName().compareTo(other.getClass().getName());
65994
      }
65785
      }
65995
 
65786
 
65996
      int lastComparison = 0;
65787
      int lastComparison = 0;
65997
      getMissingTransferPriceLineitems_result typedOther = (getMissingTransferPriceLineitems_result)other;
65788
      getOrdersForProviderForStatus_args typedOther = (getOrdersForProviderForStatus_args)other;
65998
 
65789
 
65999
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
65790
      lastComparison = Boolean.valueOf(isSetLogistics_provider_id()).compareTo(typedOther.isSetLogistics_provider_id());
66000
      if (lastComparison != 0) {
65791
      if (lastComparison != 0) {
66001
        return lastComparison;
65792
        return lastComparison;
66002
      }
65793
      }
-
 
65794
      if (isSetLogistics_provider_id()) {
-
 
65795
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logistics_provider_id, typedOther.logistics_provider_id);
-
 
65796
        if (lastComparison != 0) {
-
 
65797
          return lastComparison;
-
 
65798
        }
-
 
65799
      }
-
 
65800
      lastComparison = Boolean.valueOf(isSetOrder_status()).compareTo(typedOther.isSetOrder_status());
-
 
65801
      if (lastComparison != 0) {
-
 
65802
        return lastComparison;
-
 
65803
      }
66003
      if (isSetSuccess()) {
65804
      if (isSetOrder_status()) {
66004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
65805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order_status, typedOther.order_status);
66005
        if (lastComparison != 0) {
65806
        if (lastComparison != 0) {
66006
          return lastComparison;
65807
          return lastComparison;
66007
        }
65808
        }
66008
      }
65809
      }
66009
      return 0;
65810
      return 0;
Line 66021... Line 65822...
66021
        field = iprot.readFieldBegin();
65822
        field = iprot.readFieldBegin();
66022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
65823
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
66023
          break;
65824
          break;
66024
        }
65825
        }
66025
        switch (field.id) {
65826
        switch (field.id) {
66026
          case 0: // SUCCESS
65827
          case 1: // LOGISTICS_PROVIDER_ID
66027
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
65828
            if (field.type == org.apache.thrift.protocol.TType.I64) {
66028
              {
-
 
66029
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
65829
              this.logistics_provider_id = iprot.readI64();
66030
                this.success = new ArrayList<LineItem>(_list153.size);
65830
              setLogistics_provider_idIsSet(true);
66031
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
-
 
66032
                {
65831
            } else { 
66033
                  LineItem _elem155; // required
65832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
66034
                  _elem155 = new LineItem();
65833
            }
66035
                  _elem155.read(iprot);
65834
            break;
66036
                  this.success.add(_elem155);
65835
          case 2: // ORDER_STATUS
66037
                }
65836
            if (field.type == org.apache.thrift.protocol.TType.I32) {
66038
                iprot.readListEnd();
65837
              this.order_status = OrderStatus.findByValue(iprot.readI32());
66039
              }
-
 
66040
            } else { 
65838
            } else { 
66041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
65839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
66042
            }
65840
            }
66043
            break;
65841
            break;
66044
          default:
65842
          default:
Line 66049... Line 65847...
66049
      iprot.readStructEnd();
65847
      iprot.readStructEnd();
66050
      validate();
65848
      validate();
66051
    }
65849
    }
66052
 
65850
 
66053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
65851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
66054
      oprot.writeStructBegin(STRUCT_DESC);
65852
      validate();
66055
 
65853
 
66056
      if (this.isSetSuccess()) {
65854
      oprot.writeStructBegin(STRUCT_DESC);
66057
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
65855
      oprot.writeFieldBegin(LOGISTICS_PROVIDER_ID_FIELD_DESC);
66058
        {
-
 
66059
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
65856
      oprot.writeI64(this.logistics_provider_id);
66060
          for (LineItem _iter156 : this.success)
65857
      oprot.writeFieldEnd();
66061
          {
65858
      if (this.order_status != null) {
66062
            _iter156.write(oprot);
65859
        oprot.writeFieldBegin(ORDER_STATUS_FIELD_DESC);
66063
          }
-
 
66064
          oprot.writeListEnd();
65860
        oprot.writeI32(this.order_status.getValue());
66065
        }
-
 
66066
        oprot.writeFieldEnd();
65861
        oprot.writeFieldEnd();
66067
      }
65862
      }
66068
      oprot.writeFieldStop();
65863
      oprot.writeFieldStop();
66069
      oprot.writeStructEnd();
65864
      oprot.writeStructEnd();
66070
    }
65865
    }
66071
 
65866
 
66072
    @Override
65867
    @Override
66073
    public String toString() {
65868
    public String toString() {
66074
      StringBuilder sb = new StringBuilder("getMissingTransferPriceLineitems_result(");
65869
      StringBuilder sb = new StringBuilder("getOrdersForProviderForStatus_args(");
66075
      boolean first = true;
65870
      boolean first = true;
66076
 
65871
 
-
 
65872
      sb.append("logistics_provider_id:");
-
 
65873
      sb.append(this.logistics_provider_id);
-
 
65874
      first = false;
-
 
65875
      if (!first) sb.append(", ");
66077
      sb.append("success:");
65876
      sb.append("order_status:");
66078
      if (this.success == null) {
65877
      if (this.order_status == null) {
66079
        sb.append("null");
65878
        sb.append("null");
66080
      } else {
65879
      } else {
66081
        sb.append(this.success);
65880
        sb.append(this.order_status);
66082
      }
65881
      }
66083
      first = false;
65882
      first = false;
66084
      sb.append(")");
65883
      sb.append(")");
66085
      return sb.toString();
65884
      return sb.toString();
66086
    }
65885
    }
Line 66097... Line 65896...
66097
      }
65896
      }
66098
    }
65897
    }
66099
 
65898
 
66100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66101
      try {
65900
      try {
-
 
65901
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65902
        __isset_bit_vector = new BitSet(1);
66102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65903
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66103
      } catch (org.apache.thrift.TException te) {
65904
      } catch (org.apache.thrift.TException te) {
66104
        throw new java.io.IOException(te);
65905
        throw new java.io.IOException(te);
66105
      }
65906
      }
66106
    }
65907
    }
66107
 
65908
 
66108
  }
65909
  }
66109
 
65910
 
66110
  public static class updateTransferPrices_args implements org.apache.thrift.TBase<updateTransferPrices_args, updateTransferPrices_args._Fields>, java.io.Serializable, Cloneable   {
-
 
66111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferPrices_args");
-
 
66112
 
-
 
66113
 
-
 
66114
 
-
 
66115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
66116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
66117
;
-
 
66118
 
-
 
66119
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
66120
 
-
 
66121
      static {
-
 
66122
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
66123
          byName.put(field.getFieldName(), field);
-
 
66124
        }
-
 
66125
      }
-
 
66126
 
-
 
66127
      /**
-
 
66128
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
66129
       */
-
 
66130
      public static _Fields findByThriftId(int fieldId) {
-
 
66131
        switch(fieldId) {
-
 
66132
          default:
-
 
66133
            return null;
-
 
66134
        }
-
 
66135
      }
-
 
66136
 
-
 
66137
      /**
-
 
66138
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
66139
       * if it is not found.
-
 
66140
       */
-
 
66141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
66142
        _Fields fields = findByThriftId(fieldId);
-
 
66143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
66144
        return fields;
-
 
66145
      }
-
 
66146
 
-
 
66147
      /**
-
 
66148
       * Find the _Fields constant that matches name, or null if its not found.
-
 
66149
       */
-
 
66150
      public static _Fields findByName(String name) {
-
 
66151
        return byName.get(name);
-
 
66152
      }
-
 
66153
 
-
 
66154
      private final short _thriftId;
-
 
66155
      private final String _fieldName;
-
 
66156
 
-
 
66157
      _Fields(short thriftId, String fieldName) {
-
 
66158
        _thriftId = thriftId;
-
 
66159
        _fieldName = fieldName;
-
 
66160
      }
-
 
66161
 
-
 
66162
      public short getThriftFieldId() {
-
 
66163
        return _thriftId;
-
 
66164
      }
-
 
66165
 
-
 
66166
      public String getFieldName() {
-
 
66167
        return _fieldName;
-
 
66168
      }
-
 
66169
    }
-
 
66170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
66171
    static {
-
 
66172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
66173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
66174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferPrices_args.class, metaDataMap);
-
 
66175
    }
-
 
66176
 
-
 
66177
    public updateTransferPrices_args() {
-
 
66178
    }
-
 
66179
 
-
 
66180
    /**
-
 
66181
     * Performs a deep copy on <i>other</i>.
-
 
66182
     */
-
 
66183
    public updateTransferPrices_args(updateTransferPrices_args other) {
-
 
66184
    }
-
 
66185
 
-
 
66186
    public updateTransferPrices_args deepCopy() {
-
 
66187
      return new updateTransferPrices_args(this);
-
 
66188
    }
-
 
66189
 
-
 
66190
    @Override
-
 
66191
    public void clear() {
-
 
66192
    }
-
 
66193
 
-
 
66194
    public void setFieldValue(_Fields field, Object value) {
-
 
66195
      switch (field) {
-
 
66196
      }
-
 
66197
    }
-
 
66198
 
-
 
66199
    public Object getFieldValue(_Fields field) {
-
 
66200
      switch (field) {
-
 
66201
      }
-
 
66202
      throw new IllegalStateException();
-
 
66203
    }
-
 
66204
 
-
 
66205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
66206
    public boolean isSet(_Fields field) {
-
 
66207
      if (field == null) {
-
 
66208
        throw new IllegalArgumentException();
-
 
66209
      }
-
 
66210
 
-
 
66211
      switch (field) {
-
 
66212
      }
-
 
66213
      throw new IllegalStateException();
-
 
66214
    }
-
 
66215
 
-
 
66216
    @Override
-
 
66217
    public boolean equals(Object that) {
-
 
66218
      if (that == null)
-
 
66219
        return false;
-
 
66220
      if (that instanceof updateTransferPrices_args)
-
 
66221
        return this.equals((updateTransferPrices_args)that);
-
 
66222
      return false;
-
 
66223
    }
-
 
66224
 
-
 
66225
    public boolean equals(updateTransferPrices_args that) {
-
 
66226
      if (that == null)
-
 
66227
        return false;
-
 
66228
 
-
 
66229
      return true;
-
 
66230
    }
-
 
66231
 
-
 
66232
    @Override
-
 
66233
    public int hashCode() {
-
 
66234
      return 0;
-
 
66235
    }
-
 
66236
 
-
 
66237
    public int compareTo(updateTransferPrices_args other) {
-
 
66238
      if (!getClass().equals(other.getClass())) {
-
 
66239
        return getClass().getName().compareTo(other.getClass().getName());
-
 
66240
      }
-
 
66241
 
-
 
66242
      int lastComparison = 0;
-
 
66243
      updateTransferPrices_args typedOther = (updateTransferPrices_args)other;
-
 
66244
 
-
 
66245
      return 0;
-
 
66246
    }
-
 
66247
 
-
 
66248
    public _Fields fieldForId(int fieldId) {
-
 
66249
      return _Fields.findByThriftId(fieldId);
-
 
66250
    }
-
 
66251
 
-
 
66252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66253
      org.apache.thrift.protocol.TField field;
-
 
66254
      iprot.readStructBegin();
-
 
66255
      while (true)
-
 
66256
      {
-
 
66257
        field = iprot.readFieldBegin();
-
 
66258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66259
          break;
-
 
66260
        }
-
 
66261
        switch (field.id) {
-
 
66262
          default:
-
 
66263
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66264
        }
-
 
66265
        iprot.readFieldEnd();
-
 
66266
      }
-
 
66267
      iprot.readStructEnd();
-
 
66268
      validate();
-
 
66269
    }
-
 
66270
 
-
 
66271
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66272
      validate();
-
 
66273
 
-
 
66274
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66275
      oprot.writeFieldStop();
-
 
66276
      oprot.writeStructEnd();
-
 
66277
    }
-
 
66278
 
-
 
66279
    @Override
-
 
66280
    public String toString() {
-
 
66281
      StringBuilder sb = new StringBuilder("updateTransferPrices_args(");
-
 
66282
      boolean first = true;
-
 
66283
 
-
 
66284
      sb.append(")");
-
 
66285
      return sb.toString();
-
 
66286
    }
-
 
66287
 
-
 
66288
    public void validate() throws org.apache.thrift.TException {
-
 
66289
      // check for required fields
-
 
66290
    }
-
 
66291
 
-
 
66292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
66293
      try {
-
 
66294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
66295
      } catch (org.apache.thrift.TException te) {
-
 
66296
        throw new java.io.IOException(te);
-
 
66297
      }
-
 
66298
    }
-
 
66299
 
-
 
66300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
66301
      try {
-
 
66302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
66303
      } catch (org.apache.thrift.TException te) {
-
 
66304
        throw new java.io.IOException(te);
-
 
66305
      }
-
 
66306
    }
-
 
66307
 
-
 
66308
  }
-
 
66309
 
-
 
66310
  public static class updateTransferPrices_result implements org.apache.thrift.TBase<updateTransferPrices_result, updateTransferPrices_result._Fields>, java.io.Serializable, Cloneable   {
65911
  public static class getOrdersForProviderForStatus_result implements org.apache.thrift.TBase<getOrdersForProviderForStatus_result, getOrdersForProviderForStatus_result._Fields>, java.io.Serializable, Cloneable   {
66311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferPrices_result");
65912
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForProviderForStatus_result");
66312
 
65913
 
-
 
65914
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
66313
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
65915
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
66314
 
65916
 
-
 
65917
    private List<Order> success; // required
66315
    private TransactionServiceException ex; // required
65918
    private TransactionServiceException ex; // required
66316
 
65919
 
66317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
66318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65922
      SUCCESS((short)0, "success"),
66319
      EX((short)1, "ex");
65923
      EX((short)1, "ex");
66320
 
65924
 
66321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65925
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66322
 
65926
 
66323
      static {
65927
      static {
Line 66329... Line 65933...
66329
      /**
65933
      /**
66330
       * Find the _Fields constant that matches fieldId, or null if its not found.
65934
       * Find the _Fields constant that matches fieldId, or null if its not found.
66331
       */
65935
       */
66332
      public static _Fields findByThriftId(int fieldId) {
65936
      public static _Fields findByThriftId(int fieldId) {
66333
        switch(fieldId) {
65937
        switch(fieldId) {
-
 
65938
          case 0: // SUCCESS
-
 
65939
            return SUCCESS;
66334
          case 1: // EX
65940
          case 1: // EX
66335
            return EX;
65941
            return EX;
66336
          default:
65942
          default:
66337
            return null;
65943
            return null;
66338
        }
65944
        }
Line 66375... Line 65981...
66375
    // isset id assignments
65981
    // isset id assignments
66376
 
65982
 
66377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
65983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
66378
    static {
65984
    static {
66379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
65985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65986
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65987
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
65988
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
66380
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
65989
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
66381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
65990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
66382
      metaDataMap = Collections.unmodifiableMap(tmpMap);
65991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
66383
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferPrices_result.class, metaDataMap);
65992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForProviderForStatus_result.class, metaDataMap);
66384
    }
65993
    }
66385
 
65994
 
66386
    public updateTransferPrices_result() {
65995
    public getOrdersForProviderForStatus_result() {
66387
    }
65996
    }
66388
 
65997
 
66389
    public updateTransferPrices_result(
65998
    public getOrdersForProviderForStatus_result(
-
 
65999
      List<Order> success,
66390
      TransactionServiceException ex)
66000
      TransactionServiceException ex)
66391
    {
66001
    {
66392
      this();
66002
      this();
-
 
66003
      this.success = success;
66393
      this.ex = ex;
66004
      this.ex = ex;
66394
    }
66005
    }
66395
 
66006
 
66396
    /**
66007
    /**
66397
     * Performs a deep copy on <i>other</i>.
66008
     * Performs a deep copy on <i>other</i>.
66398
     */
66009
     */
66399
    public updateTransferPrices_result(updateTransferPrices_result other) {
66010
    public getOrdersForProviderForStatus_result(getOrdersForProviderForStatus_result other) {
-
 
66011
      if (other.isSetSuccess()) {
-
 
66012
        List<Order> __this__success = new ArrayList<Order>();
-
 
66013
        for (Order other_element : other.success) {
-
 
66014
          __this__success.add(new Order(other_element));
-
 
66015
        }
-
 
66016
        this.success = __this__success;
-
 
66017
      }
66400
      if (other.isSetEx()) {
66018
      if (other.isSetEx()) {
66401
        this.ex = new TransactionServiceException(other.ex);
66019
        this.ex = new TransactionServiceException(other.ex);
66402
      }
66020
      }
66403
    }
66021
    }
66404
 
66022
 
66405
    public updateTransferPrices_result deepCopy() {
66023
    public getOrdersForProviderForStatus_result deepCopy() {
66406
      return new updateTransferPrices_result(this);
66024
      return new getOrdersForProviderForStatus_result(this);
66407
    }
66025
    }
66408
 
66026
 
66409
    @Override
66027
    @Override
66410
    public void clear() {
66028
    public void clear() {
-
 
66029
      this.success = null;
66411
      this.ex = null;
66030
      this.ex = null;
66412
    }
66031
    }
66413
 
66032
 
-
 
66033
    public int getSuccessSize() {
-
 
66034
      return (this.success == null) ? 0 : this.success.size();
-
 
66035
    }
-
 
66036
 
-
 
66037
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
66038
      return (this.success == null) ? null : this.success.iterator();
-
 
66039
    }
-
 
66040
 
-
 
66041
    public void addToSuccess(Order elem) {
-
 
66042
      if (this.success == null) {
-
 
66043
        this.success = new ArrayList<Order>();
-
 
66044
      }
-
 
66045
      this.success.add(elem);
-
 
66046
    }
-
 
66047
 
-
 
66048
    public List<Order> getSuccess() {
-
 
66049
      return this.success;
-
 
66050
    }
-
 
66051
 
-
 
66052
    public void setSuccess(List<Order> success) {
-
 
66053
      this.success = success;
-
 
66054
    }
-
 
66055
 
-
 
66056
    public void unsetSuccess() {
-
 
66057
      this.success = null;
-
 
66058
    }
-
 
66059
 
-
 
66060
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
66061
    public boolean isSetSuccess() {
-
 
66062
      return this.success != null;
-
 
66063
    }
-
 
66064
 
-
 
66065
    public void setSuccessIsSet(boolean value) {
-
 
66066
      if (!value) {
-
 
66067
        this.success = null;
-
 
66068
      }
-
 
66069
    }
-
 
66070
 
66414
    public TransactionServiceException getEx() {
66071
    public TransactionServiceException getEx() {
66415
      return this.ex;
66072
      return this.ex;
66416
    }
66073
    }
66417
 
66074
 
66418
    public void setEx(TransactionServiceException ex) {
66075
    public void setEx(TransactionServiceException ex) {
Line 66434... Line 66091...
66434
      }
66091
      }
66435
    }
66092
    }
66436
 
66093
 
66437
    public void setFieldValue(_Fields field, Object value) {
66094
    public void setFieldValue(_Fields field, Object value) {
66438
      switch (field) {
66095
      switch (field) {
-
 
66096
      case SUCCESS:
-
 
66097
        if (value == null) {
-
 
66098
          unsetSuccess();
-
 
66099
        } else {
-
 
66100
          setSuccess((List<Order>)value);
-
 
66101
        }
-
 
66102
        break;
-
 
66103
 
66439
      case EX:
66104
      case EX:
66440
        if (value == null) {
66105
        if (value == null) {
66441
          unsetEx();
66106
          unsetEx();
66442
        } else {
66107
        } else {
66443
          setEx((TransactionServiceException)value);
66108
          setEx((TransactionServiceException)value);
Line 66447... Line 66112...
66447
      }
66112
      }
66448
    }
66113
    }
66449
 
66114
 
66450
    public Object getFieldValue(_Fields field) {
66115
    public Object getFieldValue(_Fields field) {
66451
      switch (field) {
66116
      switch (field) {
-
 
66117
      case SUCCESS:
-
 
66118
        return getSuccess();
-
 
66119
 
66452
      case EX:
66120
      case EX:
66453
        return getEx();
66121
        return getEx();
66454
 
66122
 
66455
      }
66123
      }
66456
      throw new IllegalStateException();
66124
      throw new IllegalStateException();
Line 66461... Line 66129...
66461
      if (field == null) {
66129
      if (field == null) {
66462
        throw new IllegalArgumentException();
66130
        throw new IllegalArgumentException();
66463
      }
66131
      }
66464
 
66132
 
66465
      switch (field) {
66133
      switch (field) {
-
 
66134
      case SUCCESS:
-
 
66135
        return isSetSuccess();
66466
      case EX:
66136
      case EX:
66467
        return isSetEx();
66137
        return isSetEx();
66468
      }
66138
      }
66469
      throw new IllegalStateException();
66139
      throw new IllegalStateException();
66470
    }
66140
    }
66471
 
66141
 
66472
    @Override
66142
    @Override
66473
    public boolean equals(Object that) {
66143
    public boolean equals(Object that) {
66474
      if (that == null)
66144
      if (that == null)
66475
        return false;
66145
        return false;
66476
      if (that instanceof updateTransferPrices_result)
66146
      if (that instanceof getOrdersForProviderForStatus_result)
66477
        return this.equals((updateTransferPrices_result)that);
66147
        return this.equals((getOrdersForProviderForStatus_result)that);
66478
      return false;
66148
      return false;
66479
    }
66149
    }
66480
 
66150
 
66481
    public boolean equals(updateTransferPrices_result that) {
66151
    public boolean equals(getOrdersForProviderForStatus_result that) {
66482
      if (that == null)
66152
      if (that == null)
66483
        return false;
66153
        return false;
66484
 
66154
 
-
 
66155
      boolean this_present_success = true && this.isSetSuccess();
-
 
66156
      boolean that_present_success = true && that.isSetSuccess();
-
 
66157
      if (this_present_success || that_present_success) {
-
 
66158
        if (!(this_present_success && that_present_success))
-
 
66159
          return false;
-
 
66160
        if (!this.success.equals(that.success))
-
 
66161
          return false;
-
 
66162
      }
-
 
66163
 
66485
      boolean this_present_ex = true && this.isSetEx();
66164
      boolean this_present_ex = true && this.isSetEx();
66486
      boolean that_present_ex = true && that.isSetEx();
66165
      boolean that_present_ex = true && that.isSetEx();
66487
      if (this_present_ex || that_present_ex) {
66166
      if (this_present_ex || that_present_ex) {
66488
        if (!(this_present_ex && that_present_ex))
66167
        if (!(this_present_ex && that_present_ex))
66489
          return false;
66168
          return false;
Line 66497... Line 66176...
66497
    @Override
66176
    @Override
66498
    public int hashCode() {
66177
    public int hashCode() {
66499
      return 0;
66178
      return 0;
66500
    }
66179
    }
66501
 
66180
 
66502
    public int compareTo(updateTransferPrices_result other) {
66181
    public int compareTo(getOrdersForProviderForStatus_result other) {
66503
      if (!getClass().equals(other.getClass())) {
66182
      if (!getClass().equals(other.getClass())) {
66504
        return getClass().getName().compareTo(other.getClass().getName());
66183
        return getClass().getName().compareTo(other.getClass().getName());
66505
      }
66184
      }
66506
 
66185
 
66507
      int lastComparison = 0;
66186
      int lastComparison = 0;
66508
      updateTransferPrices_result typedOther = (updateTransferPrices_result)other;
66187
      getOrdersForProviderForStatus_result typedOther = (getOrdersForProviderForStatus_result)other;
66509
 
66188
 
-
 
66189
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
66190
      if (lastComparison != 0) {
-
 
66191
        return lastComparison;
-
 
66192
      }
-
 
66193
      if (isSetSuccess()) {
-
 
66194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
66195
        if (lastComparison != 0) {
-
 
66196
          return lastComparison;
-
 
66197
        }
-
 
66198
      }
66510
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
66199
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
66511
      if (lastComparison != 0) {
66200
      if (lastComparison != 0) {
66512
        return lastComparison;
66201
        return lastComparison;
66513
      }
66202
      }
66514
      if (isSetEx()) {
66203
      if (isSetEx()) {
Line 66532... Line 66221...
66532
        field = iprot.readFieldBegin();
66221
        field = iprot.readFieldBegin();
66533
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
66222
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
66534
          break;
66223
          break;
66535
        }
66224
        }
66536
        switch (field.id) {
66225
        switch (field.id) {
-
 
66226
          case 0: // SUCCESS
-
 
66227
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
66228
              {
-
 
66229
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
-
 
66230
                this.success = new ArrayList<Order>(_list153.size);
-
 
66231
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
-
 
66232
                {
-
 
66233
                  Order _elem155; // required
-
 
66234
                  _elem155 = new Order();
-
 
66235
                  _elem155.read(iprot);
-
 
66236
                  this.success.add(_elem155);
-
 
66237
                }
-
 
66238
                iprot.readListEnd();
-
 
66239
              }
-
 
66240
            } else { 
-
 
66241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66242
            }
-
 
66243
            break;
66537
          case 1: // EX
66244
          case 1: // EX
66538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
66245
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
66539
              this.ex = new TransactionServiceException();
66246
              this.ex = new TransactionServiceException();
66540
              this.ex.read(iprot);
66247
              this.ex.read(iprot);
66541
            } else { 
66248
            } else { 
Line 66552... Line 66259...
66552
    }
66259
    }
66553
 
66260
 
66554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
66261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
66555
      oprot.writeStructBegin(STRUCT_DESC);
66262
      oprot.writeStructBegin(STRUCT_DESC);
66556
 
66263
 
-
 
66264
      if (this.isSetSuccess()) {
-
 
66265
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
66266
        {
-
 
66267
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
66268
          for (Order _iter156 : this.success)
-
 
66269
          {
-
 
66270
            _iter156.write(oprot);
-
 
66271
          }
-
 
66272
          oprot.writeListEnd();
-
 
66273
        }
-
 
66274
        oprot.writeFieldEnd();
66557
      if (this.isSetEx()) {
66275
      } else if (this.isSetEx()) {
66558
        oprot.writeFieldBegin(EX_FIELD_DESC);
66276
        oprot.writeFieldBegin(EX_FIELD_DESC);
66559
        this.ex.write(oprot);
66277
        this.ex.write(oprot);
66560
        oprot.writeFieldEnd();
66278
        oprot.writeFieldEnd();
66561
      }
66279
      }
66562
      oprot.writeFieldStop();
66280
      oprot.writeFieldStop();
66563
      oprot.writeStructEnd();
66281
      oprot.writeStructEnd();
66564
    }
66282
    }
66565
 
66283
 
66566
    @Override
66284
    @Override
66567
    public String toString() {
66285
    public String toString() {
66568
      StringBuilder sb = new StringBuilder("updateTransferPrices_result(");
66286
      StringBuilder sb = new StringBuilder("getOrdersForProviderForStatus_result(");
66569
      boolean first = true;
66287
      boolean first = true;
66570
 
66288
 
-
 
66289
      sb.append("success:");
-
 
66290
      if (this.success == null) {
-
 
66291
        sb.append("null");
-
 
66292
      } else {
-
 
66293
        sb.append(this.success);
-
 
66294
      }
-
 
66295
      first = false;
-
 
66296
      if (!first) sb.append(", ");
66571
      sb.append("ex:");
66297
      sb.append("ex:");
66572
      if (this.ex == null) {
66298
      if (this.ex == null) {
66573
        sb.append("null");
66299
        sb.append("null");
66574
      } else {
66300
      } else {
66575
        sb.append(this.ex);
66301
        sb.append(this.ex);