Subversion Repositories SmartDukaan

Rev

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

Rev 1013 Rev 1022
Line 44... Line 44...
44
 
44
 
45
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
45
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
46
 
46
 
47
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
47
    public List<Order> getAllOrders(OrderStatus status, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, TException;
48
 
48
 
-
 
49
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
-
 
50
 
49
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
51
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
50
 
52
 
51
    public boolean addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TransactionServiceException, TException;
53
    public boolean addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TransactionServiceException, TException;
52
 
54
 
53
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException;
55
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException;
Line 392... Line 394...
392
        throw result.ex;
394
        throw result.ex;
393
      }
395
      }
394
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
396
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
395
    }
397
    }
396
 
398
 
-
 
399
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException
-
 
400
    {
-
 
401
      send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);
-
 
402
      return recv_getOrdersByBillingDate();
-
 
403
    }
-
 
404
 
-
 
405
    public void send_getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TException
-
 
406
    {
-
 
407
      oprot_.writeMessageBegin(new TMessage("getOrdersByBillingDate", TMessageType.CALL, seqid_));
-
 
408
      getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
-
 
409
      args.status = status;
-
 
410
      args.start_billing_date = start_billing_date;
-
 
411
      args.end_billing_date = end_billing_date;
-
 
412
      args.warehouse_id = warehouse_id;
-
 
413
      args.write(oprot_);
-
 
414
      oprot_.writeMessageEnd();
-
 
415
      oprot_.getTransport().flush();
-
 
416
    }
-
 
417
 
-
 
418
    public List<Order> recv_getOrdersByBillingDate() throws TransactionServiceException, TException
-
 
419
    {
-
 
420
      TMessage msg = iprot_.readMessageBegin();
-
 
421
      if (msg.type == TMessageType.EXCEPTION) {
-
 
422
        TApplicationException x = TApplicationException.read(iprot_);
-
 
423
        iprot_.readMessageEnd();
-
 
424
        throw x;
-
 
425
      }
-
 
426
      getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
-
 
427
      result.read(iprot_);
-
 
428
      iprot_.readMessageEnd();
-
 
429
      if (result.isSetSuccess()) {
-
 
430
        return result.success;
-
 
431
      }
-
 
432
      if (result.ex != null) {
-
 
433
        throw result.ex;
-
 
434
      }
-
 
435
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
-
 
436
    }
-
 
437
 
397
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException
438
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException
398
    {
439
    {
399
      send_changeOrderStatus(orderId, status, description);
440
      send_changeOrderStatus(orderId, status, description);
400
      return recv_changeOrderStatus();
441
      return recv_changeOrderStatus();
401
    }
442
    }
Line 842... Line 883...
842
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
883
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
843
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
884
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
844
      processMap_.put("getTransactionStatus", new getTransactionStatus());
885
      processMap_.put("getTransactionStatus", new getTransactionStatus());
845
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
886
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
846
      processMap_.put("getAllOrders", new getAllOrders());
887
      processMap_.put("getAllOrders", new getAllOrders());
-
 
888
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
847
      processMap_.put("changeOrderStatus", new changeOrderStatus());
889
      processMap_.put("changeOrderStatus", new changeOrderStatus());
848
      processMap_.put("addBillingDetails", new addBillingDetails());
890
      processMap_.put("addBillingDetails", new addBillingDetails());
849
      processMap_.put("acceptOrder", new acceptOrder());
891
      processMap_.put("acceptOrder", new acceptOrder());
850
      processMap_.put("billOrder", new billOrder());
892
      processMap_.put("billOrder", new billOrder());
851
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
893
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
Line 1095... Line 1137...
1095
        oprot.getTransport().flush();
1137
        oprot.getTransport().flush();
1096
      }
1138
      }
1097
 
1139
 
1098
    }
1140
    }
1099
 
1141
 
-
 
1142
    private class getOrdersByBillingDate implements ProcessFunction {
-
 
1143
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1144
      {
-
 
1145
        getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();
-
 
1146
        args.read(iprot);
-
 
1147
        iprot.readMessageEnd();
-
 
1148
        getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();
-
 
1149
        try {
-
 
1150
          result.success = iface_.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id);
-
 
1151
        } catch (TransactionServiceException ex) {
-
 
1152
          result.ex = ex;
-
 
1153
        } catch (Throwable th) {
-
 
1154
          LOGGER.error("Internal error processing getOrdersByBillingDate", th);
-
 
1155
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrdersByBillingDate");
-
 
1156
          oprot.writeMessageBegin(new TMessage("getOrdersByBillingDate", TMessageType.EXCEPTION, seqid));
-
 
1157
          x.write(oprot);
-
 
1158
          oprot.writeMessageEnd();
-
 
1159
          oprot.getTransport().flush();
-
 
1160
          return;
-
 
1161
        }
-
 
1162
        oprot.writeMessageBegin(new TMessage("getOrdersByBillingDate", TMessageType.REPLY, seqid));
-
 
1163
        result.write(oprot);
-
 
1164
        oprot.writeMessageEnd();
-
 
1165
        oprot.getTransport().flush();
-
 
1166
      }
-
 
1167
 
-
 
1168
    }
-
 
1169
 
1100
    private class changeOrderStatus implements ProcessFunction {
1170
    private class changeOrderStatus implements ProcessFunction {
1101
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1171
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1102
      {
1172
      {
1103
        changeOrderStatus_args args = new changeOrderStatus_args();
1173
        changeOrderStatus_args args = new changeOrderStatus_args();
1104
        args.read(iprot);
1174
        args.read(iprot);
Line 7135... Line 7205...
7135
      // check for required fields
7205
      // check for required fields
7136
    }
7206
    }
7137
 
7207
 
7138
  }
7208
  }
7139
 
7209
 
-
 
7210
  public static class getOrdersByBillingDate_args implements TBase<getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersByBillingDate_args>   {
-
 
7211
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersByBillingDate_args");
-
 
7212
 
-
 
7213
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
-
 
7214
    private static final TField START_BILLING_DATE_FIELD_DESC = new TField("start_billing_date", TType.I64, (short)2);
-
 
7215
    private static final TField END_BILLING_DATE_FIELD_DESC = new TField("end_billing_date", TType.I64, (short)3);
-
 
7216
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)4);
-
 
7217
 
-
 
7218
    private OrderStatus status;
-
 
7219
    private long start_billing_date;
-
 
7220
    private long end_billing_date;
-
 
7221
    private long warehouse_id;
-
 
7222
 
-
 
