Subversion Repositories SmartDukaan

Rev

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

Rev 4454 Rev 4478
Line 351... Line 351...
351
     * If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
351
     * If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
352
     * If the order is in any other state, it returns false.
352
     * If the order is in any other state, it returns false.
353
     * Throws an exception if the order with the given id couldn't be found.
353
     * Throws an exception if the order with the given id couldn't be found.
354
     * 
354
     * 
355
     * @param orderId
355
     * @param orderId
-
 
356
     * @param receiveCondition
356
     */
357
     */
357
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
358
    public boolean receiveReturn(long orderId, long receiveCondition) throws TransactionServiceException, org.apache.thrift.TException;
358
 
359
 
359
    /**
360
    /**
360
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,
361
     * Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,
361
     * the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
362
     * the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
362
     * If the order is in any other state, it returns false.
363
     * If the order is in any other state, it returns false.
Line 704... Line 705...
704
 
705
 
705
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
706
    public void authorizePickup(long orderId, String pickupNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;
706
 
707
 
707
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
708
    public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
708
 
709
 
709
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
710
    public void receiveReturn(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;
710
 
711
 
711
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
712
    public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;
712
 
713
 
713
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
714
    public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;
714
 
715
 
Line 1987... Line 1988...
1987
        return result.success;
1988
        return result.success;
1988
      }
1989
      }
1989
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
1990
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
1990
    }
1991
    }
1991
 
1992
 
1992
    public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1993
    public boolean receiveReturn(long orderId, long receiveCondition) throws TransactionServiceException, org.apache.thrift.TException
1993
    {
1994
    {
1994
      send_receiveReturn(orderId);
1995
      send_receiveReturn(orderId, receiveCondition);
1995
      return recv_receiveReturn();
1996
      return recv_receiveReturn();
1996
    }
1997
    }
1997
 
1998
 
1998
    public void send_receiveReturn(long orderId) throws org.apache.thrift.TException
1999
    public void send_receiveReturn(long orderId, long receiveCondition) throws org.apache.thrift.TException
1999
    {
2000
    {
2000
      receiveReturn_args args = new receiveReturn_args();
2001
      receiveReturn_args args = new receiveReturn_args();
2001
      args.setOrderId(orderId);
2002
      args.setOrderId(orderId);
-
 
2003
      args.setReceiveCondition(receiveCondition);
2002
      sendBase("receiveReturn", args);
2004
      sendBase("receiveReturn", args);
2003
    }
2005
    }
2004
 
2006
 
2005
    public boolean recv_receiveReturn() throws TransactionServiceException, org.apache.thrift.TException
2007
    public boolean recv_receiveReturn() throws TransactionServiceException, org.apache.thrift.TException
2006
    {
2008
    {
Line 4359... Line 4361...
4359
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4361
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4360
        return (new Client(prot)).recv_markDoasAsPickedUp();
4362
        return (new Client(prot)).recv_markDoasAsPickedUp();
4361
      }
4363
      }
4362
    }
4364
    }
4363
 
4365
 
4364
    public void receiveReturn(long orderId, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler) throws org.apache.thrift.TException {
4366
    public void receiveReturn(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler) throws org.apache.thrift.TException {
4365
      checkReady();
4367
      checkReady();
4366
      receiveReturn_call method_call = new receiveReturn_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4368
      receiveReturn_call method_call = new receiveReturn_call(orderId, receiveCondition, resultHandler, this, ___protocolFactory, ___transport);
4367
      this.___currentMethod = method_call;
4369
      this.___currentMethod = method_call;
4368
      ___manager.call(method_call);
4370
      ___manager.call(method_call);
4369
    }
4371
    }
4370
 
4372
 
4371
    public static class receiveReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
4373
    public static class receiveReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
4372
      private long orderId;
4374
      private long orderId;
-
 
4375
      private long receiveCondition;
4373
      public receiveReturn_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_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 {
4376
      public receiveReturn_call(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_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 {
4374
        super(client, protocolFactory, transport, resultHandler, false);
4377
        super(client, protocolFactory, transport, resultHandler, false);
4375
        this.orderId = orderId;
4378
        this.orderId = orderId;
-
 
4379
        this.receiveCondition = receiveCondition;
4376
      }
4380
      }
4377
 
4381
 
4378
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4382
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4379
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
4383
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
4380
        receiveReturn_args args = new receiveReturn_args();
4384
        receiveReturn_args args = new receiveReturn_args();
4381
        args.setOrderId(orderId);
4385
        args.setOrderId(orderId);
-
 
4386
        args.setReceiveCondition(receiveCondition);
4382
        args.write(prot);
4387
        args.write(prot);
4383
        prot.writeMessageEnd();
4388
        prot.writeMessageEnd();
4384
      }
4389
      }
4385
 
4390
 
4386
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
4391
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
Line 6380... Line 6385...
6380
      }
6385
      }
6381
 
6386
 
6382
      protected receiveReturn_result getResult(I iface, receiveReturn_args args) throws org.apache.thrift.TException {
6387
      protected receiveReturn_result getResult(I iface, receiveReturn_args args) throws org.apache.thrift.TException {
6383
        receiveReturn_result result = new receiveReturn_result();
6388
        receiveReturn_result result = new receiveReturn_result();
6384
        try {
6389
        try {
6385
          result.success = iface.receiveReturn(args.orderId);
6390
          result.success = iface.receiveReturn(args.orderId, args.receiveCondition);
6386
          result.setSuccessIsSet(true);
6391
          result.setSuccessIsSet(true);
6387
        } catch (TransactionServiceException ex) {
6392
        } catch (TransactionServiceException ex) {
6388
          result.ex = ex;
6393
          result.ex = ex;
6389
        }
6394
        }
6390
        return result;
6395
        return result;
Line 41932... Line 41937...
41932
 
41937
 
41933
  public static class receiveReturn_args implements org.apache.thrift.TBase<receiveReturn_args, receiveReturn_args._Fields>, java.io.Serializable, Cloneable   {
41938
  public static class receiveReturn_args implements org.apache.thrift.TBase<receiveReturn_args, receiveReturn_args._Fields>, java.io.Serializable, Cloneable   {
41934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_args");
41939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_args");
41935
 
41940
 
41936
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
41941
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
41942
    private static final org.apache.thrift.protocol.TField RECEIVE_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("receiveCondition", org.apache.thrift.protocol.TType.I64, (short)2);
41937
 
41943
 
41938
    private long orderId; // required
41944
    private long orderId; // required
-
 
41945
    private long receiveCondition; // required
41939
 
41946
 
41940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41948
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41942
      ORDER_ID((short)1, "orderId");
41949
      ORDER_ID((short)1, "orderId"),
-
 
41950
      RECEIVE_CONDITION((short)2, "receiveCondition");
41943
 
41951
 
41944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41952
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41945
 
41953
 
41946
      static {
41954
      static {
41947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41955
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 41954... Line 41962...
41954
       */
