Subversion Repositories SmartDukaan

Rev

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

Rev 7199 Rev 7210
Line 117... Line 117...
117
     * @param endDate
117
     * @param endDate
118
     */
118
     */
119
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException;
119
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException;
120
 
120
 
121
    /**
121
    /**
-
 
122
     * Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
-
 
123
     * 
-
 
124
     * @param startDate
-
 
125
     * @param endDate
-
 
126
     */
-
 
127
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
128
 
-
 
129
    /**
122
     * Returns the invoices and the count of scans against on a given day.
130
     * Returns the invoices and the count of scans against on a given day.
123
     * 
131
     * 
124
     * @param date
132
     * @param date
125
     */
133
     */
126
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException;
134
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException;
Line 246... Line 254...
246
 
254
 
247
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
255
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
248
 
256
 
249
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
257
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
250
 
258
 
-
 
259
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException;
-
 
260
 
251
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
261
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
252
 
262
 
253
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
263
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
254
 
264
 
255
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
265
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
Line 587... Line 597...
587
        return result.success;
597
        return result.success;
588
      }
598
      }
589
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
599
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
590
    }
600
    }
591
 
601
 
-
 
602
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
-
 
603
    {
-
 
604
      send_getPurchaseScansByGrnDate(startDate, endDate);
-
 
605
      return recv_getPurchaseScansByGrnDate();
-
 
606
    }
-
 
607
 
-
 
608
    public void send_getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
-
 
609
    {
-
 
610
      getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
-
 
611
      args.setStartDate(startDate);
-
 
612
      args.setEndDate(endDate);
-
 
613
      sendBase("getPurchaseScansByGrnDate", args);
-
 
614
    }
-
 
615
 
-
 
616
    public List<DetailedPurchaseScan> recv_getPurchaseScansByGrnDate() throws org.apache.thrift.TException
-
 
617
    {
-
 
618
      getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
-
 
619
      receiveBase(result, "getPurchaseScansByGrnDate");
-
 
620
      if (result.isSetSuccess()) {
-
 
621
        return result.success;
-
 
622
      }
-
 
623
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
-
 
624
    }
-
 
625
 
592
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
626
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
593
    {
627
    {
594
      send_fetchScansPerInvoiceNumber(date);
628
      send_fetchScansPerInvoiceNumber(date);
595
      return recv_fetchScansPerInvoiceNumber();
629
      return recv_fetchScansPerInvoiceNumber();
596
    }
630
    }
Line 1421... Line 1455...
1421
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1455
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1422
        return (new Client(prot)).recv_getPurchaseScans();
1456
        return (new Client(prot)).recv_getPurchaseScans();
1423
      }
1457
      }
1424
    }
1458
    }
1425
 
1459
 
-
 
1460
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException {
-
 
1461
      checkReady();
-
 
1462
      getPurchaseScansByGrnDate_call method_call = new getPurchaseScansByGrnDate_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
1463
      this.___currentMethod = method_call;
-
 
1464
      ___manager.call(method_call);
-
 
1465
    }
-
 
1466
 
-
 
1467
    public static class getPurchaseScansByGrnDate_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1468
      private long startDate;
-
 
1469
      private long endDate;
-
 
1470
      public getPurchaseScansByGrnDate_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_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 {
-
 
1471
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1472
        this.startDate = startDate;
-
 
1473
        this.endDate = endDate;
-
 
1474
      }
-
 
1475
 
-
 
1476
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1477
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScansByGrnDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1478
        getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
-
 
1479
        args.setStartDate(startDate);
-
 
1480
        args.setEndDate(endDate);
-
 
1481
        args.write(prot);
-
 
1482
        prot.writeMessageEnd();
-
 
1483
      }
-
 
1484
 
-
 
1485
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
-
 
1486
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1487
          throw new IllegalStateException("Method call not finished!");
-
 
1488
        }
-
 
1489
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1490
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1491
        return (new Client(prot)).recv_getPurchaseScansByGrnDate();
-
 
1492
      }
-
 
1493
    }
-
 
1494
 
1426
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
1495
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
1427
      checkReady();
1496
      checkReady();
1428
      fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
1497
      fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
1429
      this.___currentMethod = method_call;
1498
      this.___currentMethod = method_call;
1430
      ___manager.call(method_call);
1499
      ___manager.call(method_call);
Line 2037... Line 2106...
2037
      processMap.put("getItemNumbers", new getItemNumbers());
2106
      processMap.put("getItemNumbers", new getItemNumbers());
2038
      processMap.put("getItemIds", new getItemIds());
2107
      processMap.put("getItemIds", new getItemIds());
2039
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
2108
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
2040
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
2109
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
2041
      processMap.put("getPurchaseScans", new getPurchaseScans());
2110
      processMap.put("getPurchaseScans", new getPurchaseScans());
-
 
2111
      processMap.put("getPurchaseScansByGrnDate", new getPurchaseScansByGrnDate());
2042
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
2112
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
2043
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
2113
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
2044
      processMap.put("getInventoryAge", new getInventoryAge());
2114
      processMap.put("getInventoryAge", new getInventoryAge());
2045
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
2115
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
2046
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
2116
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
Line 2261... Line 2331...
2261
        result.success = iface.getPurchaseScans(args.startDate, args.endDate);
2331
        result.success = iface.getPurchaseScans(args.startDate, args.endDate);
2262
        return result;
2332
        return result;
2263
      }
2333
      }
2264
    }
2334
    }
2265
 
2335
 
-
 
2336
    private static class getPurchaseScansByGrnDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScansByGrnDate_args> {
-
 
2337
      public getPurchaseScansByGrnDate() {
-
 
2338
        super("getPurchaseScansByGrnDate");
-
 
2339
      }
-
 
2340
 
-
 
2341
      protected getPurchaseScansByGrnDate_args getEmptyArgsInstance() {
-
 
2342
        return new getPurchaseScansByGrnDate_args();
-
 
2343
      }
-
 
2344
 
-
 
2345
      protected getPurchaseScansByGrnDate_result getResult(I iface, getPurchaseScansByGrnDate_args args) throws org.apache.thrift.TException {
-
 
2346
        getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
-
 
2347
        result.success = iface.getPurchaseScansByGrnDate(args.startDate, args.endDate);
-
 
2348
        return result;
-
 
2349
      }
-
 
2350
    }
-
 
2351
 
2266
    private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
2352
    private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
2267
      public fetchScansPerInvoiceNumber() {
2353
      public fetchScansPerInvoiceNumber() {
2268
        super("fetchScansPerInvoiceNumber");
2354
        super("fetchScansPerInvoiceNumber");
2269
      }
2355
      }