7223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7224
    public enum _Fields implements TFieldIdEnum {
-
 
7225
      /**
-
 
7226
       * 
-
 
7227
       * @see OrderStatus
-
 
7228
       */
-
 
7229
      STATUS((short)1, "status"),
-
 
7230
      START_BILLING_DATE((short)2, "start_billing_date"),
-
 
7231
      END_BILLING_DATE((short)3, "end_billing_date"),
-
 
7232
      WAREHOUSE_ID((short)4, "warehouse_id");
-
 
7233
 
-
 
7234
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7236
 
-
 
7237
      static {
-
 
7238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7239
          byId.put((int)field._thriftId, field);
-
 
7240
          byName.put(field.getFieldName(), field);
-
 
7241
        }
-
 
7242
      }
-
 
7243
 
-
 
7244
      /**
-
 
7245
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7246
       */
-
 
7247
      public static _Fields findByThriftId(int fieldId) {
-
 
7248
        return byId.get(fieldId);
-
 
7249
      }
-
 
7250
 
-
 
7251
      /**
-
 
7252
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7253
       * if it is not found.
-
 
7254
       */
-
 
7255
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7256
        _Fields fields = findByThriftId(fieldId);
-
 
7257
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7258
        return fields;
-
 
7259
      }
-
 
7260
 
-
 
7261
      /**
-
 
7262
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7263
       */
-
 
7264
      public static _Fields findByName(String name) {
-
 
7265
        return byName.get(name);
-
 
7266
      }
-
 
7267
 
-
 
7268
      private final short _thriftId;
-
 
7269
      private final String _fieldName;
-
 
7270
 
-
 
7271
      _Fields(short thriftId, String fieldName) {
-
 
7272
        _thriftId = thriftId;
-
 
7273
        _fieldName = fieldName;
-
 
7274
      }
-
 
7275
 
-
 
7276
      public short getThriftFieldId() {
-
 
7277
        return _thriftId;
-
 
7278
      }
-
 
7279
 
-
 
7280
      public String getFieldName() {
-
 
7281
        return _fieldName;
-
 
7282
      }
-
 
7283
    }
-
 
7284
 
-
 
7285
    // isset id assignments
-
 
7286
    private static final int __START_BILLING_DATE_ISSET_ID = 0;
-
 
7287
    private static final int __END_BILLING_DATE_ISSET_ID = 1;
-
 
7288
    private static final int __WAREHOUSE_ID_ISSET_ID = 2;
-
 
7289
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
7290
 
-
 
7291
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7292
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
7293
          new EnumMetaData(TType.ENUM, OrderStatus.class)));
-
 
7294
      put(_Fields.START_BILLING_DATE, new FieldMetaData("start_billing_date", TFieldRequirementType.DEFAULT, 
-
 
7295
          new FieldValueMetaData(TType.I64)));
-
 
7296
      put(_Fields.END_BILLING_DATE, new FieldMetaData("end_billing_date", TFieldRequirementType.DEFAULT, 
-
 
7297
          new FieldValueMetaData(TType.I64)));
-
 
7298
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
-
 
7299
          new FieldValueMetaData(TType.I64)));
-
 
7300
    }});
-
 
7301
 
-
 
7302
    static {
-
 
7303
      FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_args.class, metaDataMap);
-
 
7304
    }
-
 
7305
 
-
 
7306
    public getOrdersByBillingDate_args() {
-
 
7307
    }
-
 
7308
 
-
 
7309
    public getOrdersByBillingDate_args(
-
 
7310
      OrderStatus status,
-
 
7311
      long start_billing_date,
-
 
7312
      long end_billing_date,
-
 
7313
      long warehouse_id)
-
 
7314
    {
-
 
7315
      this();
-
 
7316
      this.status = status;
-
 
7317
      this.start_billing_date = start_billing_date;
-
 
7318
      setStart_billing_dateIsSet(true);
-
 
7319
      this.end_billing_date = end_billing_date;
-
 
7320
      setEnd_billing_dateIsSet(true);
-
 
7321
      this.warehouse_id = warehouse_id;
-
 
7322
      setWarehouse_idIsSet(true);
-
 
7323
    }
-
 
7324
 
-
 
7325
    /**
-
 
7326
     * Performs a deep copy on <i>other</i>.
-
 
7327
     */
-
 
7328
    public getOrdersByBillingDate_args(getOrdersByBillingDate_args other) {
-
 
7329
      __isset_bit_vector.clear();
-
 
7330
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7331
      if (other.isSetStatus()) {
-
 
7332
        this.status = other.status;
-
 
7333
      }
-
 
7334
      this.start_billing_date = other.start_billing_date;
-
 
7335
      this.end_billing_date = other.end_billing_date;
-
 
7336
      this.warehouse_id = other.warehouse_id;
-
 
7337
    }
-
 
7338
 
-
 
7339
    public getOrdersByBillingDate_args deepCopy() {
-
 
7340
      return new getOrdersByBillingDate_args(this);
-
 
7341
    }
-
 
7342
 
-
 
7343
    @Deprecated
-
 
7344
    public getOrdersByBillingDate_args clone() {
-
 
7345
      return new getOrdersByBillingDate_args(this);
-
 
7346
    }
-
 
7347
 
-
 
7348
    /**
-
 
7349
     * 
-
 
7350
     * @see OrderStatus
-
 
7351
     */
-
 
7352
    public OrderStatus getStatus() {
-
 
7353
      return this.status;
-
 
7354
    }
-
 
7355
 
-
 
7356
    /**
-
 
7357
     * 
-
 
7358
     * @see OrderStatus
-
 
7359
     */
-
 
7360
    public getOrdersByBillingDate_args setStatus(OrderStatus status) {
-
 
7361
      this.status = status;
-
 
7362
      return this;
-
 
7363
    }
-
 
7364
 
-
 
7365
    public void unsetStatus() {
-
 
7366
      this.status = null;
-
 
7367
    }
-
 
7368
 
-
 
7369
    /** Returns true if field status is set (has been asigned a value) and false otherwise */
-
 
7370
    public boolean isSetStatus() {
-
 
7371
      return this.status != null;
-
 
7372
    }
-
 
7373
 
-
 
7374
    public void setStatusIsSet(boolean value) {
-
 
7375
      if (!value) {
-
 
7376
        this.status = null;
-
 
7377
      }
-
 
7378
    }
-
 
7379
 
-
 
7380
    public long getStart_billing_date() {
-
 
7381
      return this.start_billing_date;
-
 
7382
    }
-
 
7383
 
-
 