41962
       */
41955
      public static _Fields findByThriftId(int fieldId) {
41963
      public static _Fields findByThriftId(int fieldId) {
41956
        switch(fieldId) {
41964
        switch(fieldId) {
41957
          case 1: // ORDER_ID
41965
          case 1: // ORDER_ID
41958
            return ORDER_ID;
41966
            return ORDER_ID;
-
 
41967
          case 2: // RECEIVE_CONDITION
-
 
41968
            return RECEIVE_CONDITION;
41959
          default:
41969
          default:
41960
            return null;
41970
            return null;
41961
        }
41971
        }
41962
      }
41972
      }
41963
 
41973
 
Line 41995... Line 42005...
41995
      }
42005
      }
41996
    }
42006
    }
41997
 
42007
 
41998
    // isset id assignments
42008
    // isset id assignments
41999
    private static final int __ORDERID_ISSET_ID = 0;
42009
    private static final int __ORDERID_ISSET_ID = 0;
-
 
42010
    private static final int __RECEIVECONDITION_ISSET_ID = 1;
42000
    private BitSet __isset_bit_vector = new BitSet(1);
42011
    private BitSet __isset_bit_vector = new BitSet(2);
42001
 
42012
 
42002
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42003
    static {
42014
    static {
42004
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42005
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42016
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42006
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42017
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42018
      tmpMap.put(_Fields.RECEIVE_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("receiveCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42007
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42020
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42008
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);
42021
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);
42009
    }
42022
    }
42010
 
42023
 
42011
    public receiveReturn_args() {
42024
    public receiveReturn_args() {
42012
    }
42025
    }
42013
 
42026
 
42014
    public receiveReturn_args(
42027
    public receiveReturn_args(
42015
      long orderId)
42028
      long orderId,
-
 
42029
      long receiveCondition)
42016
    {
42030
    {
42017
      this();
42031
      this();
42018
      this.orderId = orderId;
42032
      this.orderId = orderId;
42019
      setOrderIdIsSet(true);
42033
      setOrderIdIsSet(true);
-
 
42034
      this.receiveCondition = receiveCondition;
-
 
42035
      setReceiveConditionIsSet(true);
42020
    }
42036
    }
42021
 
42037
 
42022
    /**
42038
    /**
42023
     * Performs a deep copy on <i>other</i>.
42039
     * Performs a deep copy on <i>other</i>.
42024
     */
42040
     */
