Subversion Repositories SmartDukaan

Rev

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

Rev 11890 Rev 11980
Line 162... Line 162...
162
     * @param sourceId
162
     * @param sourceId
163
     */
163
     */
164
    public List<String> validateCart(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
164
    public List<String> validateCart(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
165
 
165
 
166
    /**
166
    /**
-
 
167
     * Validates that:
-
 
168
     * 1. The checkout timestamp is greater than the updatedOn timestamp.
-
 
169
     * 2. All of the lines in the cart are active items.
-
 
170
     * 3. The estimate for any of the lines in cart doesn't change.
-
 
171
     * If all three are true, returns empty string; else returns appropriate message.
-
 
172
     * 
-
 
173
     * @param cartId
-
 
174
     * @param sourceId
-
 
175
     * @param dealCoupon
-
 
176
     */
-
 
177
    public List<String> validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon) throws ShoppingCartException, org.apache.thrift.TException;
-
 
178
 
-
 
179
    /**
167
     * Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
180
     * Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
168
     * 
181
     * 
169
     * @param fromCartId
182
     * @param fromCartId
170
     * @param toCartId
183
     * @param toCartId
171
     */
184
     */
Line 330... Line 343...
330
    /**
343
    /**
331
     * This method is speciically used to avoid overloadaed calls to userClient
344
     * This method is speciically used to avoid overloadaed calls to userClient
332
     * 
345
     * 
333
     * @param cartId
346
     * @param cartId
334
     * @param sourceId
347
     * @param sourceId
-
 
348
     * @param dealerCoupon
335
     */
349
     */
336
    public CartPlus validateCartPlus(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
350
    public CartPlus validateCartPlus(long cartId, long sourceId, String dealerCoupon) throws ShoppingCartException, org.apache.thrift.TException;
337
 
351
 
338
    public boolean isPrivateDealUser(long userId) throws org.apache.thrift.TException;
352
    public boolean isPrivateDealUser(long userId) throws org.apache.thrift.TException;
339
 
353
 
340
    public boolean addPrivateDealUser(long userId) throws org.apache.thrift.TException;
354
    public boolean addPrivateDealUser(long userId) throws org.apache.thrift.TException;
341
 
355
 
Line 449... Line 463...
449
 
463
 
450
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
464
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, long schemeId, long orderSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
451
 
465
 
452
    public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
466
    public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
453
 
467
 
-
 
468
    public void validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartWithDealerCoupon_call> resultHandler) throws org.apache.thrift.TException;
-
 
469
 
454
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
470
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
455
 
471
 
456
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkOut_call> resultHandler) throws org.apache.thrift.TException;
472
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkOut_call> resultHandler) throws org.apache.thrift.TException;
457
 
473
 
458
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetCart_call> resultHandler) throws org.apache.thrift.TException;
474
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetCart_call> resultHandler) throws org.apache.thrift.TException;
Line 489... Line 505...
489
 
505
 
490
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
506
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
491
 
507
 
492
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
508
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
493
 
509
 
494
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
510
    public void validateCartPlus(long cartId, long sourceId, String dealerCoupon, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
495
 
511
 
496
    public void isPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
512
    public void isPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
497
 
513
 
498
    public void addPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
514
    public void addPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
499
 
515
 
Line 1894... Line 1910...
1894
        throw result.scex;
1910
        throw result.scex;
1895
      }
1911
      }
1896
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
1912
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
1897
    }
1913
    }
1898
 
1914
 
-
 
1915
    public List<String> validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon) throws ShoppingCartException, org.apache.thrift.TException
-
 
1916
    {
-
 
1917
      send_validateCartWithDealerCoupon(cartId, sourceId, dealCoupon);
-
 
1918
      return recv_validateCartWithDealerCoupon();
-
 
1919
    }
-
 
1920
 
-
 
1921
    public void send_validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon) throws org.apache.thrift.TException
-
 
1922
    {
-
 
1923
      validateCartWithDealerCoupon_args args = new validateCartWithDealerCoupon_args();
-
 
1924
      args.setCartId(cartId);
-
 
1925
      args.setSourceId(sourceId);
-
 
1926
      args.setDealCoupon(dealCoupon);
-
 
1927
      sendBase("validateCartWithDealerCoupon", args);
-
 
1928
    }
-
 
1929
 
-
 
1930
    public List<String> recv_validateCartWithDealerCoupon() throws ShoppingCartException, org.apache.thrift.TException
-
 
1931
    {
-
 
1932
      validateCartWithDealerCoupon_result result = new validateCartWithDealerCoupon_result();
-
 
1933
      receiveBase(result, "validateCartWithDealerCoupon");
-
 
1934
      if (result.isSetSuccess()) {
-
 
1935
        return result.success;
-
 
1936
      }
-
 
1937
      if (result.scex != null) {
-
 
1938
        throw result.scex;
-
 
1939
      }
-
 
1940
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCartWithDealerCoupon failed: unknown result");
-
 
1941
    }
-
 
1942
 
1899
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
1943
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
1900
    {
1944
    {
1901
      send_mergeCart(fromCartId, toCartId);
1945
      send_mergeCart(fromCartId, toCartId);
1902
      recv_mergeCart();
1946
      recv_mergeCart();
1903
    }
1947
    }
Line 2369... Line 2413...
2369
        return result.success;
2413
        return result.success;
2370
      }
2414
      }
2371
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
2415
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
2372
    }
2416
    }
2373
 
2417
 
2374
    public CartPlus validateCartPlus(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException
2418
    public CartPlus validateCartPlus(long cartId, long sourceId, String dealerCoupon) throws ShoppingCartException, org.apache.thrift.TException
2375
    {
2419
    {
2376
      send_validateCartPlus(cartId, sourceId);
2420
      send_validateCartPlus(cartId, sourceId, dealerCoupon);
2377
      return recv_validateCartPlus();
2421
      return recv_validateCartPlus();
2378
    }
2422
    }
2379
 
2423
 
2380
    public void send_validateCartPlus(long cartId, long sourceId) throws org.apache.thrift.TException
2424
    public void send_validateCartPlus(long cartId, long sourceId, String dealerCoupon) throws org.apache.thrift.TException
2381
    {
2425
    {
2382
      validateCartPlus_args args = new validateCartPlus_args();
2426
      validateCartPlus_args args = new validateCartPlus_args();
2383
      args.setCartId(cartId);
2427
      args.setCartId(cartId);
2384
      args.setSourceId(sourceId);
2428
      args.setSourceId(sourceId);
-
 
2429
      args.setDealerCoupon(dealerCoupon);
2385
      sendBase("validateCartPlus", args);
2430
      sendBase("validateCartPlus", args);
2386
    }
2431
    }
2387
 
2432
 
2388
    public CartPlus recv_validateCartPlus() throws ShoppingCartException, org.apache.thrift.TException
2433
    public CartPlus recv_validateCartPlus() throws ShoppingCartException, org.apache.thrift.TException
2389
    {
2434
    {
Line 4306... Line 4351...
4306
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4351
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4307
        return (new Client(prot)).recv_validateCart();
4352
        return (new Client(prot)).recv_validateCart();
4308
      }
4353
      }
4309
    }
4354
    }
4310
 
4355
 
-
 
4356
    public void validateCartWithDealerCoupon(long cartId, long sourceId, String dealCoupon, org.apache.thrift.async.AsyncMethodCallback<validateCartWithDealerCoupon_call> resultHandler) throws org.apache.thrift.TException {
-
 
4357
      checkReady();
-
 
4358
      validateCartWithDealerCoupon_call method_call = new validateCartWithDealerCoupon_call(cartId, sourceId, dealCoupon, resultHandler, this, ___protocolFactory, ___transport);
-
 
4359
      this.___currentMethod = method_call;
-
 
4360
      ___manager.call(method_call);
-
 
4361
    }
-
 
4362
 
-
 
4363
    public static class validateCartWithDealerCoupon_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4364
      private long cartId;
-
 
4365
      private long sourceId;
-
 
4366
      private String dealCoupon;
-
 
4367
      public validateCartWithDealerCoupon_call(long cartId, long sourceId, String dealCoupon, org.apache.thrift.async.AsyncMethodCallback<validateCartWithDealerCoupon_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 {
-
 
4368
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4369
        this.cartId = cartId;
-
 
4370
        this.sourceId = sourceId;
-
 
4371
        this.dealCoupon = dealCoupon;
-
 
4372
      }
-
 
4373
 
-
 
4374
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4375
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCartWithDealerCoupon", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4376
        validateCartWithDealerCoupon_args args = new validateCartWithDealerCoupon_args();
-
 
4377
        args.setCartId(cartId);
-
 
4378
        args.setSourceId(sourceId);
-
 
4379
        args.setDealCoupon(dealCoupon);
-
 
4380
        args.write(prot);
-
 
4381
        prot.writeMessageEnd();
-
 
4382
      }
-
 
4383
 
-
 
4384
      public List<String> getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
4385
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4386
          throw new IllegalStateException("Method call not finished!");
-
 
4387
        }
-
 
4388
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4389
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4390
        return (new Client(prot)).recv_validateCartWithDealerCoupon();
-
 
4391
      }
-
 
4392
    }
-
 
4393
 
4311
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<mergeCart_call> resultHandler) throws org.apache.thrift.TException {
4394
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<mergeCart_call> resultHandler) throws org.apache.thrift.TException {
4312
      checkReady();
4395
      checkReady();
4313
      mergeCart_call method_call = new mergeCart_call(fromCartId, toCartId, resultHandler, this, ___protocolFactory, ___transport);
4396
      mergeCart_call method_call = new mergeCart_call(fromCartId, toCartId, resultHandler, this, ___protocolFactory, ___transport);
4314
      this.___currentMethod = method_call;
4397
      this.___currentMethod = method_call;
4315
      ___manager.call(method_call);
4398
      ___manager.call(method_call);
Line 4996... Line 5079...
4996
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5079
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4997
        return (new Client(prot)).recv_getProductsAddedToCart();
5080
        return (new Client(prot)).recv_getProductsAddedToCart();
4998
      }