7384
    public getOrdersByBillingDate_args setStart_billing_date(long start_billing_date) {
-
 
7385
      this.start_billing_date = start_billing_date;
-
 
7386
      setStart_billing_dateIsSet(true);
-
 
7387
      return this;
-
 
7388
    }
-
 
7389
 
-
 
7390
    public void unsetStart_billing_date() {
-
 
7391
      __isset_bit_vector.clear(__START_BILLING_DATE_ISSET_ID);
-
 
7392
    }
-
 
7393
 
-
 
7394
    /** Returns true if field start_billing_date is set (has been asigned a value) and false otherwise */
-
 
7395
    public boolean isSetStart_billing_date() {
-
 
7396
      return __isset_bit_vector.get(__START_BILLING_DATE_ISSET_ID);
-
 
7397
    }
-
 
7398
 
-
 
7399
    public void setStart_billing_dateIsSet(boolean value) {
-
 
7400
      __isset_bit_vector.set(__START_BILLING_DATE_ISSET_ID, value);
-
 
7401
    }
-
 
7402
 
-
 
7403
    public long getEnd_billing_date() {
-
 
7404
      return this.end_billing_date;
-
 
7405
    }
-
 
7406
 
-
 
7407
    public getOrdersByBillingDate_args setEnd_billing_date(long end_billing_date) {
-
 
7408
      this.end_billing_date = end_billing_date;
-
 
7409
      setEnd_billing_dateIsSet(true);
-
 
7410
      return this;
-
 
7411
    }
-
 
7412
 
-
 
7413
    public void unsetEnd_billing_date() {
-
 
7414
      __isset_bit_vector.clear(__END_BILLING_DATE_ISSET_ID);
-
 
7415
    }
-
 
7416
 
-
 
7417
    /** Returns true if field end_billing_date is set (has been asigned a value) and false otherwise */
-
 
7418
    public boolean isSetEnd_billing_date() {
-
 
7419
      return __isset_bit_vector.get(__END_BILLING_DATE_ISSET_ID);
-
 
7420
    }
-
 
7421
 
-
 
7422
    public void setEnd_billing_dateIsSet(boolean value) {
-
 
7423
      __isset_bit_vector.set(__END_BILLING_DATE_ISSET_ID, value);
-
 
7424
    }
-
 
7425
 
-
 
7426
    public long getWarehouse_id() {
-
 
7427
      return this.warehouse_id;
-
 
7428
    }
-
 
7429
 
-
 
7430
    public getOrdersByBillingDate_args setWarehouse_id(long warehouse_id) {
-
 
7431
      this.warehouse_id = warehouse_id;
-
 
7432
      setWarehouse_idIsSet(true);
-
 
7433
      return this;
-
 
7434
    }
-
 
7435
 
-
 
7436
    public void unsetWarehouse_id() {
-
 
7437
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
7438
    }
-
 
7439
 
-
 
7440
    /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
-
 
7441
    public boolean isSetWarehouse_id() {
-
 
7442
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
7443
    }
-
 
7444
 
-
 
7445
    public void setWarehouse_idIsSet(boolean value) {
-
 
7446
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
7447
    }
-
 
7448
 
-
 
7449
    public void setFieldValue(_Fields field, Object value) {
-
 
7450
      switch (field) {
-
 
7451
      case STATUS:
-
 
7452
        if (value == null) {
-
 
7453
          unsetStatus();
-
 
7454
        } else {
-
 
7455
          setStatus((OrderStatus)value);
-
 
7456
        }
-
 
7457
        break;
-
 
7458
 
-
 
7459
      case START_BILLING_DATE:
-
 
7460
        if (value == null) {
-
 
7461
          unsetStart_billing_date();
-
 
7462
        } else {
-
 
7463
          setStart_billing_date((Long)value);
-
 
7464
        }
-
 
7465
        break;
-
 
7466
 
-
 
7467
      case END_BILLING_DATE:
-
 
7468
        if (value == null) {
-
 
7469
          unsetEnd_billing_date();
-
 
7470
        } else {
-
 
7471
          setEnd_billing_date((Long)value);
-
 
7472
        }
-
 
7473
        break;
-
 
7474
 
-
 
7475
      case WAREHOUSE_ID:
-
 
7476
        if (value == null) {
-
 
7477
          unsetWarehouse_id();
-
 
7478
        } else {
-
 
7479
          setWarehouse_id((Long)value);
-
 
7480
        }
-
 
7481
        break;
-
 
7482
 
-
 
7483
      }
-
 
7484
    }
-
 
7485
 
-
 
7486
    public void setFieldValue(int fieldID, Object value) {
-
 
7487
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7488
    }
-
 
7489
 
-
 
7490
    public Object getFieldValue(_Fields field) {
-
 
7491
      switch (field) {
-
 
7492
      case STATUS:
-
 
7493
        return getStatus();
-
 
7494
 
-
 
7495
      case START_BILLING_DATE:
-
 
7496
        return new Long(getStart_billing_date());
-
 
7497
 
-
 
7498
      case END_BILLING_DATE:
-
 
7499
        return new Long(getEnd_billing_date());
-
 
7500
 
-
 
7501
      case WAREHOUSE_ID:
-
 
7502
        return new Long(getWarehouse_id());
-
 
7503
 
-
 
7504
      }
-
 
7505
      throw new IllegalStateException();
-
 
7506
    }
-
 
7507
 
-
 
7508
    public Object getFieldValue(int fieldId) {
-
 
7509
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7510
    }
-
 
7511
 
-
 
7512
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7513
    public boolean isSet(_Fields field) {
-
 
7514
      switch (field) {
-
 
7515
      case STATUS:
-
 
7516
        return isSetStatus();
-
 
7517
      case START_BILLING_DATE:
-
 
7518
        return isSetStart_billing_date();
-
 
7519
      case END_BILLING_DATE:
-
 
7520
        return isSetEnd_billing_date();
-
 
7521
      case WAREHOUSE_ID:
-
 
7522
        return isSetWarehouse_id();
-
 
7523
      }
-
 
7524
      throw new IllegalStateException();
-
 
7525
    }
-
 
7526
 
-
 
7527
    public boolean isSet(int fieldID) {
-
 
7528
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7529
    }
-
 
7530
 
-
 
7531
    @Override
-
 
7532
    public boolean equals(Object that) {
-
 
7533
      if (that == null)
-
 
7534
        return false;
-
 
7535
      if (that instanceof getOrdersByBillingDate_args)
-
 
7536
        return this.equals((getOrdersByBillingDate_args)that);
-
 
7537
      return false;
-
 
7538
    }
-
 
7539
 
-
 