2270
 
2356
 
Line 11105... Line 11191...
11105
      }
11191
      }
11106
    }
11192
    }
11107
 
11193
 
11108
  }
11194
  }
11109
 
11195
 
-
 
11196
  public static class getPurchaseScansByGrnDate_args implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_args, getPurchaseScansByGrnDate_args._Fields>, java.io.Serializable, Cloneable   {
-
 
11197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_args");
-
 
11198
 
-
 
11199
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
11200
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
11201
 
-
 
11202
    private long startDate; // required
-
 
11203
    private long endDate; // required
-
 
11204
 
-
 
11205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11207
      START_DATE((short)1, "startDate"),
-
 
11208
      END_DATE((short)2, "endDate");
-
 
11209
 
-
 
11210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11211
 
-
 
11212
      static {
-
 
11213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11214
          byName.put(field.getFieldName(), field);
-
 
11215
        }
-
 
11216
      }
-
 
11217
 
-
 
11218
      /**
-
 
11219
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11220
       */
-
 
11221
      public static _Fields findByThriftId(int fieldId) {
-
 
11222
        switch(fieldId) {
-
 
11223
          case 1: // START_DATE
-
 
11224
            return START_DATE;
-
 
11225
          case 2: // END_DATE
-
 
11226
            return END_DATE;
-
 
11227
          default:
-
 
11228
            return null;
-
 
11229
        }
-
 
11230
      }
-
 
11231
 
-
 
11232
      /**
-
 
11233
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11234
       * if it is not found.
-
 
11235
       */
-
 
11236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11237
        _Fields fields = findByThriftId(fieldId);
-
 
11238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11239
        return fields;
-
 
11240
      }
-
 
11241
 
-
 
11242
      /**
-
 
11243
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11244
       */
-
 
11245
      public static _Fields findByName(String name) {
-
 
11246
        return byName.get(name);
-
 
11247
      }
-
 
11248
 
-
 
11249
      private final short _thriftId;
-
 
11250
      private final String _fieldName;
-
 
11251
 
-
 
11252
      _Fields(short thriftId, String fieldName) {
-
 
11253
        _thriftId = thriftId;
-
 
11254
        _fieldName = fieldName;
-
 
11255
      }
-
 
11256
 
-
 
11257
      public short getThriftFieldId() {
-
 
11258
        return _thriftId;
-
 
11259
      }
-
 
11260
 
-
 
11261
      public String getFieldName() {
-
 
11262
        return _fieldName;
-
 
11263
      }
-
 
11264
    }
-
 
11265
 
-
 
11266
    // isset id assignments
-
 
11267
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
11268
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
11269
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
11270
 
-
 
11271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11272
    static {
-
 
11273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11274
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11276
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
11278
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11279
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_args.class, metaDataMap);
-
 
11280
    }
-
 
11281
 
-
 
11282
    public getPurchaseScansByGrnDate_args() {
-
 
11283
    }
-
 
11284
 
-
 
11285
    public getPurchaseScansByGrnDate_args(
-
 
11286
      long startDate,
-
 
11287
      long endDate)
-
 
11288
    {
-
 
11289
      this();
-
 
11290
      this.startDate = startDate;
-
 
11291
      setStartDateIsSet(true);
-
 
11292
      this.endDate = endDate;
-
 
11293
      setEndDateIsSet(true);
-
 
11294
    }
-
 
11295
 
-
 
11296
    /**
-
 
11297
     * Performs a deep copy on <i>other</i>.
-
 
11298
     */
-
 
11299
    public getPurchaseScansByGrnDate_args(getPurchaseScansByGrnDate_args other) {
-
 
11300
      __isset_bit_vector.clear();
-
 
11301
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11302
      this.startDate = other.startDate;
-
 
11303
      this.endDate = other.endDate;
-
 
11304
    }
-
 
11305
 
-
 
11306
    public getPurchaseScansByGrnDate_args deepCopy() {
-
 
11307
      return new getPurchaseScansByGrnDate_args(this);
-
 
11308
    }
-
 
11309
 
-
 
11310
    @Override
-
 
11311
    public void clear() {
-
 
11312
      setStartDateIsSet(false);
-
 
11313
      this.startDate = 0;
-
 
11314
      setEndDateIsSet(false);
-
 
11315
      this.endDate = 0;
-
 
11316
    }
-
 
11317
 
-
 
11318
    public long getStartDate() {
-
 
11319
      return this.startDate;
-
 
11320
    }
-
 
11321
 
-
 
11322
    public void setStartDate(long startDate) {
-
 
11323
      this.startDate = startDate;
-
 
11324
      setStartDateIsSet(true);
-
 
11325
    }
-
 
11326
 
-
 
11327
    public void unsetStartDate() {
-
 
11328
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
11329
    }
-
 
11330
 
-
 
11331
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
11332
    public boolean isSetStartDate() {
-
 
11333
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
11334
    }
-
 
11335
 
-
 
11336
    public void setStartDateIsSet(boolean value) {
-
 
11337
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
11338
    }
-
 
11339
 
-
 
11340
    public long getEndDate() {
-
 
11341
      return this.endDate;
-
 
11342
    }
-
 
11343
 
-
 
11344
    public void setEndDate(long endDate) {
-
 
11345
      this.endDate = endDate;
-
 
11346
      setEndDateIsSet(true);
-
 
11347
    }
-
 
11348
 
-
 
11349
    public void unsetEndDate() {
-
 
11350
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
11351
    }
-
 
11352
 
-
 
11353
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
11354
    public boolean isSetEndDate() {
-
 
11355
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
11356
    }
-
 
11357
 
-
 
11358
    public void setEndDateIsSet(boolean value) {
-
 
11359
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
11360
    }
-
 
11361
 
-
 
11362
    public void setFieldValue(_Fields field, Object value) {
-
 
11363
      switch (field) {
-
 
11364
      case START_DATE:
-
 
11365
        if (value == null) {
-
 
11366
          unsetStartDate();
-
 
11367
        } else {
-
 
11368
          setStartDate((Long)value);
-
 
11369
        }
-
 
11370
        break;
-
 
11371
 
-
 
11372
      case END_DATE:
-
 
11373
        if (value == null) {
-
 
11374
          unsetEndDate();
-
 
11375
        } else {
-
 
11376
          setEndDate((Long)value);
-
 
11377
        }
-
 
11378
        break;
-
 
11379
 
-
 
11380
      }
-
 
11381
    }
-
 
11382
 
-
 