5081
      }
4999
    }
5082
    }
5000
 
5083
 
5001
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<validateCartPlus_call> resultHandler) throws org.apache.thrift.TException {
5084
    public void validateCartPlus(long cartId, long sourceId, String dealerCoupon, org.apache.thrift.async.AsyncMethodCallback<validateCartPlus_call> resultHandler) throws org.apache.thrift.TException {
5002
      checkReady();
5085
      checkReady();
5003
      validateCartPlus_call method_call = new validateCartPlus_call(cartId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5086
      validateCartPlus_call method_call = new validateCartPlus_call(cartId, sourceId, dealerCoupon, resultHandler, this, ___protocolFactory, ___transport);
5004
      this.___currentMethod = method_call;
5087
      this.___currentMethod = method_call;
5005
      ___manager.call(method_call);
5088
      ___manager.call(method_call);
5006
    }
5089
    }
5007
 
5090
 
5008
    public static class validateCartPlus_call extends org.apache.thrift.async.TAsyncMethodCall {
5091
    public static class validateCartPlus_call extends org.apache.thrift.async.TAsyncMethodCall {
5009
      private long cartId;
5092
      private long cartId;
5010
      private long sourceId;
5093
      private long sourceId;
-
 
5094
      private String dealerCoupon;
5011
      public validateCartPlus_call(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<validateCartPlus_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 {
5095
      public validateCartPlus_call(long cartId, long sourceId, String dealerCoupon, org.apache.thrift.async.AsyncMethodCallback<validateCartPlus_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 {
5012
        super(client, protocolFactory, transport, resultHandler, false);
5096
        super(client, protocolFactory, transport, resultHandler, false);
5013
        this.cartId = cartId;
5097
        this.cartId = cartId;
5014
        this.sourceId = sourceId;
5098
        this.sourceId = sourceId;
-
 
5099
        this.dealerCoupon = dealerCoupon;
5015
      }
5100
      }
5016
 
5101
 
5017
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5102
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5018
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCartPlus", org.apache.thrift.protocol.TMessageType.CALL, 0));
5103
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCartPlus", org.apache.thrift.protocol.TMessageType.CALL, 0));
5019
        validateCartPlus_args args = new validateCartPlus_args();
5104
        validateCartPlus_args args = new validateCartPlus_args();
5020
        args.setCartId(cartId);
5105
        args.setCartId(cartId);
5021
        args.setSourceId(sourceId);
5106
        args.setSourceId(sourceId);
-
 
5107
        args.setDealerCoupon(dealerCoupon);
5022
        args.write(prot);
5108
        args.write(prot);
5023
        prot.writeMessageEnd();
5109
        prot.writeMessageEnd();
5024
      }
5110
      }
5025
 
5111
 
5026
      public CartPlus getResult() throws ShoppingCartException, org.apache.thrift.TException {
5112
      public CartPlus getResult() throws ShoppingCartException, org.apache.thrift.TException {
Line 5162... Line 5248...
5162
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5163
        return (new Client(prot)).recv_getPrivateDealUser();
5249
        return (new Client(prot)).recv_getPrivateDealUser();
5164
      }
5250
      }
5165
    }
5251
    }
5166
 
5252
 
-
 
5253
    public void addPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<addPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5254
      checkReady();
-
 
5255
      addPrivateDealUser_call method_call = new addPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5256
      this.___currentMethod = method_call;
-
 
5257
      ___manager.call(method_call);
-
 
5258
    }
-
 
5259
 
-
 
5260
    public static class addPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5261
      private long userId;
-
 
5262
      public addPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<addPrivateDealUser_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 {
-
 
5263
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5264
        this.userId = userId;
-
 
5265
      }
-
 
5266
 
-
 
5267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5269
        addPrivateDealUser_args args = new addPrivateDealUser_args();
-
 
5270
        args.setUserId(userId);
-
 
5271
        args.write(prot);
-
 
5272
        prot.writeMessageEnd();
-
 
5273
      }
-
 
5274
 
-
 
5275
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5277
          throw new IllegalStateException("Method call not finished!");
-
 
5278
        }
-
 
5279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5281
        return (new Client(prot)).recv_addPrivateDealUser();
-
 
5282
      }
-
 
5283
    }
-
 
5284
 
-
 
5285
    public void changePrivateDealUserStatus(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<changePrivateDealUserStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
5286
      checkReady();
-
 
5287
      changePrivateDealUserStatus_call method_call = new changePrivateDealUserStatus_call(userId, isActive, resultHandler, this, ___protocolFactory, ___transport);
-
 
5288
      this.___currentMethod = method_call;
-
 
5289
      ___manager.call(method_call);
-
 
5290
    }
-
 
5291
 
-
 
5292
    public static class changePrivateDealUserStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5293
      private long userId;
-
 
5294
      private boolean isActive;
-
 
5295
      public changePrivateDealUserStatus_call(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<changePrivateDealUserStatus_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 {
-
 
5296
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5297
        this.userId = userId;
-
 
5298
        this.isActive = isActive;
-
 
5299
      }
-
 
5300
 
-
 
5301
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5302
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changePrivateDealUserStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5303
        changePrivateDealUserStatus_args args = new changePrivateDealUserStatus_args();
-
 
5304
        args.setUserId(userId);
-
 
5305
        args.setIsActive(isActive);
-
 
5306
        args.write(prot);
-
 
5307
        prot.writeMessageEnd();
-
 
5308
      }
-
 
5309
 
-
 
5310
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5311
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5312
          throw new IllegalStateException("Method call not finished!");
-
 
5313
        }
-
 
5314
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5315
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5316
        return (new Client(prot)).recv_changePrivateDealUserStatus();
-
 
5317
      }
-
 
5318
    }
-
 
5319
 
-
 
5320
    public void getPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5321
      checkReady();
-
 
5322
      getPrivateDealUser_call method_call = new getPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5323
      this.___currentMethod = method_call;
-
 
5324
      ___manager.call(method_call);
-
 
5325
    }
-
 
5326
 
-
 
5327
    public static class getPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5328
      private long userId;
-
 
5329
      public getPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealUser_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 {
-
 
5330
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5331
        this.userId = userId;
-
 
5332
      }
-
 
5333
 
-
 
5334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5336
        getPrivateDealUser_args args = new getPrivateDealUser_args();
-
 
5337
        args.setUserId(userId);
-
 
5338
        args.write(prot);
-
 
5339
        prot.writeMessageEnd();
-
 
5340
      }
-
 
5341
 
-
 
5342
      public PrivateDealUser getResult() throws org.apache.thrift.TException {
-
 
5343
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5344
          throw new IllegalStateException("Method call not finished!");
-
 
5345
        }
-
 
5346
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5347
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5348
        return (new Client(prot)).recv_getPrivateDealUser();
-
 
5349
      }
-
 
5350
    }
-
 
5351
 
5167
  }
5352
  }
5168
 
5353
 
5169
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5354
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5170
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5355
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5171
    public Processor(I iface) {
5356
    public Processor(I iface) {
Line 5227... Line 5412...
5227
      processMap.put("removeCoupon", new removeCoupon());
5412
      processMap.put("removeCoupon", new removeCoupon());
5228
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
5413
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
5229
      processMap.put("saveDiscounts", new saveDiscounts());
5414
      processMap.put("saveDiscounts", new saveDiscounts());
5230
      processMap.put("createOrders", new createOrders());
5415
      processMap.put("createOrders", new createOrders());
5231
      processMap.put("validateCart", new validateCart());
5416
      processMap.put("validateCart", new validateCart());
-
 
5417
      processMap.put("validateCartWithDealerCoupon", new validateCartWithDealerCoupon());
5232
      processMap.put("mergeCart", new mergeCart());
5418
      processMap.put("mergeCart", new mergeCart());
5233
      processMap.put("checkOut", new checkOut());
5419
      processMap.put("checkOut", new checkOut());
5234
      processMap.put("resetCart", new resetCart());
5420
      processMap.put("resetCart", new resetCart());
5235
      processMap.put("getUserCount", new getUserCount());
5421
      processMap.put("getUserCount", new getUserCount());
5236
      processMap.put("getAllUsers", new getAllUsers());
5422
      processMap.put("getAllUsers", new getAllUsers());
Line 6307... Line 6493...
6307
        }
6493
        }
6308
        return result;
6494
        return result;
6309
      }
6495
      }
6310
    }
6496
    }
6311
 
6497
 
-
 
6498
    private static class validateCartWithDealerCoupon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateCartWithDealerCoupon_args> {
-
 
6499
      public validateCartWithDealerCoupon() {
-
 
6500
        super("validateCartWithDealerCoupon");
-
 
6501
      }
-
 
6502
 
-
 
6503
      protected validateCartWithDealerCoupon_args getEmptyArgsInstance() {
-
 
6504
        return new validateCartWithDealerCoupon_args();
-
 
6505
      }
-
 
6506
 
-
 
6507
      protected validateCartWithDealerCoupon_result getResult(I iface, validateCartWithDealerCoupon_args args) throws org.apache.thrift.TException {
-
 
6508
        validateCartWithDealerCoupon_result result = new validateCartWithDealerCoupon_result();
-
 
6509
        try {
-
 
6510
          result.success = iface.validateCartWithDealerCoupon(args.cartId, args.sourceId, args.dealCoupon);
-
 
6511
        } catch (ShoppingCartException scex) {
-
 
6512
          result.scex = scex;
-
 
6513
        }
-
 
6514
        return result;
-
 
6515
      }
-
 
6516
    }
-
 
6517
 
6312
    private static class mergeCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeCart_args> {
6518
    private static class mergeCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeCart_args> {
6313
      public mergeCart() {
6519
      public mergeCart() {
6314
        super("mergeCart");
6520
        super("mergeCart");
6315
      }
6521
      }
6316
 
6522
 
Line 6673... Line 6879...
6673
      }
6879
      }