7540
    public boolean equals(getOrdersByBillingDate_args that) {
-
 
7541
      if (that == null)
-
 
7542
        return false;
-
 
7543
 
-
 
7544
      boolean this_present_status = true && this.isSetStatus();
-
 
7545
      boolean that_present_status = true && that.isSetStatus();
-
 
7546
      if (this_present_status || that_present_status) {
-
 
7547
        if (!(this_present_status && that_present_status))
-
 
7548
          return false;
-
 
7549
        if (!this.status.equals(that.status))
-
 
7550
          return false;
-
 
7551
      }
-
 
7552
 
-
 
7553
      boolean this_present_start_billing_date = true;
-
 
7554
      boolean that_present_start_billing_date = true;
-
 
7555
      if (this_present_start_billing_date || that_present_start_billing_date) {
-
 
7556
        if (!(this_present_start_billing_date && that_present_start_billing_date))
-
 
7557
          return false;
-
 
7558
        if (this.start_billing_date != that.start_billing_date)
-
 
7559
          return false;
-
 
7560
      }
-
 
7561
 
-
 
7562
      boolean this_present_end_billing_date = true;
-
 
7563
      boolean that_present_end_billing_date = true;
-
 
7564
      if (this_present_end_billing_date || that_present_end_billing_date) {
-
 
7565
        if (!(this_present_end_billing_date && that_present_end_billing_date))
-
 
7566
          return false;
-
 
7567
        if (this.end_billing_date != that.end_billing_date)
-
 
7568
          return false;
-
 
7569
      }
-
 
7570
 
-
 
7571
      boolean this_present_warehouse_id = true;
-
 
7572
      boolean that_present_warehouse_id = true;
-
 
7573
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
7574
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
7575
          return false;
-
 
7576
        if (this.warehouse_id != that.warehouse_id)
-
 
7577
          return false;
-
 
7578
      }
-
 
7579
 
-
 
7580
      return true;
-
 
7581
    }
-
 
7582
 
-
 
7583
    @Override
-
 
7584
    public int hashCode() {
-
 
7585
      return 0;
-
 
7586
    }
-
 
7587
 
-
 
7588
    public int compareTo(getOrdersByBillingDate_args other) {
-
 
7589
      if (!getClass().equals(other.getClass())) {
-
 
7590
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7591
      }
-
 
7592
 
-
 
7593
      int lastComparison = 0;
-
 
7594
      getOrdersByBillingDate_args typedOther = (getOrdersByBillingDate_args)other;
-
 
7595
 
-
 
7596
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
7597
      if (lastComparison != 0) {
-
 
7598
        return lastComparison;
-
 
7599
      }
-
 
7600
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
7601
      if (lastComparison != 0) {
-
 
7602
        return lastComparison;
-
 
7603
      }
-
 
7604
      lastComparison = Boolean.valueOf(isSetStart_billing_date()).compareTo(isSetStart_billing_date());
-
 
7605
      if (lastComparison != 0) {
-
 
7606
        return lastComparison;
-
 
7607
      }
-
 
7608
      lastComparison = TBaseHelper.compareTo(start_billing_date, typedOther.start_billing_date);
-
 
7609
      if (lastComparison != 0) {
-
 
7610
        return lastComparison;
-
 
7611
      }
-
 
7612
      lastComparison = Boolean.valueOf(isSetEnd_billing_date()).compareTo(isSetEnd_billing_date());
-
 
7613
      if (lastComparison != 0) {
-
 
7614
        return lastComparison;
-
 
7615
      }
-
 
7616
      lastComparison = TBaseHelper.compareTo(end_billing_date, typedOther.end_billing_date);
-
 
7617
      if (lastComparison != 0) {
-
 
7618
        return lastComparison;
-
 
7619
      }
-
 
7620
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
-
 
7621
      if (lastComparison != 0) {
-
 
7622
        return lastComparison;
-
 
7623
      }
-
 
7624
      lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
-
 
7625
      if (lastComparison != 0) {
-
 
7626
        return lastComparison;
-
 
7627
      }
-
 
7628
      return 0;
-
 
7629
    }
-
 
7630
 
-
 
7631
    public void read(TProtocol iprot) throws TException {
-
 
7632
      TField field;
-
 
7633
      iprot.readStructBegin();
-
 
7634
      while (true)
-
 
7635
      {
-
 
7636
        field = iprot.readFieldBegin();
-
 
7637
        if (field.type == TType.STOP) { 
-
 
7638
          break;
-
 
7639
        }
-
 
7640
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7641
        if (fieldId == null) {
-
 
7642
          TProtocolUtil.skip(iprot, field.type);
-
 
7643
        } else {
-
 
7644
          switch (fieldId) {
-
 
7645
            case STATUS:
-
 
7646
              if (field.type == TType.I32) {
-
 
7647
                this.status = OrderStatus.findByValue(iprot.readI32());
-
 
7648
              } else { 
-
 
7649
                TProtocolUtil.skip(iprot, field.type);
-
 
7650
              }
-
 
7651
              break;
-
 
7652
            case START_BILLING_DATE:
-
 
7653
              if (field.type == TType.I64) {
-
 
7654
                this.start_billing_date = iprot.readI64();
-
 
7655
                setStart_billing_dateIsSet(true);
-
 
7656
              } else { 
-
 
7657
                TProtocolUtil.skip(iprot, field.type);
-
 
7658
              }
-
 
7659
              break;
-
 
7660
            case END_BILLING_DATE:
-
 
7661
              if (field.type == TType.I64) {
-
 
7662
                this.end_billing_date = iprot.readI64();
-
 
7663
                setEnd_billing_dateIsSet(true);
-
 
7664
              } else { 
-
 
7665
                TProtocolUtil.skip(iprot, field.type);
-
 
7666
              }
-
 
7667
              break;
-
 
7668
            case WAREHOUSE_ID:
-
 
7669
              if (field.type == TType.I64) {
-
 
7670
                this.warehouse_id = iprot.readI64();
-
 
7671
                setWarehouse_idIsSet(true);
-
 
7672
              } else { 
-
 
7673
                TProtocolUtil.skip(iprot, field.type);
-
 
7674
              }
-
 
7675
              break;
-
 
7676
          }
-
 
7677
          iprot.readFieldEnd();
-
 
7678
        }
-
 
7679
      }
-
 
7680
      iprot.readStructEnd();
-
 
7681
      validate();
-
 
7682
    }
-
 
7683
 
-
 