42025
    public receiveReturn_args(receiveReturn_args other) {
42041
    public receiveReturn_args(receiveReturn_args other) {
42026
      __isset_bit_vector.clear();
42042
      __isset_bit_vector.clear();
42027
      __isset_bit_vector.or(other.__isset_bit_vector);
42043
      __isset_bit_vector.or(other.__isset_bit_vector);
42028
      this.orderId = other.orderId;
42044
      this.orderId = other.orderId;
-
 
42045
      this.receiveCondition = other.receiveCondition;
42029
    }
42046
    }
42030
 
42047
 
42031
    public receiveReturn_args deepCopy() {
42048
    public receiveReturn_args deepCopy() {
42032
      return new receiveReturn_args(this);
42049
      return new receiveReturn_args(this);
42033
    }
42050
    }
42034
 
42051
 
42035
    @Override
42052
    @Override
42036
    public void clear() {
42053
    public void clear() {
42037
      setOrderIdIsSet(false);
42054
      setOrderIdIsSet(false);
42038
      this.orderId = 0;
42055
      this.orderId = 0;
-
 
42056
      setReceiveConditionIsSet(false);
-
 
42057
      this.receiveCondition = 0;
42039
    }
42058
    }
42040
 
42059
 
42041
    public long getOrderId() {
42060
    public long getOrderId() {
42042
      return this.orderId;
42061
      return this.orderId;
42043
    }
42062
    }
Line 42058... Line 42077...
42058
 
42077
 
42059
    public void setOrderIdIsSet(boolean value) {
42078
    public void setOrderIdIsSet(boolean value) {
42060
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
42079
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
42061
    }
42080
    }
42062
 
42081
 
-
 
42082
    public long getReceiveCondition() {
-
 
42083
      return this.receiveCondition;
-
 
42084
    }
-
 
42085
 
-
 
42086
    public void setReceiveCondition(long receiveCondition) {
-
 
42087
      this.receiveCondition = receiveCondition;
-
 
42088
      setReceiveConditionIsSet(true);
-
 
42089
    }
-
 
42090
 
-
 
42091
    public void unsetReceiveCondition() {
-
 
42092
      __isset_bit_vector.clear(__RECEIVECONDITION_ISSET_ID);
-
 
42093
    }
-
 
42094
 
-
 
42095
    /** Returns true if field receiveCondition is set (has been assigned a value) and false otherwise */
-
 
42096
    public boolean isSetReceiveCondition() {
-
 
42097
      return __isset_bit_vector.get(__RECEIVECONDITION_ISSET_ID);
-
 
42098
    }
-
 
42099
 
-
 
42100
    public void setReceiveConditionIsSet(boolean value) {
-
 
42101
      __isset_bit_vector.set(__RECEIVECONDITION_ISSET_ID, value);
-
 
42102
    }
-
 
42103
 
42063
    public void setFieldValue(_Fields field, Object value) {
42104
    public void setFieldValue(_Fields field, Object value) {
42064
      switch (field) {
42105
      switch (field) {
42065
      case ORDER_ID:
42106
      case ORDER_ID:
42066
        if (value == null) {
42107
        if (value == null) {
42067
          unsetOrderId();
42108
          unsetOrderId();
42068
        } else {
42109
        } else {
42069
          setOrderId((Long)value);
42110
          setOrderId((Long)value);
42070
        }
42111
        }
42071
        break;
42112
        break;
42072
 
42113
 
-
 
42114
      case RECEIVE_CONDITION:
-
 
42115
        if (value == null) {
-
 
42116
          unsetReceiveCondition();
-
 
42117
        } else {
-
 
42118
          setReceiveCondition((Long)value);
-
 
42119
        }
-
 
42120
        break;
-
 
42121
 
42073
      }
42122
      }
42074
    }
42123
    }
42075
 
42124
 
42076
    public Object getFieldValue(_Fields field) {
42125
    public Object getFieldValue(_Fields field) {
42077
      switch (field) {
42126
      switch (field) {
42078
      case ORDER_ID:
42127
      case ORDER_ID:
42079
        return Long.valueOf(getOrderId());
42128
        return Long.valueOf(getOrderId());
42080
 
42129
 
-
 
42130
      case RECEIVE_CONDITION:
-
 
42131
        return Long.valueOf(getReceiveCondition());
-
 
42132
 
42081
      }
42133
      }
42082
      throw new IllegalStateException();
42134
      throw new IllegalStateException();
42083
    }
42135
    }
42084
 
42136
 
42085
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 42089... Line 42141...
42089
      }
42141
      }
42090
 
42142
 
42091
      switch (field) {
42143
      switch (field) {
42092
      case ORDER_ID:
42144
      case ORDER_ID:
42093
        return isSetOrderId();
42145
        return isSetOrderId();
-
 
42146
      case RECEIVE_CONDITION:
-
 
42147
        return isSetReceiveCondition();
42094
      }
42148
      }