6674
 
6880
 
6675
      protected validateCartPlus_result getResult(I iface, validateCartPlus_args args) throws org.apache.thrift.TException {
6881
      protected validateCartPlus_result getResult(I iface, validateCartPlus_args args) throws org.apache.thrift.TException {
6676
        validateCartPlus_result result = new validateCartPlus_result();
6882
        validateCartPlus_result result = new validateCartPlus_result();
6677
        try {
6883
        try {
6678
          result.success = iface.validateCartPlus(args.cartId, args.sourceId);
6884
          result.success = iface.validateCartPlus(args.cartId, args.sourceId, args.dealerCoupon);
6679
        } catch (ShoppingCartException scex) {
6885
        } catch (ShoppingCartException scex) {
6680
          result.scex = scex;
6886
          result.scex = scex;
6681
        }
6887
        }
6682
        return result;
6888
        return result;
6683
      }
6889
      }
Line 45440... Line 45646...
45440
      }
45646
      }
45441
    }
45647
    }
45442
 
45648
 
45443
  }
45649
  }
45444
 
45650
 
-
 
45651
  public static class validateCartWithDealerCoupon_args implements org.apache.thrift.TBase<validateCartWithDealerCoupon_args, validateCartWithDealerCoupon_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartWithDealerCoupon_args");
-
 
45653
 
-
 
45654
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
45655
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
45656
    private static final org.apache.thrift.protocol.TField DEAL_COUPON_FIELD_DESC = new org.apache.thrift.protocol.TField("dealCoupon", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
45657
 
-
 
45658
    private long cartId; // required
-
 
45659
    private long sourceId; // required
-
 
45660
    private String dealCoupon; // required
-
 
45661
 
-
 
45662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45663
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45664
      CART_ID((short)1, "cartId"),
-
 
45665
      SOURCE_ID((short)2, "sourceId"),
-
 
45666
      DEAL_COUPON((short)3, "dealCoupon");
-
 
45667
 
-
 
45668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45669
 
-
 
45670
      static {
-
 
45671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45672
          byName.put(field.getFieldName(), field);
-
 
45673
        }
-
 
45674
      }
-
 
45675
 
-
 
45676
      /**
-
 
45677
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45678
       */
-
 
45679
      public static _Fields findByThriftId(int fieldId) {
-
 
45680
        switch(fieldId) {
-
 
45681
          case 1: // CART_ID
-
 
45682
            return CART_ID;
-
 
45683
          case 2: // SOURCE_ID
-
 
45684
            return SOURCE_ID;
-
 
45685
          case 3: // DEAL_COUPON
-
 
45686
            return DEAL_COUPON;
-
 
45687
          default:
-
 
45688
            return null;
-
 
45689
        }
-
 
45690
      }
-
 
45691
 
-
 
45692
      /**
-
 
45693
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45694
       * if it is not found.
-
 
45695
       */
-
 
45696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45697
        _Fields fields = findByThriftId(fieldId);
-
 
45698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45699
        return fields;
-
 
45700
      }
-
 
45701
 
-
 
45702
      /**
-
 
45703
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45704
       */
-
 
45705
      public static _Fields findByName(String name) {
-
 
45706
        return byName.get(name);
-
 
45707
      }
-
 
45708
 
-
 
45709
      private final short _thriftId;
-
 
45710
      private final String _fieldName;
-
 
45711
 
-
 
45712
      _Fields(short thriftId, String fieldName) {
-
 
45713
        _thriftId = thriftId;
-
 
45714
        _fieldName = fieldName;
-
 
45715
      }
-
 
45716
 
-
 
45717
      public short getThriftFieldId() {
-
 
45718
        return _thriftId;
-
 
45719
      }
-
 
45720
 
-
 
45721
      public String getFieldName() {
-
 
45722
        return _fieldName;
-
 
45723
      }
-
 
45724
    }
-
 
45725
 
-
 
45726
    // isset id assignments
-
 
45727
    private static final int __CARTID_ISSET_ID = 0;
-
 
45728
    private static final int __SOURCEID_ISSET_ID = 1;
-
 
45729
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
45730
 
-
 
45731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45732
    static {
-
 
45733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45734
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45736
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45737
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45738
      tmpMap.put(_Fields.DEAL_COUPON, new org.apache.thrift.meta_data.FieldMetaData("dealCoupon", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
45740
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45741
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartWithDealerCoupon_args.class, metaDataMap);
-
 
45742
    }
-
 
45743
 
-
 
45744
    public validateCartWithDealerCoupon_args() {
-
 
45745
    }
-
 
45746
 
-
 
45747
    public validateCartWithDealerCoupon_args(
-
 
45748
      long cartId,
-
 
45749
      long sourceId,
-
 
45750
      String dealCoupon)
-
 
45751
    {
-
 
45752
      this();
-
 
45753
      this.cartId = cartId;
-
 
45754
      setCartIdIsSet(true);
-
 
45755
      this.sourceId = sourceId;
-
 
45756
      setSourceIdIsSet(true);
-
 
45757
      this.dealCoupon = dealCoupon;
-
 
45758
    }
-
 
45759
 
-
 
45760
    /**
-
 
45761
     * Performs a deep copy on <i>other</i>.
-
 
45762
     */
-
 
45763
    public validateCartWithDealerCoupon_args(validateCartWithDealerCoupon_args other) {
-
 
45764
      __isset_bit_vector.clear();
-
 
45765
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45766
      this.cartId = other.cartId;
-
 
45767
      this.sourceId = other.sourceId;
-
 
45768
      if (other.isSetDealCoupon()) {
-
 
45769
        this.dealCoupon = other.dealCoupon;
-
 
45770
      }
-
 
45771
    }
-
 
45772
 
-
 
45773
    public validateCartWithDealerCoupon_args deepCopy() {
-
 
45774
      return new validateCartWithDealerCoupon_args(this);
-
 
45775
    }
-
 
45776
 
-
 
45777
    @Override
-
 
45778
    public void clear() {
-
 
45779
      setCartIdIsSet(false);
-
 
45780
      this.cartId = 0;
-
 
45781
      setSourceIdIsSet(false);
-
 
45782
      this.sourceId = 0;
-
 
45783
      this.dealCoupon = null;
-
 
45784
    }
-
 
45785
 
-
 
45786
    public long getCartId() {
-
 
45787
      return this.cartId;
-
 
45788
    }
-
 
45789
 
-
 
45790
    public void setCartId(long cartId) {
-
 
45791
      this.cartId = cartId;
-
 
45792
      setCartIdIsSet(true);
-
 
45793
    }
-
 
45794
 
-
 
45795
    public void unsetCartId() {
-
 
45796
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
45797
    }
-
 
45798
 
-
 
45799
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
45800
    public boolean isSetCartId() {
-
 
45801
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
45802
    }
-
 
45803
 
-
 
45804
    public void setCartIdIsSet(boolean value) {
-
 
45805
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
45806
    }
-
 
45807
 
-
 
45808
    public long getSourceId() {
-
 
45809
      return this.sourceId;
-
 
45810
    }
-
 
45811
 
-
 
45812
    public void setSourceId(long sourceId) {
-
 
45813
      this.sourceId = sourceId;
-
 
45814
      setSourceIdIsSet(true);
-
 
45815
    }
-
 
45816
 
-
 
45817
    public void unsetSourceId() {
-
 
45818
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
45819
    }
-
 
45820
 
-
 
45821
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
45822
    public boolean isSetSourceId() {
-
 
45823
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
45824
    }
-
 
45825
 
-
 
45826
    public void setSourceIdIsSet(boolean value) {
-
 
45827
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
45828
    }
-
 
45829
 
-
 
45830
    public String getDealCoupon() {
-
 
45831
      return this.dealCoupon;
-
 
45832
    }
-
 
45833
 
-
 
45834
    public void setDealCoupon(String dealCoupon) {
-
 
45835
      this.dealCoupon = dealCoupon;
-
 
45836
    }
-
 
45837
 
-
 
45838
    public void unsetDealCoupon() {
-
 
45839
      this.dealCoupon = null;
-
 
45840
    }
-
 
45841
 
-
 
45842
    /** Returns true if field dealCoupon is set (has been assigned a value) and false otherwise */
-
 
45843
    public boolean isSetDealCoupon() {
-
 
45844
      return this.dealCoupon != null;
-
 
45845
    }
-
 
45846
 
-
 
45847
    public void setDealCouponIsSet(boolean value) {
-
 
45848
      if (!value) {
-
 
45849
        this.dealCoupon = null;
-
 
45850
      }
-
 
45851
    }
-
 
45852
 
-
 
45853
    public void setFieldValue(_Fields field, Object value) {
-
 
45854
      switch (field) {
-
 
45855
      case CART_ID:
-
 
45856
        if (value == null) {
-
 
45857
          unsetCartId();
-
 
45858
        } else {
-
 
45859
          setCartId((Long)value);
-
 
45860
        }
-
 
45861
        break;
-
 
45862
 
-
 
45863
      case SOURCE_ID:
-
 
45864
        if (value == null) {
-
 
45865
          unsetSourceId();
-
 
45866
        } else {
-
 
45867
          setSourceId((Long)value);
-
 
45868
        }
-
 
45869
        break;
-
 
45870
 
-
 
45871
      case DEAL_COUPON:
-
 
45872
        if (value == null) {
-
 
45873
          unsetDealCoupon();
-
 
45874
        } else {
-
 
45875
          setDealCoupon((String)value);
-
 
45876
        }
-
 
45877
        break;
-
 
45878
 
-
 
45879
      }
-
 
45880
    }
-
 
45881
 
-
 
45882
    public Object getFieldValue(_Fields field) {
-
 
45883
      switch (field) {
-
 
45884
      case CART_ID:
-
 
45885
        return Long.valueOf(getCartId());
-
 
45886
 
-
 
45887
      case SOURCE_ID:
-
 
45888
        return Long.valueOf(getSourceId());
-
 
45889
 
-
 
45890
      case DEAL_COUPON:
-
 
45891
        return getDealCoupon();
-
 
45892
 
-
 
45893
      }
-
 
45894
      throw new IllegalStateException();
-
 
45895
    }
-
 
45896
 
-
 
45897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45898
    public boolean isSet(_Fields field) {
-
 
45899
      if (field == null) {
-
 
45900
        throw new IllegalArgumentException();
-
 
45901
      }
-
 
45902
 
-
 
45903
      switch (field) {
-
 
45904
      case CART_ID:
-
 
45905
        return isSetCartId();
-
 
45906
      case SOURCE_ID:
-
 
45907
        return isSetSourceId();
-
 
45908
      case DEAL_COUPON:
-
 
45909
        return isSetDealCoupon();
-
 
45910
      }
-
 
45911
      throw new IllegalStateException();
-
 
45912
    }
-
 
45913
 
-
 
45914
    @Override
-
 
45915
    public boolean equals(Object that) {
-
 
45916
      if (that == null)
-
 
45917
        return false;
-
 
45918
      if (that instanceof validateCartWithDealerCoupon_args)
-
 
45919
        return this.equals((validateCartWithDealerCoupon_args)that);
-
 
45920
      return false;
-
 
45921
    }
-
 
45922
 
-
 
45923
    public boolean equals(validateCartWithDealerCoupon_args that) {
-
 
45924
      if (that == null)
-
 
45925
        return false;
-
 
45926
 
-
 
45927
      boolean this_present_cartId = true;
-
 
45928
      boolean that_present_cartId = true;
-
 
45929
      if (this_present_cartId || that_present_cartId) {
-
 
45930
        if (!(this_present_cartId && that_present_cartId))
-
 
45931
          return false;
-
 
45932
        if (this.cartId != that.cartId)
-
 
45933
          return false;
-
 
45934
      }
-
 
45935
 
-
 
45936
      boolean this_present_sourceId = true;
-
 
45937
      boolean that_present_sourceId = true;
-
 
45938
      if (this_present_sourceId || that_present_sourceId) {
-
 
45939
        if (!(this_present_sourceId && that_present_sourceId))
-
 
45940
          return false;
-
 
45941
        if (this.sourceId != that.sourceId)
-
 
45942
          return false;
-
 
45943
      }
-
 
45944
 
-
 
45945
      boolean this_present_dealCoupon = true && this.isSetDealCoupon();
-
 
45946
      boolean that_present_dealCoupon = true && that.isSetDealCoupon();
-
 
45947
      if (this_present_dealCoupon || that_present_dealCoupon) {
-
 
45948
        if (!(this_present_dealCoupon && that_present_dealCoupon))
-
 
45949
          return false;
-
 
45950
        if (!this.dealCoupon.equals(that.dealCoupon))
-
 
45951
          return false;
-
 
45952
      }
-
 
45953
 
-
 
45954
      return true;
-
 
45955
    }
-
 
45956
 
-
 
45957
    @Override
-
 
45958
    public int hashCode() {
-
 
45959
      return 0;
-
 
45960
    }
-
 
45961
 
-
 
45962
    public int compareTo(validateCartWithDealerCoupon_args other) {
-
 
45963
      if (!getClass().equals(other.getClass())) {
-
 
45964
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45965
      }
-
 
45966
 
-
 
45967
      int lastComparison = 0;
-
 
45968
      validateCartWithDealerCoupon_args typedOther = (validateCartWithDealerCoupon_args)other;
-
 
45969
 
-
 
45970
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
45971
      if (lastComparison != 0) {
-
 
45972
        return lastComparison;
-
 
45973
      }
-
 
45974
      if (isSetCartId()) {
-
 
45975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
45976
        if (lastComparison != 0) {
-
 
45977
          return lastComparison;
-
 
45978
        }
-
 
45979
      }
-
 
45980
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
45981
      if (lastComparison != 0) {
-
 
45982
        return lastComparison;
-
 
45983
      }
-
 
45984
      if (isSetSourceId()) {
-
 
45985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
45986
        if (lastComparison != 0) {
-
 
45987
          return lastComparison;
-
 
45988
        }
-
 
45989
      }
-
 
45990
      lastComparison = Boolean.valueOf(isSetDealCoupon()).compareTo(typedOther.isSetDealCoupon());
-
 
45991
      if (lastComparison != 0) {
-
 
45992
        return lastComparison;
-
 
45993
      }
-
 
45994
      if (isSetDealCoupon()) {
-
 
45995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealCoupon, typedOther.dealCoupon);
-
 
45996
        if (lastComparison != 0) {
-
 
45997
          return lastComparison;
-
 
45998
        }
-
 
45999
      }
-
 
46000
      return 0;
-
 
46001
    }
