Subversion Repositories SmartDukaan

Rev

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

Rev 7172 Rev 7190
Line 216... Line 216...
216
     * 
216
     * 
217
     * @param orderId
217
     * @param orderId
218
     * @param invoice_number
218
     * @param invoice_number
219
     * @param serialNumber
219
     * @param serialNumber
220
     * @param itemNumber
220
     * @param itemNumber
-
 
221
     * @param freebieWarehouseId
221
     * @param billed_by
222
     * @param billed_by
222
     * @param jacketNumber
223
     * @param jacketNumber
223
     * @param billingType
224
     * @param billingType
224
     * @param fulfilmentWarehouseId
225
     * @param fulfilmentWarehouseId
225
     * @param authorize
226
     * @param authorize
226
     */
227
     */
227
    public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException;
228
    public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException;
228
 
229
 
229
    /**
230
    /**
230
     * Add the invoice number to the order.
231
     * Add the invoice number to the order.
231
     * 
232
     * 
232
     * @param orderId
233
     * @param orderId
Line 932... Line 933...
932
 
933
 
933
    public TelecomCircle getTelecomCircle(long id, String code) throws org.apache.thrift.TException;
934
    public TelecomCircle getTelecomCircle(long id, String code) throws org.apache.thrift.TException;
934
 
935
 
935
    public ByteBuffer retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException;
936
    public ByteBuffer retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException;
936
 
937
 
-
 
938
    public Order splitFreebieOrder(long orderId, String splitReason, long shippingDate) throws org.apache.thrift.TException;
-
 
939
 
937
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException;
940
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException;
938
 
941
 
939
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
942
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
940
 
943
 
941
  }
944
  }
Line 1008... Line 1011...
1008
 
1011
 
1009
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
1012
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
1010
 
1013
 
1011
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
1014
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
1012
 
1015
 
1013
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
1016
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
1014
 
1017
 
1015
    public void addInvoiceNumber(long orderId, String invoiceNumber, String color, String serialNumber, String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
1018
    public void addInvoiceNumber(long orderId, String invoiceNumber, String color, String serialNumber, String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
1016
 
1019
 
1017
    public void markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsShippedFromWarehouse_call> resultHandler) throws org.apache.thrift.TException;
1020
    public void markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsShippedFromWarehouse_call> resultHandler) throws org.apache.thrift.TException;
1018
 
1021
 
Line 1262... Line 1265...
1262
 
1265
 
1263
    public void getTelecomCircle(long id, String code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTelecomCircle_call> resultHandler) throws org.apache.thrift.TException;
1266
    public void getTelecomCircle(long id, String code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTelecomCircle_call> resultHandler) throws org.apache.thrift.TException;
1264
 
1267
 
1265
    public void retrieveHotspotRechargeInvoice(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveHotspotRechargeInvoice_call> resultHandler) throws org.apache.thrift.TException;
1268
    public void retrieveHotspotRechargeInvoice(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveHotspotRechargeInvoice_call> resultHandler) throws org.apache.thrift.TException;
1266
 
1269
 
-
 
1270
    public void splitFreebieOrder(long orderId, String splitReason, long shippingDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitFreebieOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1271
 
1267
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
1272
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
1268
 
1273
 
1269
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
1274
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
1270
 
1275
 
1271
  }
1276
  }
Line 2173... Line 2178...
2173
        throw result.ex;
2178
        throw result.ex;
2174
      }
2179
      }
2175
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
2180
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
2176
    }
2181
    }
2177
 
2182
 
2178
    public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException
2183
    public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException
2179
    {
2184
    {
2180
      send_addBillingDetails(orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize);
2185
      send_addBillingDetails(orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize);
2181
      return recv_addBillingDetails();
2186
      return recv_addBillingDetails();
2182
    }
2187
    }
2183
 
2188
 
2184
    public void send_addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws org.apache.thrift.TException
2189
    public void send_addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws org.apache.thrift.TException
2185
    {
2190
    {
2186
      addBillingDetails_args args = new addBillingDetails_args();
2191
      addBillingDetails_args args = new addBillingDetails_args();
2187
      args.setOrderId(orderId);
2192
      args.setOrderId(orderId);
2188
      args.setInvoice_number(invoice_number);
2193
      args.setInvoice_number(invoice_number);
2189
      args.setSerialNumber(serialNumber);
2194
      args.setSerialNumber(serialNumber);
2190
      args.setItemNumber(itemNumber);
2195
      args.setItemNumber(itemNumber);
-
 
2196
      args.setFreebieWarehouseId(freebieWarehouseId);
2191
      args.setBilled_by(billed_by);
2197
      args.setBilled_by(billed_by);
2192
      args.setJacketNumber(jacketNumber);
2198
      args.setJacketNumber(jacketNumber);
2193
      args.setBillingType(billingType);
2199
      args.setBillingType(billingType);
2194
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
2200
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
2195
      args.setAuthorize(authorize);
2201
      args.setAuthorize(authorize);
Line 5332... Line 5338...
5332
        return result.success;
5338
        return result.success;
5333
      }
5339
      }
5334
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveHotspotRechargeInvoice failed: unknown result");
5340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveHotspotRechargeInvoice failed: unknown result");
5335
    }
5341
    }
5336
 
5342
 
-
 
5343
    public Order splitFreebieOrder(long orderId, String splitReason, long shippingDate) throws org.apache.thrift.TException
-
 
5344
    {
-
 
5345
      send_splitFreebieOrder(orderId, splitReason, shippingDate);
-
 
5346
      return recv_splitFreebieOrder();
-
 
5347
    }
-
 
5348
 
-
 
5349
    public void send_splitFreebieOrder(long orderId, String splitReason, long shippingDate) throws org.apache.thrift.TException
-
 
5350
    {
-
 
5351
      splitFreebieOrder_args args = new splitFreebieOrder_args();
-
 
5352
      args.setOrderId(orderId);
-
 
5353
      args.setSplitReason(splitReason);
-
 
5354
      args.setShippingDate(shippingDate);
-
 
5355
      sendBase("splitFreebieOrder", args);
-
 
5356
    }
-
 
5357
 
-
 
5358
    public Order recv_splitFreebieOrder() throws org.apache.thrift.TException
-
 
5359
    {
-
 
5360
      splitFreebieOrder_result result = new splitFreebieOrder_result();
-
 
5361
      receiveBase(result, "splitFreebieOrder");
-
 
5362
      if (result.isSetSuccess()) {
-
 
5363
        return result.success;
-
 
5364
      }
-
 
5365
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "splitFreebieOrder failed: unknown result");
-
 
5366
    }
-
 
5367
 
5337
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException
5368
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException
5338
    {
5369
    {
5339
      send_getRechargeTransactionsByNumber(number, storeId);
5370
      send_getRechargeTransactionsByNumber(number, storeId);
5340
      return recv_getRechargeTransactionsByNumber();
5371
      return recv_getRechargeTransactionsByNumber();
5341
    }
5372
    }
Line 6588... Line 6619...
6588
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6619
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6589
        return (new Client(prot)).recv_acceptOrder();
6620
        return (new Client(prot)).recv_acceptOrder();
6590
      }
6621
      }
6591
    }
6622
    }
6592
 
6623
 
6593
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
6624
    public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
6594
      checkReady();
6625
      checkReady();
6595
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize, resultHandler, this, ___protocolFactory, ___transport);
6626
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, serialNumber, itemNumber, freebieWarehouseId, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize, resultHandler, this, ___protocolFactory, ___transport);
6596
      this.___currentMethod = method_call;
6627
      this.___currentMethod = method_call;
6597
      ___manager.call(method_call);
6628
      ___manager.call(method_call);
6598
    }
6629
    }
6599
 
6630
 
6600
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
6631
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
6601
      private long orderId;
6632
      private long orderId;
6602
      private String invoice_number;
6633
      private String invoice_number;
6603
      private List<String> serialNumber;
6634
      private List<String> serialNumber;
6604
      private List<String> itemNumber;
6635
      private List<String> itemNumber;
-
 
6636
      private long freebieWarehouseId;
6605
      private String billed_by;
6637
      private String billed_by;
6606
      private long jacketNumber;
6638
      private long jacketNumber;
6607
      private long billingType;
6639
      private long billingType;
6608
      private long fulfilmentWarehouseId;
6640
      private long fulfilmentWarehouseId;
6609
      private boolean authorize;
6641
      private boolean authorize;
6610
      public addBillingDetails_call(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_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 {
6642
      public addBillingDetails_call(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, long freebieWarehouseId, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_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 {
6611
        super(client, protocolFactory, transport, resultHandler, false);
6643
        super(client, protocolFactory, transport, resultHandler, false);
6612
        this.orderId = orderId;
6644
        this.orderId = orderId;
6613
        this.invoice_number = invoice_number;
6645
        this.invoice_number = invoice_number;
6614
        this.serialNumber = serialNumber;
6646
        this.serialNumber = serialNumber;
6615
        this.itemNumber = itemNumber;
6647
        this.itemNumber = itemNumber;
-
 
6648
        this.freebieWarehouseId = freebieWarehouseId;
6616
        this.billed_by = billed_by;
6649
        this.billed_by = billed_by;
6617
        this.jacketNumber = jacketNumber;
6650
        this.jacketNumber = jacketNumber;
6618
        this.billingType = billingType;
6651
        this.billingType = billingType;
6619
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6652
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6620
        this.authorize = authorize;
6653
        this.authorize = authorize;
Line 6625... Line 6658...
6625
        addBillingDetails_args args = new addBillingDetails_args();
6658
        addBillingDetails_args args = new addBillingDetails_args();
6626
        args.setOrderId(orderId);
6659
        args.setOrderId(orderId);
6627
        args.setInvoice_number(invoice_number);
6660
        args.setInvoice_number(invoice_number);
6628
        args.setSerialNumber(serialNumber);
6661
        args.setSerialNumber(serialNumber);
6629
        args.setItemNumber(itemNumber);
6662
        args.setItemNumber(itemNumber);
-
 
6663
        args.setFreebieWarehouseId(freebieWarehouseId);
6630
        args.setBilled_by(billed_by);
6664
        args.setBilled_by(billed_by);
6631
        args.setJacketNumber(jacketNumber);
6665
        args.setJacketNumber(jacketNumber);
6632
        args.setBillingType(billingType);
6666
        args.setBillingType(billingType);
6633
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
6667
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
6634
        args.setAuthorize(authorize);
6668
        args.setAuthorize(authorize);
Line 11024... Line 11058...
11024
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11058
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11025
        return (new Client(prot)).recv_retrieveHotspotRechargeInvoice();
11059
        return (new Client(prot)).recv_retrieveHotspotRechargeInvoice();
11026
      }
11060
      }
11027
    }
11061
    }
11028
 
11062
 
-
 
11063
    public void splitFreebieOrder(long orderId, String splitReason, long shippingDate, org.apache.thrift.async.AsyncMethodCallback<splitFreebieOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
11064
      checkReady();
-
 
11065
      splitFreebieOrder_call method_call = new splitFreebieOrder_call(orderId, splitReason, shippingDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
11066
      this.___currentMethod = method_call;
-
 
11067
      ___manager.call(method_call);
-
 
11068
    }
-
 
11069
 
-
 
11070
    public static class splitFreebieOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11071
      private long orderId;
-
 
11072
      private String splitReason;
-
 
11073
      private long shippingDate;
-
 
11074
      public splitFreebieOrder_call(long orderId, String splitReason, long shippingDate, org.apache.thrift.async.AsyncMethodCallback<splitFreebieOrder_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 {
-
 
11075
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11076
        this.orderId = orderId;
-
 
11077
        this.splitReason = splitReason;
-
 
11078
        this.shippingDate = shippingDate;
-
 
11079
      }
-
 
11080
 
-
 
11081
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11082
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("splitFreebieOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11083
        splitFreebieOrder_args args = new splitFreebieOrder_args();
-
 
11084
        args.setOrderId(orderId);
-
 
11085
        args.setSplitReason(splitReason);
-
 
11086
        args.setShippingDate(shippingDate);
-
 
11087
        args.write(prot);
-
 
11088
        prot.writeMessageEnd();
-
 
11089
      }
-
 
11090
 
-
 
11091
      public Order getResult() throws org.apache.thrift.TException {
-
 
11092
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11093
          throw new IllegalStateException("Method call not finished!");
-
 
11094
        }
-
 
11095
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11096
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11097
        return (new Client(prot)).recv_splitFreebieOrder();
-
 
11098
      }
-
 
11099
    }
-
 
11100
 
11029
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException {
11101
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException {
11030
      checkReady();
11102
      checkReady();
11031
      getRechargeTransactionsByNumber_call method_call = new getRechargeTransactionsByNumber_call(number, storeId, resultHandler, this, ___protocolFactory, ___transport);
11103
      getRechargeTransactionsByNumber_call method_call = new getRechargeTransactionsByNumber_call(number, storeId, resultHandler, this, ___protocolFactory, ___transport);
11032
      this.___currentMethod = method_call;
11104
      this.___currentMethod = method_call;
11033
      ___manager.call(method_call);
11105
      ___manager.call(method_call);
Line 11268... Line 11340...
11268
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11340
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11269
      processMap.put("getFRCs", new getFRCs());
11341
      processMap.put("getFRCs", new getFRCs());
11270
      processMap.put("getHotspotStore", new getHotspotStore());
11342
      processMap.put("getHotspotStore", new getHotspotStore());
11271
      processMap.put("getTelecomCircle", new getTelecomCircle());
11343
      processMap.put("getTelecomCircle", new getTelecomCircle());
11272
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11344
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
-
 
11345
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
11273
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
11346
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
11274
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
11347
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
11275
      return processMap;
11348
      return processMap;
11276
    }
11349
    }
11277
 
11350
 
Line 11940... Line 12013...
11940
      }
12013
      }
11941
 
12014
 
11942
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
12015
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
11943
        addBillingDetails_result result = new addBillingDetails_result();
12016
        addBillingDetails_result result = new addBillingDetails_result();
11944
        try {
12017
        try {
11945
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.serialNumber, args.itemNumber, args.billed_by, args.jacketNumber, args.billingType, args.fulfilmentWarehouseId, args.authorize);
12018
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.serialNumber, args.itemNumber, args.freebieWarehouseId, args.billed_by, args.jacketNumber, args.billingType, args.fulfilmentWarehouseId, args.authorize);
11946
          result.setSuccessIsSet(true);
12019
          result.setSuccessIsSet(true);
11947
        } catch (TransactionServiceException ex) {
12020
        } catch (TransactionServiceException ex) {
11948
          result.ex = ex;
12021
          result.ex = ex;
11949
        }
12022
        }
11950
        return result;
12023
        return result;
Line 14277... Line 14350...
14277
        result.success = iface.retrieveHotspotRechargeInvoice(args.rechargeId);
14350
        result.success = iface.retrieveHotspotRechargeInvoice(args.rechargeId);
14278
        return result;
14351
        return result;
14279
      }
14352
      }
14280
    }
14353
    }
14281
 
14354
 
-
 
14355
    private static class splitFreebieOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, splitFreebieOrder_args> {
-
 
14356
      public splitFreebieOrder() {
-
 
14357
        super("splitFreebieOrder");
-
 
14358
      }
-
 
14359
 
-
 
14360
      protected splitFreebieOrder_args getEmptyArgsInstance() {
-
 
14361
        return new splitFreebieOrder_args();
-
 
14362
      }
-
 
14363
 
-
 
14364
      protected splitFreebieOrder_result getResult(I iface, splitFreebieOrder_args args) throws org.apache.thrift.TException {
-
 
14365
        splitFreebieOrder_result result = new splitFreebieOrder_result();
-
 
14366
        result.success = iface.splitFreebieOrder(args.orderId, args.splitReason, args.shippingDate);
-
 
14367
        return result;
-
 
14368
      }
-
 
14369
    }
-
 
14370
 
14282
    private static class getRechargeTransactionsByNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransactionsByNumber_args> {
14371
    private static class getRechargeTransactionsByNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransactionsByNumber_args> {
14283
      public getRechargeTransactionsByNumber() {
14372
      public getRechargeTransactionsByNumber() {
14284
        super("getRechargeTransactionsByNumber");
14373
        super("getRechargeTransactionsByNumber");
14285
      }
14374
      }
14286
 
14375
 
Line 22560... Line 22649...
22560
      }
22649
      }
22561
    }
22650
    }
22562
 
22651
 
22563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22564
      try {
22653
      try {
-
 
22654
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
22655
        __isset_bit_vector = new BitSet(1);
22565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22566
      } catch (org.apache.thrift.TException te) {
22657
      } catch (org.apache.thrift.TException te) {
22567
        throw new java.io.IOException(te);
22658
        throw new java.io.IOException(te);
22568
      }
22659
      }
22569
    }
22660
    }
Line 40063... Line 40154...
40063
 
40154
 
40064
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
40155
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
40065
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
40156
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
40066
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.LIST, (short)3);
40157
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.LIST, (short)3);
40067
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.LIST, (short)4);
40158
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.LIST, (short)4);
-
 
40159
    private static final org.apache.thrift.protocol.TField FREEBIE_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
40068
    private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)5);
40160
    private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)6);
40069
    private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)6);
40161
    private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)7);
40070
    private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I64, (short)7);
40162
    private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I64, (short)8);
40071
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)8);
40163
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)9);
40072
    private static final org.apache.thrift.protocol.TField AUTHORIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("authorize", org.apache.thrift.protocol.TType.BOOL, (short)9);
40164
    private static final org.apache.thrift.protocol.TField AUTHORIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("authorize", org.apache.thrift.protocol.TType.BOOL, (short)10);
40073
 
40165
 
40074
    private long orderId; // required
40166
    private long orderId; // required
40075
    private String invoice_number; // required
40167
    private String invoice_number; // required
40076
    private List<String> serialNumber; // required
40168
    private List<String> serialNumber; // required
40077
    private List<String> itemNumber; // required
40169
    private List<String> itemNumber; // required
-
 
40170
    private long freebieWarehouseId; // required
40078
    private String billed_by; // required
40171
    private String billed_by; // required
40079
    private long jacketNumber; // required
40172
    private long jacketNumber; // required
40080
    private long billingType; // required
40173
    private long billingType; // required
40081
    private long fulfilmentWarehouseId; // required
40174
    private long fulfilmentWarehouseId; // required
40082
    private boolean authorize; // required
40175
    private boolean authorize; // required
Line 40085... Line 40178...
40085
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40178
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40086
      ORDER_ID((short)1, "orderId"),
40179
      ORDER_ID((short)1, "orderId"),
40087
      INVOICE_NUMBER((short)2, "invoice_number"),
40180
      INVOICE_NUMBER((short)2, "invoice_number"),
40088
      SERIAL_NUMBER((short)3, "serialNumber"),
40181
      SERIAL_NUMBER((short)3, "serialNumber"),
40089
      ITEM_NUMBER((short)4, "itemNumber"),
40182
      ITEM_NUMBER((short)4, "itemNumber"),
-
 
40183
      FREEBIE_WAREHOUSE_ID((short)5, "freebieWarehouseId"),
40090
      BILLED_BY((short)5, "billed_by"),
40184
      BILLED_BY((short)6, "billed_by"),
40091
      JACKET_NUMBER((short)6, "jacketNumber"),
40185
      JACKET_NUMBER((short)7, "jacketNumber"),
40092
      BILLING_TYPE((short)7, "billingType"),
40186
      BILLING_TYPE((short)8, "billingType"),
40093
      FULFILMENT_WAREHOUSE_ID((short)8, "fulfilmentWarehouseId"),
40187
      FULFILMENT_WAREHOUSE_ID((short)9, "fulfilmentWarehouseId"),
40094
      AUTHORIZE((short)9, "authorize");
40188
      AUTHORIZE((short)10, "authorize");
40095
 
40189
 
40096
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40097
 
40191
 
40098
      static {
40192
      static {
40099
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 40112... Line 40206...
40112
            return INVOICE_NUMBER;
40206
            return INVOICE_NUMBER;
40113
          case 3: // SERIAL_NUMBER
40207
          case 3: // SERIAL_NUMBER
40114
            return SERIAL_NUMBER;
40208
            return SERIAL_NUMBER;
40115
          case 4: // ITEM_NUMBER
40209
          case 4: // ITEM_NUMBER
40116
            return ITEM_NUMBER;
40210
            return ITEM_NUMBER;
-
 
40211
          case 5: // FREEBIE_WAREHOUSE_ID
-
 
40212
            return FREEBIE_WAREHOUSE_ID;
40117
          case 5: // BILLED_BY
40213
          case 6: // BILLED_BY
40118
            return BILLED_BY;
40214
            return BILLED_BY;
40119
          case 6: // JACKET_NUMBER
40215
          case 7: // JACKET_NUMBER
40120
            return JACKET_NUMBER;
40216
            return JACKET_NUMBER;
40121
          case 7: // BILLING_TYPE
40217
          case 8: // BILLING_TYPE
40122
            return BILLING_TYPE;
40218
            return BILLING_TYPE;
40123
          case 8: // FULFILMENT_WAREHOUSE_ID
40219
          case 9: // FULFILMENT_WAREHOUSE_ID
40124
            return FULFILMENT_WAREHOUSE_ID;
40220
            return FULFILMENT_WAREHOUSE_ID;
40125
          case 9: // AUTHORIZE
40221
          case 10: // AUTHORIZE
40126
            return AUTHORIZE;
40222
            return AUTHORIZE;
40127
          default:
40223
          default:
40128
            return null;
40224
            return null;
40129
        }
40225
        }
40130
      }
40226
      }
Line 40163... Line 40259...
40163
      }
40259
      }
40164
    }
40260
    }
40165
 
40261
 
40166
    // isset id assignments
40262
    // isset id assignments
40167
    private static final int __ORDERID_ISSET_ID = 0;
40263
    private static final int __ORDERID_ISSET_ID = 0;
-
 
40264
    private static final int __FREEBIEWAREHOUSEID_ISSET_ID = 1;
40168
    private static final int __JACKETNUMBER_ISSET_ID = 1;
40265
    private static final int __JACKETNUMBER_ISSET_ID = 2;
40169
    private static final int __BILLINGTYPE_ISSET_ID = 2;
40266
    private static final int __BILLINGTYPE_ISSET_ID = 3;
40170
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 3;
40267
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 4;
40171
    private static final int __AUTHORIZE_ISSET_ID = 4;
40268
    private static final int __AUTHORIZE_ISSET_ID = 5;
40172
    private BitSet __isset_bit_vector = new BitSet(5);
40269
    private BitSet __isset_bit_vector = new BitSet(6);
40173
 
40270
 
40174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40175
    static {
40272
    static {
40176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40177
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40274
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 40182... Line 40279...
40182
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40279
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40183
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
40280
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
40184
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40281
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40185
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40282
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40186
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
40283
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
40284
      tmpMap.put(_Fields.FREEBIE_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40187
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40286
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40188
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40287
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40189
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40288
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40190
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40289
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40191
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40290
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 40204... Line 40303...
40204
    public addBillingDetails_args(
40303
    public addBillingDetails_args(
40205
      long orderId,
40304
      long orderId,
40206
      String invoice_number,
40305
      String invoice_number,
40207
      List<String> serialNumber,
40306
      List<String> serialNumber,
40208
      List<String> itemNumber,
40307
      List<String> itemNumber,
-
 
40308
      long freebieWarehouseId,
40209
      String billed_by,
40309
      String billed_by,
40210
      long jacketNumber,
40310
      long jacketNumber,
40211
      long billingType,
40311
      long billingType,
40212
      long fulfilmentWarehouseId,
40312
      long fulfilmentWarehouseId,
40213
      boolean authorize)
40313
      boolean authorize)
Line 40216... Line 40316...
40216
      this.orderId = orderId;
40316
      this.orderId = orderId;
40217
      setOrderIdIsSet(true);
40317
      setOrderIdIsSet(true);
40218
      this.invoice_number = invoice_number;
40318
      this.invoice_number = invoice_number;
40219
      this.serialNumber = serialNumber;
40319
      this.serialNumber = serialNumber;
40220
      this.itemNumber = itemNumber;
40320
      this.itemNumber = itemNumber;
-
 
40321
      this.freebieWarehouseId = freebieWarehouseId;
-
 
40322
      setFreebieWarehouseIdIsSet(true);
40221
      this.billed_by = billed_by;
40323
      this.billed_by = billed_by;
40222
      this.jacketNumber = jacketNumber;
40324
      this.jacketNumber = jacketNumber;
40223
      setJacketNumberIsSet(true);
40325
      setJacketNumberIsSet(true);
40224
      this.billingType = billingType;
40326
      this.billingType = billingType;
40225
      setBillingTypeIsSet(true);
40327
      setBillingTypeIsSet(true);
Line 40251... Line 40353...
40251
        for (String other_element : other.itemNumber) {
40353
        for (String other_element : other.itemNumber) {
40252
          __this__itemNumber.add(other_element);
40354
          __this__itemNumber.add(other_element);
40253
        }
40355
        }
40254
        this.itemNumber = __this__itemNumber;
40356
        this.itemNumber = __this__itemNumber;
40255
      }
40357
      }
-
 
40358
      this.freebieWarehouseId = other.freebieWarehouseId;
40256
      if (other.isSetBilled_by()) {
40359
      if (other.isSetBilled_by()) {
40257
        this.billed_by = other.billed_by;
40360
        this.billed_by = other.billed_by;
40258
      }
40361
      }
40259
      this.jacketNumber = other.jacketNumber;
40362
      this.jacketNumber = other.jacketNumber;
40260
      this.billingType = other.billingType;
40363
      this.billingType = other.billingType;
Line 40271... Line 40374...
40271
      setOrderIdIsSet(false);
40374
      setOrderIdIsSet(false);
40272
      this.orderId = 0;
40375
      this.orderId = 0;
40273
      this.invoice_number = null;
40376
      this.invoice_number = null;
40274
      this.serialNumber = null;
40377
      this.serialNumber = null;
40275
      this.itemNumber = null;
40378
      this.itemNumber = null;
-
 
40379
      setFreebieWarehouseIdIsSet(false);
-
 
40380
      this.freebieWarehouseId = 0;
40276
      this.billed_by = null;
40381
      this.billed_by = null;
40277
      setJacketNumberIsSet(false);
40382
      setJacketNumberIsSet(false);
40278
      this.jacketNumber = 0;
40383
      this.jacketNumber = 0;
40279
      setBillingTypeIsSet(false);
40384
      setBillingTypeIsSet(false);
40280
      this.billingType = 0;
40385
      this.billingType = 0;
Line 40403... Line 40508...
40403
      if (!value) {
40508
      if (!value) {
40404
        this.itemNumber = null;
40509
        this.itemNumber = null;
40405
      }
40510
      }
40406
    }
40511
    }
40407
 
40512
 
-
 
40513
    public long getFreebieWarehouseId() {
-
 
40514
      return this.freebieWarehouseId;
-
 
40515
    }
-
 
40516
 
-
 
40517
    public void setFreebieWarehouseId(long freebieWarehouseId) {
-
 
40518
      this.freebieWarehouseId = freebieWarehouseId;
-
 
40519
      setFreebieWarehouseIdIsSet(true);
-
 
40520
    }
-
 
40521
 
-
 
40522
    public void unsetFreebieWarehouseId() {
-
 
40523
      __isset_bit_vector.clear(__FREEBIEWAREHOUSEID_ISSET_ID);
-
 
40524
    }
-
 
40525
 
-
 
40526
    /** Returns true if field freebieWarehouseId is set (has been assigned a value) and false otherwise */