7684
    public void write(TProtocol oprot) throws TException {
-
 
7685
      validate();
-
 
7686
 
-
 
7687
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7688
      if (this.status != null) {
-
 
7689
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
7690
        oprot.writeI32(this.status.getValue());
-
 
7691
        oprot.writeFieldEnd();
-
 
7692
      }
-
 
7693
      oprot.writeFieldBegin(START_BILLING_DATE_FIELD_DESC);
-
 
7694
      oprot.writeI64(this.start_billing_date);
-
 
7695
      oprot.writeFieldEnd();
-
 
7696
      oprot.writeFieldBegin(END_BILLING_DATE_FIELD_DESC);
-
 
7697
      oprot.writeI64(this.end_billing_date);
-
 
7698
      oprot.writeFieldEnd();
-
 
7699
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
7700
      oprot.writeI64(this.warehouse_id);
-
 
7701
      oprot.writeFieldEnd();
-
 
7702
      oprot.writeFieldStop();
-
 
7703
      oprot.writeStructEnd();
-
 
7704
    }
-
 
7705
 
-
 
7706
    @Override
-
 
7707
    public String toString() {
-
 
7708
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_args(");
-
 
7709
      boolean first = true;
-
 
7710
 
-
 
7711
      sb.append("status:");
-
 
7712
      if (this.status == null) {
-
 
7713
        sb.append("null");
-
 
7714
      } else {
-
 
7715
        String status_name = status.name();
-
 
7716
        if (status_name != null) {
-
 
7717
          sb.append(status_name);
-
 
7718
          sb.append(" (");
-
 
7719
        }
-
 
7720
        sb.append(this.status);
-
 
7721
        if (status_name != null) {
-
 
7722
          sb.append(")");
-
 
7723
        }
-
 
7724
      }
-
 
7725
      first = false;
-
 
7726
      if (!first) sb.append(", ");
-
 
7727
      sb.append("start_billing_date:");
-
 
7728
      sb.append(this.start_billing_date);
-
 
7729
      first = false;
-
 
7730
      if (!first) sb.append(", ");
-
 
7731
      sb.append("end_billing_date:");
-
 
7732
      sb.append(this.end_billing_date);
-
 
7733
      first = false;
-
 
7734
      if (!first) sb.append(", ");
-
 
7735
      sb.append("warehouse_id:");
-
 
7736
      sb.append(this.warehouse_id);
-
 
7737
      first = false;
-
 
7738
      sb.append(")");
-
 
7739
      return sb.toString();
-
 
7740
    }
-
 
7741
 
-
 
7742
    public void validate() throws TException {
-
 
7743
      // check for required fields
-
 
7744
    }
-
 
7745
 
-
 
7746
  }
-
 
7747
 
-
 
7748
  public static class getOrdersByBillingDate_result implements TBase<getOrdersByBillingDate_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrdersByBillingDate_result>   {
-
 
7749
    private static final TStruct STRUCT_DESC = new TStruct("getOrdersByBillingDate_result");
-
 
7750
 
-
 
7751
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
7752
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
7753
 
-
 
7754
    private List<Order> success;
-
 
7755
    private TransactionServiceException ex;
-
 
7756
 
-
 
7757
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7758
    public enum _Fields implements TFieldIdEnum {
-
 
7759
      SUCCESS((short)0, "success"),
-
 
7760
      EX((short)1, "ex");
-
 
7761
 
-
 
7762
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7764
 
-
 
7765
      static {
-
 
7766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7767
          byId.put((int)field._thriftId, field);
-
 
7768
          byName.put(field.getFieldName(), field);
-
 
7769
        }
-
 
7770
      }
-
 
7771
 
-
 
7772
      /**
-
 
7773
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7774
       */
-
 
7775
      public static _Fields findByThriftId(int fieldId) {
-
 
7776
        return byId.get(fieldId);
-
 
7777
      }
-
 
7778
 
-
 
7779
      /**
-
 
7780
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7781
       * if it is not found.
-
 
7782
       */
-
 
7783
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7784
        _Fields fields = findByThriftId(fieldId);
-
 
7785
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7786
        return fields;
-
 
7787
      }
-
 
7788
 
-
 
7789
      /**
-
 
7790
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7791
       */
-
 
7792
      public static _Fields findByName(String name) {
-
 
7793
        return byName.get(name);
-
 
7794
      }
-
 
7795
 
-
 
7796
      private final short _thriftId;
-
 
7797
      private final String _fieldName;
-
 
7798
 
-
 
7799
      _Fields(short thriftId, String fieldName) {
-
 
7800
        _thriftId = thriftId;
-
 
7801
        _fieldName = fieldName;
-
 
7802
      }
-
 
7803
 
-
 
7804
      public short getThriftFieldId() {
-
 
7805
        return _thriftId;
-
 
7806
      }
-
 
7807
 
-
 
7808
      public String getFieldName() {
-
 
7809
        return _fieldName;
-
 
7810
      }
-
 
7811
    }
-
 
7812
 
-
 
7813
    // isset id assignments
-
 
7814
 
-
 
7815
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7816
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7817
          new ListMetaData(TType.LIST, 
-
 
7818
              new StructMetaData(TType.STRUCT, Order.class))));
-
 
7819
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
7820
          new FieldValueMetaData(TType.STRUCT)));
-
 
7821
    }});
-
 
7822
 
-
 
7823
    static {
-
 
7824
      FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_result.class, metaDataMap);
-
 
7825
    }
-
 
7826
 
-
 
7827
    public getOrdersByBillingDate_result() {
-
 
7828
    }
-
 
7829
 
-
 
7830
    public getOrdersByBillingDate_result(
-
 
7831
      List<Order> success,
-
 
7832
      TransactionServiceException ex)
-
 
7833
    {
-
 
7834
      this();
-
 
7835
      this.success = success;
-
 
7836
      this.ex = ex;
-
 
7837
    }
-
 
7838
 
-
 
7839
    /**
-
 
7840
     * Performs a deep copy on <i>other</i>.
-
 
7841
     */
-
 
7842
    public getOrdersByBillingDate_result(getOrdersByBillingDate_result other) {
-
 
7843
      if (other.isSetSuccess()) {
-
 
7844
        List<Order> __this__success = new ArrayList<Order>();
-
 
7845
        for (Order other_element : other.success) {
-
 
7846
          __this__success.add(new Order(other_element));
-
 
7847
        }
-
 
7848
        this.success = __this__success;
-
 
7849
      }
-
 
7850
      if (other.isSetEx()) {
-
 
7851
        this.ex = new TransactionServiceException(other.ex);
-
 
7852
      }
-
 
7853
    }
-
 
7854
 
-
 
7855
    public getOrdersByBillingDate_result deepCopy() {
-
 
7856
      return new getOrdersByBillingDate_result(this);
-
 
7857
    }