-
 
46002
 
-
 
46003
    public _Fields fieldForId(int fieldId) {
-
 
46004
      return _Fields.findByThriftId(fieldId);
-
 
46005
    }
-
 
46006
 
-
 
46007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46008
      org.apache.thrift.protocol.TField field;
-
 
46009
      iprot.readStructBegin();
-
 
46010
      while (true)
-
 
46011
      {
-
 
46012
        field = iprot.readFieldBegin();
-
 
46013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46014
          break;
-
 
46015
        }
-
 
46016
        switch (field.id) {
-
 
46017
          case 1: // CART_ID
-
 
46018
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46019
              this.cartId = iprot.readI64();
-
 
46020
              setCartIdIsSet(true);
-
 
46021
            } else { 
-
 
46022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46023
            }
-
 
46024
            break;
-
 
46025
          case 2: // SOURCE_ID
-
 
46026
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46027
              this.sourceId = iprot.readI64();
-
 
46028
              setSourceIdIsSet(true);
-
 
46029
            } else { 
-
 
46030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46031
            }
-
 
46032
            break;
-
 
46033
          case 3: // DEAL_COUPON
-
 
46034
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
46035
              this.dealCoupon = iprot.readString();
-
 
46036
            } else { 
-
 
46037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46038
            }
-
 
46039
            break;
-
 
46040
          default:
-
 
46041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46042
        }
-
 
46043
        iprot.readFieldEnd();
-
 
46044
      }
-
 
46045
      iprot.readStructEnd();
-
 
46046
      validate();
-
 
46047
    }
-
 
46048
 
-
 
46049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46050
      validate();
-
 
46051
 
-
 
46052
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46053
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
46054
      oprot.writeI64(this.cartId);
-
 
46055
      oprot.writeFieldEnd();
-
 
46056
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
46057
      oprot.writeI64(this.sourceId);
-
 
46058
      oprot.writeFieldEnd();
-
 
46059
      if (this.dealCoupon != null) {
-
 
46060
        oprot.writeFieldBegin(DEAL_COUPON_FIELD_DESC);
-
 
46061
        oprot.writeString(this.dealCoupon);
-
 
46062
        oprot.writeFieldEnd();
-
 
46063
      }
-
 
46064
      oprot.writeFieldStop();
-
 
46065
      oprot.writeStructEnd();
-
 
46066
    }
-
 
46067
 
-
 
46068
    @Override
-
 
46069
    public String toString() {
-
 
46070
      StringBuilder sb = new StringBuilder("validateCartWithDealerCoupon_args(");
-
 
46071
      boolean first = true;
-
 
46072
 
-
 
46073
      sb.append("cartId:");
-
 
46074
      sb.append(this.cartId);
-
 
46075
      first = false;
-
 
46076
      if (!first) sb.append(", ");
-
 
46077
      sb.append("sourceId:");
-
 
46078
      sb.append(this.sourceId);
-
 
46079
      first = false;
-
 
46080
      if (!first) sb.append(", ");
-
 
46081
      sb.append("dealCoupon:");
-
 
46082
      if (this.dealCoupon == null) {
-
 
46083
        sb.append("null");
-
 
46084
      } else {
-
 
46085
        sb.append(this.dealCoupon);
-
 
46086
      }
-
 
46087
      first = false;
-
 
46088
      sb.append(")");
-
 
46089
      return sb.toString();
-
 
46090
    }
-
 
46091
 
-
 
46092
    public void validate() throws org.apache.thrift.TException {
-
 
46093
      // check for required fields
-
 
46094
    }
-
 
46095
 
-
 
46096
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46097
      try {
-
 
46098
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46099
      } catch (org.apache.thrift.TException te) {
-
 
46100
        throw new java.io.IOException(te);
-
 
46101
      }
-
 
46102
    }
-
 
46103
 
-
 
46104
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46105
      try {
-
 
46106
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46107
      } catch (org.apache.thrift.TException te) {
-
 
46108
        throw new java.io.IOException(te);
-
 
46109
      }
-
 
46110
    }
-
 
46111
 
-
 
46112
  }
-
 
46113
 
-
 
46114
  public static class validateCartWithDealerCoupon_result implements org.apache.thrift.TBase<validateCartWithDealerCoupon_result, validateCartWithDealerCoupon_result._Fields>, java.io.Serializable, Cloneable   {
-
 
46115
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartWithDealerCoupon_result");
-
 
46116
 
-
 
46117
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
46118
    private static final org.apache.thrift.protocol.TField SCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("scex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
46119
 
-
 
46120
    private List<String> success; // required
-
 
46121
    private ShoppingCartException scex; // required
-
 
46122
 
-
 
46123
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46124
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46125
      SUCCESS((short)0, "success"),
-
 
46126
      SCEX((short)1, "scex");
-
 
46127
 
-
 
46128
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46129
 
-
 
46130
      static {
-
 
46131
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46132
          byName.put(field.getFieldName(), field);
-
 
46133
        }
-
 
46134
      }
-
 
46135
 
-
 
46136
      /**
-
 
46137
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46138
       */
-
 
46139
      public static _Fields findByThriftId(int fieldId) {
-
 
46140
        switch(fieldId) {
-
 
46141
          case 0: // SUCCESS
-
 
46142
            return SUCCESS;
-
 
46143
          case 1: // SCEX
-
 
46144
            return SCEX;
-
 
46145
          default:
-
 
46146
            return null;
-
 
46147
        }
-
 
46148
      }
-
 
46149
 
-
 
46150
      /**
-
 
46151
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46152
       * if it is not found.
-
 
46153
       */
-
 
46154
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46155
        _Fields fields = findByThriftId(fieldId);
-
 
46156
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46157
        return fields;
-
 
46158
      }
