Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7199
Line 218... Line 218...
218
 
218
 
219
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
219
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
220
 
220
 
221
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
221
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
222
 
222
 
-
 
223
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
224
 
223
  }
225
  }
224
 
226
 
225
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
227
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
226
 
228
 
227
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
229
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 276... Line 278...
276
 
278
 
277
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
279
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
278
 
280
 
279
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
281
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
280
 
282
 
-
 
283
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
-
 
284
 
281
  }
285
  }
282
 
286
 
283
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
287
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
284
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
288
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
285
      public Factory() {}
289
      public Factory() {}
Line 970... Line 974...
970
        throw result.wex;
974
        throw result.wex;
971
      }
975
      }
972
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
976
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
973
    }
977
    }
974
 
978
 
-
 
979
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
-
 
980
    {
-
 
981
      send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType);
-
 
982
      recv_reshipfreebie();
-
 
983
    }
-
 
984
 
-
 
985
    public void send_reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws org.apache.thrift.TException
-
 
986
    {
-
 
987
      reshipfreebie_args args = new reshipfreebie_args();
-
 
988
      args.setOldOrderId(oldOrderId);
-
 
989
      args.setNewOrderId(newOrderId);
-
 
990
      args.setFreebieItemId(freebieItemId);
-
 
991
      args.setScanType(scanType);
-
 
992
      sendBase("reshipfreebie", args);
-
 
993
    }
-
 
994
 
-
 
995
    public void recv_reshipfreebie() throws WarehouseServiceException, org.apache.thrift.TException
-
 
996
    {
-
 
997
      reshipfreebie_result result = new reshipfreebie_result();
-
 
998
      receiveBase(result, "reshipfreebie");
-
 
999
      if (result.wex != null) {
-
 
1000
        throw result.wex;
-
 
1001
      }
-
 
1002
      return;
-
 
1003
    }
-
 
1004
 
975
  }
1005
  }
976
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1006
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
977
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1007
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
978
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1008
      private org.apache.thrift.async.TAsyncClientManager clientManager;
979
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1009
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1942... Line 1972...
1942
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1943
        return (new Client(prot)).recv_scanfreebie();
1973
        return (new Client(prot)).recv_scanfreebie();
1944
      }
1974
      }
1945
    }
1975
    }
1946
 
1976
 
-
 
1977
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler) throws org.apache.thrift.TException {
-
 
1978
      checkReady();
-
 
1979
      reshipfreebie_call method_call = new reshipfreebie_call(oldOrderId, newOrderId, freebieItemId, scanType, resultHandler, this, ___protocolFactory, ___transport);
-
 
1980
      this.___currentMethod = method_call;
-
 
1981
      ___manager.call(method_call);
-
 
1982
    }
-
 
1983
 
-
 
1984
    public static class reshipfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1985
      private long oldOrderId;
-
 
1986
      private long newOrderId;
-
 
1987
      private long freebieItemId;
-
 
1988
      private ScanType scanType;
-
 
1989
      public reshipfreebie_call(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_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 {
-
 
1990
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1991
        this.oldOrderId = oldOrderId;
-
 
1992
        this.newOrderId = newOrderId;
-
 
1993
        this.freebieItemId = freebieItemId;
-
 
1994
        this.scanType = scanType;
-
 
1995
      }
-
 
1996
 
-
 
1997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1999
        reshipfreebie_args args = new reshipfreebie_args();
-
 
2000
        args.setOldOrderId(oldOrderId);
-
 
2001
        args.setNewOrderId(newOrderId);
-
 
2002
        args.setFreebieItemId(freebieItemId);
-
 
2003
        args.setScanType(scanType);
-
 
2004
        args.write(prot);
-
 
2005
        prot.writeMessageEnd();
-
 
2006
      }
-
 
2007
 
-
 
2008
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2009
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2010
          throw new IllegalStateException("Method call not finished!");
-
 
2011
        }
-
 
2012
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2013
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2014
        (new Client(prot)).recv_reshipfreebie();
-
 
2015
      }
-
 
2016
    }
-
 
2017
 
1947
  }
2018
  }
1948
 
2019
 
1949
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2020
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1950
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2021
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1951
    public Processor(I iface) {
2022
    public Processor(I iface) {
Line 1982... Line 2053...
1982
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
2053
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
1983
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
2054
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
1984
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
2055
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
1985
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
2056
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
1986
      processMap.put("scanfreebie", new scanfreebie());
2057
      processMap.put("scanfreebie", new scanfreebie());
-
 
2058
      processMap.put("reshipfreebie", new reshipfreebie());
1987
      return processMap;
2059
      return processMap;
1988
    }
2060
    }
1989
 
2061
 
1990
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
2062
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1991
      public getInventoryItem() {
2063
      public getInventoryItem() {
Line 2465... Line 2537...
2465
        }
2537
        }
2466
        return result;
2538
        return result;
2467
      }
2539
      }
2468
    }
2540
    }
2469
 