-
 
7858
 
-
 
7859
    @Deprecated
-
 
7860
    public getOrdersByBillingDate_result clone() {
-
 
7861
      return new getOrdersByBillingDate_result(this);
-
 
7862
    }
-
 
7863
 
-
 
7864
    public int getSuccessSize() {
-
 
7865
      return (this.success == null) ? 0 : this.success.size();
-
 
7866
    }
-
 
7867
 
-
 
7868
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
7869
      return (this.success == null) ? null : this.success.iterator();
-
 
7870
    }
-
 
7871
 
-
 
7872
    public void addToSuccess(Order elem) {
-
 
7873
      if (this.success == null) {
-
 
7874
        this.success = new ArrayList<Order>();
-
 
7875
      }
-
 
7876
      this.success.add(elem);
-
 
7877
    }
-
 
7878
 
-
 
7879
    public List<Order> getSuccess() {
-
 
7880
      return this.success;
-
 
7881
    }
-
 
7882
 
-
 
7883
    public getOrdersByBillingDate_result setSuccess(List<Order> success) {
-
 
7884
      this.success = success;
-
 
7885
      return this;
-
 
7886
    }
-
 
7887
 
-
 
7888
    public void unsetSuccess() {
-
 
7889
      this.success = null;
-
 
7890
    }
-
 
7891
 
-
 
7892
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7893
    public boolean isSetSuccess() {
-
 
7894
      return this.success != null;
-
 
7895
    }
-
 
7896
 
-
 
7897
    public void setSuccessIsSet(boolean value) {
-
 
7898
      if (!value) {
-
 
7899
        this.success = null;
-
 
7900
      }
-
 
7901
    }
-
 
7902
 
-
 
7903
    public TransactionServiceException getEx() {
-
 
7904
      return this.ex;
-
 
7905
    }
-
 
7906
 
-
 
7907
    public getOrdersByBillingDate_result setEx(TransactionServiceException ex) {
-
 
7908
      this.ex = ex;
-
 
7909
      return this;
-
 
7910
    }
-
 
7911
 
-
 
7912
    public void unsetEx() {
-
 
7913
      this.ex = null;
-
 
7914
    }
-
 
7915
 
-
 
7916
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
7917
    public boolean isSetEx() {
-
 
7918
      return this.ex != null;
-
 
7919
    }
-
 
7920
 
-
 
7921
    public void setExIsSet(boolean value) {
-
 
7922
      if (!value) {
-
 
7923
        this.ex = null;
-
 
7924
      }
-
 
7925
    }
-
 
7926
 
-
 
7927
    public void setFieldValue(_Fields field, Object value) {
-
 
7928
      switch (field) {
-
 
7929
      case SUCCESS:
-
 
7930
        if (value == null) {
-
 
7931
          unsetSuccess();
-
 
7932
        } else {
-
 
7933
          setSuccess((List<Order>)value);
-
 
7934
        }
-
 
7935
        break;
-
 
7936
 
-
 
7937
      case EX:
-
 
7938
        if (value == null) {
-
 
7939
          unsetEx();
-
 
7940
        } else {
-
 
7941
          setEx((TransactionServiceException)value);
-
 
7942
        }
-
 
7943
        break;
-
 
7944
 
-
 
7945
      }
-
 
7946
    }
-
 
7947
 
-
 
7948
    public void setFieldValue(int fieldID, Object value) {
-
 
7949
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7950
    }
-
 
7951
 
-
 
7952
    public Object getFieldValue(_Fields field) {
-
 
7953
      switch (field) {
-
 
7954
      case SUCCESS:
-
 
7955
        return getSuccess();
-
 
7956
 
-
 
7957
      case EX:
-
 
7958
        return getEx();
-
 
7959
 
-
 
7960
      }
-
 
7961
      throw new IllegalStateException();
-
 
7962
    }
-
 
7963
 
-
 
7964
    public Object getFieldValue(int fieldId) {
-
 
7965
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7966
    }
-
 
7967
 
-
 
7968
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7969
    public boolean isSet(_Fields field) {
-
 
7970
      switch (field) {
-
 
7971
      case SUCCESS:
-
 
7972
        return isSetSuccess();
-
 
7973
      case EX:
-
 
7974
        return isSetEx();
-
 
7975
      }
-
 
7976
      throw new IllegalStateException();
-
 
7977
    }
-
 
7978
 
-
 
7979
    public boolean isSet(int fieldID) {
-
 
7980
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7981
    }
-
 
7982
 
-
 
7983
    @Override
-
 
7984
    public boolean equals(Object that) {
-
 
7985
      if (that == null)
-
 
7986
        return false;
-
 
7987
      if (that instanceof getOrdersByBillingDate_result)
-
 
7988
        return this.equals((getOrdersByBillingDate_result)that);
-
 
7989
      return false;
-
 
7990
    }
-
 
7991
 
-
 
7992
    public boolean equals(getOrdersByBillingDate_result that) {
-
 
7993
      if (that == null)
-
 
7994
        return false;
-
 
7995
 
-
 
7996
      boolean this_present_success = true && this.isSetSuccess();
-
 
7997
      boolean that_present_success = true && that.isSetSuccess();
-
 
7998
      if (this_present_success || that_present_success) {
-
 
7999
        if (!(this_present_success && that_present_success))
-
 
8000
          return false;
-
 
8001
        if (!this.success.equals(that.success))
-
 
8002
          return false;
-
 
8003
      }
-
 
8004
 
-
 
8005
      boolean this_present_ex = true && this.isSetEx();
-
 
8006
      boolean that_present_ex = true && that.isSetEx();
-
 
8007
      if (this_present_ex || that_present_ex) {
-
 
8008
        if (!(this_present_ex && that_present_ex))
-
 
8009
          return false;
-
 
8010
        if (!this.ex.equals(that.ex))
-
 
8011
          return false;
-
 
8012
      }
-
 
8013
 
-
 
8014
      return true;
-
 
8015
    }
-
 
8016
 
-
 
8017
    @Override
-
 
8018
    public int hashCode() {
-
 
8019
      return 0;
-
 
8020
    }
-
 
8021
 
-
 