-
 
46159
 
-
 
46160
      /**
-
 
46161
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46162
       */
-
 
46163
      public static _Fields findByName(String name) {
-
 
46164
        return byName.get(name);
-
 
46165
      }
-
 
46166
 
-
 
46167
      private final short _thriftId;
-
 
46168
      private final String _fieldName;
-
 
46169
 
-
 
46170
      _Fields(short thriftId, String fieldName) {
-
 
46171
        _thriftId = thriftId;
-
 
46172
        _fieldName = fieldName;
-
 
46173
      }
-
 
46174
 
-
 
46175
      public short getThriftFieldId() {
-
 
46176
        return _thriftId;
-
 
46177
      }
-
 
46178
 
-
 
46179
      public String getFieldName() {
-
 
46180
        return _fieldName;
-
 
46181
      }
-
 
46182
    }
-
 
46183
 
-
 
46184
    // isset id assignments
-
 
46185
 
-
 
46186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46187
    static {
-
 
46188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46189
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46190
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
46191
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
46192
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46193
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
46194
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46195
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartWithDealerCoupon_result.class, metaDataMap);
-
 
46196
    }
-
 
46197
 
-
 
46198
    public validateCartWithDealerCoupon_result() {
-
 
46199
    }
-
 
46200
 
-
 
46201
    public validateCartWithDealerCoupon_result(
-
 
46202
      List<String> success,
-
 
46203
      ShoppingCartException scex)
-
 
46204
    {
-
 
46205
      this();
-
 
46206
      this.success = success;
-
 
46207
      this.scex = scex;
-
 
46208
    }
-
 
46209
 
-
 
46210
    /**
-
 
46211
     * Performs a deep copy on <i>other</i>.
-
 
46212
     */
-
 
46213
    public validateCartWithDealerCoupon_result(validateCartWithDealerCoupon_result other) {
-
 
46214
      if (other.isSetSuccess()) {
-
 
46215
        List<String> __this__success = new ArrayList<String>();
-
 
46216
        for (String other_element : other.success) {
-
 
46217
          __this__success.add(other_element);
-
 
46218
        }
-
 
46219
        this.success = __this__success;
-
 
46220
      }
-
 
46221
      if (other.isSetScex()) {
-
 
46222
        this.scex = new ShoppingCartException(other.scex);
-
 
46223
      }
-
 
46224
    }
-
 
46225
 
-
 
46226
    public validateCartWithDealerCoupon_result deepCopy() {
-
 
46227
      return new validateCartWithDealerCoupon_result(this);
-
 
46228
    }
-
 
46229
 
-
 
46230
    @Override
-
 
46231
    public void clear() {
-
 
46232
      this.success = null;
-
 
46233
      this.scex = null;
-
 
46234
    }
-
 
46235
 
-
 
46236
    public int getSuccessSize() {
-
 
46237
      return (this.success == null) ? 0 : this.success.size();
-
 
46238
    }
-
 
46239
 
-
 
46240
    public java.util.Iterator<String> getSuccessIterator() {
-
 
46241
      return (this.success == null) ? null : this.success.iterator();
-
 
46242
    }
-
 
46243
 
-
 
46244
    public void addToSuccess(String elem) {
-
 
46245
      if (this.success == null) {
-
 
46246
        this.success = new ArrayList<String>();
-
 
46247
      }
-
 
46248
      this.success.add(elem);
-
 
46249
    }
-
 
46250
 
-
 
46251
    public List<String> getSuccess() {
-
 
46252
      return this.success;
-
 
46253
    }
-
 
46254
 
-
 
46255
    public void setSuccess(List<String> success) {
-
 
46256
      this.success = success;
-
 
46257
    }
-
 
46258
 
-
 
46259
    public void unsetSuccess() {
-
 
46260
      this.success = null;
-
 
46261
    }
-
 
46262
 
-
 
46263
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
46264
    public boolean isSetSuccess() {
-
 
46265
      return this.success != null;
-
 
46266
    }
-
 
46267
 
-
 
46268
    public void setSuccessIsSet(boolean value) {
-
 
46269
      if (!value) {
-
 
46270
        this.success = null;
-
 
46271
      }
-
 
46272
    }
-
 
46273
 
-
 
46274
    public ShoppingCartException getScex() {
-
 
46275
      return this.scex;
-
 
46276
    }
-
 
46277
 
-
 
46278
    public void setScex(ShoppingCartException scex) {
-
 
46279
      this.scex = scex;
-
 
46280
    }
-
 
46281
 
-
 
46282
    public void unsetScex() {
-
 
46283
      this.scex = null;
-
 
46284
    }
-
 
46285
 
-
 
46286
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
-
 
46287
    public boolean isSetScex() {
-
 
46288
      return this.scex != null;
-
 
46289
    }
-
 
46290
 
-
 
46291
    public void setScexIsSet(boolean value) {
-
 
46292
      if (!value) {
-
 
46293
        this.scex = null;
-
 
46294
      }
-
 
46295
    }
-
 
46296
 
-
 
46297
    public void setFieldValue(_Fields field, Object value) {
-
 
46298
      switch (field) {
-
 
46299
      case SUCCESS:
-
 
46300
        if (value == null) {
-
 
46301
          unsetSuccess();
-
 
46302
        } else {
-
 
46303
          setSuccess((List<String>)value);
-
 
46304
        }
-
 
46305
        break;
-
 
46306
 
-
 
46307
      case SCEX:
-
 
46308
        if (value == null) {
-
 
46309
          unsetScex();
-
 
46310
        } else {
-
 
46311
          setScex((ShoppingCartException)value);
-
 
46312
        }
-
 
46313
        break;
-
 
46314
 
-
 
46315
      }
-
 
46316
    }
-
 
46317
 
-
 
46318
    public Object getFieldValue(_Fields field) {
-
 
46319
      switch (field) {
-
 
46320
      case SUCCESS:
-
 
46321
        return getSuccess();
-
 
46322
 
-
 
46323
      case SCEX:
-
 
46324
        return getScex();
-
 
46325
 
-
 
46326
      }
-
 
46327
      throw new IllegalStateException();
-
 
46328
    }
-
 
46329
 
-
 
46330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46331
    public boolean isSet(_Fields field) {
-
 
46332
      if (field == null) {
-
 
46333
        throw new IllegalArgumentException();
-
 
46334
      }
-
 
46335
 
-
 
46336
      switch (field) {
-
 
46337
      case SUCCESS:
-
 
46338
        return isSetSuccess();
-
 
46339
      case SCEX:
-
 
46340
        return isSetScex();
-
 
46341
      }
-
 
46342
      throw new IllegalStateException();
-
 
46343
    }
-
 
46344
 
-
 
46345
    @Override
-
 
46346
    public boolean equals(Object that) {
-
 
46347
      if (that == null)
-
 
46348
        return false;
-
 
46349
      if (that instanceof validateCartWithDealerCoupon_result)
-
 
46350
        return this.equals((validateCartWithDealerCoupon_result)that);
-
 
46351
      return false;
-
 
46352
    }
-
 
46353
 
-
 
46354
    public boolean equals(validateCartWithDealerCoupon_result that) {
-
 
46355
      if (that == null)
-
 
46356
        return false;
-
 
46357
 
-
 
46358
      boolean this_present_success = true && this.isSetSuccess();
-
 
46359
      boolean that_present_success = true && that.isSetSuccess();
-
 
46360
      if (this_present_success || that_present_success) {
-
 
46361
        if (!(this_present_success && that_present_success))
-
 
46362
          return false;
-
 
46363
        if (!this.success.equals(that.success))
-
 
46364
          return false;
-
 
46365
      }
-
 
46366
 
-
 
46367
      boolean this_present_scex = true && this.isSetScex();
-
 
46368
      boolean that_present_scex = true && that.isSetScex();
-
 
46369
      if (this_present_scex || that_present_scex) {
-
 
46370
        if (!(this_present_scex && that_present_scex))
-
 
46371
          return false;
-
 
46372
        if (!this.scex.equals(that.scex))
-
 
46373
          return false;
-
 
46374
      }
-
 
46375
 
-
 
46376
      return true;
-
 
46377
    }
-
 
46378
 
-
 
46379
    @Override
-
 
46380
    public int hashCode() {
-
 
46381
      return 0;
-
 
46382
    }
-
 
46383
 
-
 
46384
    public int compareTo(validateCartWithDealerCoupon_result other) {
-
 
46385
      if (!getClass().equals(other.getClass())) {
-
 
46386
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46387
      }
-
 
46388
 
-
 
46389
      int lastComparison = 0;
-
 
46390
      validateCartWithDealerCoupon_result typedOther = (validateCartWithDealerCoupon_result)other;
-
 
46391
 
-
 
46392
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
46393
      if (lastComparison != 0) {
-
 
46394
        return lastComparison;
-
 
46395
      }
-
 
46396
      if (isSetSuccess()) {
-
 
46397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
46398
        if (lastComparison != 0) {
-
 
46399
          return lastComparison;
-
 
46400
        }
-
 
46401
      }
-
 
46402
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
-
 
46403
      if (lastComparison != 0) {
-
 
46404
        return lastComparison;
-
 
46405
      }
-
 
46406
      if (isSetScex()) {
-
 
46407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
-
 
46408
        if (lastComparison != 0) {
-
 
46409
          return lastComparison;
-
 
46410
        }
-
 
46411
      }
-
 
46412
      return 0;
-
 
46413
    }
-
 
46414
 
-
 
46415
    public _Fields fieldForId(int fieldId) {
-
 
46416
      return _Fields.findByThriftId(fieldId);
-
 
46417
    }