-
 
40527
    public boolean isSetFreebieWarehouseId() {
-
 
40528
      return __isset_bit_vector.get(__FREEBIEWAREHOUSEID_ISSET_ID);
-
 
40529
    }
-
 
40530
 
-
 
40531
    public void setFreebieWarehouseIdIsSet(boolean value) {
-
 
40532
      __isset_bit_vector.set(__FREEBIEWAREHOUSEID_ISSET_ID, value);
-
 
40533
    }
-
 
40534
 
40408
    public String getBilled_by() {
40535
    public String getBilled_by() {
40409
      return this.billed_by;
40536
      return this.billed_by;
40410
    }
40537
    }
40411
 
40538
 
40412
    public void setBilled_by(String billed_by) {
40539
    public void setBilled_by(String billed_by) {
Line 40548... Line 40675...
40548
        } else {
40675
        } else {
40549
          setItemNumber((List<String>)value);
40676
          setItemNumber((List<String>)value);
40550
        }
40677
        }
40551
        break;
40678
        break;
40552
 
40679
 
-
 
40680
      case FREEBIE_WAREHOUSE_ID:
-
 
40681
        if (value == null) {
-
 
40682
          unsetFreebieWarehouseId();
-
 
40683
        } else {
-
 
40684
          setFreebieWarehouseId((Long)value);
-
 
40685
        }