11383
    public Object getFieldValue(_Fields field) {
-
 
11384
      switch (field) {
-
 
11385
      case START_DATE:
-
 
11386
        return Long.valueOf(getStartDate());
-
 
11387
 
-
 
11388
      case END_DATE:
-
 
11389
        return Long.valueOf(getEndDate());
-
 
11390
 
-
 
11391
      }
-
 
11392
      throw new IllegalStateException();
-
 
11393
    }
-
 
11394
 
-
 
11395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11396
    public boolean isSet(_Fields field) {
-
 
11397
      if (field == null) {
-
 
11398
        throw new IllegalArgumentException();
-
 
11399
      }
-
 
11400
 
-
 
11401
      switch (field) {
-
 
11402
      case START_DATE:
-
 
11403
        return isSetStartDate();
-
 
11404
      case END_DATE:
-
 
11405
        return isSetEndDate();
-
 
11406
      }
-
 
11407
      throw new IllegalStateException();
-
 
11408
    }
-
 
11409
 
-
 
11410
    @Override
-
 
11411
    public boolean equals(Object that) {
-
 
11412
      if (that == null)
-
 
11413
        return false;
-
 
11414
      if (that instanceof getPurchaseScansByGrnDate_args)
-
 
11415
        return this.equals((getPurchaseScansByGrnDate_args)that);
-
 
11416
      return false;
-
 
11417
    }
-
 
11418
 
-
 
11419
    public boolean equals(getPurchaseScansByGrnDate_args that) {
-
 
11420
      if (that == null)
-
 
11421
        return false;
-
 
11422
 
-
 
11423
      boolean this_present_startDate = true;
-
 
11424
      boolean that_present_startDate = true;
-
 
11425
      if (this_present_startDate || that_present_startDate) {
-
 
11426
        if (!(this_present_startDate && that_present_startDate))
-
 
11427
          return false;
-
 
11428
        if (this.startDate != that.startDate)
-
 
11429
          return false;
-
 
11430
      }
-
 
11431
 
-
 
11432
      boolean this_present_endDate = true;
-
 
11433
      boolean that_present_endDate = true;
-
 
11434
      if (this_present_endDate || that_present_endDate) {
-
 
11435
        if (!(this_present_endDate && that_present_endDate))
-
 
11436
          return false;
-
 
11437
        if (this.endDate != that.endDate)
-
 
11438
          return false;
-
 
11439
      }
-
 
11440
 
-
 
11441
      return true;
-
 
11442
    }
-
 
11443
 
-
 
11444
    @Override
-
 
11445
    public int hashCode() {
-
 
11446
      return 0;
-
 
11447
    }
-
 
11448
 
-
 
11449
    public int compareTo(getPurchaseScansByGrnDate_args other) {
-
 
11450
      if (!getClass().equals(other.getClass())) {
-
 
11451
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11452
      }
-
 
11453
 
-
 
11454
      int lastComparison = 0;
-
 
11455
      getPurchaseScansByGrnDate_args typedOther = (getPurchaseScansByGrnDate_args)other;
-
 
11456
 
-
 
11457
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
11458
      if (lastComparison != 0) {
-
 
11459
        return lastComparison;
-
 
11460
      }
-
 
11461
      if (isSetStartDate()) {
-
 
11462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
11463
        if (lastComparison != 0) {
-
 
11464
          return lastComparison;
-
 
11465
        }
-
 
11466
      }
-
 
11467
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
11468
      if (lastComparison != 0) {
-
 
11469
        return lastComparison;
-
 
11470
      }
-
 
11471
      if (isSetEndDate()) {
-
 
11472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
11473
        if (lastComparison != 0) {
-
 
11474
          return lastComparison;
-
 
11475
        }
-
 
11476
      }
-
 
11477
      return 0;
-
 
11478
    }
-
 
11479
 
-
 
11480
    public _Fields fieldForId(int fieldId) {
-
 
11481
      return _Fields.findByThriftId(fieldId);
-
 
11482
    }
-
 
11483
 
-
 
11484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11485
      org.apache.thrift.protocol.TField field;
-
 
11486
      iprot.readStructBegin();
-
 
11487
      while (true)
-
 
11488
      {
-
 
11489
        field = iprot.readFieldBegin();
-
 
11490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11491
          break;
-
 
11492
        }
-
 
11493
        switch (field.id) {
-
 
11494
          case 1: // START_DATE
-
 
11495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
11496
              this.startDate = iprot.readI64();
-
 
11497
              setStartDateIsSet(true);
-
 
11498
            } else { 
-
 
11499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11500
            }
-
 
11501
            break;
-
 
11502
          case 2: // END_DATE
-
 
11503
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
11504
              this.endDate = iprot.readI64();
-
 
11505
              setEndDateIsSet(true);
-
 
11506
            } else { 
-
 
11507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11508
            }
-
 
11509
            break;
-
 
11510
          default:
-
 
11511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11512
        }
-
 
11513
        iprot.readFieldEnd();
-
 
11514
      }
-
 
11515
      iprot.readStructEnd();
-
 
11516
      validate();
-
 
11517
    }
-
 
11518
 
-
 
11519
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11520
      validate();
-
 
11521
 
-
 
11522
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11523
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
11524
      oprot.writeI64(this.startDate);
-
 
11525
      oprot.writeFieldEnd();
-
 
11526
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
11527
      oprot.writeI64(this.endDate);
-
 
11528
      oprot.writeFieldEnd();
-
 
11529
      oprot.writeFieldStop();
-
 
11530
      oprot.writeStructEnd();
-
 
11531
    }
-
 
11532
 
-
 
11533
    @Override
-
 
11534
    public String toString() {
-
 
11535
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_args(");
-
 
11536
      boolean first = true;
-
 
11537
 
-
 
11538
      sb.append("startDate:");
-
 
11539
      sb.append(this.startDate);
-
 
11540
      first = false;
-
 
11541
      if (!first) sb.append(", ");
-
 
11542
      sb.append("endDate:");
-
 
11543
      sb.append(this.endDate);
-
 
11544
      first = false;
-
 
11545
      sb.append(")");
-
 
11546
      return sb.toString();
-
 
11547
    }
-
 
11548
 
-
 
11549
    public void validate() throws org.apache.thrift.TException {
-
 
11550
      // check for required fields
-
 
11551
    }
-
 
11552
 
-
 
11553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11554
      try {
-
 
11555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11556
      } catch (org.apache.thrift.TException te) {
-
 
11557
        throw new java.io.IOException(te);
-
 
11558
      }
-
 
11559
    }
-
 
11560
 
-
 
11561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11562
      try {
-
 
11563
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
11564
        __isset_bit_vector = new BitSet(1);
-
 
11565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11566
      } catch (org.apache.thrift.TException te) {
-
 
11567
        throw new java.io.IOException(te);
-
 
11568
      }