2541
 
-
 
2542
    private static class reshipfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipfreebie_args> {
-
 
2543
      public reshipfreebie() {
-
 
2544
        super("reshipfreebie");
-
 
2545
      }
-
 
2546
 
-
 
2547
      protected reshipfreebie_args getEmptyArgsInstance() {
-
 
2548
        return new reshipfreebie_args();
-
 
2549
      }
-
 
2550
 
-
 
2551
      protected reshipfreebie_result getResult(I iface, reshipfreebie_args args) throws org.apache.thrift.TException {
-
 
2552
        reshipfreebie_result result = new reshipfreebie_result();
-
 
2553
        try {
-
 
2554
          iface.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType);
-
 
2555
        } catch (WarehouseServiceException wex) {
-
 
2556
          result.wex = wex;
-
 
2557
        }
-
 
2558
        return result;
-
 
2559
      }
-
 
2560
    }
-
 
2561
 
2470
  }
2562
  }
2471
 
2563
 
2472
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2564
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2474
 
2566
 
Line 22086... Line 22178...
22086
      sb.append("wex:");
22178
      sb.append("wex:");
22087
      if (this.wex == null) {
22179
      if (this.wex == null) {
22088
        sb.append("null");
22180
        sb.append("null");
22089
      } else {
22181
      } else {
22090
        sb.append(this.wex);
22182
        sb.append(this.wex);
-
 
22183
      }
-
 
22184
      first = false;
-
 
22185
      sb.append(")");
-
 
22186
      return sb.toString();
-
 
22187
    }
-
 
22188
 
-
 
22189
    public void validate() throws org.apache.thrift.TException {
-
 
22190
      // check for required fields
-
 
22191
    }
-
 
22192
 
-
 
22193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22194
      try {
-
 
22195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22196
      } catch (org.apache.thrift.TException te) {
-
 
22197
        throw new java.io.IOException(te);
-
 
22198
      }
-
 
22199
    }
-
 
22200
 
-
 
22201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22202
      try {
-
 
22203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22204
      } catch (org.apache.thrift.TException te) {
-
 
22205
        throw new java.io.IOException(te);
-
 
22206
      }
-
 
22207
    }
-
 
22208
 
-
 
22209
  }
-
 
22210
 
-
 
22211
  public static class reshipfreebie_args implements org.apache.thrift.TBase<reshipfreebie_args, reshipfreebie_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_args");
-
 
22213
 
-
 
22214
    private static final org.apache.thrift.protocol.TField OLD_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("oldOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
22215
    private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
22216
    private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
22217
    private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)4);
-
 
22218
 
-
 
22219
    private long oldOrderId; // required
-
 
22220
    private long newOrderId; // required
-
 
22221
    private long freebieItemId; // required
-
 
22222
    private ScanType scanType; // required
-
 
22223
 
-
 
22224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22226
      OLD_ORDER_ID((short)1, "oldOrderId"),
-
 
22227
      NEW_ORDER_ID((short)2, "newOrderId"),
-
 
22228
      FREEBIE_ITEM_ID((short)3, "freebieItemId"),
-
 
22229
      /**
-
 
22230
       * 
-
 
22231
       * @see ScanType
-
 
22232
       */
-
 
22233
      SCAN_TYPE((short)4, "scanType");
-
 
22234
 
-
 
22235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22236
 
-
 
22237
      static {
-
 
22238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22239
          byName.put(field.getFieldName(), field);
-
 
22240
        }
-
 
22241
      }
-
 
22242
 
-
 
22243
      /**
-
 
22244
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22245
       */
-
 
22246
      public static _Fields findByThriftId(int fieldId) {
-
 
22247
        switch(fieldId) {
-
 
22248
          case 1: // OLD_ORDER_ID
-
 
22249
            return OLD_ORDER_ID;
-
 
22250
          case 2: // NEW_ORDER_ID
-
 
22251
            return NEW_ORDER_ID;
-
 
22252
          case 3: // FREEBIE_ITEM_ID
-
 
22253
            return FREEBIE_ITEM_ID;
-
 
22254
          case 4: // SCAN_TYPE
-
 
22255
            return SCAN_TYPE;
-
 
22256
          default:
-
 
22257
            return null;
-
 
22258
        }
-
 
22259
      }
-
 
22260
 
-
 
22261
      /**
-
 
22262
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22263
       * if it is not found.
-
 
22264
       */
-
 
22265
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22266
        _Fields fields = findByThriftId(fieldId);
-
 
22267
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22268
        return fields;
-
 
22269
      }
-
 
22270
 
-
 
22271
      /**
-
 
22272
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22273
       */
-
 
22274
      public static _Fields findByName(String name) {
-
 
22275
        return byName.get(name);
-
 
22276
      }
-
 
22277
 
-
 
22278
      private final short _thriftId;
-
 
22279
      private final String _fieldName;
-
 
22280
 
-
 