-
 
40686
        break;
-
 
40687
 
40553
      case BILLED_BY:
40688
      case BILLED_BY:
40554
        if (value == null) {
40689
        if (value == null) {
40555
          unsetBilled_by();
40690
          unsetBilled_by();
40556
        } else {
40691
        } else {
40557
          setBilled_by((String)value);
40692
          setBilled_by((String)value);
Line 40605... Line 40740...
40605
        return getSerialNumber();
40740
        return getSerialNumber();
40606
 
40741
 
40607
      case ITEM_NUMBER:
40742
      case ITEM_NUMBER:
40608
        return getItemNumber();
40743
        return getItemNumber();
40609
 
40744
 
-
 
40745
      case FREEBIE_WAREHOUSE_ID:
-
 
40746
        return Long.valueOf(getFreebieWarehouseId());
-
 
40747
 
40610
      case BILLED_BY:
40748
      case BILLED_BY:
40611
        return getBilled_by();
40749
        return getBilled_by();
40612
 
40750
 
40613
      case JACKET_NUMBER:
40751
      case JACKET_NUMBER:
40614
        return Long.valueOf(getJacketNumber());
40752
        return Long.valueOf(getJacketNumber());
Line 40639... Line 40777...
40639
        return isSetInvoice_number();
40777
        return isSetInvoice_number();
40640
      case SERIAL_NUMBER:
40778
      case SERIAL_NUMBER:
40641
        return isSetSerialNumber();
40779
        return isSetSerialNumber();
40642
      case ITEM_NUMBER:
40780
      case ITEM_NUMBER:
40643
        return isSetItemNumber();
40781
        return isSetItemNumber();
-
 
40782
      case FREEBIE_WAREHOUSE_ID:
-
 
40783
        return isSetFreebieWarehouseId();
40644
      case BILLED_BY:
40784
      case BILLED_BY:
40645
        return isSetBilled_by();
40785
        return isSetBilled_by();
40646
      case JACKET_NUMBER:
40786
      case JACKET_NUMBER:
40647
        return isSetJacketNumber();
40787
        return isSetJacketNumber();
40648
      case BILLING_TYPE:
40788
      case BILLING_TYPE:
Line 40702... Line 40842...
40702
          return false;
40842
          return false;
40703
        if (!this.itemNumber.equals(that.itemNumber))
40843
        if (!this.itemNumber.equals(that.itemNumber))
40704
          return false;
40844
          return false;
40705
      }
40845
      }