42095
      throw new IllegalStateException();
42149
      throw new IllegalStateException();
42096
    }
42150
    }
42097
 
42151
 
42098
    @Override
42152
    @Override
Line 42115... Line 42169...
42115
          return false;
42169
          return false;
42116
        if (this.orderId != that.orderId)
42170
        if (this.orderId != that.orderId)
42117
          return false;
42171
          return false;
42118
      }
42172
      }
42119
 
42173
 
-
 
42174
      boolean this_present_receiveCondition = true;
-
 
42175
      boolean that_present_receiveCondition = true;
-
 
42176
      if (this_present_receiveCondition || that_present_receiveCondition) {
-
 
42177
        if (!(this_present_receiveCondition && that_present_receiveCondition))
-
 
42178
          return false;
-
 
42179
        if (this.receiveCondition != that.receiveCondition)
-
 
42180
          return false;
-
 
42181
      }
-
 
42182
 
42120
      return true;
42183
      return true;
42121
    }
42184
    }
42122
 
42185
 
42123
    @Override
42186
    @Override
42124
    public int hashCode() {
42187
    public int hashCode() {
Line 42141... Line 42204...
42141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
42204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
42142
        if (lastComparison != 0) {
42205
        if (lastComparison != 0) {
42143
          return lastComparison;
42206
          return lastComparison;
42144
        }
42207
        }
42145
      }
42208
      }
-
 
42209
      lastComparison = Boolean.valueOf(isSetReceiveCondition()).compareTo(typedOther.isSetReceiveCondition());
-
 
42210
      if (lastComparison != 0) {
-
 
42211
        return lastComparison;
-
 
42212
      }
-
 
42213
      if (isSetReceiveCondition()) {
-
 
42214
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receiveCondition, typedOther.receiveCondition);
-
 
42215
        if (lastComparison != 0) {
-
 
42216
          return lastComparison;
-
 
42217
        }
-
 
42218
      }
42146
      return 0;
42219
      return 0;
42147
    }
42220
    }
42148
 
42221
 
42149
    public _Fields fieldForId(int fieldId) {
42222
    public _Fields fieldForId(int fieldId) {
42150
      return _Fields.findByThriftId(fieldId);
42223
      return _Fields.findByThriftId(fieldId);
Line 42166... Line 42239...
42166
              setOrderIdIsSet(true);
42239
              setOrderIdIsSet(true);
42167
            } else { 
42240
            } else { 
42168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42169
            }
42242
            }
42170
            break;
42243
            break;
-
 
42244
          case 2: // RECEIVE_CONDITION
-
 
42245
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42246
              this.receiveCondition = iprot.readI64();
-
 
42247
              setReceiveConditionIsSet(true);
-
 
42248
            } else { 
-
 
42249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42250
            }
-
 
42251
            break;
42171
          default:
42252
          default:
42172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42173
        }
42254
        }
42174
        iprot.readFieldEnd();
42255
        iprot.readFieldEnd();
42175
      }
42256
      }
Line 42182... Line 42263...
42182
 
42263
 
42183
      oprot.writeStructBegin(STRUCT_DESC);
42264
      oprot.writeStructBegin(STRUCT_DESC);
42184
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
42265
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
42185
      oprot.writeI64(this.orderId);
42266
      oprot.writeI64(this.orderId);
42186
      oprot.writeFieldEnd();
42267
      oprot.writeFieldEnd();
-
 
42268
      oprot.writeFieldBegin(RECEIVE_CONDITION_FIELD_DESC);
-
 
42269
      oprot.writeI64(this.receiveCondition);
-
 
42270
      oprot.writeFieldEnd();
42187
      oprot.writeFieldStop();
42271
      oprot.writeFieldStop();
42188
      oprot.writeStructEnd();
42272
      oprot.writeStructEnd();
42189
    }
42273
    }
42190
 
42274
 
42191
    @Override
42275
    @Override
Line 42194... Line 42278...
42194
      boolean first = true;
42278
      boolean first = true;
42195
 
42279
 
42196
      sb.append("orderId:");
42280
      sb.append("orderId:");
42197
      sb.append(this.orderId);
42281
      sb.append(this.orderId);
42198
      first = false;
42282
      first = false;
-
 
42283
      if (!first) sb.append(", ");
-
 
42284
      sb.append("receiveCondition:");
-
 
42285
      sb.append(this.receiveCondition);
-
 
42286
      first = false;
42199
      sb.append(")");
42287
      sb.append(")");
42200
      return sb.toString();
42288
      return sb.toString();
42201
    }
42289
    }
42202
 
42290
 
42203
    public void validate() throws org.apache.thrift.TException {
42291
    public void validate() throws org.apache.thrift.TException {