22281
      _Fields(short thriftId, String fieldName) {
-
 
22282
        _thriftId = thriftId;
-
 
22283
        _fieldName = fieldName;
-
 
22284
      }
-
 
22285
 
-
 
22286
      public short getThriftFieldId() {
-
 
22287
        return _thriftId;
-
 
22288
      }
-
 
22289
 
-
 
22290
      public String getFieldName() {
-
 
22291
        return _fieldName;
-
 
22292
      }
-
 
22293
    }
-
 
22294
 
-
 
22295
    // isset id assignments
-
 
22296
    private static final int __OLDORDERID_ISSET_ID = 0;
-
 
22297
    private static final int __NEWORDERID_ISSET_ID = 1;
-
 
22298
    private static final int __FREEBIEITEMID_ISSET_ID = 2;
-
 
22299
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
22300
 
-
 
22301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22302
    static {
-
 
22303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22304
      tmpMap.put(_Fields.OLD_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("oldOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22306
      tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22308
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
22310
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22311
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
22312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_args.class, metaDataMap);
-
 
22314
    }
-
 
22315
 
-
 
22316
    public reshipfreebie_args() {
-
 
22317
    }
-
 
22318
 
-
 
22319
    public reshipfreebie_args(
-
 
22320
      long oldOrderId,
-
 
22321
      long newOrderId,
-
 
22322
      long freebieItemId,
-
 
22323
      ScanType scanType)
-
 
22324
    {
-
 
22325
      this();
-
 
22326
      this.oldOrderId = oldOrderId;
-
 
22327
      setOldOrderIdIsSet(true);
-
 
22328
      this.newOrderId = newOrderId;
-
 
22329
      setNewOrderIdIsSet(true);
-
 
22330
      this.freebieItemId = freebieItemId;
-
 
22331
      setFreebieItemIdIsSet(true);
-
 
22332
      this.scanType = scanType;
-
 
22333
    }
-
 
22334
 
-
 
22335
    /**
-
 
22336
     * Performs a deep copy on <i>other</i>.
-
 
22337
     */
-
 
22338
    public reshipfreebie_args(reshipfreebie_args other) {
-
 
22339
      __isset_bit_vector.clear();
-
 
22340
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22341
      this.oldOrderId = other.oldOrderId;
-
 
22342
      this.newOrderId = other.newOrderId;
-
 
22343
      this.freebieItemId = other.freebieItemId;
-
 
22344
      if (other.isSetScanType()) {
-
 
22345
        this.scanType = other.scanType;
-
 
22346
      }
-
 
22347
    }
-
 
22348
 
-
 
22349
    public reshipfreebie_args deepCopy() {
-
 
22350
      return new reshipfreebie_args(this);
-
 
22351
    }
-
 
22352
 
-
 
22353
    @Override
-
 
22354
    public void clear() {
-
 
22355
      setOldOrderIdIsSet(false);
-
 
22356
      this.oldOrderId = 0;
-
 
22357
      setNewOrderIdIsSet(false);
-
 
22358
      this.newOrderId = 0;
-
 
22359
      setFreebieItemIdIsSet(false);
-
 
22360
      this.freebieItemId = 0;
-
 
22361
      this.scanType = null;
-
 
22362
    }
-
 
22363
 
-
 
22364
    public long getOldOrderId() {
-
 
22365
      return this.oldOrderId;
-
 
22366
    }
-
 
22367
 
-
 
22368
    public void setOldOrderId(long oldOrderId) {
-
 
22369
      this.oldOrderId = oldOrderId;
-
 
22370
      setOldOrderIdIsSet(true);
-
 
22371
    }
-
 
22372
 
-
 
22373
    public void unsetOldOrderId() {
-
 
22374
      __isset_bit_vector.clear(__OLDORDERID_ISSET_ID);
-
 
22375
    }
-
 
22376
 
-
 
22377
    /** Returns true if field oldOrderId is set (has been assigned a value) and false otherwise */
-
 
22378
    public boolean isSetOldOrderId() {
-
 
22379
      return __isset_bit_vector.get(__OLDORDERID_ISSET_ID);
-
 
22380
    }
-
 
22381
 
-
 
22382
    public void setOldOrderIdIsSet(boolean value) {
-
 
22383
      __isset_bit_vector.set(__OLDORDERID_ISSET_ID, value);
-
 
22384
    }
-
 
22385
 
-
 
22386
    public long getNewOrderId() {
-
 
22387
      return this.newOrderId;
-
 
22388
    }
-
 
22389
 
-
 
22390
    public void setNewOrderId(long newOrderId) {
-
 
22391
      this.newOrderId = newOrderId;
-
 
22392
      setNewOrderIdIsSet(true);
-
 
22393
    }
-
 
22394
 
-
 
22395
    public void unsetNewOrderId() {
-
 
22396
      __isset_bit_vector.clear(__NEWORDERID_ISSET_ID);
-
 
22397
    }
-
 
22398
 
-
 
22399
    /** Returns true if field newOrderId is set (has been assigned a value) and false otherwise */
-
 
22400
    public boolean isSetNewOrderId() {
-
 
22401
      return __isset_bit_vector.get(__NEWORDERID_ISSET_ID);
-
 
22402
    }
-
 
22403
 
-
 
22404
    public void setNewOrderIdIsSet(boolean value) {
-
 
22405
      __isset_bit_vector.set(__NEWORDERID_ISSET_ID, value);
-
 
22406
    }
-
 
22407
 
-
 
22408
    public long getFreebieItemId() {
-
 
22409
      return this.freebieItemId;
-
 
22410
    }
-
 
22411
 
-
 
22412
    public void setFreebieItemId(long freebieItemId) {
-
 
22413
      this.freebieItemId = freebieItemId;
-
 
22414
      setFreebieItemIdIsSet(true);
-
 
22415
    }
-
 
22416
 
-
 
22417
    public void unsetFreebieItemId() {
-
 
22418
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
-
 
22419
    }
-
 
22420
 
-
 
22421
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
-
 
22422
    public boolean isSetFreebieItemId() {
-
 
22423
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
-
 
22424
    }
-
 
22425
 
-
 
22426
    public void setFreebieItemIdIsSet(boolean value) {
-
 
22427
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
-
 
22428
    }
-
 
22429
 
-
 
22430
    /**
-
 
22431
     * 
-
 
22432
     * @see ScanType
-
 
22433
     */
-
 
22434
    public ScanType getScanType() {
-
 
22435
      return this.scanType;
-
 
22436
    }
-
 
22437
 
-
 
22438
    /**
-
 
22439
     * 
-
 
22440
     * @see ScanType
-
 
22441
     */
-
 
22442
    public void setScanType(ScanType scanType) {
-
 
22443
      this.scanType = scanType;
-
 
22444
    }
-
 
22445
 
-
 
22446
    public void unsetScanType() {
-
 
22447
      this.scanType = null;
-
 
22448
    }
-
 
22449
 
-
 
22450
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
-
 
22451
    public boolean isSetScanType() {
-
 
22452
      return this.scanType != null;
-
 
22453
    }
-
 
22454
 
-
 
22455
    public void setScanTypeIsSet(boolean value) {
-
 
22456
      if (!value) {
-
 
22457
        this.scanType = null;
-
 
22458
      }
-
 
22459
    }
-
 
22460
 
-
 
22461
    public void setFieldValue(_Fields field, Object value) {
-
 
22462
      switch (field) {
-
 
22463
      case OLD_ORDER_ID:
-
 
22464
        if (value == null) {
-
 
22465
          unsetOldOrderId();
-
 
22466
        } else {
-
 
22467
          setOldOrderId((Long)value);
-
 
22468
        }
-
 
22469
        break;
-
 
22470
 
-
 
22471
      case NEW_ORDER_ID:
-
 
22472
        if (value == null) {
-
 
22473
          unsetNewOrderId();
-
 
22474
        } else {
-
 
22475
          setNewOrderId((Long)value);
-
 
22476
        }
-
 
22477
        break;
-
 
22478
 
-
 
22479
      case FREEBIE_ITEM_ID:
-
 
22480
        if (value == null) {
-
 
22481
          unsetFreebieItemId();
-
 
22482
        } else {
-
 
22483
          setFreebieItemId((Long)value);
-
 
22484
        }
-
 
22485
        break;
-
 
22486
 
-
 
22487
      case SCAN_TYPE:
-
 
22488
        if (value == null) {
-
 
22489
          unsetScanType();
-
 
22490
        } else {
-
 
22491
          setScanType((ScanType)value);
-
 
22492
        }
-
 
22493
        break;
-
 
22494
 
-
 
22495
      }
-
 
22496
    }
-
 
22497
 
-
 
22498
    public Object getFieldValue(_Fields field) {
-
 
22499
      switch (field) {
-
 
22500
      case OLD_ORDER_ID:
-
 
22501
        return Long.valueOf(getOldOrderId());
-
 
22502
 
-
 
22503
      case NEW_ORDER_ID:
-
 
22504
        return Long.valueOf(getNewOrderId());
-
 
22505
 
-
 
22506
      case FREEBIE_ITEM_ID:
-
 
22507
        return Long.valueOf(getFreebieItemId());
-
 
22508
 
-
 
22509
      case SCAN_TYPE:
-
 
22510
        return getScanType();
-
 
22511
 
-
 
22512
      }
-
 
22513
      throw new IllegalStateException();
-
 
22514
    }
-
 
22515
 
-
 
22516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22517
    public boolean isSet(_Fields field) {
-
 
22518
      if (field == null) {
-
 
22519
        throw new IllegalArgumentException();
-
 
22520
      }
-
 
22521
 
-
 
22522
      switch (field) {
-
 
22523
      case OLD_ORDER_ID:
-
 
22524
        return isSetOldOrderId();
-
 
22525
      case NEW_ORDER_ID:
-
 
22526
        return isSetNewOrderId();
-
 
22527
      case FREEBIE_ITEM_ID:
-
 
22528
        return isSetFreebieItemId();
-
 
22529
      case SCAN_TYPE:
-
 
22530
        return isSetScanType();
-
 
22531
      }
-
 
22532
      throw new IllegalStateException();
-
 
22533
    }
-
 
22534
 
-
 
22535
    @Override
-
 
22536
    public boolean equals(Object that) {
-
 
22537
      if (that == null)
-
 
22538
        return false;
-
 
22539
      if (that instanceof reshipfreebie_args)
-
 
22540
        return this.equals((reshipfreebie_args)that);
-
 
22541
      return false;
-
 
22542
    }
-
 
22543
 
-
 
22544
    public boolean equals(reshipfreebie_args that) {
-
 
22545
      if (that == null)
-
 
22546
        return false;
-
 
22547
 
-
 
22548
      boolean this_present_oldOrderId = true;
-
 
22549
      boolean that_present_oldOrderId = true;
-
 
22550
      if (this_present_oldOrderId || that_present_oldOrderId) {
-
 
22551
        if (!(this_present_oldOrderId && that_present_oldOrderId))
-
 
22552
          return false;
-
 
22553
        if (this.oldOrderId != that.oldOrderId)
-
 
22554
          return false;
-
 
22555
      }
-
 
22556
 
-
 
22557
      boolean this_present_newOrderId = true;
-
 
22558
      boolean that_present_newOrderId = true;
-
 
22559
      if (this_present_newOrderId || that_present_newOrderId) {
-
 
22560
        if (!(this_present_newOrderId && that_present_newOrderId))
-
 
22561
          return false;
-
 
22562
        if (this.newOrderId != that.newOrderId)
-
 
22563
          return false;
-
 
22564
      }
-
 
22565
 
-
 
22566
      boolean this_present_freebieItemId = true;
-
 
22567
      boolean that_present_freebieItemId = true;
-
 
22568
      if (this_present_freebieItemId || that_present_freebieItemId) {
-
 
22569
        if (!(this_present_freebieItemId && that_present_freebieItemId))
-
 
22570
          return false;
-
 
22571
        if (this.freebieItemId != that.freebieItemId)
-
 
22572
          return false;
-
 
22573
      }
-
 
22574
 
-
 
22575
      boolean this_present_scanType = true && this.isSetScanType();
-
 
22576
      boolean that_present_scanType = true && that.isSetScanType();
-
 
22577
      if (this_present_scanType || that_present_scanType) {
-
 
22578
        if (!(this_present_scanType && that_present_scanType))
-
 
22579
          return false;
-
 
22580
        if (!this.scanType.equals(that.scanType))
-
 
22581
          return false;
-
 
22582
      }
-
 
22583
 
-
 
22584
      return true;
-
 
22585
    }
-
 
22586
 
-
 
22587
    @Override
-
 
22588
    public int hashCode() {
-
 
22589
      return 0;
-
 
22590
    }
-
 
22591
 
-
 
22592
    public int compareTo(reshipfreebie_args other) {
-
 
22593
      if (!getClass().equals(other.getClass())) {
-
 
22594
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22595
      }
-
 
22596
 
-
 
22597
      int lastComparison = 0;
-
 
22598
      reshipfreebie_args typedOther = (reshipfreebie_args)other;
-
 
22599
 
-
 
22600
      lastComparison = Boolean.valueOf(isSetOldOrderId()).compareTo(typedOther.isSetOldOrderId());
-
 
22601
      if (lastComparison != 0) {
-
 
22602
        return lastComparison;
-
 
22603
      }
-
 
22604
      if (isSetOldOrderId()) {
-
 
22605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldOrderId, typedOther.oldOrderId);
-
 
22606
        if (lastComparison != 0) {
-
 
22607
          return lastComparison;
-
 
22608
        }
-
 
22609
      }
-
 
22610
      lastComparison = Boolean.valueOf(isSetNewOrderId()).compareTo(typedOther.isSetNewOrderId());
-
 
22611
      if (lastComparison != 0) {
-
 
22612
        return lastComparison;
-
 
22613
      }
-
 
22614
      if (isSetNewOrderId()) {
-
 
22615
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOrderId, typedOther.newOrderId);
-
 
22616
        if (lastComparison != 0) {
-
 
22617
          return lastComparison;
-
 
22618
        }
-
 
22619
      }