40706
 
40846
 
-
 
40847
      boolean this_present_freebieWarehouseId = true;
-
 
40848
      boolean that_present_freebieWarehouseId = true;
-
 
40849
      if (this_present_freebieWarehouseId || that_present_freebieWarehouseId) {
-
 
40850
        if (!(this_present_freebieWarehouseId && that_present_freebieWarehouseId))
-
 
40851
          return false;
-
 
40852
        if (this.freebieWarehouseId != that.freebieWarehouseId)
-
 
40853
          return false;
-
 
40854
      }
-
 
40855
 
40707
      boolean this_present_billed_by = true && this.isSetBilled_by();
40856
      boolean this_present_billed_by = true && this.isSetBilled_by();
40708
      boolean that_present_billed_by = true && that.isSetBilled_by();
40857
      boolean that_present_billed_by = true && that.isSetBilled_by();
40709
      if (this_present_billed_by || that_present_billed_by) {
40858
      if (this_present_billed_by || that_present_billed_by) {
40710
        if (!(this_present_billed_by && that_present_billed_by))
40859
        if (!(this_present_billed_by && that_present_billed_by))
40711
          return false;
40860
          return false;
Line 40803... Line 40952...
40803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
40952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
40804
        if (lastComparison != 0) {
40953
        if (lastComparison != 0) {
40805
          return lastComparison;
40954
          return lastComparison;
40806
        }
40955
        }
40807
      }
40956
      }
-
 
40957
      lastComparison = Boolean.valueOf(isSetFreebieWarehouseId()).compareTo(typedOther.isSetFreebieWarehouseId());
-
 
40958
      if (lastComparison != 0) {
-
 
40959
        return lastComparison;
-
 
40960
      }
-
 
40961
      if (isSetFreebieWarehouseId()) {
-
 
40962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieWarehouseId, typedOther.freebieWarehouseId);
-
 
40963
        if (lastComparison != 0) {
-
 
40964
          return lastComparison;
-
 
40965
        }
-
 
40966
      }
40808
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
40967
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
40809
      if (lastComparison != 0) {
40968
      if (lastComparison != 0) {
40810
        return lastComparison;
40969
        return lastComparison;
40811
      }
40970
      }
40812
      if (isSetBilled_by()) {
40971
      if (isSetBilled_by()) {
Line 40919... Line 41078...
40919
              }
41078
              }
40920
            } else { 
41079
            } else { 
40921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40922
            }
41081
            }
40923
            break;
41082
            break;
-
 
41083
          case 5: // FREEBIE_WAREHOUSE_ID
-
 
41084
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
41085
              this.freebieWarehouseId = iprot.readI64();
-
 
41086
              setFreebieWarehouseIdIsSet(true);
-
 
41087
            } else { 
-
 
41088
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41089
            }
-
 
41090
            break;
40924
          case 5: // BILLED_BY
41091
          case 6: // BILLED_BY
40925
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41092
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
40926
              this.billed_by = iprot.readString();
41093
              this.billed_by = iprot.readString();
40927
            } else { 
41094
            } else { 
40928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40929
            }
41096
            }
40930
            break;
41097
            break;