-
 
46418
 
-
 
46419
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46420
      org.apache.thrift.protocol.TField field;
-
 
46421
      iprot.readStructBegin();
-
 
46422
      while (true)
-
 
46423
      {
-
 
46424
        field = iprot.readFieldBegin();
-
 
46425
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46426
          break;
-
 
46427
        }
-
 
46428
        switch (field.id) {
-
 
46429
          case 0: // SUCCESS
-
 
46430
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
46431
              {
-
 
46432
                org.apache.thrift.protocol.TList _list99 = iprot.readListBegin();
-
 
46433
                this.success = new ArrayList<String>(_list99.size);
-
 
46434
                for (int _i100 = 0; _i100 < _list99.size; ++_i100)
-
 
46435
                {
-
 
46436
                  String _elem101; // required
-
 
46437
                  _elem101 = iprot.readString();
-
 
46438
                  this.success.add(_elem101);
-
 
46439
                }
-
 
46440
                iprot.readListEnd();
-
 
46441
              }
-
 
46442
            } else { 
-
 
46443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46444
            }
-
 
46445
            break;
-
 
46446
          case 1: // SCEX
-
 
46447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46448
              this.scex = new ShoppingCartException();
-
 
46449
              this.scex.read(iprot);
-
 
46450
            } else { 
-
 
46451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46452
            }
-
 
46453
            break;
-
 
46454
          default:
-
 
46455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46456
        }
-
 
46457
        iprot.readFieldEnd();
-
 
46458
      }
-
 
46459
      iprot.readStructEnd();
-
 
46460
      validate();
-
 
46461
    }
-
 
46462
 
-
 
46463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46464
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46465
 
-
 
46466
      if (this.isSetSuccess()) {
-
 
46467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
46468
        {
-
 
46469
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
46470
          for (String _iter102 : this.success)
-
 
46471
          {
-
 
46472
            oprot.writeString(_iter102);
-
 
46473
          }
-
 
46474
          oprot.writeListEnd();
-
 
46475
        }
-
 
46476
        oprot.writeFieldEnd();
-
 
46477
      } else if (this.isSetScex()) {
-
 
46478
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
-
 
46479
        this.scex.write(oprot);
-
 
46480
        oprot.writeFieldEnd();
-
 
46481
      }
-
 
46482
      oprot.writeFieldStop();
-
 
46483
      oprot.writeStructEnd();
-
 
46484
    }
-
 
46485
 
-
 
46486
    @Override
-
 
46487
    public String toString() {
-
 
46488
      StringBuilder sb = new StringBuilder("validateCartWithDealerCoupon_result(");
-
 
46489
      boolean first = true;
-
 
46490
 
-
 
46491
      sb.append("success:");
-
 
46492
      if (this.success == null) {
-
 
46493
        sb.append("null");
-
 
46494
      } else {
-
 
46495
        sb.append(this.success);
-
 
46496
      }
-
 
46497
      first = false;
-
 
46498
      if (!first) sb.append(", ");
-
 
46499
      sb.append("scex:");
-
 
46500
      if (this.scex == null) {
-
 
46501
        sb.append("null");
-
 
46502
      } else {
-
 
46503
        sb.append(this.scex);
-
 
46504
      }
-
 
46505
      first = false;
-
 
46506
      sb.append(")");
-
 
46507
      return sb.toString();
-
 
46508
    }
-
 
46509
 
-
 
46510
    public void validate() throws org.apache.thrift.TException {
-
 
46511
      // check for required fields
-
 
46512
    }
-
 
46513
 
-
 
46514
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46515
      try {
-
 
46516
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46517
      } catch (org.apache.thrift.TException te) {
-
 
46518
        throw new java.io.IOException(te);
-
 
46519
      }
-
 
46520
    }
-
 
46521
 
-
 
46522
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46523
      try {
-
 
46524
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46525
      } catch (org.apache.thrift.TException te) {
-
 
46526
        throw new java.io.IOException(te);
-
 
46527
      }
-
 
46528
    }
-
 
46529
 
-
 
46530
  }
-
 
46531
 
45445
  public static class mergeCart_args implements org.apache.thrift.TBase<mergeCart_args, mergeCart_args._Fields>, java.io.Serializable, Cloneable   {
46532
  public static class mergeCart_args implements org.apache.thrift.TBase<mergeCart_args, mergeCart_args._Fields>, java.io.Serializable, Cloneable   {
45446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_args");
46533
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_args");
45447
 
46534
 
45448
    private static final org.apache.thrift.protocol.TField FROM_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fromCartId", org.apache.thrift.protocol.TType.I64, (short)1);
46535
    private static final org.apache.thrift.protocol.TField FROM_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fromCartId", org.apache.thrift.protocol.TType.I64, (short)1);
45449
    private static final org.apache.thrift.protocol.TField TO_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("toCartId", org.apache.thrift.protocol.TType.I64, (short)2);
46536
    private static final org.apache.thrift.protocol.TField TO_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("toCartId", org.apache.thrift.protocol.TType.I64, (short)2);
Line 47021... Line 48108...
47021
            }
48108
            }
47022
            break;
48109
            break;
47023
          case 2: // ITEMS
48110
          case 2: // ITEMS
47024
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48111
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
47025
              {
48112
              {
47026
                org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin();
48113
                org.apache.thrift.protocol.TMap _map103 = iprot.readMapBegin();
47027
                this.items = new HashMap<Long,Double>(2*_map99.size);
48114
                this.items = new HashMap<Long,Double>(2*_map103.size);
47028
                for (int _i100 = 0; _i100 < _map99.size; ++_i100)
48115
                for (int _i104 = 0; _i104 < _map103.size; ++_i104)
47029
                {
48116
                {
47030
                  long _key101; // required
48117
                  long _key105; // required
47031
                  double _val102; // required
48118
                  double _val106; // required
47032
                  _key101 = iprot.readI64();
48119
                  _key105 = iprot.readI64();
47033
                  _val102 = iprot.readDouble();
48120
                  _val106 = iprot.readDouble();
47034
                  this.items.put(_key101, _val102);
48121
                  this.items.put(_key105, _val106);
47035
                }
48122
                }
47036
                iprot.readMapEnd();
48123
                iprot.readMapEnd();
47037
              }
48124
              }
47038
            } else { 
48125
            } else { 
47039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 47057... Line 48144...
47057
      oprot.writeFieldEnd();
48144
      oprot.writeFieldEnd();
47058
      if (this.items != null) {
48145
      if (this.items != null) {
47059
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
48146
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
47060
        {
48147
        {
47061
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
48148
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
47062
          for (Map.Entry<Long, Double> _iter103 : this.items.entrySet())
48149
          for (Map.Entry<Long, Double> _iter107 : this.items.entrySet())
47063
          {
48150
          {
47064
            oprot.writeI64(_iter103.getKey());
48151
            oprot.writeI64(_iter107.getKey());
47065
            oprot.writeDouble(_iter103.getValue());
48152
            oprot.writeDouble(_iter107.getValue());
47066
          }
48153
          }
47067
          oprot.writeMapEnd();
48154
          oprot.writeMapEnd();
47068
        }
48155
        }
47069
        oprot.writeFieldEnd();
48156
        oprot.writeFieldEnd();
47070
      }
48157
      }
Line 48817... Line 49904...
48817
        }
49904
        }
48818
        switch (field.id) {
49905
        switch (field.id) {
48819
          case 0: // SUCCESS
49906
          case 0: // SUCCESS
48820
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49907
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48821
              {
49908
              {
48822
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
49909
                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
48823
                this.success = new ArrayList<User>(_list104.size);
49910
                this.success = new ArrayList<User>(_list108.size);
48824
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
49911
                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
48825
                {
49912
                {
48826
                  User _elem106; // required
49913
                  User _elem110; // required
48827
                  _elem106 = new User();
49914
                  _elem110 = new User();
48828
                  _elem106.read(iprot);
49915
                  _elem110.read(iprot);
48829
                  this.success.add(_elem106);
49916
                  this.success.add(_elem110);
48830
                }
49917
                }
48831
                iprot.readListEnd();
49918
                iprot.readListEnd();
48832
              }
49919
              }
48833
            } else { 
49920
            } else { 
48834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48848... Line 49935...
48848
 
49935
 
48849
      if (this.isSetSuccess()) {
49936
      if (this.isSetSuccess()) {
48850
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49937
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48851
        {
49938
        {
48852
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
49939
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48853
          for (User _iter107 : this.success)
49940
          for (User _iter111 : this.success)
48854
          {
49941
          {
48855
            _iter107.write(oprot);
49942
            _iter111.write(oprot);
48856
          }
49943
          }
48857
          oprot.writeListEnd();
49944
          oprot.writeListEnd();
48858
        }
49945
        }
48859
        oprot.writeFieldEnd();
49946
        oprot.writeFieldEnd();
48860
      }
49947
      }
Line 49510... Line 50597...
49510
        }
50597
        }