8022
    public int compareTo(getOrdersByBillingDate_result other) {
-
 
8023
      if (!getClass().equals(other.getClass())) {
-
 
8024
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8025
      }
-
 
8026
 
-
 
8027
      int lastComparison = 0;
-
 
8028
      getOrdersByBillingDate_result typedOther = (getOrdersByBillingDate_result)other;
-
 
8029
 
-
 
8030
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
8031
      if (lastComparison != 0) {
-
 
8032
        return lastComparison;
-
 
8033
      }
-
 
8034
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
8035
      if (lastComparison != 0) {
-
 
8036
        return lastComparison;
-
 
8037
      }
-
 
8038
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
8039
      if (lastComparison != 0) {
-
 
8040
        return lastComparison;
-
 
8041
      }
-
 
8042
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
8043
      if (lastComparison != 0) {
-
 
8044
        return lastComparison;
-
 
8045
      }
-
 
8046
      return 0;
-
 
8047
    }
-
 
8048
 
-
 
8049
    public void read(TProtocol iprot) throws TException {
-
 
8050
      TField field;
-
 
8051
      iprot.readStructBegin();
-
 
8052
      while (true)
-
 
8053
      {
-
 
8054
        field = iprot.readFieldBegin();
-
 
8055
        if (field.type == TType.STOP) { 
-
 
8056
          break;
-
 
8057
        }
-
 
8058
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8059
        if (fieldId == null) {
-
 
8060
          TProtocolUtil.skip(iprot, field.type);
-
 
8061
        } else {
-
 
8062
          switch (fieldId) {
-
 
8063
            case SUCCESS:
-
 
8064
              if (field.type == TType.LIST) {
-
 
8065
                {
-
 
8066
                  TList _list20 = iprot.readListBegin();
-
 
8067
                  this.success = new ArrayList<Order>(_list20.size);
-
 
8068
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
8069
                  {
-
 
8070
                    Order _elem22;
-
 
8071
                    _elem22 = new Order();
-
 
8072
                    _elem22.read(iprot);
-
 
8073
                    this.success.add(_elem22);
-
 
8074
                  }
-
 
8075
                  iprot.readListEnd();
-
 
8076
                }
-
 
8077
              } else { 
-
 
8078
                TProtocolUtil.skip(iprot, field.type);
-
 
8079
              }
-
 
8080
              break;
-
 
8081
            case EX:
-
 
8082
              if (field.type == TType.STRUCT) {
-
 
8083
                this.ex = new TransactionServiceException();
-
 
8084
                this.ex.read(iprot);
-
 
8085
              } else { 
-
 
8086
                TProtocolUtil.skip(iprot, field.type);
-
 
8087
              }
-
 
8088
              break;
-
 
8089
          }
-
 
8090
          iprot.readFieldEnd();
-
 
8091
        }
-
 
8092
      }
-
 
8093
      iprot.readStructEnd();
-
 
8094
      validate();
-
 
8095
    }
-
 
8096
 
-
 
8097
    public void write(TProtocol oprot) throws TException {
-
 
8098
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8099
 
-
 
8100
      if (this.isSetSuccess()) {
-
 
8101
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8102
        {
-
 
8103
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
8104
          for (Order _iter23 : this.success)
-
 
8105
          {
-
 
8106
            _iter23.write(oprot);
-
 
8107
          }
-
 
8108
          oprot.writeListEnd();
-
 
8109
        }
-
 
8110
        oprot.writeFieldEnd();
-
 
8111
      } else if (this.isSetEx()) {
-
 
8112
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
8113
        this.ex.write(oprot);
-
 
8114
        oprot.writeFieldEnd();
-
 
8115
      }
-
 
8116
      oprot.writeFieldStop();
-
 
8117
      oprot.writeStructEnd();
-
 
8118
    }
-
 
8119
 
-
 
8120
    @Override
-
 
8121
    public String toString() {
-
 
8122
      StringBuilder sb = new StringBuilder("getOrdersByBillingDate_result(");
-
 
8123
      boolean first = true;
-
 
8124
 
-
 
8125
      sb.append("success:");
-
 
8126
      if (this.success == null) {
-
 
8127
        sb.append("null");
-
 
8128
      } else {
-
 
8129
        sb.append(this.success);
-
 
8130
      }
-
 
8131
      first = false;
-
 
8132
      if (!first) sb.append(", ");
-
 
8133
      sb.append("ex:");
-
 
8134
      if (this.ex == null) {
-
 
8135
        sb.append("null");
-
 
8136
      } else {
-
 
8137
        sb.append(this.ex);
-
 
8138
      }
-
 
8139
      first = false;
-
 
8140
      sb.append(")");
-
 
8141
      return sb.toString();
-
 
8142
    }
-
 
8143
 
-
 
8144
    public void validate() throws TException {
-
 
8145
      // check for required fields
-
 
8146
    }
-
 
8147
 
-
 
8148
  }
-
 
8149
 