40931
          case 6: // JACKET_NUMBER
41098
          case 7: // JACKET_NUMBER
40932
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41099
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40933
              this.jacketNumber = iprot.readI64();
41100
              this.jacketNumber = iprot.readI64();
40934
              setJacketNumberIsSet(true);
41101
              setJacketNumberIsSet(true);
40935
            } else { 
41102
            } else { 
40936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40937
            }
41104
            }
40938
            break;
41105
            break;
40939
          case 7: // BILLING_TYPE
41106
          case 8: // BILLING_TYPE
40940
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41107
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40941
              this.billingType = iprot.readI64();
41108
              this.billingType = iprot.readI64();
40942
              setBillingTypeIsSet(true);
41109
              setBillingTypeIsSet(true);
40943
            } else { 
41110
            } else { 
40944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40945
            }
41112
            }
40946
            break;
41113
            break;
40947
          case 8: // FULFILMENT_WAREHOUSE_ID
41114
          case 9: // FULFILMENT_WAREHOUSE_ID
40948
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41115
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40949
              this.fulfilmentWarehouseId = iprot.readI64();
41116
              this.fulfilmentWarehouseId = iprot.readI64();
40950
              setFulfilmentWarehouseIdIsSet(true);
41117
              setFulfilmentWarehouseIdIsSet(true);
40951
            } else { 
41118
            } else { 
40952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40953
            }
41120
            }
40954
            break;
41121
            break;
40955
          case 9: // AUTHORIZE
41122
          case 10: // AUTHORIZE
40956
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
41123
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
40957
              this.authorize = iprot.readBool();
41124
              this.authorize = iprot.readBool();
40958
              setAuthorizeIsSet(true);
41125
              setAuthorizeIsSet(true);
40959
            } else { 
41126
            } else { 
40960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 41003... Line 41170...
41003
          }
41170
          }
41004
          oprot.writeListEnd();
41171
          oprot.writeListEnd();
41005
        }
41172
        }
41006
        oprot.writeFieldEnd();
41173
        oprot.writeFieldEnd();
41007
      }
41174
      }
-
 
41175
      oprot.writeFieldBegin(FREEBIE_WAREHOUSE_ID_FIELD_DESC);
-
 
41176
      oprot.writeI64(this.freebieWarehouseId);
-
 
41177
      oprot.writeFieldEnd();
41008
      if (this.billed_by != null) {
41178
      if (this.billed_by != null) {
41009
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
41179
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
41010
        oprot.writeString(this.billed_by);
41180
        oprot.writeString(this.billed_by);
41011
        oprot.writeFieldEnd();
41181
        oprot.writeFieldEnd();
41012
      }
41182
      }
Line 41057... Line 41227...
41057
      } else {
41227
      } else {
41058
        sb.append(this.itemNumber);
41228
        sb.append(this.itemNumber);
41059
      }
41229
      }
41060
      first = false;
41230
      first = false;
41061
      if (!first) sb.append(", ");
41231
      if (!first) sb.append(", ");
-
 
41232
      sb.append("freebieWarehouseId:");
-
 
41233
      sb.append(this.freebieWarehouseId);
-
 
41234
      first = false;
-
 
41235
      if (!first) sb.append(", ");
41062
      sb.append("billed_by:");
41236
      sb.append("billed_by:");
41063
      if (this.billed_by == null) {
41237
      if (this.billed_by == null) {
41064
        sb.append("null");
41238
        sb.append("null");
41065
      } else {
41239
      } else {
41066
        sb.append(this.billed_by);
41240
        sb.append(this.billed_by);
Line 58416... Line 58590...
58416
      }
58590
      }
58417
    }
58591
    }
58418
 
58592
 
58419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58593
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58420
      try {
58594
      try {
58421
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58422
        __isset_bit_vector = new BitSet(1);
-
 
58423
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58595
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58424
      } catch (org.apache.thrift.TException te) {
58596
      } catch (org.apache.thrift.TException te) {
58425
        throw new java.io.IOException(te);
58597
        throw new java.io.IOException(te);
58426
      }
58598
      }
58427
    }
58599
    }
Line 64024... Line 64196...
64024
      }
64196
      }
64025
    }
64197
    }
64026
 
64198
 
64027
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64028
      try {
64200
      try {
64029
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
64030
        __isset_bit_vector = new BitSet(1);
-
 
64031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64201
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64032
      } catch (org.apache.thrift.TException te) {
64202
      } catch (org.apache.thrift.TException te) {
64033
        throw new java.io.IOException(te);
64203
        throw new java.io.IOException(te);
64034
      }
64204
      }
64035
    }
64205
    }
Line 74039... Line 74209...
74039
      }
74209
      }
74040
    }
74210
    }
74041
 
74211
 
74042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
74212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
74043
      try {
74213
      try {
-
 
74214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
74215
        __isset_bit_vector = new BitSet(1);
74044
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
74216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
74045
      } catch (org.apache.thrift.TException te) {
74217
      } catch (org.apache.thrift.TException te) {
74046
        throw new java.io.IOException(te);
74218
        throw new java.io.IOException(te);
74047
      }
74219
      }
74048
    }
74220
    }
Line 102971... Line 103143...
102971
      }
103143
      }
102972
    }
103144
    }
102973
 
103145
 
102974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
103146
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
102975
      try {
103147
      try {
102976
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
102977
        __isset_bit_vector = new BitSet(1);
-
 
102978
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
103148
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
102979
      } catch (org.apache.thrift.TException te) {
103149
      } catch (org.apache.thrift.TException te) {
102980
        throw new java.io.IOException(te);
103150
        throw new java.io.IOException(te);
102981
      }
103151
      }
102982
    }
103152
    }
Line 131046... Line 131216...
131046
      }
131216
      }
131047
      first = false;
131217
      first = false;
131048
      sb.append(")");
131218
      sb.append(")");
131049
      return sb.toString();
131219
      return sb.toString();
131050
    }
131220
    }
-
 
131221
 
-
 
131222
    public void validate() throws org.apache.thrift.TException {
-
 
131223
      // check for required fields
-
 
131224
    }
-
 
131225
 
-
 
131226
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
131227
      try {
-
 
131228
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
131229
      } catch (org.apache.thrift.TException te) {
-
 
131230
        throw new java.io.IOException(te);
-
 
131231
      }
-
 
131232
    }
-
 
131233
 
-
 
131234
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
131235
      try {
-
 
131236
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
131237
      } catch (org.apache.thrift.TException te) {
-
 
131238
        throw new java.io.IOException(te);
-
 
131239
      }
-
 
131240
    }
-
 
131241
 
-
 
131242
  }
-
 
131243
 
-
 
131244
  public static class splitFreebieOrder_args implements org.apache.thrift.TBase<splitFreebieOrder_args, splitFreebieOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
131245
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("splitFreebieOrder_args");
-
 
131246
 
-
 
131247
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
131248
    private static final org.apache.thrift.protocol.TField SPLIT_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("splitReason", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
131249
    private static final org.apache.thrift.protocol.TField SHIPPING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingDate", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
131250
 
-
 
131251
    private long orderId; // required
-
 
131252
    private String splitReason; // required
-
 
131253
    private long shippingDate; // required
-
 
131254
 
-
 
131255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
131256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
131257
      ORDER_ID((short)1, "orderId"),
-
 
131258
      SPLIT_REASON((short)2, "splitReason"),
-
 
131259
      SHIPPING_DATE((short)3, "shippingDate");
-
 
131260
 
-
 
131261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
131262
 
-
 
131263
      static {
-
 
131264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
131265
          byName.put(field.getFieldName(), field);
-
 
131266
        }
-
 
131267
      }
-
 
131268
 
-
 
131269
      /**
-
 
131270
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
131271
       */
-
 
131272
      public static _Fields findByThriftId(int fieldId) {
-
 
131273
        switch(fieldId) {
-
 
131274
          case 1: // ORDER_ID
-
 
131275
            return ORDER_ID;
-
 
131276
          case 2: // SPLIT_REASON
-
 
131277
            return SPLIT_REASON;
-
 
131278
          case 3: // SHIPPING_DATE
-
 
131279
            return SHIPPING_DATE;
-
 
131280
          default:
-
 
131281
            return null;
-
 
131282
        }
-
 
131283
      }
-
 
131284
 
-
 
131285
      /**
-
 
131286
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
131287
       * if it is not found.
-
 
131288
       */
-
 
131289
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
131290
        _Fields fields = findByThriftId(fieldId);
-
 
131291
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
131292
        return fields;
-
 
131293
      }
-
 
131294
 
-
 
131295
      /**
-
 
131296
       * Find the _Fields constant that matches name, or null if its not found.
-
 
131297
       */
-
 
131298
      public static _Fields findByName(String name) {
-
 
131299
        return byName.get(name);
-
 
131300
      }