-
 
22620
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
-
 
22621
      if (lastComparison != 0) {
-
 
22622
        return lastComparison;
-
 
22623
      }
-
 
22624
      if (isSetFreebieItemId()) {
-
 
22625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
-
 
22626
        if (lastComparison != 0) {
-
 
22627
          return lastComparison;
-
 
22628
        }
-
 
22629
      }
-
 
22630
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
-
 
22631
      if (lastComparison != 0) {
-
 
22632
        return lastComparison;
-
 
22633
      }
-
 
22634
      if (isSetScanType()) {
-
 
22635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
-
 
22636
        if (lastComparison != 0) {
-
 
22637
          return lastComparison;
-
 
22638
        }
-
 
22639
      }
-
 
22640
      return 0;
-
 
22641
    }
-
 
22642
 
-
 
22643
    public _Fields fieldForId(int fieldId) {
-
 
22644
      return _Fields.findByThriftId(fieldId);
-
 
22645
    }
-
 
22646
 
-
 
22647
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22648
      org.apache.thrift.protocol.TField field;
-
 
22649
      iprot.readStructBegin();
-
 
22650
      while (true)
-
 
22651
      {
-
 
22652
        field = iprot.readFieldBegin();
-
 
22653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22654
          break;
-
 
22655
        }
-
 