49511
        switch (field.id) {
50598
        switch (field.id) {
49512
          case 0: // SUCCESS
50599
          case 0: // SUCCESS
49513
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50600
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49514
              {
50601
              {
49515
                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
50602
                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
49516
                this.success = new ArrayList<Long>(_list108.size);
50603
                this.success = new ArrayList<Long>(_list112.size);
49517
                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
50604
                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
49518
                {
50605
                {
49519
                  long _elem110; // required
50606
                  long _elem114; // required
49520
                  _elem110 = iprot.readI64();
50607
                  _elem114 = iprot.readI64();
49521
                  this.success.add(_elem110);
50608
                  this.success.add(_elem114);
49522
                }
50609
                }
49523
                iprot.readListEnd();
50610
                iprot.readListEnd();
49524
              }
50611
              }
49525
            } else { 
50612
            } else { 
49526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49548... Line 50635...
49548
 
50635
 
49549
      if (this.isSetSuccess()) {
50636
      if (this.isSetSuccess()) {
49550
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50637
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49551
        {
50638
        {
49552
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
50639
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
49553
          for (long _iter111 : this.success)
50640
          for (long _iter115 : this.success)
49554
          {
50641
          {
49555
            oprot.writeI64(_iter111);
50642
            oprot.writeI64(_iter115);
49556
          }
50643
          }
49557
          oprot.writeListEnd();
50644
          oprot.writeListEnd();
49558
        }
50645
        }
49559
        oprot.writeFieldEnd();
50646
        oprot.writeFieldEnd();
49560
      } else if (this.isSetScx()) {
50647
      } else if (this.isSetScx()) {
Line 51649... Line 52736...
51649
        }
52736
        }
51650
        switch (field.id) {
52737
        switch (field.id) {
51651
          case 0: // SUCCESS
52738
          case 0: // SUCCESS
51652
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52739
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51653
              {
52740
              {
51654
                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
52741
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
51655
                this.success = new ArrayList<Long>(_list112.size);
52742
                this.success = new ArrayList<Long>(_list116.size);
51656
                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
52743
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
51657
                {
52744
                {
51658
                  long _elem114; // required
52745
                  long _elem118; // required
51659
                  _elem114 = iprot.readI64();
52746
                  _elem118 = iprot.readI64();
51660
                  this.success.add(_elem114);
52747
                  this.success.add(_elem118);
51661
                }
52748
                }
51662
                iprot.readListEnd();
52749
                iprot.readListEnd();
51663
              }
52750
              }
51664
            } else { 
52751
            } else { 
51665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51687... Line 52774...
51687
 
52774
 
51688
      if (this.isSetSuccess()) {
52775
      if (this.isSetSuccess()) {
51689
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52776
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51690
        {
52777
        {
51691
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
52778
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
51692
          for (long _iter115 : this.success)
52779
          for (long _iter119 : this.success)
51693
          {
52780
          {
51694
            oprot.writeI64(_iter115);
52781
            oprot.writeI64(_iter119);
51695
          }
52782
          }
51696
          oprot.writeListEnd();
52783
          oprot.writeListEnd();
51697
        }
52784
        }
51698
        oprot.writeFieldEnd();
52785
        oprot.writeFieldEnd();
51699
      } else if (this.isSetScx()) {
52786
      } else if (this.isSetScx()) {
Line 54999... Line 56086...
54999
      }
56086
      }
55000
    }
56087
    }
55001
 
56088
 
55002
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55003
      try {
56090
      try {
55004
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
55005
        __isset_bit_vector = new BitSet(1);
-
 
55006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56091
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55007
      } catch (org.apache.thrift.TException te) {
56092
      } catch (org.apache.thrift.TException te) {
55008
        throw new java.io.IOException(te);
56093
        throw new java.io.IOException(te);
55009
      }
56094
      }
55010
    }
56095
    }
Line 55259... Line 56344...
55259
        }
56344
        }
55260
        switch (field.id) {
56345
        switch (field.id) {
55261
          case 0: // SUCCESS
56346
          case 0: // SUCCESS
55262
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56347
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55263
              {
56348
              {
55264
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
56349
                org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
55265
                this.success = new ArrayList<String>(_list116.size);
56350
                this.success = new ArrayList<String>(_list120.size);
55266
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
56351
                for (int _i121 = 0; _i121 < _list120.size; ++_i121)
55267
                {
56352
                {
55268
                  String _elem118; // required
56353
                  String _elem122; // required
55269
                  _elem118 = iprot.readString();
56354
                  _elem122 = iprot.readString();
55270
                  this.success.add(_elem118);
56355
                  this.success.add(_elem122);
55271
                }
56356
                }
55272
                iprot.readListEnd();
56357
                iprot.readListEnd();
55273
              }
56358
              }
55274
            } else { 
56359
            } else { 
55275
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55289... Line 56374...
55289
 
56374
 
55290
      if (this.isSetSuccess()) {
56375
      if (this.isSetSuccess()) {
55291
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56376
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55292
        {
56377
        {
55293
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
56378
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
55294
          for (String _iter119 : this.success)
56379
          for (String _iter123 : this.success)
55295
          {
56380
          {
55296
            oprot.writeString(_iter119);
56381
            oprot.writeString(_iter123);
55297
          }
56382
          }
55298
          oprot.writeListEnd();
56383
          oprot.writeListEnd();
55299
        }
56384
        }
55300
        oprot.writeFieldEnd();
56385
        oprot.writeFieldEnd();
55301
      }
56386
      }
Line 58733... Line 59818...
58733
        }
59818
        }
58734
        switch (field.id) {
59819
        switch (field.id) {
58735
          case 0: // SUCCESS
59820
          case 0: // SUCCESS
58736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59821
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58737
              {
59822
              {
58738
                org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
59823
                org.apache.thrift.protocol.TList _list124 = iprot.readListBegin();
58739
                this.success = new ArrayList<Long>(_list120.size);
59824
                this.success = new ArrayList<Long>(_list124.size);
58740
                for (int _i121 = 0; _i121 < _list120.size; ++_i121)
59825
                for (int _i125 = 0; _i125 < _list124.size; ++_i125)
58741
                {
59826
                {
58742
                  long _elem122; // required
59827
                  long _elem126; // required
58743
                  _elem122 = iprot.readI64();
59828
                  _elem126 = iprot.readI64();
58744
                  this.success.add(_elem122);
59829
                  this.success.add(_elem126);
58745
                }
59830
                }
58746
                iprot.readListEnd();
59831
                iprot.readListEnd();
58747
              }
59832
              }
58748
            } else { 
59833
            } else { 
58749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58763... Line 59848...
58763
 
59848
 
58764
      if (this.isSetSuccess()) {
59849
      if (this.isSetSuccess()) {
58765
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59850
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58766
        {
59851
        {
58767
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
59852
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
58768
          for (long _iter123 : this.success)
59853
          for (long _iter127 : this.success)
58769
          {
59854
          {
58770
            oprot.writeI64(_iter123);
59855
            oprot.writeI64(_iter127);
58771
          }
59856
          }
58772
          oprot.writeListEnd();
59857
          oprot.writeListEnd();
58773
        }
59858
        }
58774
        oprot.writeFieldEnd();
59859
        oprot.writeFieldEnd();
58775
      }
59860
      }
Line 58818... Line 59903...
58818
  public static class validateCartPlus_args implements org.apache.thrift.TBase<validateCartPlus_args, validateCartPlus_args._Fields>, java.io.Serializable, Cloneable   {
59903
  public static class validateCartPlus_args implements org.apache.thrift.TBase<validateCartPlus_args, validateCartPlus_args._Fields>, java.io.Serializable, Cloneable   {
58819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartPlus_args");
59904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartPlus_args");
58820
 
59905
 
58821
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
59906
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
58822
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
59907
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
59908
    private static final org.apache.thrift.protocol.TField DEALER_COUPON_FIELD_DESC = new org.apache.thrift.protocol.TField("dealerCoupon", org.apache.thrift.protocol.TType.STRING, (short)3);
58823
 
59909
 
58824
    private long cartId; // required
59910
    private long cartId; // required
58825
    private long sourceId; // required
59911
    private long sourceId; // required
-
 
59912
    private String dealerCoupon; // required
58826
 
59913
 
58827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58829
      CART_ID((short)1, "cartId"),
59916
      CART_ID((short)1, "cartId"),
58830
      SOURCE_ID((short)2, "sourceId");
59917
      SOURCE_ID((short)2, "sourceId"),
-
 
59918
      DEALER_COUPON((short)3, "dealerCoupon");
58831
 
59919
 
58832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58833
 
59921
 
58834
      static {
59922
      static {
58835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 58844... Line 59932...
58844
        switch(fieldId) {
59932
        switch(fieldId) {
58845
          case 1: // CART_ID
59933
          case 1: // CART_ID
58846
            return CART_ID;
59934
            return CART_ID;
58847
          case 2: // SOURCE_ID
59935
          case 2: // SOURCE_ID
58848
            return SOURCE_ID;
59936
            return SOURCE_ID;
-
 
59937
          case 3: // DEALER_COUPON
-
 
59938
            return DEALER_COUPON;
58849
          default:
59939
          default:
58850
            return null;
59940
            return null;
58851
        }
59941
        }
58852
      }
59942
      }
58853
 
59943
 
Line 58895... Line 59985...
58895
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58896
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59986
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58897
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
59987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58898
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59988
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
59989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
59990
      tmpMap.put(_Fields.DEALER_COUPON, new org.apache.thrift.meta_data.FieldMetaData("dealerCoupon", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
58900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartPlus_args.class, metaDataMap);
59993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartPlus_args.class, metaDataMap);
58902
    }
59994
    }
58903
 
59995
 
58904
    public validateCartPlus_args() {
59996
    public validateCartPlus_args() {
58905
    }
59997
    }
58906
 
59998
 
58907
    public validateCartPlus_args(
59999
    public validateCartPlus_args(
58908
      long cartId,
60000
      long cartId,
58909
      long sourceId)
60001
      long sourceId,
-
 
60002
      String dealerCoupon)
58910
    {
60003
    {
58911
      this();
60004
      this();
58912
      this.cartId = cartId;
60005
      this.cartId = cartId;
58913
      setCartIdIsSet(true);
60006
      setCartIdIsSet(true);
58914
      this.sourceId = sourceId;
60007
      this.sourceId = sourceId;
58915
      setSourceIdIsSet(true);
60008
      setSourceIdIsSet(true);
-
 
60009
      this.dealerCoupon = dealerCoupon;
58916
    }
60010
    }
58917
 
60011
 
58918
    /**
60012
    /**
58919
     * Performs a deep copy on <i>other</i>.
60013
     * Performs a deep copy on <i>other</i>.
58920
     */
60014
     */
58921
    public validateCartPlus_args(validateCartPlus_args other) {
60015
    public validateCartPlus_args(validateCartPlus_args other) {
58922
      __isset_bit_vector.clear();
60016
      __isset_bit_vector.clear();
58923
      __isset_bit_vector.or(other.__isset_bit_vector);
60017
      __isset_bit_vector.or(other.__isset_bit_vector);
58924
      this.cartId = other.cartId;
60018
      this.cartId = other.cartId;
58925
      this.sourceId = other.sourceId;
60019
      this.sourceId = other.sourceId;
-
 
60020
      if (other.isSetDealerCoupon()) {
-
 
60021
        this.dealerCoupon = other.dealerCoupon;
-
 
60022
      }
58926
    }
60023
    }
58927
 
60024
 
58928
    public validateCartPlus_args deepCopy() {
60025
    public validateCartPlus_args deepCopy() {
58929
      return new validateCartPlus_args(this);
60026
      return new validateCartPlus_args(this);
58930
    }
60027
    }
Line 58933... Line 60030...
58933
    public void clear() {
60030
    public void clear() {
58934
      setCartIdIsSet(false);
60031
      setCartIdIsSet(false);
58935
      this.cartId = 0;
60032
      this.cartId = 0;
58936
      setSourceIdIsSet(false);
60033
      setSourceIdIsSet(false);
58937
      this.sourceId = 0;
60034
      this.sourceId = 0;
-
 
60035
      this.dealerCoupon = null;
58938
    }
60036
    }
58939
 
60037
 
58940
    public long getCartId() {
60038
    public long getCartId() {
58941
      return this.cartId;
60039
      return this.cartId;
58942
    }
60040
    }
Line 58979... Line 60077...
58979
 
60077
 
58980
    public void setSourceIdIsSet(boolean value) {
60078
    public void setSourceIdIsSet(boolean value) {
58981
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
60079
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
58982
    }
60080
    }
58983
 
60081
 
-
 
60082
    public String getDealerCoupon() {
-
 
60083
      return this.dealerCoupon;
-
 
60084
    }
-
 
60085
 
-
 
60086
    public void setDealerCoupon(String dealerCoupon) {
-
 
60087
      this.dealerCoupon = dealerCoupon;
-
 
60088
    }
-
 
60089
 
-
 
60090
    public void unsetDealerCoupon() {
-
 
60091
      this.dealerCoupon = null;
-
 
60092
    }
-
 
60093
 
-
 
60094
    /** Returns true if field dealerCoupon is set (has been assigned a value) and false otherwise */
-
 
60095
    public boolean isSetDealerCoupon() {
-
 
60096
      return this.dealerCoupon != null;
-
 
60097
    }
-
 
60098
 
-
 
60099
    public void setDealerCouponIsSet(boolean value) {
-
 
60100
      if (!value) {
-
 
60101
        this.dealerCoupon = null;
-
 
60102
      }
-
 
60103
    }
-
 
60104
 
58984
    public void setFieldValue(_Fields field, Object value) {
60105
    public void setFieldValue(_Fields field, Object value) {
58985
      switch (field) {
60106
      switch (field) {
58986
      case CART_ID:
60107
      case CART_ID:
58987
        if (value == null) {
60108
        if (value == null) {
58988
          unsetCartId();
60109
          unsetCartId();
Line 58997... Line 60118...
58997
        } else {
60118
        } else {
58998
          setSourceId((Long)value);
60119
          setSourceId((Long)value);
58999
        }
60120
        }
59000
        break;
60121
        break;
59001
 
60122
 
-
 
60123
      case DEALER_COUPON:
-
 
60124
        if (value == null) {
-
 
60125
          unsetDealerCoupon();
-
 
60126
        } else {
-
 
60127
          setDealerCoupon((String)value);
-
 
60128
        }
-
 
60129
        break;
-
 
60130
 
59002
      }
60131
      }
59003
    }
60132
    }
59004
 
60133
 
59005
    public Object getFieldValue(_Fields field) {
60134
    public Object getFieldValue(_Fields field) {
59006
      switch (field) {
60135
      switch (field) {
Line 59008... Line 60137...
59008
        return Long.valueOf(getCartId());
60137
        return Long.valueOf(getCartId());
59009
 
60138
 
59010
      case SOURCE_ID:
60139
      case SOURCE_ID:
59011
        return Long.valueOf(getSourceId());
60140
        return Long.valueOf(getSourceId());
59012
 
60141
 
-
 
60142
      case DEALER_COUPON:
-
 
60143
        return getDealerCoupon();
-
 
60144
 
59013
      }
60145
      }
59014
      throw new IllegalStateException();
60146
      throw new IllegalStateException();
59015
    }
60147
    }
59016
 
60148
 
59017
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60149
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 59023... Line 60155...
59023
      switch (field) {
60155
      switch (field) {
59024
      case CART_ID:
60156
      case CART_ID:
59025
        return isSetCartId();
60157
        return isSetCartId();
59026
      case SOURCE_ID:
60158
      case SOURCE_ID:
59027
        return isSetSourceId();
60159
        return isSetSourceId();
-
 
60160
      case DEALER_COUPON:
-
 
60161
        return isSetDealerCoupon();
59028
      }
60162
      }
59029
      throw new IllegalStateException();
60163
      throw new IllegalStateException();
59030
    }
60164
    }