-
 
131301
 
-
 
131302
      private final short _thriftId;
-
 
131303
      private final String _fieldName;
-
 
131304
 
-
 
131305
      _Fields(short thriftId, String fieldName) {
-
 
131306
        _thriftId = thriftId;
-
 
131307
        _fieldName = fieldName;
-
 
131308
      }
-
 
131309
 
-
 
131310
      public short getThriftFieldId() {
-
 
131311
        return _thriftId;
-
 
131312
      }
-
 
131313
 
-
 
131314
      public String getFieldName() {
-
 
131315
        return _fieldName;
-
 
131316
      }
-
 
131317
    }
-
 
131318
 
-
 
131319
    // isset id assignments
-
 
131320
    private static final int __ORDERID_ISSET_ID = 0;
-
 
131321
    private static final int __SHIPPINGDATE_ISSET_ID = 1;
-
 
131322
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
131323
 
-
 
131324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
131325
    static {
-
 
131326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
131327
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131328
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
131329
      tmpMap.put(_Fields.SPLIT_REASON, new org.apache.thrift.meta_data.FieldMetaData("splitReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
131331
      tmpMap.put(_Fields.SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("shippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
131333
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
131334
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(splitFreebieOrder_args.class, metaDataMap);
-
 
131335
    }
-
 
131336
 
-
 
131337
    public splitFreebieOrder_args() {
-
 
131338
    }
-
 
131339
 
-
 
131340
    public splitFreebieOrder_args(
-
 
131341
      long orderId,
-
 
131342
      String splitReason,
-
 
131343
      long shippingDate)
-
 
131344
    {
-
 
131345
      this();
-
 
131346
      this.orderId = orderId;
-
 
131347
      setOrderIdIsSet(true);
-
 
131348
      this.splitReason = splitReason;
-
 
131349
      this.shippingDate = shippingDate;
-
 
131350
      setShippingDateIsSet(true);
-
 
131351
    }
-
 
131352
 
-
 
131353
    /**
-
 
131354
     * Performs a deep copy on <i>other</i>.
-
 
131355
     */
-
 
131356
    public splitFreebieOrder_args(splitFreebieOrder_args other) {
-
 
131357
      __isset_bit_vector.clear();
-
 
131358
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
131359
      this.orderId = other.orderId;
-
 
131360
      if (other.isSetSplitReason()) {
-
 
131361
        this.splitReason = other.splitReason;
-
 
131362
      }
-
 
131363
      this.shippingDate = other.shippingDate;
-
 
131364
    }
-
 
131365
 
-
 
131366
    public splitFreebieOrder_args deepCopy() {
-
 
131367
      return new splitFreebieOrder_args(this);
-
 
131368
    }
-
 
131369
 
-
 
131370
    @Override
-
 
131371
    public void clear() {
-
 
131372
      setOrderIdIsSet(false);
-
 
131373
      this.orderId = 0;
-
 
131374
      this.splitReason = null;
-
 
131375
      setShippingDateIsSet(false);
-
 
131376
      this.shippingDate = 0;
-
 
131377
    }
-
 
131378
 
-
 
131379
    public long getOrderId() {
-
 
131380
      return this.orderId;
-
 
131381
    }
-
 
131382
 
-
 
131383
    public void setOrderId(long orderId) {
-
 
131384
      this.orderId = orderId;
-
 
131385
      setOrderIdIsSet(true);
-
 
131386
    }
-
 
131387
 
-
 
131388
    public void unsetOrderId() {
-
 
131389
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
131390
    }
-
 
131391
 
-
 
131392
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
131393
    public boolean isSetOrderId() {
-
 
131394
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
131395
    }
-
 
131396
 
-
 
131397
    public void setOrderIdIsSet(boolean value) {
-
 
131398
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
131399
    }
-
 
131400
 
-
 
131401
    public String getSplitReason() {
-
 
131402
      return this.splitReason;
-
 
131403
    }
-
 
131404
 
-
 
131405
    public void setSplitReason(String splitReason) {
-
 
131406
      this.splitReason = splitReason;
-
 
131407
    }
-
 
131408
 
-
 
131409
    public void unsetSplitReason() {
-
 
131410
      this.splitReason = null;
-
 
131411
    }
-
 
131412
 
-
 
131413
    /** Returns true if field splitReason is set (has been assigned a value) and false otherwise */
-
 
131414
    public boolean isSetSplitReason() {
-
 
131415
      return this.splitReason != null;
-
 
131416
    }
-
 
131417
 
-
 
131418
    public void setSplitReasonIsSet(boolean value) {
-
 
131419
      if (!value) {
-
 
131420
        this.splitReason = null;
-
 
131421
      }
-
 
131422
    }
-
 
131423
 
-
 
131424
    public long getShippingDate() {
-
 
131425
      return this.shippingDate;
-
 
131426
    }
-
 
131427
 
-
 
131428
    public void setShippingDate(long shippingDate) {
-
 
131429
      this.shippingDate = shippingDate;
-
 
131430
      setShippingDateIsSet(true);
-
 
131431
    }
-
 
131432
 
-
 
131433
    public void unsetShippingDate() {
-
 
131434
      __isset_bit_vector.clear(__SHIPPINGDATE_ISSET_ID);
-
 
131435
    }
-
 
131436
 
-
 
131437
    /** Returns true if field shippingDate is set (has been assigned a value) and false otherwise */
-
 
131438
    public boolean isSetShippingDate() {
-
 
131439
      return __isset_bit_vector.get(__SHIPPINGDATE_ISSET_ID);
-
 
131440
    }
-
 
131441
 
-
 
131442
    public void setShippingDateIsSet(boolean value) {
-
 
131443
      __isset_bit_vector.set(__SHIPPINGDATE_ISSET_ID, value);
-
 
131444
    }
-
 
131445
 
-
 
131446
    public void setFieldValue(_Fields field, Object value) {
-
 
131447
      switch (field) {
-
 
131448
      case ORDER_ID:
-
 
131449
        if (value == null) {
-
 
131450
          unsetOrderId();
-
 
131451
        } else {
-
 
131452
          setOrderId((Long)value);
-
 
131453
        }
-
 
131454
        break;
-
 
131455
 
-
 
131456
      case SPLIT_REASON:
-
 
131457
        if (value == null) {
-
 
131458
          unsetSplitReason();
-
 
131459
        } else {
-
 
131460
          setSplitReason((String)value);
-
 
131461
        }
-
 
131462
        break;
-
 
131463
 
-
 
131464
      case SHIPPING_DATE:
-
 
131465
        if (value == null) {
-
 
131466
          unsetShippingDate();
-
 
131467
        } else {
-
 
131468
          setShippingDate((Long)value);
-
 
131469
        }
-
 
131470
        break;
-
 
131471
 
-
 
131472
      }
-
 
131473
    }
-
 
131474
 
-
 
131475
    public Object getFieldValue(_Fields field) {
-
 
131476
      switch (field) {
-
 
131477
      case ORDER_ID:
-
 
131478
        return Long.valueOf(getOrderId());
-
 
131479
 
-
 
131480
      case SPLIT_REASON:
-
 
131481
        return getSplitReason();
-
 
131482
 
-
 
131483
      case SHIPPING_DATE:
-
 
131484
        return Long.valueOf(getShippingDate());
-
 
131485
 
-
 
131486
      }
-
 
131487
      throw new IllegalStateException();
-
 
131488
    }
-
 
131489
 
-
 
131490
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
131491
    public boolean isSet(_Fields field) {
-
 
131492
      if (field == null) {
-
 
131493
        throw new IllegalArgumentException();
-
 
131494
      }
-
 
131495
 
-
 
131496
      switch (field) {
-
 
131497
      case ORDER_ID:
-
 
131498
        return isSetOrderId();
-
 
131499
      case SPLIT_REASON:
-
 
131500
        return isSetSplitReason();
-
 
131501
      case SHIPPING_DATE:
-
 
131502
        return isSetShippingDate();
-
 
131503
      }
-
 
131504
      throw new IllegalStateException();
-
 
131505
    }
-
 
131506
 
-
 
131507
    @Override
-
 
131508
    public boolean equals(Object that) {
-
 
131509
      if (that == null)
-
 
131510
        return false;
-
 
131511
      if (that instanceof splitFreebieOrder_args)
-
 
131512
        return this.equals((splitFreebieOrder_args)that);
-
 
131513
      return false;
-
 
131514
    }
-
 
131515
 
-
 
131516
    public boolean equals(splitFreebieOrder_args that) {
-
 
131517
      if (that == null)
-
 
131518
        return false;
-
 
131519
 
-
 
131520
      boolean this_present_orderId = true;
-
 
131521
      boolean that_present_orderId = true;
-
 
131522
      if (this_present_orderId || that_present_orderId) {
-
 
131523
        if (!(this_present_orderId && that_present_orderId))
-
 
131524
          return false;
-
 
131525
        if (this.orderId != that.orderId)
-
 
131526
          return false;
-
 
131527
      }
-
 
131528
 
-
 
131529
      boolean this_present_splitReason = true && this.isSetSplitReason();
-
 
131530
      boolean that_present_splitReason = true && that.isSetSplitReason();
-
 
131531
      if (this_present_splitReason || that_present_splitReason) {
-
 
131532
        if (!(this_present_splitReason && that_present_splitReason))
-
 
131533
          return false;
-
 
131534
        if (!this.splitReason.equals(that.splitReason))
-
 
131535
          return false;
-
 
131536
      }
-
 
131537
 
-
 
131538
      boolean this_present_shippingDate = true;
-
 
131539
      boolean that_present_shippingDate = true;
-
 
131540
      if (this_present_shippingDate || that_present_shippingDate) {
-
 
131541
        if (!(this_present_shippingDate && that_present_shippingDate))
-
 
131542
          return false;
-
 
131543
        if (this.shippingDate != that.shippingDate)
-
 
131544
          return false;
-
 
131545
      }
-
 
131546
 
-
 
131547
      return true;
-
 
131548
    }
-
 
131549
 
-
 
131550
    @Override
-
 
131551
    public int hashCode() {
-
 
131552
      return 0;
-
 
131553
    }
-
 
131554
 
-
 
131555
    public int compareTo(splitFreebieOrder_args other) {
-
 
131556
      if (!getClass().equals(other.getClass())) {
-
 
131557
        return getClass().getName().compareTo(other.getClass().getName());
-
 
131558
      }
-
 
131559
 
-
 
131560
      int lastComparison = 0;
-
 
131561
      splitFreebieOrder_args typedOther = (splitFreebieOrder_args)other;
-
 
131562
 
-
 
131563
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
131564
      if (lastComparison != 0) {
-
 
131565
        return lastComparison;
-
 
131566
      }
-
 
131567
      if (isSetOrderId()) {
-
 
131568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
131569
        if (lastComparison != 0) {
-
 
131570
          return lastComparison;
-
 
131571
        }
-
 
131572
      }
-
 
131573
      lastComparison = Boolean.valueOf(isSetSplitReason()).compareTo(typedOther.isSetSplitReason());
-
 
131574
      if (lastComparison != 0) {
-
 
131575
        return lastComparison;
-
 
131576
      }
-
 
131577
      if (isSetSplitReason()) {
-
 
131578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.splitReason, typedOther.splitReason);
-
 
131579
        if (lastComparison != 0) {
-
 
131580
          return lastComparison;
-
 
131581
        }
-
 
131582
      }
-
 
131583
      lastComparison = Boolean.valueOf(isSetShippingDate()).compareTo(typedOther.isSetShippingDate());
-
 
131584
      if (lastComparison != 0) {
-
 
131585
        return lastComparison;
-
 
131586
      }
-
 
131587
      if (isSetShippingDate()) {
-
 
131588
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingDate, typedOther.shippingDate);
-
 
131589
        if (lastComparison != 0) {
-
 
131590
          return lastComparison;
-
 
131591
        }
-
 
131592
      }
-
 
131593
      return 0;
-
 
131594
    }
-
 
131595
 
-
 
131596
    public _Fields fieldForId(int fieldId) {
-
 
131597
      return _Fields.findByThriftId(fieldId);
-
 
131598
    }
-
 
131599
 
-
 
131600
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
131601
      org.apache.thrift.protocol.TField field;
-
 
131602
      iprot.readStructBegin();
-
 
131603
      while (true)
-
 
131604
      {
-
 
131605
        field = iprot.readFieldBegin();
-
 
131606
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
131607
          break;
-
 
131608
        }
-
 
131609
        switch (field.id) {
-
 
131610
          case 1: // ORDER_ID
-
 
131611
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
131612
              this.orderId = iprot.readI64();
-
 
131613
              setOrderIdIsSet(true);
-
 
131614
            } else { 
-
 
131615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131616
            }
-
 
131617
            break;
-
 
131618
          case 2: // SPLIT_REASON
-
 
131619
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
131620
              this.splitReason = iprot.readString();
-
 
131621
            } else { 
-
 
131622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131623
            }
-
 
131624
            break;
-
 
131625
          case 3: // SHIPPING_DATE
-
 
131626
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
131627
              this.shippingDate = iprot.readI64();
-
 
131628
              setShippingDateIsSet(true);
-
 
131629
            } else { 
-
 
131630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131631
            }