-
 
11569
    }
-
 
11570
 
-
 
11571
  }
-
 
11572
 
-
 
11573
  public static class getPurchaseScansByGrnDate_result implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_result, getPurchaseScansByGrnDate_result._Fields>, java.io.Serializable, Cloneable   {
-
 
11574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_result");
-
 
11575
 
-
 
11576
    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);
-
 
11577
 
-
 
11578
    private List<DetailedPurchaseScan> success; // required
-
 
11579
 
-
 
11580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11582
      SUCCESS((short)0, "success");
-
 
11583
 
-
 
11584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11585
 
-
 
11586
      static {
-
 
11587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11588
          byName.put(field.getFieldName(), field);
-
 
11589
        }
-
 
11590
      }
-
 
11591
 
-
 
11592
      /**
-
 
11593
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11594
       */
-
 
11595
      public static _Fields findByThriftId(int fieldId) {
-
 
11596
        switch(fieldId) {
-
 
11597
          case 0: // SUCCESS
-
 
11598
            return SUCCESS;
-
 
11599
          default:
-
 
11600
            return null;
-
 
11601
        }
-
 
11602
      }
-
 
11603
 
-
 
11604
      /**
-
 
11605
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11606
       * if it is not found.
-
 
11607
       */
-
 
11608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11609
        _Fields fields = findByThriftId(fieldId);
-
 
11610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11611
        return fields;
-
 
11612
      }
-
 
11613
 
-
 
11614
      /**
-
 
11615
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11616
       */
-
 
11617
      public static _Fields findByName(String name) {
-
 
11618
        return byName.get(name);
-
 
11619
      }
-
 
11620
 
-
 
11621
      private final short _thriftId;
-
 
11622
      private final String _fieldName;
-
 
11623
 
-
 
11624
      _Fields(short thriftId, String fieldName) {
-
 
11625
        _thriftId = thriftId;
-
 
11626
        _fieldName = fieldName;
-
 
11627
      }
-
 
11628
 
-
 
11629
      public short getThriftFieldId() {
-
 
11630
        return _thriftId;
-
 
11631
      }
-
 
11632
 
-
 
11633
      public String getFieldName() {
-
 
11634
        return _fieldName;
-
 
11635
      }
-
 
11636
    }
-
 
11637
 
-
 
11638
    // isset id assignments
-
 
11639
 
-
 
11640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11641
    static {
-
 
11642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11643
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11644
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
11645
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
-
 
11646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_result.class, metaDataMap);
-
 
11648
    }
-
 
11649
 
-
 
11650
    public getPurchaseScansByGrnDate_result() {
-
 
11651
    }
-
 
11652
 
-
 
11653
    public getPurchaseScansByGrnDate_result(
-
 
11654
      List<DetailedPurchaseScan> success)
-
 
11655
    {
-
 
11656
      this();
-
 
11657
      this.success = success;
-
 
11658
    }
-
 
11659
 
-
 
11660
    /**
-
 
11661
     * Performs a deep copy on <i>other</i>.
-
 
11662
     */
-
 
11663
    public getPurchaseScansByGrnDate_result(getPurchaseScansByGrnDate_result other) {
-
 
11664
      if (other.isSetSuccess()) {
-
 
11665
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
-
 
11666
        for (DetailedPurchaseScan other_element : other.success) {
-
 
11667
          __this__success.add(new DetailedPurchaseScan(other_element));
-
 
11668
        }
-
 
11669
        this.success = __this__success;
-
 
11670
      }
-
 
11671
    }
-
 
11672
 
-
 
11673
    public getPurchaseScansByGrnDate_result deepCopy() {
-
 
11674
      return new getPurchaseScansByGrnDate_result(this);
-
 
11675
    }
-
 
11676
 
-
 
11677
    @Override
-
 
11678
    public void clear() {
-
 
11679
      this.success = null;
-
 
11680
    }
-
 
11681
 
-
 
11682
    public int getSuccessSize() {
-
 
11683
      return (this.success == null) ? 0 : this.success.size();
-
 
11684
    }
-
 
11685
 
-
 
11686
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
-
 
11687
      return (this.success == null) ? null : this.success.iterator();
-
 
11688
    }
-
 
11689
 
-
 
11690
    public void addToSuccess(DetailedPurchaseScan elem) {
-
 
11691
      if (this.success == null) {
-
 
11692
        this.success = new ArrayList<DetailedPurchaseScan>();
-
 
11693
      }
-
 
11694
      this.success.add(elem);
-
 
11695
    }
-
 
11696
 
-
 
11697
    public List<DetailedPurchaseScan> getSuccess() {
-
 
11698
      return this.success;
-
 
11699
    }
-
 
11700
 
-
 
11701
    public void setSuccess(List<DetailedPurchaseScan> success) {
-
 
11702
      this.success = success;
-
 
11703
    }
-
 
11704
 
-
 
11705
    public void unsetSuccess() {
-
 
11706
      this.success = null;
-
 
11707
    }
-
 
11708
 
-
 
11709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
11710
    public boolean isSetSuccess() {
-
 
11711
      return this.success != null;
-
 
11712
    }
-
 
11713
 
-
 
11714
    public void setSuccessIsSet(boolean value) {
-
 
11715
      if (!value) {
-
 
11716
        this.success = null;
-
 
11717
      }
-
 
11718
    }
-
 
11719
 
-
 
11720
    public void setFieldValue(_Fields field, Object value) {
-
 
11721
      switch (field) {
-
 
11722
      case SUCCESS:
-
 
11723
        if (value == null) {
-
 
11724
          unsetSuccess();
-
 
11725
        } else {
-
 
11726
          setSuccess((List<DetailedPurchaseScan>)value);
-
 
11727
        }
-
 
11728
        break;
-
 
11729
 
-
 
11730
      }
-
 
11731
    }
-
 
11732
 
-
 
11733
    public Object getFieldValue(_Fields field) {
-
 
11734
      switch (field) {
-
 
11735
      case SUCCESS:
-
 
11736
        return getSuccess();
-
 
11737
 
-
 
11738
      }
-
 
11739
      throw new IllegalStateException();
-
 
11740
    }
-
 
11741
 
-
 
11742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11743
    public boolean isSet(_Fields field) {
-
 
11744
      if (field == null) {
-
 
11745
        throw new IllegalArgumentException();
-
 
11746
      }
-
 
11747
 
-
 
11748
      switch (field) {
-
 
11749
      case SUCCESS:
-
 
11750
        return isSetSuccess();
-
 
11751
      }
-
 
11752
      throw new IllegalStateException();
-
 
11753
    }