22656
        switch (field.id) {
-
 
22657
          case 1: // OLD_ORDER_ID
-
 
22658
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22659
              this.oldOrderId = iprot.readI64();
-
 
22660
              setOldOrderIdIsSet(true);
-
 
22661
            } else { 
-
 
22662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22663
            }
-
 
22664
            break;
-
 
22665
          case 2: // NEW_ORDER_ID
-
 
22666
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22667
              this.newOrderId = iprot.readI64();
-
 
22668
              setNewOrderIdIsSet(true);
-
 
22669
            } else { 
-
 
22670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22671
            }
-
 
22672
            break;
-
 
22673
          case 3: // FREEBIE_ITEM_ID
-
 
22674
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
22675
              this.freebieItemId = iprot.readI64();
-
 
22676
              setFreebieItemIdIsSet(true);
-
 
22677
            } else { 
-
 
22678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22679
            }
-
 
22680
            break;
-
 
22681
          case 4: // SCAN_TYPE
-
 
22682
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
22683
              this.scanType = ScanType.findByValue(iprot.readI32());
-
 
22684
            } else { 
-
 
22685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22686
            }
-
 
22687
            break;
-
 
22688
          default:
-
 
22689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22690
        }
-
 
22691
        iprot.readFieldEnd();
-
 