-
 
131632
            break;
-
 
131633
          default:
-
 
131634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131635
        }
-
 
131636
        iprot.readFieldEnd();
-
 
131637
      }
-
 
131638
      iprot.readStructEnd();
-
 
131639
      validate();
-
 
131640
    }
-
 
131641
 
-
 
131642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
131643
      validate();
-
 
131644
 
-
 
131645
      oprot.writeStructBegin(STRUCT_DESC);
-
 
131646
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
131647
      oprot.writeI64(this.orderId);
-
 
131648
      oprot.writeFieldEnd();
-
 
131649
      if (this.splitReason != null) {
-
 
131650
        oprot.writeFieldBegin(SPLIT_REASON_FIELD_DESC);
-
 
131651
        oprot.writeString(this.splitReason);
-
 
131652
        oprot.writeFieldEnd();
-
 
131653
      }
-
 
131654
      oprot.writeFieldBegin(SHIPPING_DATE_FIELD_DESC);
-
 
131655
      oprot.writeI64(this.shippingDate);
-
 
131656
      oprot.writeFieldEnd();
-
 
131657
      oprot.writeFieldStop();
-
 
131658
      oprot.writeStructEnd();
-
 
131659
    }
-
 
131660
 
-
 
131661
    @Override
-
 
131662
    public String toString() {
-
 
131663
      StringBuilder sb = new StringBuilder("splitFreebieOrder_args(");
-
 
131664
      boolean first = true;
-
 
131665
 
-
 
131666
      sb.append("orderId:");
-
 
131667
      sb.append(this.orderId);
-
 
131668
      first = false;
-
 
131669
      if (!first) sb.append(", ");
-
 
131670
      sb.append("splitReason:");
-
 
131671
      if (this.splitReason == null) {
-
 
131672
        sb.append("null");
-
 
131673
      } else {
-
 
131674
        sb.append(this.splitReason);
-
 
131675
      }
-
 
131676
      first = false;
-
 
131677
      if (!first) sb.append(", ");
-
 
131678
      sb.append("shippingDate:");
-
 
131679
      sb.append(this.shippingDate);
-
 
131680
      first = false;
-
 
131681
      sb.append(")");
-
 
131682
      return sb.toString();
-
 
131683
    }
-
 
131684
 
-
 
131685
    public void validate() throws org.apache.thrift.TException {
-
 
131686
      // check for required fields
-
 
131687
    }
-
 
131688
 
-
 
131689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
131690
      try {
-
 
131691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
131692
      } catch (org.apache.thrift.TException te) {
-
 
131693
        throw new java.io.IOException(te);
-
 
131694
      }
-
 
131695
    }
-
 
131696
 
-
 
131697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
131698
      try {
-
 
131699
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
131700
        __isset_bit_vector = new BitSet(1);
-
 
131701
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
131702
      } catch (org.apache.thrift.TException te) {
-
 
131703
        throw new java.io.IOException(te);
-
 
131704
      }
-
 
131705
    }
-
 
131706
 
-
 
131707
  }
-
 
131708
 
-
 
131709
  public static class splitFreebieOrder_result implements org.apache.thrift.TBase<splitFreebieOrder_result, splitFreebieOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
131710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("splitFreebieOrder_result");
-
 
131711
 
-
 
131712
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
131713
 
-
 
131714
    private Order success; // required
-
 
131715
 
-
 
131716
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
131717
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
131718
      SUCCESS((short)0, "success");
-
 
131719
 
-
 
131720
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
131721
 
-
 
131722
      static {
-
 
131723
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
131724
          byName.put(field.getFieldName(), field);
-
 
131725
        }
-
 
131726
      }
-
 
131727
 
-
 
131728
      /**
-
 
131729
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
131730
       */
-
 
131731
      public static _Fields findByThriftId(int fieldId) {
-
 
131732
        switch(fieldId) {
-
 
131733
          case 0: // SUCCESS
-
 
131734
            return SUCCESS;
-
 
131735
          default:
-
 
131736
            return null;
-
 
131737
        }
-
 
131738
      }
-
 
131739
 
-
 
131740
      /**
-
 
131741
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
131742
       * if it is not found.
-
 
131743
       */
-
 