-
 
11754
 
-
 
11755
    @Override
-
 
11756
    public boolean equals(Object that) {
-
 
11757
      if (that == null)
-
 
11758
        return false;
-
 
11759
      if (that instanceof getPurchaseScansByGrnDate_result)
-
 
11760
        return this.equals((getPurchaseScansByGrnDate_result)that);
-
 
11761
      return false;
-
 
11762
    }
-
 
11763
 
-
 
11764
    public boolean equals(getPurchaseScansByGrnDate_result that) {
-
 
11765
      if (that == null)
-
 
11766
        return false;
-
 
11767
 
-
 
11768
      boolean this_present_success = true && this.isSetSuccess();
-
 
11769
      boolean that_present_success = true && that.isSetSuccess();
-
 
11770
      if (this_present_success || that_present_success) {
-
 
11771
        if (!(this_present_success && that_present_success))
-
 
11772
          return false;
-
 
11773
        if (!this.success.equals(that.success))
-
 
11774
          return false;
-
 
11775
      }
-
 
11776
 
-
 
11777
      return true;
-
 
11778
    }
-
 
11779
 
-
 
11780
    @Override
-
 
11781
    public int hashCode() {
-
 
11782
      return 0;
-
 
11783
    }
-
 
11784
 
-
 
11785
    public int compareTo(getPurchaseScansByGrnDate_result other) {
-
 
11786
      if (!getClass().equals(other.getClass())) {
-
 
11787
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11788
      }
-
 
11789
 
-
 
11790
      int lastComparison = 0;
-
 
11791
      getPurchaseScansByGrnDate_result typedOther = (getPurchaseScansByGrnDate_result)other;
-
 
11792
 
-
 
11793
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
11794
      if (lastComparison != 0) {
-
 
11795
        return lastComparison;
-
 
11796
      }
-
 
11797
      if (isSetSuccess()) {
-
 
11798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
11799
        if (lastComparison != 0) {
-
 
11800
          return lastComparison;
-
 
11801
        }
-
 
11802
      }
-
 
11803
      return 0;
-
 
11804
    }
-
 
11805
 
-
 
11806
    public _Fields fieldForId(int fieldId) {
-
 
11807
      return _Fields.findByThriftId(fieldId);
-
 
11808
    }
-
 
11809
 
-
 
11810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11811
      org.apache.thrift.protocol.TField field;
-
 
11812
      iprot.readStructBegin();
-
 
11813
      while (true)
-
 
11814
      {
-
 
11815
        field = iprot.readFieldBegin();
-
 
11816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11817
          break;
-
 
11818
        }
-
 
11819
        switch (field.id) {
-
 
11820
          case 0: // SUCCESS
-
 
11821
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
11822
              {
-
 
11823
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
-
 
11824
                this.success = new ArrayList<DetailedPurchaseScan>(_list16.size);
-
 
11825
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
-
 
11826
                {
-
 
11827
                  DetailedPurchaseScan _elem18; // required
-
 
11828
                  _elem18 = new DetailedPurchaseScan();
-
 
11829
                  _elem18.read(iprot);
-
 
11830
                  this.success.add(_elem18);
-
 
11831
                }
-
 
11832
                iprot.readListEnd();
-
 
11833
              }
-
 
11834
            } else { 
-
 
11835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11836
            }
-
 
11837
            break;
-
 
11838
          default:
-
 
11839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11840
        }
-
 
11841
        iprot.readFieldEnd();
-
 
11842
      }
-
 
11843
      iprot.readStructEnd();
-
 
11844
      validate();
-
 
11845
    }
-
 
11846
 
-
 
11847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11848
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11849
 
-
 
11850
      if (this.isSetSuccess()) {
-
 
11851
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11852
        {
-
 
11853
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
11854
          for (DetailedPurchaseScan _iter19 : this.success)
-
 
11855
          {
-
 
11856
            _iter19.write(oprot);
-
 
11857
          }
-
 
11858
          oprot.writeListEnd();
-
 
11859
        }
-
 
11860
        oprot.writeFieldEnd();
-
 
11861
      }
-
 
11862
      oprot.writeFieldStop();
-
 
11863
      oprot.writeStructEnd();
-
 
11864
    }
-
 
11865
 
-
 
11866
    @Override
-
 
11867
    public String toString() {
-
 
11868
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_result(");
-
 
11869
      boolean first = true;
-
 
11870
 
-
 
11871
      sb.append("success:");
-
 
11872
      if (this.success == null) {
-
 
11873
        sb.append("null");
-
 
11874
      } else {
-
 
11875
        sb.append(this.success);
-
 
11876
      }
-
 
11877
      first = false;
-
 
11878
      sb.append(")");
-
 
11879
      return sb.toString();
-
 
11880
    }
-
 
11881
 
-
 
11882
    public void validate() throws org.apache.thrift.TException {
-
 
11883
      // check for required fields
-
 
11884
    }
-
 
11885
 
-
 
11886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11887
      try {
-
 
11888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11889
      } catch (org.apache.thrift.TException te) {
-
 
11890
        throw new java.io.IOException(te);
-
 
11891
      }
-
 
11892
    }
-
 
11893
 
-
 
11894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11895
      try {
-
 
11896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11897
      } catch (org.apache.thrift.TException te) {
-
 
11898
        throw new java.io.IOException(te);
-
 
11899
      }
-
 
11900
    }
-
 
11901
 
-
 
11902
  }
-
 
11903
 
11110
  public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
11904
  public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
11111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
11905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
11112
 
11906
 
11113
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
11907
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
11114
 
11908
 
Line 11649... Line 12443...
11649
        }
12443
        }
11650
        switch (field.id) {
12444
        switch (field.id) {
11651
          case 0: // SUCCESS
12445
          case 0: // SUCCESS
11652
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12446
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11653
              {
12447
              {
11654
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
12448
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
11655
                this.success = new ArrayList<InvoiceScan>(_list16.size);
12449
                this.success = new ArrayList<InvoiceScan>(_list20.size);
11656
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
12450
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
11657
                {
12451
                {
11658
                  InvoiceScan _elem18; // required
12452
                  InvoiceScan _elem22; // required
11659
                  _elem18 = new InvoiceScan();
12453
                  _elem22 = new InvoiceScan();
11660
                  _elem18.read(iprot);
12454
                  _elem22.read(iprot);
11661
                  this.success.add(_elem18);
12455
                  this.success.add(_elem22);
11662
                }
12456
                }
11663
                iprot.readListEnd();
12457
                iprot.readListEnd();
11664
              }
12458
              }
11665
            } else { 
12459
            } else { 
11666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 11680... Line 12474...
11680
 
12474
 
11681
      if (this.isSetSuccess()) {
12475
      if (this.isSetSuccess()) {
11682
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12476
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11683
        {
12477
        {
11684
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12478
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11685
          for (InvoiceScan _iter19 : this.success)
12479
          for (InvoiceScan _iter23 : this.success)
11686
          {
12480
          {
11687
            _iter19.write(oprot);
12481
            _iter23.write(oprot);
11688
          }
12482
          }
11689
          oprot.writeListEnd();
12483
          oprot.writeListEnd();
11690
        }
12484
        }
11691
        oprot.writeFieldEnd();
12485
        oprot.writeFieldEnd();
11692
      }
12486
      }
Line 12856... Line 13650...
12856
        }
13650
        }