7140
  public static class changeOrderStatus_args implements TBase<changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeOrderStatus_args>   {
8150
  public static class changeOrderStatus_args implements TBase<changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeOrderStatus_args>   {
7141
    private static final TStruct STRUCT_DESC = new TStruct("changeOrderStatus_args");
8151
    private static final TStruct STRUCT_DESC = new TStruct("changeOrderStatus_args");
7142
 
8152
 
7143
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
8153
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
7144
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
8154
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);
Line 10729... Line 11739...
10729
        } else {
11739
        } else {
10730
          switch (fieldId) {
11740
          switch (fieldId) {
10731
            case SUCCESS:
11741
            case SUCCESS:
10732
              if (field.type == TType.LIST) {
11742
              if (field.type == TType.LIST) {
10733
                {
11743
                {
10734
                  TList _list20 = iprot.readListBegin();
11744
                  TList _list24 = iprot.readListBegin();
10735
                  this.success = new ArrayList<Order>(_list20.size);
11745
                  this.success = new ArrayList<Order>(_list24.size);
10736
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
11746
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
10737
                  {
11747
                  {
10738
                    Order _elem22;
11748
                    Order _elem26;
10739
                    _elem22 = new Order();
11749
                    _elem26 = new Order();
10740
                    _elem22.read(iprot);
11750
                    _elem26.read(iprot);
10741
                    this.success.add(_elem22);
11751
                    this.success.add(_elem26);
10742
                  }
11752
                  }
10743
                  iprot.readListEnd();
11753
                  iprot.readListEnd();
10744
                }
11754
                }
10745
              } else { 
11755
              } else { 
10746
                TProtocolUtil.skip(iprot, field.type);
11756
                TProtocolUtil.skip(iprot, field.type);
Line 10767... Line 11777...
10767
 
11777
 
10768
      if (this.isSetSuccess()) {
11778
      if (this.isSetSuccess()) {
10769
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11779
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10770
        {
11780
        {
10771
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
11781
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
10772
          for (Order _iter23 : this.success)
11782
          for (Order _iter27 : this.success)
10773
          {
11783
          {
10774
            _iter23.write(oprot);
11784
            _iter27.write(oprot);
10775
          }
11785
          }
10776
          oprot.writeListEnd();
11786
          oprot.writeListEnd();
10777
        }
11787
        }
10778
        oprot.writeFieldEnd();
11788
        oprot.writeFieldEnd();
10779
      } else if (this.isSetEx()) {
11789
      } else if (this.isSetEx()) {
Line 11669... Line 12679...
11669
        } else {
12679
        } else {
11670
          switch (fieldId) {
12680
          switch (fieldId) {
11671
            case SUCCESS:
12681
            case SUCCESS:
11672
              if (field.type == TType.LIST) {
12682
              if (field.type == TType.LIST) {
11673
                {
12683
                {
11674
                  TList _list24 = iprot.readListBegin();
12684
                  TList _list28 = iprot.readListBegin();
11675
                  this.success = new ArrayList<Order>(_list24.size);
12685
                  this.success = new ArrayList<Order>(_list28.size);
11676
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
12686
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
11677
                  {
12687
                  {
11678
                    Order _elem26;
12688
                    Order _elem30;
11679
                    _elem26 = new Order();
12689
                    _elem30 = new Order();
11680
                    _elem26.read(iprot);
12690
                    _elem30.read(iprot);
11681
                    this.success.add(_elem26);
12691
                    this.success.add(_elem30);
11682
                  }
12692
                  }
11683
                  iprot.readListEnd();
12693
                  iprot.readListEnd();
11684
                }
12694
                }
11685
              } else { 
12695
              } else { 
11686
                TProtocolUtil.skip(iprot, field.type);
12696
                TProtocolUtil.skip(iprot, field.type);
Line 11707... Line 12717...
11707
 
12717
 
11708
      if (this.isSetSuccess()) {
12718
      if (this.isSetSuccess()) {
11709
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12719
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11710
        {
12720
        {
11711
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
12721
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
11712
          for (Order _iter27 : this.success)
12722
          for (Order _iter31 : this.success)
11713
          {
12723
          {
11714
            _iter27.write(oprot);
12724
            _iter31.write(oprot);
11715
          }
12725
          }
11716
          oprot.writeListEnd();
12726
          oprot.writeListEnd();
11717
        }
12727
        }
11718
        oprot.writeFieldEnd();
12728
        oprot.writeFieldEnd();
11719
      } else if (this.isSetEx()) {
12729
      } else if (this.isSetEx()) {
Line 13637... Line 14647...
13637
        } else {
14647
        } else {
13638
          switch (fieldId) {
14648
          switch (fieldId) {
13639
            case SUCCESS:
14649
            case SUCCESS:
13640
              if (field.type == TType.LIST) {
14650
              if (field.type == TType.LIST) {
13641
                {
14651
                {
13642
                  TList _list28 = iprot.readListBegin();
14652
                  TList _list32 = iprot.readListBegin();
13643
                  this.success = new ArrayList<LineItem>(_list28.size);
14653
                  this.success = new ArrayList<LineItem>(_list32.size);
13644
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
14654
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
13645
                  {
14655
                  {
13646
                    LineItem _elem30;
14656
                    LineItem _elem34;
13647
                    _elem30 = new LineItem();
14657
                    _elem34 = new LineItem();
13648
                    _elem30.read(iprot);
14658
                    _elem34.read(iprot);
13649
                    this.success.add(_elem30);
14659
                    this.success.add(_elem34);
13650
                  }
14660
                  }
13651
                  iprot.readListEnd();
14661
                  iprot.readListEnd();
13652
                }
14662
                }
13653
              } else { 
14663
              } else { 
13654
                TProtocolUtil.skip(iprot, field.type);
14664
                TProtocolUtil.skip(iprot, field.type);
Line 13675... Line 14685...
13675
 
14685
 
13676
      if (this.isSetSuccess()) {
14686
      if (this.isSetSuccess()) {
13677
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13678
        {
14688
        {
13679
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
14689
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
13680
          for (LineItem _iter31 : this.success)
14690
          for (LineItem _iter35 : this.success)
13681
          {
14691
          {
13682
            _iter31.write(oprot);
14692
            _iter35.write(oprot);
13683
          }
14693
          }
13684
          oprot.writeListEnd();
14694
          oprot.writeListEnd();
13685
        }
14695
        }
13686
        oprot.writeFieldEnd();
14696
        oprot.writeFieldEnd();
13687
      } else if (this.isSetEx()) {
14697
      } else if (this.isSetEx()) {
Line 15050... Line 16060...
15050
        } else {
16060
        } else {
15051
          switch (fieldId) {
16061
          switch (fieldId) {
15052
            case SUCCESS:
16062
            case SUCCESS:
15053
              if (field.type == TType.LIST) {
16063
              if (field.type == TType.LIST) {
15054
                {
16064
                {
15055
                  TList _list32 = iprot.readListBegin();
16065
                  TList _list36 = iprot.readListBegin();
15056
                  this.success = new ArrayList<Alert>(_list32.size);
16066
                  this.success = new ArrayList<Alert>(_list36.size);
15057
                  for (int _i33 = 0; _i33 < _list32.size; ++_i33)
16067
                  for (int _i37 = 0; _i37 < _list36.size; ++_i37)
15058
                  {
16068
                  {
15059
                    Alert _elem34;
16069
                    Alert _elem38;
15060
                    _elem34 = new Alert();
16070
                    _elem38 = new Alert();
15061
                    _elem34.read(iprot);
16071
                    _elem38.read(iprot);
15062
                    this.success.add(_elem34);
16072
                    this.success.add(_elem38);
15063
                  }
16073
                  }
15064
                  iprot.readListEnd();
16074
                  iprot.readListEnd();
15065
                }
16075
                }
15066
              } else { 
16076
              } else { 
15067
                TProtocolUtil.skip(iprot, field.type);
16077
                TProtocolUtil.skip(iprot, field.type);
Line 15080... Line 16090...
15080
 
16090
 
15081
      if (this.isSetSuccess()) {
16091
      if (this.isSetSuccess()) {
15082
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15083
        {
16093
        {
15084
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16094
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15085
          for (Alert _iter35 : this.success)
16095
          for (Alert _iter39 : this.success)
15086
          {
16096
          {
15087
            _iter35.write(oprot);
16097
            _iter39.write(oprot);
15088
          }
16098
          }
15089
          oprot.writeListEnd();
16099
          oprot.writeListEnd();
15090
        }
16100
        }
15091
        oprot.writeFieldEnd();
16101
        oprot.writeFieldEnd();
15092
      }
16102
      }