22692
      }
-
 
22693
      iprot.readStructEnd();
-
 
22694
      validate();
-
 
22695
    }
-
 
22696
 
-
 
22697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22698
      validate();
-
 
22699
 
-
 
22700
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22701
      oprot.writeFieldBegin(OLD_ORDER_ID_FIELD_DESC);
-
 
22702
      oprot.writeI64(this.oldOrderId);
-
 
22703
      oprot.writeFieldEnd();
-
 
22704
      oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
-
 
22705
      oprot.writeI64(this.newOrderId);
-
 
22706
      oprot.writeFieldEnd();
-
 
22707
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
-
 
22708
      oprot.writeI64(this.freebieItemId);
-
 
22709
      oprot.writeFieldEnd();
-
 
22710
      if (this.scanType != null) {
-
 
22711
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
-
 
22712
        oprot.writeI32(this.scanType.getValue());
-
 
22713
        oprot.writeFieldEnd();
-
 
22714
      }
-
 
22715
      oprot.writeFieldStop();
-
 
22716
      oprot.writeStructEnd();
-
 
22717
    }
-
 
22718
 
-
 
22719
    @Override
-
 
22720
    public String toString() {
-
 
22721
      StringBuilder sb = new StringBuilder("reshipfreebie_args(");
-
 
22722
      boolean first = true;
-
 
22723
 
-
 
22724
      sb.append("oldOrderId:");
-
 
22725
      sb.append(this.oldOrderId);
-
 
22726
      first = false;
-
 
22727
      if (!first) sb.append(", ");
-
 
22728
      sb.append("newOrderId:");
-
 
22729
      sb.append(this.newOrderId);
-
 
22730
      first = false;
-
 
22731
      if (!first) sb.append(", ");
-
 
22732
      sb.append("freebieItemId:");
-
 
22733
      sb.append(this.freebieItemId);
-
 
22734
      first = false;
-
 
22735
      if (!first) sb.append(", ");
-
 
22736
      sb.append("scanType:");
-
 
22737
      if (this.scanType == null) {
-
 
22738
        sb.append("null");
-
 
22739
      } else {
-
 
22740
        sb.append(this.scanType);
-
 
22741
      }
-
 
22742
      first = false;
-
 
22743
      sb.append(")");
-
 
22744
      return sb.toString();
-
 
22745
    }
-
 
22746
 
-
 
22747
    public void validate() throws org.apache.thrift.TException {
-
 
22748
      // check for required fields
-
 
22749
    }
-
 
22750
 
-
 
22751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22752
      try {
-
 
22753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22754
      } catch (org.apache.thrift.TException te) {
-
 
22755
        throw new java.io.IOException(te);
-
 
22756
      }
-
 
22757
    }
-
 
22758
 
-
 