131744
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
131745
        _Fields fields = findByThriftId(fieldId);
-
 
131746
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
131747
        return fields;
-
 
131748
      }
-
 
131749
 
-
 
131750
      /**
-
 
131751
       * Find the _Fields constant that matches name, or null if its not found.
-
 
131752
       */
-
 
131753
      public static _Fields findByName(String name) {
-
 
131754
        return byName.get(name);
-
 
131755
      }
-
 
131756
 
-
 
131757
      private final short _thriftId;
-
 
131758
      private final String _fieldName;
-
 
131759
 
-
 
131760
      _Fields(short thriftId, String fieldName) {
-
 
131761
        _thriftId = thriftId;
-
 
131762
        _fieldName = fieldName;
-
 
131763
      }
-
 
131764
 
-
 
131765
      public short getThriftFieldId() {
-
 
131766
        return _thriftId;
-
 
131767
      }
-
 
131768
 
-
 
131769
      public String getFieldName() {
-
 
131770
        return _fieldName;
-
 
131771
      }
-
 
131772
    }
-
 
131773
 
-
 
131774
    // isset id assignments
-
 
131775
 
-
 
131776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
131777
    static {
-
 
131778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
131779
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131780
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
131781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
131782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(splitFreebieOrder_result.class, metaDataMap);
-
 
131783
    }
-
 
131784
 
-
 
131785
    public splitFreebieOrder_result() {
-
 
131786
    }
-
 
131787
 
-
 
131788
    public splitFreebieOrder_result(
-
 
131789
      Order success)
-
 
131790
    {
-
 
131791
      this();
-
 
131792
      this.success = success;
-
 
131793
    }
-
 
131794
 
-
 
131795
    /**
-
 
131796
     * Performs a deep copy on <i>other</i>.
-
 
131797
     */
-
 
131798
    public splitFreebieOrder_result(splitFreebieOrder_result other) {
-
 
131799
      if (other.isSetSuccess()) {
-
 
131800
        this.success = new Order(other.success);
-
 
131801
      }
-
 
131802
    }
-
 
131803
 
-
 
131804
    public splitFreebieOrder_result deepCopy() {
-
 
131805
      return new splitFreebieOrder_result(this);
-
 
131806
    }
-
 
131807
 
-
 
131808
    @Override
-
 
131809
    public void clear() {
-
 
131810
      this.success = null;
-
 
131811
    }
-
 
131812
 
-
 
131813
    public Order getSuccess() {
-
 
131814
      return this.success;
-
 
131815
    }
-
 
131816
 
-
 
131817
    public void setSuccess(Order success) {
-
 
131818
      this.success = success;
-
 
131819
    }
-
 
131820
 
-
 
131821
    public void unsetSuccess() {
-
 
131822
      this.success = null;
-
 
131823
    }
-
 
131824
 
-
 
131825
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
131826
    public boolean isSetSuccess() {
-
 
131827
      return this.success != null;
-
 
131828
    }
-
 
131829
 
-
 
131830
    public void setSuccessIsSet(boolean value) {
-
 
131831
      if (!value) {
-
 
131832
        this.success = null;
-
 
131833
      }
-
 
131834
    }
-
 
131835
 
-
 
131836
    public void setFieldValue(_Fields field, Object value) {
-
 
131837
      switch (field) {
-
 
131838
      case SUCCESS:
-
 
131839
        if (value == null) {
-
 
131840
          unsetSuccess();
-
 
131841
        } else {
-
 
131842
          setSuccess((Order)value);
-
 
131843
        }
-
 
131844
        break;
-
 
131845
 
-
 
131846
      }
-
 
131847
    }
-
 
131848
 
-
 
131849
    public Object getFieldValue(_Fields field) {
-
 
131850
      switch (field) {
-
 
131851
      case SUCCESS:
-
 
131852
        return getSuccess();
-
 
131853
 
-
 
131854
      }
-
 
131855
      throw new IllegalStateException();
-
 
131856
    }
-
 
131857
 
-
 
131858
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
131859
    public boolean isSet(_Fields field) {
-
 
131860
      if (field == null) {
-
 
131861
        throw new IllegalArgumentException();
-
 
131862
      }
-
 
131863
 
-
 
131864
      switch (field) {
-
 
131865
      case SUCCESS:
-
 
131866
        return isSetSuccess();
-
 
131867
      }
-
 
131868
      throw new IllegalStateException();
-
 
131869
    }
-
 
131870
 
-
 
131871
    @Override
-
 
131872
    public boolean equals(Object that) {
-
 
131873
      if (that == null)
-
 
131874
        return false;
-
 
131875
      if (that instanceof splitFreebieOrder_result)
-
 
131876
        return this.equals((splitFreebieOrder_result)that);
-
 
131877
      return false;
-
 
131878
    }
-
 
131879
 
-
 
131880
    public boolean equals(splitFreebieOrder_result that) {
-
 
131881
      if (that == null)
-
 
131882
        return false;
-
 
131883
 
-
 
131884
      boolean this_present_success = true && this.isSetSuccess();
-
 
131885
      boolean that_present_success = true && that.isSetSuccess();
-
 
131886
      if (this_present_success || that_present_success) {
-
 
131887
        if (!(this_present_success && that_present_success))
-
 
131888
          return false;
-
 
131889
        if (!this.success.equals(that.success))
-
 
131890
          return false;
-
 
131891
      }
-
 
131892
 
-
 
131893
      return true;
-
 
131894
    }
-
 
131895
 
-
 
131896
    @Override
-
 
131897
    public int hashCode() {
-
 
131898
      return 0;
-
 
131899
    }
-
 
131900
 
-
 
131901
    public int compareTo(splitFreebieOrder_result other) {
-
 
131902
      if (!getClass().equals(other.getClass())) {
-
 
131903
        return getClass().getName().compareTo(other.getClass().getName());
-
 
131904
      }
-
 
131905
 
-
 
131906
      int lastComparison = 0;
-
 
131907
      splitFreebieOrder_result typedOther = (splitFreebieOrder_result)other;
-
 
131908
 
-
 
131909
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
131910
      if (lastComparison != 0) {
-
 
131911
        return lastComparison;
-
 
131912
      }
-
 
131913
      if (isSetSuccess()) {
-
 
131914
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
131915
        if (lastComparison != 0) {
-
 
131916
          return lastComparison;
-
 
131917
        }
-
 
131918
      }
-
 
131919
      return 0;
-
 
131920
    }
-
 
131921
 
-
 
131922
    public _Fields fieldForId(int fieldId) {
-
 
131923
      return _Fields.findByThriftId(fieldId);
-
 
131924
    }
-
 
131925
 
-
 
131926
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
131927
      org.apache.thrift.protocol.TField field;
-
 
131928
      iprot.readStructBegin();
-
 
131929
      while (true)
-
 
131930
      {
-
 
131931
        field = iprot.readFieldBegin();
-
 
131932
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
131933
          break;
-
 
131934
        }
-
 
131935
        switch (field.id) {
-
 
131936
          case 0: // SUCCESS
-
 
131937
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
131938
              this.success = new Order();
-
 
131939
              this.success.read(iprot);
-
 
131940
            } else { 
-
 
131941
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131942
            }
-
 
131943
            break;
-
 
131944
          default:
-
 
131945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131946
        }
-
 
131947
        iprot.readFieldEnd();
-
 
131948
      }
-
 
131949
      iprot.readStructEnd();
-
 
131950
      validate();
-
 
131951
    }
-
 
131952
 
-
 
131953
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
131954
      oprot.writeStructBegin(STRUCT_DESC);
-
 
131955
 
-
 
131956
      if (this.isSetSuccess()) {
-
 
131957
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
131958
        this.success.write(oprot);
-
 
131959
        oprot.writeFieldEnd();
-
 
131960
      }
-
 
131961
      oprot.writeFieldStop();
-
 
131962
      oprot.writeStructEnd();
-
 
131963
    }
-
 
131964
 
-
 
131965
    @Override
-
 
131966
    public String toString() {
-
 
131967
      StringBuilder sb = new StringBuilder("splitFreebieOrder_result(");
-
 
131968
      boolean first = true;
-
 
131969
 
-
 
131970
      sb.append("success:");
-
 
131971
      if (this.success == null) {
-
 
131972
        sb.append("null");
-
 
131973
      } else {
-
 
131974
        sb.append(this.success);
-
 
131975
      }
-
 
131976
      first = false;
-
 
131977
      sb.append(")");
-
 
131978
      return sb.toString();
-
 
131979
    }
131051
 
131980
 
131052
    public void validate() throws org.apache.thrift.TException {
131981
    public void validate() throws org.apache.thrift.TException {
131053
      // check for required fields
131982
      // check for required fields
131054
    }
131983
    }
131055
 
131984