12857
        switch (field.id) {
13651
        switch (field.id) {
12858
          case 0: // SUCCESS
13652
          case 0: // SUCCESS
12859
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13653
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12860
              {
13654
              {
12861
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
13655
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
12862
                this.success = new ArrayList<InventoryAge>(_list20.size);
13656
                this.success = new ArrayList<InventoryAge>(_list24.size);
12863
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
13657
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
12864
                {
13658
                {
12865
                  InventoryAge _elem22; // required
13659
                  InventoryAge _elem26; // required
12866
                  _elem22 = new InventoryAge();
13660
                  _elem26 = new InventoryAge();
12867
                  _elem22.read(iprot);
13661
                  _elem26.read(iprot);
12868
                  this.success.add(_elem22);
13662
                  this.success.add(_elem26);
12869
                }
13663
                }
12870
                iprot.readListEnd();
13664
                iprot.readListEnd();
12871
              }
13665
              }
12872
            } else { 
13666
            } else { 
12873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13667
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 12887... Line 13681...
12887
 
13681
 
12888
      if (this.isSetSuccess()) {
13682
      if (this.isSetSuccess()) {
12889
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13683
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12890
        {
13684
        {
12891
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13685
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12892
          for (InventoryAge _iter23 : this.success)
13686
          for (InventoryAge _iter27 : this.success)
12893
          {
13687
          {
12894
            _iter23.write(oprot);
13688
            _iter27.write(oprot);
12895
          }
13689
          }
12896
          oprot.writeListEnd();
13690
          oprot.writeListEnd();
12897
        }
13691
        }
12898
        oprot.writeFieldEnd();
13692
        oprot.writeFieldEnd();
12899
      }
13693
      }
Line 13645... Line 14439...
13645
        }
14439
        }
13646
        switch (field.id) {
14440
        switch (field.id) {
13647
          case 0: // SUCCESS
14441
          case 0: // SUCCESS
13648
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14442
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13649
              {
14443
              {
13650
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
14444
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
13651
                this.success = new ArrayList<Scan>(_list24.size);
14445
                this.success = new ArrayList<Scan>(_list28.size);
13652
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
14446
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
13653
                {
14447
                {
13654
                  Scan _elem26; // required
14448
                  Scan _elem30; // required
13655
                  _elem26 = new Scan();
14449
                  _elem30 = new Scan();
13656
                  _elem26.read(iprot);
14450
                  _elem30.read(iprot);
13657
                  this.success.add(_elem26);
14451
                  this.success.add(_elem30);
13658
                }
14452
                }
13659
                iprot.readListEnd();
14453
                iprot.readListEnd();
13660
              }
14454
              }
13661
            } else { 
14455
            } else { 
13662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 13676... Line 14470...
13676
 
14470
 
13677
      if (this.isSetSuccess()) {
14471
      if (this.isSetSuccess()) {
13678
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14472
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13679
        {
14473
        {
13680
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14474
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13681
          for (Scan _iter27 : this.success)
14475
          for (Scan _iter31 : this.success)
13682
          {
14476
          {
13683
            _iter27.write(oprot);
14477
            _iter31.write(oprot);
13684
          }
14478
          }
13685
          oprot.writeListEnd();
14479
          oprot.writeListEnd();
13686
        }
14480
        }
13687
        oprot.writeFieldEnd();
14481
        oprot.writeFieldEnd();
13688
      }
14482
      }
Line 14270... Line 15064...
14270
        }
15064
        }
14271
        switch (field.id) {
15065
        switch (field.id) {
14272
          case 0: // SUCCESS
15066
          case 0: // SUCCESS
14273
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15067
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14274
              {
15068
              {
14275
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
15069
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
14276
                this.success = new ArrayList<Scan>(_list28.size);
15070
                this.success = new ArrayList<Scan>(_list32.size);
14277
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
15071
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
14278
                {
15072
                {
14279
                  Scan _elem30; // required
15073
                  Scan _elem34; // required
14280
                  _elem30 = new Scan();
15074
                  _elem34 = new Scan();
14281
                  _elem30.read(iprot);
15075
                  _elem34.read(iprot);
14282
                  this.success.add(_elem30);
15076
                  this.success.add(_elem34);
14283
                }
15077
                }
14284
                iprot.readListEnd();
15078
                iprot.readListEnd();
14285
              }
15079
              }
14286
            } else { 
15080
            } else { 
14287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14301... Line 15095...
14301
 
15095
 
14302
      if (this.isSetSuccess()) {
15096
      if (this.isSetSuccess()) {
14303
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15097
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14304
        {
15098
        {
14305
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
15099
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
14306
          for (Scan _iter31 : this.success)
15100
          for (Scan _iter35 : this.success)
14307
          {
15101
          {
14308
            _iter31.write(oprot);
15102
            _iter35.write(oprot);
14309
          }
15103
          }
14310
          oprot.writeListEnd();
15104
          oprot.writeListEnd();
14311
        }
15105
        }
14312
        oprot.writeFieldEnd();
15106
        oprot.writeFieldEnd();
14313
      }
15107
      }
Line 14672... Line 15466...
14672
        }
15466
        }