22759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22760
      try {
-
 
22761
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
22762
        __isset_bit_vector = new BitSet(1);
-
 
22763
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22764
      } catch (org.apache.thrift.TException te) {
-
 
22765
        throw new java.io.IOException(te);
-
 
22766
      }
-
 
22767
    }
-
 
22768
 
-
 
22769
  }
-
 
22770
 
-
 
22771
  public static class reshipfreebie_result implements org.apache.thrift.TBase<reshipfreebie_result, reshipfreebie_result._Fields>, java.io.Serializable, Cloneable   {
-
 
22772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_result");
-
 
22773
 
-
 
22774
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
22775
 
-
 
22776
    private WarehouseServiceException wex; // required
-
 
22777
 
-
 
22778
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22779
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22780
      WEX((short)1, "wex");
-
 
22781
 
-
 
22782
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22783
 
-
 
22784
      static {
-
 
22785
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22786
          byName.put(field.getFieldName(), field);
-
 
22787
        }
-
 
22788
      }
-
 
22789
 
-
 
22790
      /**
-
 
22791
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22792
       */
-
 
22793
      public static _Fields findByThriftId(int fieldId) {
-
 
22794
        switch(fieldId) {
-
 
22795
          case 1: // WEX
-
 
22796
            return WEX;
-
 
22797
          default:
-
 
22798
            return null;
-
 
22799
        }
-
 
22800
      }
-
 
22801
 
-
 
22802
      /**
-
 
22803
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22804
       * if it is not found.
-
 
22805
       */
-
 
22806
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22807
        _Fields fields = findByThriftId(fieldId);
-
 
22808
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22809
        return fields;
-
 
22810
      }
-
 
22811
 
-
 
22812
      /**
-
 
22813
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22814
       */
-
 
22815
      public static _Fields findByName(String name) {
-
 
22816
        return byName.get(name);
-
 
22817
      }
-
 
22818
 
-
 
22819
      private final short _thriftId;
-
 
22820
      private final String _fieldName;
-
 
22821
 
-
 
22822
      _Fields(short thriftId, String fieldName) {
-
 
22823
        _thriftId = thriftId;
-
 
22824
        _fieldName = fieldName;
-
 
22825
      }
-
 
22826
 
-
 
22827
      public short getThriftFieldId() {
-
 
22828
        return _thriftId;
-
 
22829
      }
-
 
22830
 
-
 
22831
      public String getFieldName() {
-
 
22832
        return _fieldName;
-
 
22833
      }
-
 
22834
    }
-
 
22835
 
-
 
22836
    // isset id assignments
-
 
22837
 
-
 
22838
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22839
    static {
-
 
22840
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22841
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22842
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
22843
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22844
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_result.class, metaDataMap);
-
 
22845
    }
-
 
22846
 
-
 
22847
    public reshipfreebie_result() {
-
 
22848
    }
-
 
22849
 
-
 
22850
    public reshipfreebie_result(
-
 
22851
      WarehouseServiceException wex)
-
 
22852
    {
-
 
22853
      this();
-
 
22854
      this.wex = wex;
-
 
22855
    }
-
 
22856
 
-
 
22857
    /**
-
 
22858
     * Performs a deep copy on <i>other</i>.
-
 
22859
     */
-
 
22860
    public reshipfreebie_result(reshipfreebie_result other) {
-
 
22861
      if (other.isSetWex()) {
-
 
22862
        this.wex = new WarehouseServiceException(other.wex);
-
 
22863
      }
-
 
22864
    }
-
 
22865
 
-
 
22866
    public reshipfreebie_result deepCopy() {
-
 
22867
      return new reshipfreebie_result(this);
-
 
22868
    }
-
 
22869
 
-
 
22870
    @Override
-
 
22871
    public void clear() {
-
 
22872
      this.wex = null;
-
 
22873
    }
-
 
22874
 
-
 
22875
    public WarehouseServiceException getWex() {
-
 
22876
      return this.wex;
-
 
22877
    }
-
 
22878
 
-
 
22879
    public void setWex(WarehouseServiceException wex) {
-
 
22880
      this.wex = wex;
-
 
22881
    }
-
 
22882
 
-
 
22883
    public void unsetWex() {
-
 
22884
      this.wex = null;
-
 
22885
    }
-
 
22886
 
-
 
22887
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
22888
    public boolean isSetWex() {
-
 
22889
      return this.wex != null;
-
 
22890
    }
-
 
22891
 
-
 
22892
    public void setWexIsSet(boolean value) {
-
 
22893
      if (!value) {
-
 
22894
        this.wex = null;
-
 
22895
      }
-
 
22896
    }
-
 
22897
 
-
 
22898
    public void setFieldValue(_Fields field, Object value) {
-
 
22899
      switch (field) {
-
 
22900
      case WEX:
-
 
22901
        if (value == null) {
-
 
22902
          unsetWex();
-
 
22903
        } else {
-
 
22904
          setWex((WarehouseServiceException)value);
-
 
22905
        }
-
 
22906
        break;
-
 
22907
 
-
 
22908
      }
-
 
22909
    }