59031
 
60165
 
59032
    @Override
60166
    @Override
Line 59058... Line 60192...
59058
          return false;
60192
          return false;
59059
        if (this.sourceId != that.sourceId)
60193
        if (this.sourceId != that.sourceId)
59060
          return false;
60194
          return false;
59061
      }
60195
      }
59062
 
60196
 
-
 
60197
      boolean this_present_dealerCoupon = true && this.isSetDealerCoupon();
-
 
60198
      boolean that_present_dealerCoupon = true && that.isSetDealerCoupon();
-
 
60199
      if (this_present_dealerCoupon || that_present_dealerCoupon) {
-
 
60200
        if (!(this_present_dealerCoupon && that_present_dealerCoupon))
-
 
60201
          return false;
-
 
60202
        if (!this.dealerCoupon.equals(that.dealerCoupon))
-
 
60203
          return false;
-
 
60204
      }
-
 
60205
 
59063
      return true;
60206
      return true;
59064
    }
60207
    }
59065
 
60208
 
59066
    @Override
60209
    @Override
59067
    public int hashCode() {
60210
    public int hashCode() {
Line 59094... Line 60237...
59094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
60237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
59095
        if (lastComparison != 0) {
60238
        if (lastComparison != 0) {
59096
          return lastComparison;
60239
          return lastComparison;
59097
        }
60240
        }
59098
      }
60241
      }
-
 
60242
      lastComparison = Boolean.valueOf(isSetDealerCoupon()).compareTo(typedOther.isSetDealerCoupon());
-
 
60243
      if (lastComparison != 0) {
-
 
60244
        return lastComparison;
-
 
60245
      }
-
 
60246
      if (isSetDealerCoupon()) {
-
 
60247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealerCoupon, typedOther.dealerCoupon);
-
 
60248
        if (lastComparison != 0) {
-
 
60249
          return lastComparison;
-
 
60250
        }
-
 
60251
      }
59099
      return 0;
60252
      return 0;
59100
    }
60253
    }
59101
 
60254
 
59102
    public _Fields fieldForId(int fieldId) {
60255
    public _Fields fieldForId(int fieldId) {
59103
      return _Fields.findByThriftId(fieldId);
60256
      return _Fields.findByThriftId(fieldId);
Line 59127... Line 60280...
59127
              setSourceIdIsSet(true);
60280
              setSourceIdIsSet(true);
59128
            } else { 
60281
            } else { 
59129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59130
            }
60283
            }
59131
            break;
60284
            break;
-
 
60285
          case 3: // DEALER_COUPON
-
 
60286
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
60287
              this.dealerCoupon = iprot.readString();
-
 
60288
            } else { 
-
 
60289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60290
            }
-
 
60291
            break;
59132
          default:
60292
          default:
59133
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59134
        }
60294
        }
59135
        iprot.readFieldEnd();
60295
        iprot.readFieldEnd();
59136
      }
60296
      }
Line 59146... Line 60306...
59146
      oprot.writeI64(this.cartId);
60306
      oprot.writeI64(this.cartId);
59147
      oprot.writeFieldEnd();
60307
      oprot.writeFieldEnd();
59148
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
60308
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
59149
      oprot.writeI64(this.sourceId);
60309
      oprot.writeI64(this.sourceId);
59150
      oprot.writeFieldEnd();
60310
      oprot.writeFieldEnd();
-
 
60311
      if (this.dealerCoupon != null) {
-
 
60312
        oprot.writeFieldBegin(DEALER_COUPON_FIELD_DESC);
-
 
60313
        oprot.writeString(this.dealerCoupon);
-
 
60314
        oprot.writeFieldEnd();
-
 
60315
      }
59151
      oprot.writeFieldStop();
60316
      oprot.writeFieldStop();
59152
      oprot.writeStructEnd();
60317
      oprot.writeStructEnd();
59153
    }
60318
    }
59154
 
60319
 
59155
    @Override
60320
    @Override
Line 59162... Line 60327...
59162
      first = false;
60327
      first = false;
59163
      if (!first) sb.append(", ");
60328
      if (!first) sb.append(", ");
59164
      sb.append("sourceId:");
60329
      sb.append("sourceId:");
59165
      sb.append(this.sourceId);
60330
      sb.append(this.sourceId);
59166
      first = false;
60331
      first = false;
-
 
60332
      if (!first) sb.append(", ");
-
 
60333
      sb.append("dealerCoupon:");
-
 
60334
      if (this.dealerCoupon == null) {
-
 
60335
        sb.append("null");
-
 
60336
      } else {
-
 
60337
        sb.append(this.dealerCoupon);
-
 
60338
      }
-
 
60339
      first = false;
59167
      sb.append(")");
60340
      sb.append(")");
59168
      return sb.toString();
60341
      return sb.toString();
59169
    }
60342
    }
59170
 
60343
 
59171
    public void validate() throws org.apache.thrift.TException {
60344
    public void validate() throws org.apache.thrift.TException {