14673
        switch (field.id) {
15467
        switch (field.id) {
14674
          case 1: // SALE_RETURN_ITEMS
15468
          case 1: // SALE_RETURN_ITEMS
14675
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15469
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14676
              {
15470
              {
14677
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
15471
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
14678
                this.saleReturnItems = new ArrayList<InventoryItem>(_list32.size);
15472
                this.saleReturnItems = new ArrayList<InventoryItem>(_list36.size);
14679
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
15473
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
14680
                {
15474
                {
14681
                  InventoryItem _elem34; // required
15475
                  InventoryItem _elem38; // required
14682
                  _elem34 = new InventoryItem();
15476
                  _elem38 = new InventoryItem();
14683
                  _elem34.read(iprot);
15477
                  _elem38.read(iprot);
14684
                  this.saleReturnItems.add(_elem34);
15478
                  this.saleReturnItems.add(_elem38);
14685
                }
15479
                }
14686
                iprot.readListEnd();
15480
                iprot.readListEnd();
14687
              }
15481
              }
14688
            } else { 
15482
            } else { 
14689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14712... Line 15506...
14712
      oprot.writeStructBegin(STRUCT_DESC);
15506
      oprot.writeStructBegin(STRUCT_DESC);
14713
      if (this.saleReturnItems != null) {
15507
      if (this.saleReturnItems != null) {
14714
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
15508
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
14715
        {
15509
        {
14716
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
15510
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
14717
          for (InventoryItem _iter35 : this.saleReturnItems)
15511
          for (InventoryItem _iter39 : this.saleReturnItems)
14718
          {
15512
          {
14719
            _iter35.write(oprot);
15513
            _iter39.write(oprot);
14720
          }
15514
          }
14721
          oprot.writeListEnd();
15515
          oprot.writeListEnd();
14722
        }
15516
        }
14723
        oprot.writeFieldEnd();
15517
        oprot.writeFieldEnd();
14724
      }
15518
      }
Line 15384... Line 16178...
15384
        }
16178
        }
15385
        switch (field.id) {
16179
        switch (field.id) {
15386
          case 1: // LOST_ITEMS
16180
          case 1: // LOST_ITEMS
15387
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16181
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15388
              {
16182
              {
15389
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16183
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
15390
                this.lostItems = new ArrayList<InventoryItem>(_list36.size);
16184
                this.lostItems = new ArrayList<InventoryItem>(_list40.size);
15391
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
16185
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
15392
                {
16186
                {
15393
                  InventoryItem _elem38; // required
16187
                  InventoryItem _elem42; // required
15394
                  _elem38 = new InventoryItem();
16188
                  _elem42 = new InventoryItem();
15395
                  _elem38.read(iprot);
16189
                  _elem42.read(iprot);
15396
                  this.lostItems.add(_elem38);
16190
                  this.lostItems.add(_elem42);
15397
                }
16191
                }
15398
                iprot.readListEnd();
16192
                iprot.readListEnd();
15399
              }
16193
              }
15400
            } else { 
16194
            } else { 
15401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 15424... Line 16218...
15424
      oprot.writeStructBegin(STRUCT_DESC);
16218
      oprot.writeStructBegin(STRUCT_DESC);
15425
      if (this.lostItems != null) {
16219
      if (this.lostItems != null) {
15426
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
16220
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
15427
        {
16221
        {
15428
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
16222
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
15429
          for (InventoryItem _iter39 : this.lostItems)
16223
          for (InventoryItem _iter43 : this.lostItems)
15430
          {
16224
          {
15431
            _iter39.write(oprot);
16225
            _iter43.write(oprot);
15432
          }
16226
          }
15433
          oprot.writeListEnd();
16227
          oprot.writeListEnd();
15434
        }
16228
        }
15435
        oprot.writeFieldEnd();
16229
        oprot.writeFieldEnd();
15436
      }
16230
      }
Line 16225... Line 17019...
16225
        }
17019
        }
16226
        switch (field.id) {
17020
        switch (field.id) {
16227
          case 0: // SUCCESS
17021
          case 0: // SUCCESS
16228
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17022
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16229
              {
17023
              {
16230
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
17024
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
16231
                this.success = new ArrayList<InventoryAvailability>(_list40.size);
17025
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
16232
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
17026
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
16233
                {
17027
                {
16234
                  InventoryAvailability _elem42; // required
17028
                  InventoryAvailability _elem46; // required
16235
                  _elem42 = new InventoryAvailability();
17029
                  _elem46 = new InventoryAvailability();
16236
                  _elem42.read(iprot);
17030
                  _elem46.read(iprot);
16237
                  this.success.add(_elem42);
17031
                  this.success.add(_elem46);
16238
                }
17032
                }
16239
                iprot.readListEnd();
17033
                iprot.readListEnd();
16240
              }
17034
              }
16241
            } else { 
17035
            } else { 
16242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 16256... Line 17050...
16256
 
17050
 
16257
      if (this.isSetSuccess()) {
17051
      if (this.isSetSuccess()) {
16258
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17052
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16259
        {
17053
        {
16260
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17054
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16261
          for (InventoryAvailability _iter43 : this.success)
17055
          for (InventoryAvailability _iter47 : this.success)
16262
          {
17056
          {
16263
            _iter43.write(oprot);
17057
            _iter47.write(oprot);
16264
          }
17058
          }
16265
          oprot.writeListEnd();
17059
          oprot.writeListEnd();
16266
        }
17060
        }
16267
        oprot.writeFieldEnd();
17061
        oprot.writeFieldEnd();
16268
      }
17062
      }
Line 16756... Line 17550...
16756
        }
17550
        }
16757
        switch (field.id) {
17551
        switch (field.id) {
16758
          case 0: // SUCCESS
17552
          case 0: // SUCCESS
16759
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17553
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16760
              {
17554
              {
16761
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
17555
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
16762
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
17556
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
16763
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
17557
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
16764
                {
17558
                {
16765
                  InventoryAvailability _elem46; // required
17559
                  InventoryAvailability _elem50; // required
16766
                  _elem46 = new InventoryAvailability();
17560
                  _elem50 = new InventoryAvailability();
16767
                  _elem46.read(iprot);
17561
                  _elem50.read(iprot);
16768
                  this.success.add(_elem46);
17562
                  this.success.add(_elem50);
16769
                }
17563
                }
16770
                iprot.readListEnd();
17564
                iprot.readListEnd();
16771
              }
17565
              }
16772
            } else { 
17566
            } else { 
16773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 16787... Line 17581...
16787
 
17581
 
16788
      if (this.isSetSuccess()) {
17582
      if (this.isSetSuccess()) {
16789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17583
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16790
        {
17584
        {
16791
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17585
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16792
          for (InventoryAvailability _iter47 : this.success)
17586
          for (InventoryAvailability _iter51 : this.success)
16793
          {
17587
          {
16794
            _iter47.write(oprot);
17588
            _iter51.write(oprot);
16795
          }
17589
          }
16796
          oprot.writeListEnd();
17590
          oprot.writeListEnd();
16797
        }
17591
        }
16798
        oprot.writeFieldEnd();
17592
        oprot.writeFieldEnd();
16799
      }
17593
      }
Line 17379... Line 18173...
17379
        }
18173
        }