-
 
22910
 
-
 
22911
    public Object getFieldValue(_Fields field) {
-
 
22912
      switch (field) {
-
 
22913
      case WEX:
-
 
22914
        return getWex();
-
 
22915
 
-
 
22916
      }
-
 
22917
      throw new IllegalStateException();
-
 
22918
    }
-
 
22919
 
-
 
22920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22921
    public boolean isSet(_Fields field) {
-
 
22922
      if (field == null) {
-
 
22923
        throw new IllegalArgumentException();
-
 
22924
      }
-
 
22925
 
-
 
22926
      switch (field) {
-
 
22927
      case WEX:
-
 
22928
        return isSetWex();
-
 
22929
      }
-
 
22930
      throw new IllegalStateException();
-
 
22931
    }
-
 
22932
 
-
 
22933
    @Override
-
 
22934
    public boolean equals(Object that) {
-
 
22935
      if (that == null)
-
 
22936
        return false;
-
 
22937
      if (that instanceof reshipfreebie_result)
-
 
22938
        return this.equals((reshipfreebie_result)that);
-
 
22939
      return false;
-
 
22940
    }
-
 
22941
 
-
 
22942
    public boolean equals(reshipfreebie_result that) {
-
 
22943
      if (that == null)
-
 
22944
        return false;
-
 
22945
 
-
 
22946
      boolean this_present_wex = true && this.isSetWex();
-
 
22947
      boolean that_present_wex = true && that.isSetWex();
-
 
22948
      if (this_present_wex || that_present_wex) {
-
 
22949
        if (!(this_present_wex && that_present_wex))
-
 
22950
          return false;
-
 
22951
        if (!this.wex.equals(that.wex))
-
 
22952
          return false;
-
 
22953
      }
-
 
22954
 
-
 
22955
      return true;
-
 
22956
    }
-
 
22957
 
-
 
22958
    @Override
-
 
22959
    public int hashCode() {
-
 
22960
      return 0;
-
 
22961
    }
-
 
22962
 
-
 
22963
    public int compareTo(reshipfreebie_result other) {
-
 
22964
      if (!getClass().equals(other.getClass())) {
-
 
22965
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22966
      }
-
 
22967
 
-
 
22968
      int lastComparison = 0;
-
 
22969
      reshipfreebie_result typedOther = (reshipfreebie_result)other;
-
 
22970
 
-
 
22971
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
22972
      if (lastComparison != 0) {
-
 
22973
        return lastComparison;
-
 
22974
      }
-
 
22975
      if (isSetWex()) {
-
 
22976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
22977
        if (lastComparison != 0) {
-
 
22978
          return lastComparison;
-
 
22979
        }
-
 
22980
      }
-
 
22981
      return 0;
-
 
22982
    }
-
 
22983
 
-
 
22984
    public _Fields fieldForId(int fieldId) {
-
 
22985
      return _Fields.findByThriftId(fieldId);
-
 
22986
    }
-
 
22987
 
-
 
22988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22989
      org.apache.thrift.protocol.TField field;
-
 
22990
      iprot.readStructBegin();
-
 
22991
      while (true)
-
 
22992
      {
-
 
22993
        field = iprot.readFieldBegin();
-
 
22994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22995
          break;
-
 
22996
        }
-
 
22997
        switch (field.id) {
-
 
22998
          case 1: // WEX
-
 
22999
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
23000
              this.wex = new WarehouseServiceException();
-
 
23001
              this.wex.read(iprot);
-
 
23002
            } else { 
-
 
23003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23004
            }
-
 
23005
            break;
-
 
23006
          default:
-
 
23007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
23008
        }
-
 
23009
        iprot.readFieldEnd();
-
 
23010
      }
-
 
23011
      iprot.readStructEnd();
-
 
23012
      validate();
-
 
23013
    }
-
 
23014
 
-
 
23015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
23016
      oprot.writeStructBegin(STRUCT_DESC);
-
 
23017
 
-
 
23018
      if (this.isSetWex()) {
-
 
23019
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
23020
        this.wex.write(oprot);
-
 
23021
        oprot.writeFieldEnd();
-
 
23022
      }
-
 
23023
      oprot.writeFieldStop();
-
 
23024
      oprot.writeStructEnd();
-
 
23025
    }
-
 
23026
 
-
 
23027
    @Override
-
 
23028
    public String toString() {
-
 
23029
      StringBuilder sb = new StringBuilder("reshipfreebie_result(");
-
 
23030
      boolean first = true;
-
 
23031
 
-
 
23032
      sb.append("wex:");
-
 
23033
      if (this.wex == null) {
-
 
23034
        sb.append("null");
-
 
23035
      } else {
-
 
23036
        sb.append(this.wex);
22091
      }
23037
      }
22092
      first = false;
23038
      first = false;
22093
      sb.append(")");
23039
      sb.append(")");
22094
      return sb.toString();
23040
      return sb.toString();
22095
    }
23041
    }