17380
        switch (field.id) {
18174
        switch (field.id) {
17381
          case 0: // SUCCESS
18175
          case 0: // SUCCESS
17382
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17383
              {
18177
              {
17384
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
18178
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
17385
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
18179
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
17386
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
18180
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
17387
                {
18181
                {
17388
                  InventoryAvailability _elem50; // required
18182
                  InventoryAvailability _elem54; // required
17389
                  _elem50 = new InventoryAvailability();
18183
                  _elem54 = new InventoryAvailability();
17390
                  _elem50.read(iprot);
18184
                  _elem54.read(iprot);
17391
                  this.success.add(_elem50);
18185
                  this.success.add(_elem54);
17392
                }
18186
                }
17393
                iprot.readListEnd();
18187
                iprot.readListEnd();
17394
              }
18188
              }
17395
            } else { 
18189
            } else { 
17396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 17410... Line 18204...
17410
 
18204
 
17411
      if (this.isSetSuccess()) {
18205
      if (this.isSetSuccess()) {
17412
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18206
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17413
        {
18207
        {
17414
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18208
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17415
          for (InventoryAvailability _iter51 : this.success)
18209
          for (InventoryAvailability _iter55 : this.success)
17416
          {
18210
          {
17417
            _iter51.write(oprot);
18211
            _iter55.write(oprot);
17418
          }
18212
          }
17419
          oprot.writeListEnd();
18213
          oprot.writeListEnd();
17420
        }
18214
        }
17421
        oprot.writeFieldEnd();
18215
        oprot.writeFieldEnd();
17422
      }
18216
      }
Line 18004... Line 18798...
18004
        }
18798
        }
18005
        switch (field.id) {
18799
        switch (field.id) {
18006
          case 0: // SUCCESS
18800
          case 0: // SUCCESS
18007
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18801
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18008
              {
18802
              {
18009
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
18803
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
18010
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
18804
                this.success = new ArrayList<InventoryAvailability>(_list56.size);
18011
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
18805
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
18012
                {
18806
                {
18013
                  InventoryAvailability _elem54; // required
18807
                  InventoryAvailability _elem58; // required
18014
                  _elem54 = new InventoryAvailability();
18808
                  _elem58 = new InventoryAvailability();
18015
                  _elem54.read(iprot);
18809
                  _elem58.read(iprot);
18016
                  this.success.add(_elem54);
18810
                  this.success.add(_elem58);
18017
                }
18811
                }
18018
                iprot.readListEnd();
18812
                iprot.readListEnd();
18019
              }
18813
              }
18020
            } else { 
18814
            } else { 
18021
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 18035... Line 18829...
18035
 
18829
 
18036
      if (this.isSetSuccess()) {
18830
      if (this.isSetSuccess()) {
18037
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18831
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18038
        {
18832
        {
18039
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18833
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18040
          for (InventoryAvailability _iter55 : this.success)
18834
          for (InventoryAvailability _iter59 : this.success)
18041
          {
18835
          {
18042
            _iter55.write(oprot);
18836
            _iter59.write(oprot);
18043
          }
18837
          }
18044
          oprot.writeListEnd();
18838
          oprot.writeListEnd();
18045
        }
18839
        }
18046
        oprot.writeFieldEnd();
18840
        oprot.writeFieldEnd();
18047
      }
18841
      }
Line 20475... Line 21269...
20475
        }
21269
        }
20476
        switch (field.id) {
21270
        switch (field.id) {
20477
          case 0: // SUCCESS
21271
          case 0: // SUCCESS
20478
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21272
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20479
              {
21273
              {
20480
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
21274
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
20481
                this.success = new ArrayList<InventoryMovement>(_list56.size);
21275
                this.success = new ArrayList<InventoryMovement>(_list60.size);
20482
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
21276
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
20483
                {
21277
                {
20484
                  InventoryMovement _elem58; // required
21278
                  InventoryMovement _elem62; // required
20485
                  _elem58 = new InventoryMovement();
21279
                  _elem62 = new InventoryMovement();
20486
                  _elem58.read(iprot);
21280
                  _elem62.read(iprot);
20487
                  this.success.add(_elem58);
21281
                  this.success.add(_elem62);
20488
                }
21282
                }
20489
                iprot.readListEnd();
21283
                iprot.readListEnd();
20490
              }
21284
              }
20491
            } else { 
21285
            } else { 
20492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 20506... Line 21300...
20506
 
21300
 
20507
      if (this.isSetSuccess()) {
21301
      if (this.isSetSuccess()) {
20508
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21302
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20509
        {
21303
        {
20510
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21304
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20511
          for (InventoryMovement _iter59 : this.success)
21305
          for (InventoryMovement _iter63 : this.success)
20512
          {
21306
          {
20513
            _iter59.write(oprot);
21307
            _iter63.write(oprot);
20514
          }
21308
          }
20515
          oprot.writeListEnd();
21309
          oprot.writeListEnd();
20516
        }
21310
        }
20517
        oprot.writeFieldEnd();
21311
        oprot.writeFieldEnd();
20518
      }
21312
      }
Line 21183... Line 21977...
21183
        }
21977
        }
21184
        switch (field.id) {
21978
        switch (field.id) {
21185
          case 0: // SUCCESS
21979
          case 0: // SUCCESS
21186
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21980
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21187
              {
21981
              {
21188
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
21982
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
21189
                this.success = new ArrayList<InventoryMovement>(_list60.size);
21983
                this.success = new ArrayList<InventoryMovement>(_list64.size);
21190
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
21984
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
21191
                {
21985
                {
21192
                  InventoryMovement _elem62; // required
21986
                  InventoryMovement _elem66; // required
21193
                  _elem62 = new InventoryMovement();
21987
                  _elem66 = new InventoryMovement();
21194
                  _elem62.read(iprot);
21988
                  _elem66.read(iprot);
21195
                  this.success.add(_elem62);
21989
                  this.success.add(_elem66);
21196
                }
21990
                }
21197
                iprot.readListEnd();
21991
                iprot.readListEnd();
21198
              }
21992
              }
21199
            } else { 
21993
            } else { 
21200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21994
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 21214... Line 22008...
21214
 
22008
 
21215
      if (this.isSetSuccess()) {
22009
      if (this.isSetSuccess()) {
21216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22010
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21217
        {
22011
        {
21218
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
22012
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21219
          for (InventoryMovement _iter63 : this.success)
22013
          for (InventoryMovement _iter67 : this.success)
21220
          {
22014
          {
21221
            _iter63.write(oprot);
22015
            _iter67.write(oprot);
21222
          }
22016
          }
21223
          oprot.writeListEnd();
22017
          oprot.writeListEnd();
21224
        }
22018
        }
21225
        oprot.writeFieldEnd();
22019
        oprot.writeFieldEnd();
21226
      }
22020
      }